Cleanup warnings
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / utils / DispatchersTest.java
index 11d6dcba0a07a4866dc38e2a9a1d750d1368ec06..b850e2e65e552b6df6883b5441bcf347318fb750 100644 (file)
@@ -12,18 +12,20 @@ import static org.junit.Assert.assertEquals;
 import static org.mockito.Matchers.anyString;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+
 import akka.dispatch.MessageDispatcher;
 import org.junit.Test;
+import org.opendaylight.controller.cluster.common.actor.Dispatchers;
 
 public class DispatchersTest {
 
     @Test
-    public void testGetDefaultDispatcherPath(){
+    public void testGetDefaultDispatcherPath() {
         akka.dispatch.Dispatchers mockDispatchers = mock(akka.dispatch.Dispatchers.class);
         doReturn(false).when(mockDispatchers).hasDispatcher(anyString());
         Dispatchers dispatchers = new Dispatchers(mockDispatchers);
 
-        for(Dispatchers.DispatcherType type : Dispatchers.DispatcherType.values()) {
+        for (Dispatchers.DispatcherType type : Dispatchers.DispatcherType.values()) {
             assertEquals(Dispatchers.DEFAULT_DISPATCHER_PATH,
                     dispatchers.getDispatcherPath(type));
         }
@@ -31,14 +33,14 @@ public class DispatchersTest {
     }
 
     @Test
-    public void testGetDefaultDispatcher(){
+    public void testGetDefaultDispatcher() {
         akka.dispatch.Dispatchers mockDispatchers = mock(akka.dispatch.Dispatchers.class);
         MessageDispatcher mockGlobalDispatcher = mock(MessageDispatcher.class);
         doReturn(false).when(mockDispatchers).hasDispatcher(anyString());
         doReturn(mockGlobalDispatcher).when(mockDispatchers).defaultGlobalDispatcher();
         Dispatchers dispatchers = new Dispatchers(mockDispatchers);
 
-        for(Dispatchers.DispatcherType type : Dispatchers.DispatcherType.values()) {
+        for (Dispatchers.DispatcherType type : Dispatchers.DispatcherType.values()) {
             assertEquals(mockGlobalDispatcher,
                     dispatchers.getDispatcher(type));
         }
@@ -46,7 +48,7 @@ public class DispatchersTest {
     }
 
     @Test
-    public void testGetDispatcherPath(){
+    public void testGetDispatcherPath() {
         akka.dispatch.Dispatchers mockDispatchers = mock(akka.dispatch.Dispatchers.class);
         doReturn(true).when(mockDispatchers).hasDispatcher(anyString());
         Dispatchers dispatchers = new Dispatchers(mockDispatchers);
@@ -66,7 +68,7 @@ public class DispatchersTest {
     }
 
     @Test
-    public void testGetDispatcher(){
+    public void testGetDispatcher() {
         akka.dispatch.Dispatchers mockDispatchers = mock(akka.dispatch.Dispatchers.class);
         MessageDispatcher mockDispatcher = mock(MessageDispatcher.class);
         doReturn(true).when(mockDispatchers).hasDispatcher(anyString());
@@ -86,4 +88,4 @@ public class DispatchersTest {
                 dispatchers.getDispatcherPath(Dispatchers.DispatcherType.Notification));
 
     }
-}
\ No newline at end of file
+}