apply checkstyle check during build for neutron-mapper
[groupbasedpolicy.git] / neutron-mapper / src / test / java / org / opendaylight / groupbasedpolicy / neutron / mapper / test / NeutronMapperDataBrokerTest.java
index 14c2da9274a2bb36941b5be17c73a4e62e634231..a08a1ec74f3b86f9837b369689502c3f60364dab 100644 (file)
@@ -11,6 +11,8 @@ import static org.mockito.Matchers.any;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
+import com.google.common.collect.ImmutableList;
+
 import java.util.Collection;
 
 import org.opendaylight.controller.md.sal.binding.test.AbstractDataBrokerTest;
@@ -23,8 +25,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gb
 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.Tenants;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.rev150712.Neutron;
 
-import com.google.common.collect.ImmutableList;
-
 /**
  * Loads only modules of GBP and it's dependencies for data broker.
  * <br>
@@ -38,17 +38,18 @@ public class NeutronMapperDataBrokerTest extends CustomDataBrokerTest {
                 Mappings.class);
     }
 
+    @SuppressWarnings("checkstyle:LineLength") // Longer lines in this method are caused by long package names,
+                                               // this will be removed when deprecated classes will be cleared.
     protected EndpointRegistrator getEpRegistrator() {
         EndpointRegistrator epRegistrator = mock(EndpointRegistrator.class);
         when(epRegistrator.registerEndpoint(any(RegisterEndpointInput.class))).thenReturn(true);
         when(epRegistrator.registerEndpoint(
-                any(org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.RegisterEndpointInput.class)))
-                    .thenReturn(true);
+            any(org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.RegisterEndpointInput.class)))
+            .thenReturn(true);
         when(epRegistrator.unregisterEndpoint(any(UnregisterEndpointInput.class))).thenReturn(true);
         when(epRegistrator.unregisterEndpoint(
-                any(org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.UnregisterEndpointInput.class)))
-                    .thenReturn(true);
+            any(org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.endpoint.rev140421.UnregisterEndpointInput.class)))
+            .thenReturn(true);
         return epRegistrator;
     }
-
 }