Package net.binis.codegen.test
Class BaseCodeGenTest
java.lang.Object
net.binis.codegen.test.BaseCodeTest
net.binis.codegen.test.BaseCodeGenTest
-
Field Summary
Fields inherited from class net.binis.codegen.test.BaseCodeTest
parser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidcompare(com.github.javaparser.ast.CompilationUnit unit, com.github.javaparser.ast.body.TypeDeclaration type) protected voidprotected voidgenerate()loadCustom(String... custom) protected voidprotected TestClassLoaderprotected TestClassLoaderprotected TestClassLoadertestMulti(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, String pathToSave) protected TestClassLoadertestMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, int expected, String pathToSave, String resExecute, boolean includePrototype) protected TestClassLoadertestMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, String resExecute) protected TestClassLoadertestMultiImplementation(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files) protected TestClassLoadertestMultiPass(List<net.binis.codegen.objects.Pair<List<org.apache.commons.lang3.tuple.Triple<String, String, String>>, Integer>> passes) protected TestClassLoadertestMultiPassExecute(List<net.binis.codegen.objects.Pair<List<org.apache.commons.lang3.tuple.Triple<String, String, String>>, Integer>> passes, String pathToSave, String resExecute) protected TestClassLoadertestSingle(String prototype, String resClass, String resInterface) protected TestClassLoadertestSingle(String prototype, String resClass, String resInterface, int expected) protected TestClassLoadertestSingle(String prototype, String resClass, String resInterface, int expected, boolean skipCompilation) protected TestClassLoadertestSingle(String prototype, String resClass, String resInterface, String pathToSave) protected TestClassLoadertestSingle(String prototype, String resClass, String resInterface, String pathToSave, int expected) protected TestClassLoadertestSingleExecute(String prototype, String resClass, String resInterface, int expected, String resExecute) protected TestClassLoadertestSingleExecute(String prototype, String resClass, String resInterface, String resExecute) protected TestClassLoadertestSingleExecute(String prototype, String resClass, String resInterface, String pathToSave, int expected, String resExecute, boolean skipCompilation, boolean includePrototype, boolean skipPrototypeCompilation, String... custom) protected TestClassLoadertestSingleImplementation(String prototype, String resClass) protected TestClassLoadertestSingleImplementation(String prototype, String resClass, int expected) protected TestClassLoadertestSingleSkip(String prototype, String resClass, String resInterface, boolean skipPrototype, boolean skipCompilation) protected TestClassLoadertestSingleSkip(String prototype, String resClass, String resInterface, int expected, boolean skipPrototype, boolean skipCompilation) protected TestClassLoadertestSingleWithBase(String basePrototype, String baseClassName, String prototype, String className, String baseClass, String baseInterface, String resClass, String resInterface) protected TestClassLoadertestSingleWithCustom(String prototype, String resClass, String resInterface, String... custom) protected UnaryOperator<String>Methods inherited from class net.binis.codegen.test.BaseCodeTest
cleanUp, compile, defineObjects, defineObjects, getAsString, load, loadExecute, loadObjects, newList, resourceAsString, silentResourceAsString
-
Constructor Details
-
BaseCodeGenTest
public BaseCodeGenTest()
-
-
Method Details
-
beforeEach
@BeforeEach public void beforeEach()- Overrides:
beforeEachin classBaseCodeTest
-
afterEach
@AfterEach public void afterEach() -
generate
protected void generate() -
compare
-
compare
protected void compare(com.github.javaparser.ast.CompilationUnit unit, com.github.javaparser.ast.body.TypeDeclaration type) -
testSingleExecute
protected TestClassLoader testSingleExecute(String prototype, String resClass, String resInterface, String resExecute) -
testSingleExecute
protected TestClassLoader testSingleExecute(String prototype, String resClass, String resInterface, int expected, String resExecute) -
testSingleImplementation
-
testSingleImplementation
-
testSingle
-
testSingleWithCustom
protected TestClassLoader testSingleWithCustom(String prototype, String resClass, String resInterface, String... custom) -
testSingle
protected TestClassLoader testSingle(String prototype, String resClass, String resInterface, String pathToSave) -
testSingle
protected TestClassLoader testSingle(String prototype, String resClass, String resInterface, int expected) -
testSingleSkip
protected TestClassLoader testSingleSkip(String prototype, String resClass, String resInterface, boolean skipPrototype, boolean skipCompilation) -
testSingleSkip
protected TestClassLoader testSingleSkip(String prototype, String resClass, String resInterface, int expected, boolean skipPrototype, boolean skipCompilation) -
testSingle
protected TestClassLoader testSingle(String prototype, String resClass, String resInterface, int expected, boolean skipCompilation) -
testSingle
protected TestClassLoader testSingle(String prototype, String resClass, String resInterface, String pathToSave, int expected) -
testSingleExecute
-
loadCustom
-
testMultiPass
-
testMulti
protected TestClassLoader testMulti(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files) -
testMulti
protected TestClassLoader testMulti(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, int expected) -
testMulti
-
testMultiImplementation
protected TestClassLoader testMultiImplementation(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files) -
testMultiExecute
-
testMultiExecute
-
testMultiPassExecute
-
save
-
testSingleWithBase
-
testSourcesLookup
-