blob: d08983743fb9dfd146a36850f778e366607ef7d2 (
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
|
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);
}
}
|