Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager / src / test / java / org / opendaylight / controller / config / manager / impl / osgi / BlankTransactionServiceTrackerTest.java
index 47b6d100c975de02bd5583e5f6b47aa99556bcad..ca21fef902448df925a4f7f472d1147d39fdb67c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -13,6 +13,7 @@ import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+
 import com.google.common.util.concurrent.MoreExecutors;
 import java.util.Collections;
 import javax.management.ObjectName;
@@ -51,7 +52,8 @@ public class BlankTransactionServiceTrackerTest {
     @Test
     public void testValidationException() throws Exception {
         IllegalArgumentException argumentException = new IllegalArgumentException();
-        ValidationException validationException = ValidationException.createForSingleException(new ModuleIdentifier("m", "i"), argumentException);
+        ValidationException validationException = ValidationException
+                .createForSingleException(new ModuleIdentifier("m", "i"), argumentException);
         doThrow(validationException).when(blankTx).hit();
 
         tracker.addingService(getMockServiceReference());
@@ -70,7 +72,7 @@ public class BlankTransactionServiceTrackerTest {
         verify(blankTx, times(maxAttempts)).hit();
     }
 
-    private ServiceReference<ModuleFactory> getMockServiceReference() {
+    private static ServiceReference<ModuleFactory> getMockServiceReference() {
         return mock(ServiceReference.class);
     }
 }