PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/test/unit/general/UsuarioControllerTests.groovy

http://github.com/jdmr/mateo
Groovy | 20 lines | 12 code | 8 blank | 0 comment | 1 complexity | 403d75dd5761b30beedca558020801c2 MD5 | raw file
 1package general
 2
 3
 4
 5import org.junit.*
 6import grails.test.mixin.*
 7
 8
 9@TestFor(UsuarioController)
10@Mock(Usuario)
11class UsuarioControllerTests {
12
13
14    @Test
15    void testIndex() {
16        controller.index()
17        assert "/usuario/lista" == response.redirectedUrl
18    }
19
20}