Revision 73baaed9
Added by Cherian Mathew about 9 years ago
src/test/java/eu/etaxonomy/cdm/vaadin/util/CdmSpringContextHelperTest.java | ||
---|---|---|
11 | 11 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
12 | 12 |
import eu.etaxonomy.cdm.vaadin.CdmVaadinBaseTest; |
13 | 13 |
|
14 |
|
|
14 | 15 |
@DataSet |
15 | 16 |
public class CdmSpringContextHelperTest extends CdmVaadinBaseTest { |
16 | 17 |
|
... | ... | |
18 | 19 |
|
19 | 20 |
@Test |
20 | 21 |
public void testTaxonService() { |
21 |
CdmSpringContextHelper helper = CdmSpringContextHelper.newInstance(); |
|
22 |
ITaxonService taxonService = (ITaxonService) helper.getBean("taxonServiceImpl");
|
|
22 |
|
|
23 |
ITaxonService taxonService = CdmSpringContextHelper.getTaxonService();
|
|
23 | 24 |
Taxon taxon1 = CdmBase.deproxy(taxonService.find(UUID.fromString("54e767ee-894e-4540-a758-f906ecb4e2d9")),Taxon.class); |
24 | 25 |
Assert.assertEquals(taxon1.getTitleCache(), "Sphingidae Linnaeus, 1758 sec. cate-sphingidae.org"); |
25 | 26 |
|
Also available in: Unified diff
Added tests for NewTaxonBasePresenter
Improved corrected existing tests
CdmTestDataSourceFactory, unitils.properties : added custom test data source factory for unitils