1 package org.openkilda.simulator.classes;
3 import org.junit.After;
4 import org.junit.Before;
7 import org.junit.rules.ExpectedException;
10 import static org.junit.Assert.*;
18 public ExpectedException
thrown = ExpectedException.none();
22 public void setUp() throws Exception {
35 assertFalse(port.isActive());
36 assertEquals(portNum, port.getNumber());
39 assertTrue(port.isActive());
45 assertTrue(port.isActive());
48 assertFalse(port.isActive());
54 assertFalse(port.isForwarding());
57 assertTrue(port.isForwarding());
63 port.setPeerSwitch(
"00:00:00:00:00:01");
64 port.setPeerPortNum(10);
65 assertTrue(port.isActiveIsl());
68 assertFalse(port.isActiveIsl());
72 assertFalse(port.isActiveIsl());
75 assertTrue(port.isActiveIsl());
79 assertFalse(port.isActiveIsl());