From e4c6fe512476ed893a578c65b33cd490ec45ba37 Mon Sep 17 00:00:00 2001 From: Jens Wille Date: Fri, 30 Oct 2020 15:26:37 +0100 Subject: [PATCH] Metamorph basics test should verify that no unexpected interactions occurred at all. * Changed `shouldHandleUnmatchedLiteralsAndEntitiesInElseNestedSource` to match actual behaviour (see #338). --- .../src/test/java/org/metafacture/metamorph/TestHelpers.java | 2 +- .../java/org/metafacture/metamorph/TestMetamorphBasics.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metamorph/src/test/java/org/metafacture/metamorph/TestHelpers.java b/metamorph/src/test/java/org/metafacture/metamorph/TestHelpers.java index ca1075907..5617f8b0b 100644 --- a/metamorph/src/test/java/org/metafacture/metamorph/TestHelpers.java +++ b/metamorph/src/test/java/org/metafacture/metamorph/TestHelpers.java @@ -45,7 +45,7 @@ public static void assertMorph(final StreamReceiver receiver, final String morph out.accept(() -> ordered.verify(receiver), i -> ordered.verify(receiver, Mockito.times(i))); ordered.verifyNoMoreInteractions(); - //Mockito.verifyNoMoreInteractions(receiver); + Mockito.verifyNoMoreInteractions(receiver); } catch (final MockitoAssertionError e) { System.out.println(Mockito.mockingDetails(receiver).printInvocations()); diff --git a/metamorph/src/test/java/org/metafacture/metamorph/TestMetamorphBasics.java b/metamorph/src/test/java/org/metafacture/metamorph/TestMetamorphBasics.java index 51e314913..e2ee92dac 100644 --- a/metamorph/src/test/java/org/metafacture/metamorph/TestMetamorphBasics.java +++ b/metamorph/src/test/java/org/metafacture/metamorph/TestMetamorphBasics.java @@ -152,8 +152,8 @@ public void shouldHandleUnmatchedLiteralsAndEntitiesInElseNestedSource() { o.get().literal("Shikotan", "Aekap"); o.get().startEntity("Germany"); o.get().literal("Langeoog", "Moin"); - //o.get().endEntity(); - //o.get().startEntity("Germany"); + o.get().endEntity(); + o.get().startEntity("Germany"); o.get().literal("Baltrum", "Moin Moin"); o.get().endEntity(); o.get().startEntity("USA");