diff options
author | gjoranv <gv@verizonmedia.com> | 2021-11-03 22:53:38 +0100 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2021-11-03 23:18:14 +0100 |
commit | d7f5fb715810230ee013562b1fb2f2b8eaa81357 (patch) | |
tree | 2ce521f8ff51b5b1172f03da69adcab8496ad4ac /documentapi | |
parent | 7ea4faf2616c7937fa2e4ff07e739af523627d44 (diff) |
Ignore NPE message in test.
(NPE messages changed with JDK 14+ helpful NPEs.)
Diffstat (limited to 'documentapi')
-rwxr-xr-x | documentapi/src/test/java/com/yahoo/documentapi/messagebus/test/MessageBusVisitorSessionTestCase.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/documentapi/src/test/java/com/yahoo/documentapi/messagebus/test/MessageBusVisitorSessionTestCase.java b/documentapi/src/test/java/com/yahoo/documentapi/messagebus/test/MessageBusVisitorSessionTestCase.java index 53e2445af7e..f55e6433cd0 100755 --- a/documentapi/src/test/java/com/yahoo/documentapi/messagebus/test/MessageBusVisitorSessionTestCase.java +++ b/documentapi/src/test/java/com/yahoo/documentapi/messagebus/test/MessageBusVisitorSessionTestCase.java @@ -1850,9 +1850,11 @@ public class MessageBusVisitorSessionTestCase { assertEquals(0, mc.sender.getMessageCount()); assertTrue(mc.visitorSession.isDone()); - assertEquals("onDone : FAILURE - 'Got exception of type java.lang.NullPointerException " + - "with message 'null' while processing reply in visitor session'\n", - mc.controlHandler.toString()); + var controlHandlerMessage = mc.controlHandler.toString(); + assertTrue(controlHandlerMessage.startsWith( + "onDone : FAILURE - 'Got exception of type java.lang.NullPointerException with message '")); + // NPE message between these strings changed with helpful NPEs in JDK 14+, so not tested. + assertTrue(controlHandlerMessage.endsWith("' while processing reply in visitor session'\n")); } /** |