Package net.binis.codegen.test
Class BaseCodeGenTest
java.lang.Object
net.binis.codegen.test.BaseCodeGenTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidcleanUp()protected voidprotected booleancompile(TestClassLoader loader, List<net.binis.codegen.objects.Pair<String, String>> files, String resExecute) protected voidgenerate()protected StringgetAsString(com.github.javaparser.ast.CompilationUnit file) protected voidprotected StringloadExecute(List<net.binis.codegen.objects.Pair<String, String>> list, String resource) newList()protected voidprotected voidprotected voidprotected voidtestMulti(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, String pathToSave) protected voidtestMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, int expected, String pathToSave, String resExecute, boolean includePrototype) protected voidtestMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files, String resExecute) protected voidtestMultiImplementation(List<org.apache.commons.lang3.tuple.Triple<String, String, String>> files) protected voidtestMultiPass(List<net.binis.codegen.objects.Pair<List<org.apache.commons.lang3.tuple.Triple<String, String, String>>, Integer>> passes) protected voidtestMultiPassExecute(List<net.binis.codegen.objects.Pair<List<org.apache.commons.lang3.tuple.Triple<String, String, String>>, Integer>> passes, String pathToSave, String resExecute) protected voidtestSingle(String prototype, String resClass, String resInterface) protected voidtestSingle(String prototype, String resClass, String resInterface, int expected) protected voidtestSingle(String prototype, String resClass, String resInterface, int expected, boolean skipCompilation) protected voidtestSingle(String prototype, String resClass, String resInterface, String pathToSave) protected voidtestSingle(String prototype, String resClass, String resInterface, String pathToSave, int expected) protected voidtestSingleExecute(String prototype, String resClass, String resInterface, int expected, String resExecute) protected voidtestSingleExecute(String prototype, String resClass, String resInterface, String resExecute) protected voidtestSingleExecute(String prototype, String resClass, String resInterface, String pathToSave, int expected, String resExecute, boolean skipCompilation, boolean includePrototype, boolean skipPrototypeCompilation) protected voidtestSingleImplementation(String prototype, String resClass) protected voidtestSingleSkip(String prototype, String resClass, String resInterface, boolean skipPrototype, boolean skipCompilation) protected voidtestSingleWithBase(String basePrototype, String baseClassName, String prototype, String className, String baseClass, String baseInterface, String resClass, String resInterface) protected voidtestSingleWithMixIn(String basePrototype, String baseClassName, String prototype, String className, String baseClass, String baseInterface, String mixInInterface) protected UnaryOperator<String>
-
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
-
generate
protected void generate() -
cleanUp
protected void cleanUp() -
load
-
loadExecute
-
compare
-
testSingleExecute
-
testSingleExecute
-
testSingleImplementation
-
testSingle
-
testSingle
-
testSingle
-
testSingleSkip
-
testSingle
-
testSingle
-
testSingleExecute
-
testMultiPass
-
testMulti
-
testMulti
-
testMulti
-
testMultiImplementation
-
testMultiExecute
-
testMultiExecute
-
testMultiPassExecute
-
save
-
testSingleWithBase
-
testSingleWithMixIn
-
compile
protected boolean compile(TestClassLoader loader, List<net.binis.codegen.objects.Pair<String, String>> files, String resExecute) -
newList
-
testSourcesLookup
-