Fix checkstyle violations in messagebus
[controller.git] / opendaylight / md-sal / messagebus-util / src / test / java / org / opendaylight / controller / messagebus / app / util / TopicDOMNotificationTest.java
index 22595a2cbb5f2874a9f9c0ef2844d09b19cf9721..eba02a81cab985ff559f58bf9be92f8b41b8b5f0 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 
 public class TopicDOMNotificationTest {
 
-    private static final String containerNodeBodyMockToString = "containerNodeBodyMock";
+    private static final String CONTAINER_NODE_BODY_MOCK_TO_STRING = "containerNodeBodyMock";
     ContainerNode containerNodeBodyMock;
     TopicDOMNotification topicDOMNotification;
 
@@ -32,7 +32,7 @@ public class TopicDOMNotificationTest {
     @Before
     public void setUp() throws Exception {
         containerNodeBodyMock = mock(ContainerNode.class);
-        doReturn(containerNodeBodyMockToString).when(containerNodeBodyMock).toString();
+        doReturn(CONTAINER_NODE_BODY_MOCK_TO_STRING).when(containerNodeBodyMock).toString();
         topicDOMNotification = new TopicDOMNotification(containerNodeBodyMock);
     }
 
@@ -43,8 +43,8 @@ public class TopicDOMNotificationTest {
 
     @Test
     public void getTypeTest() {
-        SchemaPath TOPIC_NOTIFICATION_ID = SchemaPath.create(true, TopicNotification.QNAME);
-        assertEquals("Type has not been created correctly.", TOPIC_NOTIFICATION_ID, topicDOMNotification.getType());
+        SchemaPath topicNotificationId = SchemaPath.create(true, TopicNotification.QNAME);
+        assertEquals("Type has not been created correctly.", topicNotificationId, topicDOMNotification.getType());
     }
 
     @Test
@@ -54,7 +54,7 @@ public class TopicDOMNotificationTest {
 
     @Test
     public void getToStringTest() {
-        String bodyString = "TopicDOMNotification [body=" + containerNodeBodyMockToString + "]";
+        String bodyString = "TopicDOMNotification [body=" + CONTAINER_NODE_BODY_MOCK_TO_STRING + "]";
         assertEquals("String has not been created correctly.", bodyString, topicDOMNotification.toString());
     }
-}
\ No newline at end of file
+}