2 * Copyright (c) 2018 ZTE Corporation.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the Apache License, Version 2.0
\r
5 * and the Eclipse Public License v1.0 which both accompany this distribution,
\r
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
\r
7 * and http://www.apache.org/licenses/LICENSE-2.0
\r
10 * ZTE - initial API and implementation and/or initial documentation
\r
12 package org.onap.sdc.workflowdesigner.resources.entity;
\r
14 import static org.junit.Assert.*;
\r
16 import java.util.HashMap;
\r
17 import java.util.Map;
\r
19 import org.junit.After;
\r
20 import org.junit.Before;
\r
21 import org.junit.Test;
\r
26 public class ContentTest {
\r
29 * @throws java.lang.Exception
\r
32 public void setUp() throws Exception {}
\r
35 * @throws java.lang.Exception
\r
38 public void tearDown() throws Exception {}
\r
41 public void test() {
\r
42 String clazz = "clazz";
\r
43 String script = "script";
\r
44 String scriptFormat = "scriptFormat";
\r
45 Map<String, InputOutput> inputs = new HashMap<String, InputOutput>();
\r
46 Map<String, InputOutput> outputs = new HashMap<String, InputOutput>();
\r
48 Content c = new Content();
\r
50 c.setInputs(inputs);
\r
51 c.setOutputs(outputs);
\r
52 c.setScript(script);
\r
53 c.setScriptFormat(scriptFormat);
\r
55 assertEquals(clazz, c.getClazz());
\r
56 assertEquals(inputs, c.getInputs());
\r
57 assertEquals(outputs, c.getOutputs());
\r
58 assertEquals(script, c.getScript());
\r
59 assertEquals(scriptFormat, c.getScriptFormat());
\r