0
을 해고 나는 내가 파일이 컴파일되고 있으며, 부트 스트랩 코드가 실행되고 전달 된 메시지 테스트를보고되는 것을 볼 않는 명령 grails test-app integration:integration
을 실행할 때 다음 코드통합 테스트하지
class LoginControllerIntegrationTests extends GroovyTestCase {
def springSecurityService
@Test
void testLogin() {
def dc = new LoginController()
def loggedInUser =new SentryUser(username: "[email protected]",password: 'password',
enabled: true).save(failOnError: true)
dc.springSecurityService = [
encodePassword: 'password',
reauthenticate: { String u -> true},
loggedIn: true,
getCurrenUser: { loggedInUser }]
assertTrue springSecurityService.isLoggedIn()
}
}
에게 있습니다. 보고서를 보면 빈 html 파일이 표시됩니다. 아무도 무슨 일이 일어나는지 알아? 나는 grails 2.1.1을 사용하고있다.
'grails test-app integration :' –
동작은 동일합니다. 나는 intially 그 통합을 사용했다 : 통합 – allthenutsandbolts
만약 당신이 단지 입력 :'grails test-app' – doelleri