diff options
author | Lathish <lathishbabu.ganesan@est.tech> | 2019-06-19 15:48:09 +0000 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-07-06 02:16:41 +0000 |
commit | d368feb33cf3dcf1008b060503b7a41edef67e9e (patch) | |
tree | 86489f5e766fe73aee9051b2ef539829c83fda6c /appc-config/appc-config-adaptor/provider/src/test/java/org | |
parent | 066fc4828dd8e0dd9e6c0e9cc7e7dd705f02f7c1 (diff) |
Fixed netconf-xml parsing issue
Issue-ID: APPC-1624
Change-Id: I12aa5f1a42d5e09b5eb8886132ea9e5a2c84ef5e
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
Diffstat (limited to 'appc-config/appc-config-adaptor/provider/src/test/java/org')
-rw-r--r-- | appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java index e798c65f6..c987bb2c9 100644 --- a/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java +++ b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/ConfigComponentAdaptorTest.java @@ -245,7 +245,7 @@ public class ConfigComponentAdaptorTest { public void testXmlGetrunningconfig() throws TimedOutException, IOException { Properties props = null; ConfigComponentAdaptor cca = Mockito.spy(new ConfigComponentAdaptor(props)); - Mockito.doReturn("<configuration xmlns=\"\n<data>\n</data>\n</configuration>") + Mockito.doReturn("<configuration xmlns=\"\">\"\n<data>\n</data>\n</configuration>") .when(mockWrapper) .receiveUntil(Mockito.anyString(), Mockito.anyInt(), Mockito.anyString()); Mockito.doReturn(mockWrapper).when(cca).getSshJcraftWrapper(); @@ -260,7 +260,7 @@ public class ConfigComponentAdaptorTest { public void testXmlGetrunningconfigLongResponse() throws TimedOutException, IOException { Properties props = null; ConfigComponentAdaptor cca = Mockito.spy(new ConfigComponentAdaptor(props)); - Mockito.doReturn("<configuration xmlns=\"\n<data>\nData line 1\nData line 2\nData line 3\nData line 4\n" + Mockito.doReturn("<configuration xmlns=\"\">\"\n<data>\nData line 1\nData line 2\nData line 3\nData line 4\n" + "Data line 5\nData line 6\nData line 7\nData line 8\nData line 9\n Data line 10\n" + "Data line 11\nData line 12\nData line 13\nData line 14\nData line 15\n" + "Data line 16\nData line 17\nData line 18\nData line 19\nData line 20</data>\n</configuration>") |