From 6faaf7ecd3743f6dabc2ad46f31eb009fd312ea1 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Mon, 30 Oct 2023 11:35:16 +0100 Subject: [PATCH] `SourceSpec.EachResult` -> `SourceSpec.ValidateSource` --- src/test/java/org/openrewrite/javascript/tree/ParserTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/openrewrite/javascript/tree/ParserTest.java b/src/test/java/org/openrewrite/javascript/tree/ParserTest.java index 06150ae0..fb9d5d7b 100644 --- a/src/test/java/org/openrewrite/javascript/tree/ParserTest.java +++ b/src/test/java/org/openrewrite/javascript/tree/ParserTest.java @@ -46,7 +46,7 @@ public static SourceSpecs javaScript(@Language("typescript") @Nullable String be Consumer> spec) { SourceSpec js = new SourceSpec<>( JS.CompilationUnit.class, null, JavaScriptParser.builder(), before, - SourceSpec.EachResult.noop, + SourceSpec.ValidateSource.noop, ParserTest::customizeExecutionContext); acceptSpec(spec, js); return js; @@ -61,7 +61,7 @@ public static SourceSpecs javaScript(@Language("typescript") @Nullable String be Consumer> spec) { SourceSpec js = new SourceSpec<>( JS.CompilationUnit.class, null, JavaScriptParser.builder(), before, - SourceSpec.EachResult.noop, + SourceSpec.ValidateSource.noop, ParserTest::customizeExecutionContext).after(s -> after); acceptSpec(spec, js); return js;