Package net.binis.codegen.test
Class BaseTest
java.lang.Object
net.binis.codegen.test.BaseTest
public abstract class BaseTest extends Object
-
Field Summary
Fields Modifier and Type Field Description protected com.github.javaparser.JavaParserparser -
Constructor Summary
Constructors Constructor Description BaseTest() -
Method Summary
Modifier and Type Method Description protected voidcleanUp()protected voidcompare(com.github.javaparser.ast.CompilationUnit unit, String resource)protected booleancompile(TestClassLoader loader, List<org.apache.commons.lang3.tuple.Pair<String,String>> files, String resExecute)protected voidgenerate()protected StringgetAsString(com.github.javaparser.ast.CompilationUnit file)protected voidload(List<org.apache.commons.lang3.tuple.Pair<String,String>> list, String resource)protected StringloadExecute(List<org.apache.commons.lang3.tuple.Pair<String,String>> list, String resource)protected List<org.apache.commons.lang3.tuple.Pair<String,String>>newList()protected voidsave(String name, com.github.javaparser.ast.CompilationUnit unit, String pathToSave)protected voidtestMulti(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files)protected voidtestMulti(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files, int expected)protected 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)protected voidtestMultiExecute(List<org.apache.commons.lang3.tuple.Triple<String,String,String>> files, 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, 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)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>testSourcesLookup()
-
Field Details
-
parser
protected com.github.javaparser.JavaParser parser
-
-
Constructor Details
-
BaseTest
public BaseTest()
-
-
Method Details
-
getAsString
-
generate
protected void generate() -
cleanUp
protected void cleanUp() -
load
-
loadExecute
-
compare
-
testSingleExecute
-
testSingleExecute
-
testSingle
-
testSingle
-
testSingle
-
testSingle
-
testSingleExecute
-
testMulti
-
testMulti
-
testMulti
-
testMultiExecute
-
testMultiExecute
-
save
-
testSingleWithBase
-
testSingleWithMixIn
-
compile
protected boolean compile(TestClassLoader loader, List<org.apache.commons.lang3.tuple.Pair<String,String>> files, String resExecute) -
newList
-
testSourcesLookup
-