Ayaka Koshibe

tests for OFDeviceProvider

Change-Id: If9f2c1f78a940a5485e5390d6d098d74eb00ddc2
......@@ -80,7 +80,7 @@ public class OpenFlowPacketProviderTest {
private final TestPacketRegistry registry = new TestPacketRegistry();
private final TestController controller = new TestController();
private final TestOpenFlowSwitch sw = new TestOpenFlowSwitch(PLIST);
private final TestOpenFlowSwitch sw = new TestOpenFlowSwitch();
@Before
public void startUp() {
......@@ -317,15 +317,10 @@ public class OpenFlowPacketProviderTest {
private class TestOpenFlowSwitch implements OpenFlowSwitch {
List<OFPortDesc> ports;
RoleState state;
List<OFMessage> sent = new ArrayList<OFMessage>();
OFFactory factory = OFFactoryVer10.INSTANCE;
TestOpenFlowSwitch(List<OFPortDesc> p) {
ports = p;
}
@Override
public void sendMsg(OFMessage msg) {
sent.add(msg);
......@@ -351,7 +346,7 @@ public class OpenFlowPacketProviderTest {
@Override
public List<OFPortDesc> getPorts() {
return ports;
return PLIST;
}
@Override
......