groovy和java的新手。安裝groovy,插件日食和創建一個groovy項目
我能夠運行groovy腳本和groovy類。但GroovyTestCase類沒有得到解決。任何幫助表示讚賞。groovy單元測試
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"
}
}