Skip to content

Commit 72a186a

Browse files
committed
Fixed assert
1 parent 9187c10 commit 72a186a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/test-helper/src/main/java/org/springframework/sbm/java/OpenRewriteTestSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private static <P> RecipeRun refactor(J.CompilationUnit given, JavaVisitor<Execu
249249
GenericOpenRewriteTestRecipe<JavaVisitor<ExecutionContext>> recipe = new GenericOpenRewriteTestRecipe<>(visitor);
250250
return recipe.run(
251251
new InMemoryLargeSourceSet(List.of(given)),
252-
new InMemoryExecutionContext(t -> fail(t))
252+
new InMemoryExecutionContext(t -> Assertions.fail(t.getMessage()))
253253
);
254254
}
255255

0 commit comments

Comments
 (0)