Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | package br.gov.al.saude.rhd.core.application; |
| 2 | |||
| 3 | import org.jmock.integration.junit4.JMock; |
||
| 4 | import org.junit.Before; |
||
| 5 | import org.junit.runner.RunWith; |
||
| 6 | |||
| 7 | import br.gov.al.saude.framework.core.generic.GenericFacade; |
||
| 8 | import br.gov.al.saude.framework.core.generic.GenericService; |
||
| 9 | import br.gov.al.saude.rhd.core.application.etapa.EtapaFacade; |
||
| 10 | import br.gov.al.saude.rhd.core.application.etapa.impl.EtapaFacadeImpl; |
||
| 11 | import br.gov.al.saude.rhd.core.domain.etapa.EtapaService; |
||
| 12 | import br.gov.al.saude.rhd.model.Etapa; |
||
| 13 | import br.gov.al.saude.test.unidade.generic.facade.FacadeImplTest; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @author Anderson Gomes |
||
| 17 | * @since 10/04/2013 |
||
| 18 | */ |
||
| 19 | @RunWith(JMock.class) |
||
| 20 | public class EtapaFacadeImplTest extends FacadeImplTest<Etapa> { |
||
| 21 | |||
| 22 | private EtapaFacade etapaFacade; |
||
| 23 | private EtapaService etapaServiceMock; |
||
| 24 | |||
| 25 | @Before |
||
| 26 | public void inicializarContexto() { |
||
| 27 | super.inicializarContexto(); |
||
| 28 | etapaServiceMock = getContexto().mock(EtapaService.class); |
||
| 29 | etapaFacade = new EtapaFacadeImpl(etapaServiceMock); |
||
| 30 | } |
||
| 31 | |||
| 32 | @Override |
||
| 33 | protected GenericFacade<Etapa> getFacade() { |
||
| 34 | return etapaFacade; |
||
| 35 | } |
||
| 36 | |||
| 37 | @Override |
||
| 38 | protected GenericService<Etapa> getServiceMock() { |
||
| 39 | return etapaServiceMock; |
||
| 40 | } |
||
| 41 | |||
| 42 | } |