0
我測試Grails應用程序,但我收到此錯誤信息:錯誤檢測斯波克頂杆的Grails在v2.4.3
我試圖做單元測試。我的Grails版本是2.4.3
執行腳本TestApp出錯:java.lang.ClassNotFoundException:grails.plugin.spock。
這是我的代碼:
@TestFor(TrackEmailController)
@Mock(TrackEmail)
class TrackEmailUnit2Spec extends Specification {
def setup() {
}
def cleanup() {
}
void "test something"() {
}
void 'test mandrillEventsEndPoint'() {
when:
controller.mandrillEventsEndPoint()
then:
response.text == 'mandrill Events End Point'
}
}