PageRenderTime 32689ms CodeModel.GetById 147ms RepoModel.GetById 0ms 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
  1. package general
  2. import org.junit.*
  3. import grails.test.mixin.*
  4. @TestFor(UsuarioController)
  5. @Mock(Usuario)
  6. class UsuarioControllerTests {
  7. @Test
  8. void testIndex() {
  9. controller.index()
  10. assert "/usuario/lista" == response.redirectedUrl
  11. }
  12. }