Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | package br.gov.al.saude.test; |
| 2 | |||
| 3 | import org.junit.Before; |
||
| 4 | import org.springframework.beans.factory.annotation.Autowired; |
||
| 5 | |||
| 6 | import br.gov.al.saude.test.aceitacao.helper.CenarioTestHelper; |
||
| 7 | import br.gov.al.saude.test.unidade.generic.repository.RepositoryUnitTests; |
||
| 8 | |||
| 9 | public abstract class AbstractRepositoryTest<ENTIDADE> extends RepositoryUnitTests<ENTIDADE> { |
||
| 10 | |||
| 11 | @Autowired |
||
| 12 | private CenarioTestHelper rhdCenarioTestHelperImpl; |
||
| 13 | |||
| 14 | @Before |
||
| 15 | public void setUp() { |
||
| 16 | rhdCenarioTestHelperImpl.limparBanco(); |
||
| 17 | } |
||
| 18 | |||
| 19 | public CenarioTestHelper getRhdCenarioTestHelperImpl() { |
||
| 20 | return rhdCenarioTestHelperImpl; |
||
| 21 | } |
||
| 22 | |||
| 23 | public void setScaCenarioTestHelperImpl(CenarioTestHelper rhdCenarioTestHelperImpl) { |
||
| 24 | this.rhdCenarioTestHelperImpl = rhdCenarioTestHelperImpl; |
||
| 25 | } |
||
| 26 | |||
| 27 | } |