X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Flifecycle%2FContextChainImplTest.java;h=5bac78556d47926d8a706c82390c02cd358f8cc3;hb=1aee9a9a8d8df9d3207696a98021295ae2e92ad7;hp=690717634b9fa3d13d4d7815222ca9e51a391158;hpb=d7d3bc5587b714f788b9a533e29eae64a3a4c6d8;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainImplTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainImplTest.java index 690717634b..5bac78556d 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainImplTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainImplTest.java @@ -56,7 +56,7 @@ public class ContextChainImplTest { private ContextChain contextChain; @Before - public void setUp() throws Exception { + public void setUp() { Mockito.when(deviceContext.getDeviceInfo()).thenReturn(deviceInfo); Mockito.when(deviceInfo.getServiceIdentifier()).thenReturn(SERVICE_GROUP_IDENTIFIER); Mockito.when(deviceContext.closeServiceInstance()).thenReturn(Futures.immediateFuture(null)); @@ -75,7 +75,7 @@ public class ContextChainImplTest { } @Test - public void closeServiceInstance() throws Exception { + public void closeServiceInstance() { contextChain.closeServiceInstance(); Mockito.verify(deviceContext).closeServiceInstance(); Mockito.verify(rpcContext).closeServiceInstance(); @@ -83,7 +83,7 @@ public class ContextChainImplTest { } @Test - public void close() throws Exception { + public void close() { contextChain.registerDeviceRemovedHandler(deviceRemovedHandler); contextChain.close(); Mockito.verify(statisticsContext).close(); @@ -93,7 +93,7 @@ public class ContextChainImplTest { } @Test - public void closeTwoTimes() throws Exception { + public void closeTwoTimes() { contextChain.registerDeviceRemovedHandler(deviceRemovedHandler); contextChain.close(); contextChain.close(); @@ -102,7 +102,7 @@ public class ContextChainImplTest { } @Test - public void closeThreeTimes() throws Exception { + public void closeThreeTimes() { contextChain.registerDeviceRemovedHandler(deviceRemovedHandler); contextChain.close(); contextChain.close(); @@ -111,12 +111,12 @@ public class ContextChainImplTest { } @Test - public void getIdentifier() throws Exception { + public void getIdentifier() { Assert.assertEquals(contextChain.getIdentifier(), SERVICE_GROUP_IDENTIFIER); } @Test - public void instantiateServiceInstanceFail() throws Exception { + public void instantiateServiceInstanceFail() { Mockito.doThrow(new IllegalStateException()).when(deviceContext).instantiateServiceInstance(); contextChain.instantiateServiceInstance(); Mockito.verify(contextChainMastershipWatcher)