Class BaseCodeGenTest

java.lang.Object
net.binis.codegen.test.BaseCodeGenTest

public abstract class BaseCodeGenTest extends Object
  • Field Details

    • parser

      protected com.github.javaparser.JavaParser parser
  • Constructor Details

    • BaseCodeGenTest

      public BaseCodeGenTest()
  • Method Details

    • beforeEach

      @BeforeEach public void beforeEach()
    • afterEach

      @AfterEach public void afterEach()
    • getAsString

      protected String getAsString(com.github.javaparser.ast.CompilationUnit file)
    • generate

      protected void generate()
    • cleanUp

      protected void cleanUp()
    • load

      protected void load(List<net.binis.codegen.objects.Pair<String,String>> list, String resource)
    • loadExecute

      protected String loadExecute(List<net.binis.codegen.objects.Pair<String,String>> list, String resource)
    • compare

      protected void compare(com.github.javaparser.ast.CompilationUnit unit, String resource)
    • testSingleExecute

      protected void testSingleExecute(String prototype, String resClass, String resInterface, String resExecute)
    • testSingleExecute

      protected void testSingleExecute(String prototype, String resClass, String resInterface, int expected, String resExecute)
    • testSingleImplementation

      protected void testSingleImplementation(String prototype, String resClass)
    • testSingle

      protected void testSingle(String prototype, String resClass, String resInterface)
    • testSingle

      protected void testSingle(String prototype, String resClass, String resInterface, String pathToSave)
    • testSingle

      protected void testSingle(String prototype, String resClass, String resInterface, int expected)
    • testSingleSkip

      protected void testSingleSkip(String prototype, String resClass, String resInterface, boolean skipPrototype, boolean skipCompilation)
    • testSingle

      protected void testSingle(String prototype, String resClass, String resInterface, int expected, boolean skipCompilation)
    • testSingle

      protected void testSingle(String prototype, String resClass, String resInterface, String pathToSave, int expected)
    • testSingleExecute

      protected void testSingleExecute(String prototype, String resClass, String resInterface, String pathToSave, int expected, String resExecute, boolean skipCompilation, boolean includePrototype, boolean skipPrototypeCompilation)
    • testMultiPass

      protected void testMultiPass(List<net.binis.codegen.objects.Pair<List<org.apache.commons.lang3.tuple.Triple<String,String,String>>,Integer>> passes)
    • testMulti

      protected void testMulti(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files)
    • testMulti

      protected void testMulti(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files, int expected)
    • testMulti

      protected void testMulti(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files, String pathToSave)
    • testMultiImplementation

      protected void testMultiImplementation(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files)
    • testMultiExecute

      protected void testMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files, String resExecute)
    • testMultiExecute

      protected void testMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files, int expected, String pathToSave, String resExecute, boolean includePrototype)
    • testMultiPassExecute

      protected void testMultiPassExecute(List<net.binis.codegen.objects.Pair<List<org.apache.commons.lang3.tuple.Triple<String,String,String>>,Integer>> passes, String pathToSave, String resExecute)
    • save

      protected void save(String name, com.github.javaparser.ast.CompilationUnit unit, String pathToSave)
    • testSingleWithBase

      protected void testSingleWithBase(String basePrototype, String baseClassName, String prototype, String className, String baseClass, String baseInterface, String resClass, String resInterface)
    • testSingleWithMixIn

      protected void testSingleWithMixIn(String basePrototype, String baseClassName, String prototype, String className, String baseClass, String baseInterface, String mixInInterface)
    • compile

      protected boolean compile(TestClassLoader loader, List<net.binis.codegen.objects.Pair<String,String>> files, String resExecute)
    • newList

      protected List<net.binis.codegen.objects.Pair<String,String>> newList()
    • testSourcesLookup

      protected UnaryOperator<String> testSourcesLookup()