Package org.openrewrite.java
Class Assertions
java.lang.Object
org.openrewrite.java.Assertions
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.openrewrite.test.UncheckedConsumer<List<org.openrewrite.SourceFile>>addTypesToSourceSet(String sourceSetName) static org.openrewrite.test.UncheckedConsumer<List<org.openrewrite.SourceFile>>addTypesToSourceSet(String sourceSetName, List<String> extendsFrom) static org.openrewrite.test.UncheckedConsumer<List<org.openrewrite.SourceFile>>static org.openrewrite.test.SourceSpecsstatic org.openrewrite.test.SourceSpecsstatic org.openrewrite.test.SourceSpecsjava(@Nullable String before, @Nullable String after, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.java.tree.J.CompilationUnit>> spec) static org.openrewrite.test.SourceSpecsjava(@Nullable String before, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.java.tree.J.CompilationUnit>> spec) static JavaVersionjavaVersion(int version) static org.openrewrite.test.SourceSpecsmavenProject(String project, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... sources) static org.openrewrite.test.SourceSpecsmavenProject(String project, org.openrewrite.test.SourceSpecs... sources) static org.openrewrite.test.SourceSpec<?>static org.openrewrite.test.SourceSpec<?>static org.openrewrite.test.SourceSpecssrcMainJava(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... javaSources) static org.openrewrite.test.SourceSpecssrcMainJava(org.openrewrite.test.SourceSpecs... javaSources) static org.openrewrite.test.SourceSpecssrcMainResources(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... resources) static org.openrewrite.test.SourceSpecssrcMainResources(org.openrewrite.test.SourceSpecs... resources) static org.openrewrite.test.SourceSpecssrcSmokeTestJava(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... javaSources) static org.openrewrite.test.SourceSpecssrcSmokeTestJava(org.openrewrite.test.SourceSpecs... javaSources) static org.openrewrite.test.SourceSpecssrcTestJava(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... javaSources) static org.openrewrite.test.SourceSpecssrcTestJava(org.openrewrite.test.SourceSpecs... javaSources) static org.openrewrite.test.SourceSpecssrcTestResources(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... resources) static org.openrewrite.test.SourceSpecssrcTestResources(org.openrewrite.test.SourceSpecs... resources) static org.openrewrite.SourceFilevalidateTypes(org.openrewrite.SourceFile source, org.openrewrite.test.TypeValidation typeValidation) static org.openrewrite.test.SourceSpec<?>version(org.openrewrite.test.SourceSpec<?> sourceSpec, int version) static org.openrewrite.test.SourceSpecsversion(org.openrewrite.test.SourceSpecs sourceSpec, int version)
-
Method Details
-
validateTypes
public static org.openrewrite.SourceFile validateTypes(org.openrewrite.SourceFile source, org.openrewrite.test.TypeValidation typeValidation) -
java
public static org.openrewrite.test.SourceSpecs java(@Language("java") @Nullable @Nullable String before) -
java
-
java
-
java
-
mavenProject
-
mavenProject
public static org.openrewrite.test.SourceSpecs mavenProject(String project, org.openrewrite.test.SourceSpecs... sources) -
srcMainJava
public static org.openrewrite.test.SourceSpecs srcMainJava(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... javaSources) -
srcMainJava
public static org.openrewrite.test.SourceSpecs srcMainJava(org.openrewrite.test.SourceSpecs... javaSources) -
srcMainResources
public static org.openrewrite.test.SourceSpecs srcMainResources(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... resources) -
srcMainResources
public static org.openrewrite.test.SourceSpecs srcMainResources(org.openrewrite.test.SourceSpecs... resources) -
srcTestJava
public static org.openrewrite.test.SourceSpecs srcTestJava(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... javaSources) -
srcTestJava
public static org.openrewrite.test.SourceSpecs srcTestJava(org.openrewrite.test.SourceSpecs... javaSources) -
srcTestResources
public static org.openrewrite.test.SourceSpecs srcTestResources(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... resources) -
srcTestResources
public static org.openrewrite.test.SourceSpecs srcTestResources(org.openrewrite.test.SourceSpecs... resources) -
srcSmokeTestJava
public static org.openrewrite.test.SourceSpecs srcSmokeTestJava(Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.SourceFile>> spec, org.openrewrite.test.SourceSpecs... javaSources) -
srcSmokeTestJava
public static org.openrewrite.test.SourceSpecs srcSmokeTestJava(org.openrewrite.test.SourceSpecs... javaSources) -
version
public static org.openrewrite.test.SourceSpec<?> version(org.openrewrite.test.SourceSpec<?> sourceSpec, int version) -
version
public static org.openrewrite.test.SourceSpecs version(org.openrewrite.test.SourceSpecs sourceSpec, int version) -
project
public static org.openrewrite.test.SourceSpec<?> project(org.openrewrite.test.SourceSpec<?> sourceSpec, String projectName) -
sourceSet
public static org.openrewrite.test.SourceSpec<?> sourceSet(org.openrewrite.test.SourceSpec<?> sourceSpec, String sourceSet) -
addTypesToSourceSet
-
addTypesToSourceSet
-
addTypesToSourceSet
-
javaVersion
-