|
Groovy example source code file (GroovySourceASTTest.java)
The Groovy GroovySourceASTTest.java source codepackage org.codehaus.groovy.antlr; import groovy.util.GroovyTestCase; public class GroovySourceASTTest extends GroovyTestCase { GroovySourceAST a; GroovySourceAST b; protected void setUp() throws Exception { a = new GroovySourceAST(); a.setLine(3); a.setColumn(3); b = new GroovySourceAST(); b.setLine(4); b.setColumn(2); } public void testLessThan() throws Exception { assertTrue(a.compareTo(b) < 0); } public void testEquality() throws Exception { assertTrue(a.equals(a)); assertTrue(a.compareTo(a) == 0); } public void testGreaterThan() throws Exception { assertTrue(b.compareTo(a) > 0); } } Other Groovy examples (source code examples)Here is a short list of links related to this Groovy GroovySourceASTTest.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.