Ich teste eine Grails-Anwendung, aber ich bekomme diese Fehlermeldung:Fehlerprüfung spock mandril grails V2.4.3
Ich versuche, Unit-Test zu tun. Meine Grails-Version ist 2.4.3
Fehler beim Ausführen des Skripts TestApp: java.lang.ClassNotFoundException: grails.plugin.spock.
, dass mein Code ist:
@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'
}
}