Skip to content

Commit 14cc240

Browse files
committed
. t Corrected test that was using deprecated api
1 parent 9286f5c commit 14cc240

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

approvaltests/src/test/java/org/approvaltests/namer/JUnit5StackTraceNamerTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ Collection<DynamicTest> testFactory()
9494
{
9595
return Arrays.asList(
9696
JupiterApprovals.dynamicTest("test 1",
97-
() -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(),
98-
"testFactory.test_1")),
97+
(o) -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(),
98+
"testFactory.test_1", o.forFile().getNamer())),
9999
JupiterApprovals.dynamicTest("test 3",
100-
() -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(),
101-
"testFactory.test_3")),
100+
(o) -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(),
101+
"testFactory.test_3", o.forFile().getNamer())),
102102
JupiterApprovals.dynamicTest("test 3",
103103
(o) -> StackTraceNamerUtils.assertNamerForFramework(this.getClass().getSimpleName(),
104104
"testFactory.test_3", o.forFile().getNamer())),
105-
JupiterApprovals.dynamicTest("test 2", () -> StackTraceNamerUtils
106-
.assertNamerForFramework(this.getClass().getSimpleName(), "testFactory.test_2")));
105+
JupiterApprovals.dynamicTest("test 2", (o) -> StackTraceNamerUtils
106+
.assertNamerForFramework(this.getClass().getSimpleName(), "testFactory.test_2", o.forFile().getNamer())));
107107
}
108108
@TestFactory
109109
Collection<DynamicTest> testFactory2()

0 commit comments

Comments
 (0)