Skip to content
Snippets Groups Projects
Commit a5130b39 authored by Ronald Li's avatar Ronald Li
Browse files

Replaced tabs with spaces

parent bae6e49a
No related branches found
No related tags found
No related merge requests found
...@@ -1158,17 +1158,17 @@ public class ControllerTest extends FloodlightTestCase { ...@@ -1158,17 +1158,17 @@ public class ControllerTest extends FloodlightTestCase {
*/ */
@Test @Test
public void testRemoveActiveSwitch() { public void testRemoveActiveSwitch() {
IOFSwitch sw = EasyMock.createNiceMock(IOFSwitch.class); IOFSwitch sw = EasyMock.createNiceMock(IOFSwitch.class);
boolean exceptionThrown = false; boolean exceptionThrown = false;
expect(sw.getId()).andReturn(1L).anyTimes(); expect(sw.getId()).andReturn(1L).anyTimes();
replay(sw); replay(sw);
getController().activeSwitches.put(sw.getId(), sw); getController().activeSwitches.put(sw.getId(), sw);
try { try {
getController().getSwitches().remove(1L); getController().getSwitches().remove(1L);
} catch (UnsupportedOperationException e) { } catch (UnsupportedOperationException e) {
exceptionThrown = true; exceptionThrown = true;
} }
assertTrue(exceptionThrown); assertTrue(exceptionThrown);
verify(sw); verify(sw);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment