diff --git a/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java b/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java index 5fc6f58c2..8fa013188 100644 --- a/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java +++ b/src/test/java/net/openhft/chronicle/wire/marshallable/CNFREOnMissingClassTest.java @@ -133,10 +133,10 @@ public void useTupleOnMissingClassForInterfaceField() { } /** - * Tests if ClassNotFoundRuntimeException is correctly thrown for an interface field with no fallback, - * when the class for the interface is missing. + * Tests if ClassNotFoundRuntimeException is suppressed for an interface field with no fallback, + * when the class for the interface is missing, but Wires CNFE property is set to false */ - @Test(expected = ClassNotFoundRuntimeException.class) + @Test public void throwClassNotFoundRuntimeExceptionOnMissingClassForInterfaceFieldNoFallback() { testInterfaceFieldTest0(false, false, null); }