From d162a79e7c1f0f12f4289255f1ddc060bcf2de05 Mon Sep 17 00:00:00 2001 From: chroniclekevinpowe Date: Wed, 6 Dec 2023 09:14:36 +1100 Subject: [PATCH] Added test to check CNFE is not thrown automatically for an interface field, allowing warnings and silent failure. --- .../wire/marshallable/CNFREOnMissingClassTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }