Checkstyle formatting issues fix (SPI)
[neutron.git] / neutron-spi / src / test / java / org / opendaylight / neutron / spi / NeutronLoadBalancerHealthMonitorJAXBTest.java
index 158fbc259106d081b2bb4470fd3aa9d17ce1d398..1f751241541b2b84afa16f277c057827ca95617d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright IBM Corporation and others, 2015.  All rights reserved.
+ * Copyright (c) 2015 Tata Consultancy Services.  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,
@@ -10,7 +10,6 @@ package org.opendaylight.neutron.spi;
 
 import java.util.ArrayList;
 import java.util.List;
-
 import org.junit.Assert;
 import org.junit.Test;
 
@@ -19,8 +18,8 @@ public class NeutronLoadBalancerHealthMonitorJAXBTest {
     private static final String NeutronLoadBalancerHealthMonitor_sourceJson = "{"
             + "\"id\": \"2f245a7b-796b-4f26-9cf9-9e82d248fda7\", " + "\"type\": \"HTTP\", " + "\"delay\": 1, "
             + "\"timeout\": 1, " + "\"admin_state_up\": \"false\", " + "\"max_retries\": 5, "
-            + "\"http_method\": \"get\", " + "\"url_path\": \"/index.html\", "
-            + "\"expected_codes\": \"200,201,202\", " + "\"tenant_id\": \"00045a7b-796b-4f26-9cf9-9e82d248fda7\" }";
+            + "\"http_method\": \"get\", " + "\"url_path\": \"/index.html\", " + "\"expected_codes\": \"200,201,202\", "
+            + "\"tenant_id\": \"00045a7b-796b-4f26-9cf9-9e82d248fda7\" }";
 
     @Test
     public void test_NeutronLoadBalancerHealthMonitor_JAXB() {
@@ -29,7 +28,7 @@ public class NeutronLoadBalancerHealthMonitorJAXBTest {
             NeutronLoadBalancerHealthMonitor testObject = (NeutronLoadBalancerHealthMonitor) JaxbTestHelper
                     .jaxbUnmarshall(dummyObject, NeutronLoadBalancerHealthMonitor_sourceJson);
             Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 1: Testing id failed",
-                    "2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getLoadBalancerHealthMonitorID());
+                    "2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getID());
 
             Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 2: Testing  Type failed", "HTTP",
                     testObject.getLoadBalancerHealthMonitorType());
@@ -49,14 +48,14 @@ public class NeutronLoadBalancerHealthMonitorJAXBTest {
             Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 7: Testing  http_methods failed", "get",
                     testObject.getLoadBalancerHealthMonitorHttpMethod());
 
-            Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 8: Testing  url_path failed",
-                    "/index.html", testObject.getLoadBalancerHealthMonitorUrlPath());
+            Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 8: Testing  url_path failed", "/index.html",
+                    testObject.getLoadBalancerHealthMonitorUrlPath());
 
             Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 9: Testing  expected_codes failed",
                     "200,201,202", testObject.getLoadBalancerHealthMonitorExpectedCodes());
 
             Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 10: Testing tenant_id failed",
-                    "00045a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getLoadBalancerHealthMonitorTenantID());
+                    "00045a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getTenantID());
 
             Neutron_ID neutron_id = new Neutron_ID();
             neutron_id.setID("2f245a7b-0000-4f26-9cf9-9e82d248fda7");
@@ -64,8 +63,8 @@ public class NeutronLoadBalancerHealthMonitorJAXBTest {
             loadBalancerHealthMonitorPool.add(neutron_id);
             testObject.setLoadBalancerHealthMonitorPools(loadBalancerHealthMonitorPool);
             Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 11: Testing Pools failed",
-                    "2f245a7b-0000-4f26-9cf9-9e82d248fda7", testObject.getLoadBalancerHealthMonitorPools().get(0)
-                            .getID());
+                    "2f245a7b-0000-4f26-9cf9-9e82d248fda7",
+                    testObject.getLoadBalancerHealthMonitorPools().get(0).getID());
         } catch (Exception e) {
             Assert.assertFalse("Tests Failed", true);
         }