|
Groovy example source code file (LineColumnCheckTestSuite.java)
The Groovy LineColumnCheckTestSuite.java source codepackage org.codehaus.groovy.ast; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import junit.framework.TestSuite; /** * Tests the LineColumn information in file specified in TEST_FILE_PATH * * The file in the specified path should look like: * * ###<testname>::: * <source code from which the AST will be built> * :::<expected AST output> * * The section above can be repeated for every new TestCase * * The AST output from the visitor is quite big. Also for small source code snippets. Therefore * it is possible to only specify the nodes that you wan't to check and separate them with a semicolon. * A semicolon is also needed when you begin with a new line. * Bsp: * [TryCatchStatement,(1:1),(9:2)][BlockStatement,(1:5),(3:3)]; * [CatchStatement,(3:3),(5:3)][BlockStatement,(3:12),(5:3)]; * [CatchStatement,(5:3),(7:3)][BlockStatement,(5:12),(7:3)]; * [BlockStatement,(7:3),(9:2)][BlockStatement,(7:11),(9:2)] * * [<NodeType>,( Other Groovy examples (source code examples)Here is a short list of links related to this Groovy LineColumnCheckTestSuite.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.