I am running a test on the User domain I created according to instructions in the book: "Grails in Action". Here is the code for the test
package com.grailsinaction
import grails.test.*
class UserIntegrationTests extends GrailsUnitTestCase {
void testFirstSaveEver() {
def user = new User( userId: 'johnny', password: 'secret',
homepage: 'http://ift.tt/1CBEcPU' )
assertNotNull user.save()
assertNotNull user.id
def foundUser = User.get( user.id )
assertEquals 'joe', foundUser.userId
}
}
I run the code inside console after the grails console command and it raised an error:
java.lang.NoClassDefFoundError: junit/framework/TestCase
My code doesn't make use of the TestCase class referred to in the error message. Is there a problem in my dependency?
Aucun commentaire:
Enregistrer un commentaire