From bbb2a2040837d5a89a36e8b706eb13aa2b418547 Mon Sep 17 00:00:00 2001 From: see-quick Date: Sat, 9 Nov 2024 13:17:35 +0100 Subject: [PATCH] fix tests Signed-off-by: see-quick --- .../annotations/ExcludedAnnotationInterceptorTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pitest-entry/src/test/java/org/pitest/mutationtest/build/intercept/annotations/ExcludedAnnotationInterceptorTest.java b/pitest-entry/src/test/java/org/pitest/mutationtest/build/intercept/annotations/ExcludedAnnotationInterceptorTest.java index ee0e26125..0879274ef 100644 --- a/pitest-entry/src/test/java/org/pitest/mutationtest/build/intercept/annotations/ExcludedAnnotationInterceptorTest.java +++ b/pitest-entry/src/test/java/org/pitest/mutationtest/build/intercept/annotations/ExcludedAnnotationInterceptorTest.java @@ -115,7 +115,10 @@ public void shouldNotFilterMutationsInNestedLambdaWithinUnannotatedOverloadedMet // Should include mutations from the unannotated method and its nested lambdas assertThat(actual).anyMatch(mutation -> mutation.getId().getLocation().getMethodName().equals("baz")); - assertThat(actual).anyMatch(mutation -> mutation.getId().getLocation().getMethodName().startsWith("lambda$baz$")); + assertThat(actual).anyMatch(mutation -> { + String methodName = mutation.getId().getLocation().getMethodName(); + return methodName.startsWith("lambda$baz$") || methodName.startsWith("lambda$null$"); + }); } @Test