大名鼎鼎的java动态脚本语言。已经通过了sun的认证

源代码在线查看: groovysourceasttest.java

软件大小: 1630 K
上传用户: hjf
关键词: java sun 动态 脚本
下载地址: 免注册下载 普通下载 VIP

相关代码

				package 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);				    }				}							

相关资源