Bug 8153: Enforce check-style rules for netconf - netconf-util
[netconf.git] / netconf / netconf-util / src / test / java / org / opendaylight / netconf / util / test / XmlUnitUtil.java
index e8941445ed1743e48b3970b4451ffa3540da355e..9ce2be2013e3c5e7ad11d7ceb0d8a5717ae5fa12 100644 (file)
@@ -26,7 +26,8 @@ public class XmlUnitUtil {
 
     private XmlUnitUtil() {}
 
-    public static void assertContainsElementWithText(final Document doc, final String textToFind) throws NodeTestException {
+    public static void assertContainsElementWithText(final Document doc,
+                                                     final String textToFind) throws NodeTestException {
         NodeTest nt = new NodeTest(doc);
         NodeTester tester = new AbstractNodeTester() {
 
@@ -34,7 +35,7 @@ public class XmlUnitUtil {
 
             @Override
             public void testText(Text text) throws NodeTestException {
-                if(!textFound) {
+                if (!textFound) {
                     if (text.getData().equalsIgnoreCase(textToFind)) {
                         textFound = true;
                     }
@@ -58,7 +59,7 @@ public class XmlUnitUtil {
             @Override
             public void testElement(Element element) throws NodeTestException {
                 if (!elementFound) {
-                    if(element.isEqualNode(testElement)) {
+                    if (element.isEqualNode(testElement)) {
                         elementFound = true;
                     }
                 }
@@ -72,7 +73,8 @@ public class XmlUnitUtil {
         assertNodeTestPasses(nt, tester, new short[]{Node.ELEMENT_NODE}, true);
     }
 
-    public static void assertContainsElementWithName(final Document doc, final String elementName) throws NodeTestException {
+    public static void assertContainsElementWithName(final Document doc,
+                                                     final String elementName) throws NodeTestException {
         NodeTest nt = new NodeTest(doc);
         NodeTester tester = new AbstractNodeTester() {