Correct error message 69/68769/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 23 Feb 2018 11:21:58 +0000 (12:21 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 27 Feb 2018 09:20:19 +0000 (10:20 +0100)
Expand "doesn't" to "does not".

Change-Id: I2b530985dd5982d7bcbc95866c1e7e26e52c4b98
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 995bd31c6db2b531bce117a21af7149f74ec7fe3)

yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlParserStream.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/StrictParsingModeTest.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlToNormalizedNodesTest.java

index ed797d7215973c7a09a1ca8ce9d1182b919eabea..2f51b377177ee63b14901664bf1e80e76c745ba6 100644 (file)
@@ -364,7 +364,7 @@ public final class XmlParserStream implements Closeable, Flushable {
 
                     if (childDataSchemaNodes.isEmpty()) {
                         Preconditions.checkState(!strictParsing,
-                                "Schema for node with name %s and namespace %s doesn't exist at %s", xmlElementName,
+                                "Schema for node with name %s and namespace %s does not exist at %s", xmlElementName,
                                 xmlElementNamespace, parentSchema.getPath());
                         skipUnknownNode(in);
                         continue;
index 8152ca01f76ee902c72fa49c3304896c068f820c..f7828e97754317ea90019b4b94497dea5f5be484 100644 (file)
@@ -79,7 +79,7 @@ public class StrictParsingModeTest {
             fail("IllegalStateException should have been thrown because of an unknown child node.");
         } catch (IllegalStateException ex) {
             assertTrue(ex.getMessage().contains("Schema for node with name unknown-container-a and namespace "
-                    + "foo doesn't exist at "));
+                    + "foo does not exist at "));
         }
     }
 }
index 60e5cd9870c50afc88da2edbca9180658600555e..ffc2f71c7b78c35d3b33cbc0a09e5eaf3fa82ee6 100644 (file)
@@ -308,7 +308,7 @@ public class XmlToNormalizedNodesTest {
             fail("IllegalStateException should have been thrown because of an unknown child node.");
         } catch (IllegalStateException ex) {
             assertTrue(ex.getMessage().contains("Schema for node with name my-container-1 and namespace baz-namespace"
-                        + " doesn't exist at "));
+                        + " does not exist at "));
         }
     }