Remove console output 67/105667/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2023 16:03:38 +0000 (18:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2023 16:04:36 +0000 (18:04 +0200)
Tests should not output things directly to console, remove this output
and the corresponding suppression.

Change-Id: I69a1687cbf4cdb2e0772605f9c121cb74c2318a5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/NetconfServerSessionListenerTest.java

index c50d765d7c79a2b5c4e8a0dd3339954a59063787..94de71080b01e5811b0527718ed07e0b57a3ecbb 100644 (file)
@@ -116,7 +116,6 @@ public class NetconfServerSessionListenerTest {
         verify(monitoringListener).onSessionEvent(argThat(sessionEventIs(SessionEvent.Type.IN_RPC_FAIL)));
     }
 
-    @SuppressWarnings("checkstyle:RegexpSinglelineJava")
     @Test
     public void testOnMessageDocumentedFail() throws Exception {
         final Document reply =
@@ -139,8 +138,6 @@ public class NetconfServerSessionListenerTest {
         verify(monitoringListener).onSessionEvent(argThat(sessionEventIs(SessionEvent.Type.OUT_RPC_ERROR)));
         channel.runPendingTasks();
         final NetconfMessage sentMsg = channel.readOutbound();
-        System.out.println(XmlUtil.toString(sentMsg.getDocument()));
-        System.out.println(XmlUtil.toString(reply));
         final Diff diff = XMLUnit.compareXML(reply, sentMsg.getDocument());
         assertTrue(diff.toString(), diff.similar());
     }