Class Assertions

java.lang.Object
org.openrewrite.javascript.Assertions

public class Assertions extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.openrewrite.test.SourceSpecs
    javascript(@Nullable String before)
     
    static org.openrewrite.test.SourceSpecs
    javascript(@Nullable String before, @Nullable String after)
     
    static org.openrewrite.test.SourceSpecs
    javascript(@Nullable String before, @Nullable String after, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
     
    static org.openrewrite.test.SourceSpecs
    javascript(@Nullable String before, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
     
    static org.openrewrite.test.SourceSpecs
    typescript(@Nullable String before)
     
    static org.openrewrite.test.SourceSpecs
    typescript(@Nullable String before, @Nullable String after)
     
    static org.openrewrite.test.SourceSpecs
    typescript(@Nullable String before, @Nullable String after, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
     
    static org.openrewrite.test.SourceSpecs
    typescript(@Nullable String before, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • javascript

      public static org.openrewrite.test.SourceSpecs javascript(@Language("js") @Nullable String before)
    • javascript

      public static org.openrewrite.test.SourceSpecs javascript(@Language("js") @Nullable String before, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
    • javascript

      public static org.openrewrite.test.SourceSpecs javascript(@Language("js") @Nullable String before, @Language("js") @Nullable String after)
    • javascript

      public static org.openrewrite.test.SourceSpecs javascript(@Language("js") @Nullable String before, @Language("js") @Nullable String after, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
    • typescript

      public static org.openrewrite.test.SourceSpecs typescript(@Language("ts") @Nullable String before)
    • typescript

      public static org.openrewrite.test.SourceSpecs typescript(@Language("ts") @Nullable String before, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)
    • typescript

      public static org.openrewrite.test.SourceSpecs typescript(@Language("ts") @Nullable String before, @Language("ts") @Nullable String after)
    • typescript

      public static org.openrewrite.test.SourceSpecs typescript(@Language("ts") @Nullable String before, @Language("ts") @Nullable String after, Consumer<org.openrewrite.test.SourceSpec<org.openrewrite.javascript.tree.JS.CompilationUnit>> spec)