diff --git a/approvaltests/src/test/java/org/approvaltests/namer/JUnit5StackTraceNamerTest.java b/approvaltests/src/test/java/org/approvaltests/namer/JUnit5StackTraceNamerTest.java index 63f6af513..86ea22974 100644 --- a/approvaltests/src/test/java/org/approvaltests/namer/JUnit5StackTraceNamerTest.java +++ b/approvaltests/src/test/java/org/approvaltests/namer/JUnit5StackTraceNamerTest.java @@ -94,16 +94,16 @@ Collection testFactory() { return Arrays.asList( JupiterApprovals.dynamicTest("test 1", - () -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(), - "testFactory.test_1")), + (o) -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(), + "testFactory.test_1", o.forFile().getNamer())), JupiterApprovals.dynamicTest("test 3", - () -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(), - "testFactory.test_3")), + (o) -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(), + "testFactory.test_3", o.forFile().getNamer())), JupiterApprovals.dynamicTest("test 3", (o) -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(), "testFactory.test_3", o.forFile().getNamer())), - JupiterApprovals.dynamicTest("test 2", () -> StackTraceNamerUtils - .assertNamerForFramework(this.getClass().getSimpleName(), "testFactory.test_2"))); + JupiterApprovals.dynamicTest("test 2", (o) -> StackTraceNamerUtils + .assertNamerForFramework(this.getClass().getSimpleName(), "testFactory.test_2", o.forFile().getNamer()))); } @TestFactory Collection testFactory2()