diff options
Diffstat (limited to 'SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/testapi/model/InputTest.java')
-rw-r--r-- | SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/testapi/model/InputTest.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/testapi/model/InputTest.java b/SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/testapi/model/InputTest.java new file mode 100644 index 00000000..d0898374 --- /dev/null +++ b/SdncReports/SdncReportsApi/src/test/java/com/onap/sdnc/testapi/model/InputTest.java @@ -0,0 +1,34 @@ +package com.onap.sdnc.testapi.model; + +import static org.junit.Assert.assertEquals; +import org.junit.Before; +import org.junit.Test; +import org.mockito.MockitoAnnotations; +import com.onap.sdnc.reports.model.Input; + +public class InputTest { + + private String hostname = "host"; + private String ipaddress = "0.0.0.0"; + private String network = "Network Layer"; + + Input input = new Input(); + + @Before + public void setUp() throws Exception { + MockitoAnnotations.initMocks(this); + } + + @Test + public void TestInput() { + + input.setHostname(hostname); + input.setIpaddress(ipaddress); + input.setNetwork(network); + + assertEquals(input.getHostname(), hostname); + assertEquals(input.getIpaddress(), ipaddress); + assertEquals(input.getNetwork(), network); + + } +}
\ No newline at end of file |