2012-10-05 51 views
0

我有以下代碼集成測試沒有被解僱

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() 


    } 




} 

,當我運行命令grails test-app integration:integration我看到文件被編譯並正在執行的引導代碼,看到通過消息測試。當我查看報告時,我看到空白的html文件。有人知道發生了什麼事嗎?我正在使用grails 2.1.1

+0

如果只輸入:'grails test-app integration:' –

+0

會發生什麼情況行爲完全相同。我主要使用那個然後使用集成:集成 – allthenutsandbolts

+0

如果你只是輸入:'grails test-app' – doelleri

回答