Package org.openrewrite
Class Assertions.PathSourceFileAssert<S extends org.openrewrite.SourceFile>
- java.lang.Object
-
- org.openrewrite.Assertions.PathSourceFileAssert<S>
-
- Enclosing class:
- Assertions
public static class Assertions.PathSourceFileAssert<S extends org.openrewrite.SourceFile> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PathSourceFileAssert(org.openrewrite.Parser<S> parser, java.nio.file.Path source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Assertions.PathSourceFileAssert<S>relativeTo(java.nio.file.Path relativeTo)Assertions.RefactoringAssert<S>whenVisitedBy(java.lang.Iterable<org.openrewrite.RefactorVisitor<?>> visitors)Assertions.RefactoringAssert<S>whenVisitedBy(org.openrewrite.RefactorVisitor<?> visitor)Assertions.RefactoringAssert<S>whenVisitedByMany(java.util.function.Function<S,java.lang.Iterable<org.openrewrite.RefactorVisitor<? super S>>> visitorFunction)Assertions.RefactoringAssert<S>whenVisitedByMapped(java.util.function.Function<S,org.openrewrite.RefactorVisitor<? super S>> visitorFunction)Assertions.PathSourceFileAssert<S>whichDependsOn(java.nio.file.Path... sources)
-
-
-
Constructor Detail
-
PathSourceFileAssert
public PathSourceFileAssert(org.openrewrite.Parser<S> parser, java.nio.file.Path source)
-
-
Method Detail
-
relativeTo
public Assertions.PathSourceFileAssert<S> relativeTo(@Nullable java.nio.file.Path relativeTo)
-
whichDependsOn
public Assertions.PathSourceFileAssert<S> whichDependsOn(java.nio.file.Path... sources)
-
whenVisitedBy
public Assertions.RefactoringAssert<S> whenVisitedBy(org.openrewrite.RefactorVisitor<?> visitor)
-
whenVisitedBy
public Assertions.RefactoringAssert<S> whenVisitedBy(java.lang.Iterable<org.openrewrite.RefactorVisitor<?>> visitors)
-
whenVisitedByMapped
public Assertions.RefactoringAssert<S> whenVisitedByMapped(java.util.function.Function<S,org.openrewrite.RefactorVisitor<? super S>> visitorFunction)
-
whenVisitedByMany
public Assertions.RefactoringAssert<S> whenVisitedByMany(java.util.function.Function<S,java.lang.Iterable<org.openrewrite.RefactorVisitor<? super S>>> visitorFunction)
-
-