Class BaseTreeDumpTest
-
- All Implemented Interfaces:
public abstract class BaseTreeDumpTest extends BaseTextComparisonTest
Compare a dump of an AST against a saved baseline.
-
-
Field Summary
Fields Modifier and Type Field Description private final BaseParsingHelper<?, ?>
parser
-
Constructor Summary
Constructors Constructor Description BaseTreeDumpTest(TreeRenderer printer, String extensionIncludingDot)
-
Method Summary
Modifier and Type Method Description abstract BaseParsingHelper<?, ?>
getParser()
final Unit
doTest(String fileBaseName, BaseParsingHelper<?, ?> parser)
final Unit
doTest(String fileBaseName)
-
-
Constructor Detail
-
BaseTreeDumpTest
BaseTreeDumpTest(TreeRenderer printer, String extensionIncludingDot)
- Parameters:
printer
- The node printer used to dump the treesextensionIncludingDot
- Extension that the unparsed source file is supposed to have
-
-
Method Detail
-
getParser
abstract BaseParsingHelper<?, ?> getParser()
-
doTest
@JvmOverloads() final Unit doTest(String fileBaseName, BaseParsingHelper<?, ?> parser)
-
doTest
@JvmOverloads() final Unit doTest(String fileBaseName)
-
-
-
-