blob: 1f45ffaad3a7300fd36db608cda669966cbf5a00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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 org.springframework.boot.autoconfigure.SpringBootApplication;
import com.onap.sdnc.testapi.Application;
import com.onap.sdnc.testapi.ServletInitializer;
import com.onap.sdnc.testapi.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);
}
}
|