BUG-9028: make NonPersistentDataProvider schedule invocation
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / test / java / org / opendaylight / controller / cluster / raft / behaviors / SyncStatusTrackerTest.java
index 3ffaeb811c6c6f4f965ca7330fd5d95f0d82a9d6..271250c16c055d0e26d00dc42395ddd67cc2f437 100644 (file)
@@ -14,6 +14,7 @@ import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
+
 import akka.actor.Props;
 import akka.testkit.TestActorRef;
 import org.junit.After;
@@ -30,7 +31,7 @@ public class SyncStatusTrackerTest extends AbstractActorTest {
             Props.create(MessageCollectorActor.class), actorFactory.generateActorId("listener"));
 
     @After
-    public void tearDown(){
+    public void tearDown() {
         actorFactory.close();
     }
 
@@ -111,33 +112,32 @@ public class SyncStatusTrackerTest extends AbstractActorTest {
     }
 
     @Test
-    public void testConstructorActorShouldNotBeNull(){
+    public void testConstructorActorShouldNotBeNull() {
         try {
             new SyncStatusTracker(null, "commit-tracker", 10);
             fail("A NullPointerException was expected");
-        } catch(NullPointerException e){
+        } catch (NullPointerException e) {
             assertTrue("Invalid error message :" + e.getMessage(), e.getMessage().contains("actor "));
         }
     }
 
     @Test
-    public void testConstructorIdShouldNotBeNull(){
+    public void testConstructorIdShouldNotBeNull() {
         try {
             new SyncStatusTracker(listener, null, 10);
             fail("A NullPointerException was expected");
-        } catch(NullPointerException e){
+        } catch (NullPointerException e) {
             assertTrue("Invalid error message :" + e.getMessage(), e.getMessage().contains("id "));
         }
     }
 
     @Test
-    public void testConstructorSyncThresholdShouldNotBeNegative(){
+    public void testConstructorSyncThresholdShouldNotBeNegative() {
         try {
             new SyncStatusTracker(listener, "commit-tracker", -1);
             fail("An IllegalArgumentException was expected");
-        } catch(IllegalArgumentException e){
+        } catch (IllegalArgumentException e) {
             assertTrue("Invalid error message :" + e.getMessage(), e.getMessage().contains("syncThreshold "));
         }
     }
-
-}
\ No newline at end of file
+}