groovy和java的新手。安装groovy,插件与eclipse并创建一个groovy项目
我能够运行groovy脚本和groovy类。但是GroovyTestCase类没有得到解决。任何帮助表示赞赏。
package p1
import groovy.util.GroovyTestCase
class MyTest extends GroovyTestCase { //GroovyTestCase keyword is showing this error: type junit.framework.TestCase cannot be resolved. It is indirectly referred from required .class files
void testSomething() {
assert 1 == 1
assert 2 + 2 == 4 : "We're in trouble, arithmetic is broken"
}
}