Revision 379eb203
Added by Andreas Müller over 3 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/name/TypeDesignationDaoHibernateImplTest.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.persistence.dao.hibernate.name; |
11 | 10 |
|
12 | 11 |
import static org.junit.Assert.assertEquals; |
... | ... | |
60 | 59 |
@SpringBeanByType |
61 | 60 |
IOccurrenceDao occurrenceDao; |
62 | 61 |
|
63 |
|
|
64 |
/** |
|
65 |
* Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.name.TypeDesignationDaoHibernateImpl#TypeDesignationHibernateImpl()}. |
|
66 |
*/ |
|
67 | 62 |
@Test |
68 | 63 |
public void testInit() { |
69 | 64 |
assertNotNull("Instance of ITypeDesignationDao expected", typeDesignationDao); |
70 | 65 |
} |
71 | 66 |
|
72 |
/** |
|
73 |
* Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.name.TypeDesignationDaoHibernateImpl#getAllTypeDesignations(java.lang.Integer, java.lang.Integer)}. |
|
74 |
*/ |
|
75 | 67 |
@Test |
76 | 68 |
@DataSet |
77 | 69 |
public void testGetAllTypeDesignations() { |
... | ... | |
98 | 90 |
Assert.assertEquals("", UUID.fromString("61b1dcae-8aa6-478a-bcd6-080cf0eb6ad7"), singleName.getUuid()); |
99 | 91 |
} |
100 | 92 |
|
101 |
/** |
|
102 |
* Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.name.TypeDesignationDaoHibernateImpl#saveOrUpdate(CdmBase)}. |
|
103 |
*/ |
|
104 | 93 |
@Test |
105 | 94 |
@DataSet |
106 | 95 |
@ExpectedDataSet //not yet necessary with current test |
... | ... | |
183 | 172 |
// "TypeDesignationBase","TypeDesignationBase_AUD", |
184 | 173 |
// "TaxonName_TypeDesignationBase","TaxonName_TypeDesignationBase_AUD" |
185 | 174 |
// }); |
186 |
|
|
187 | 175 |
} |
188 | 176 |
|
189 | 177 |
@Test |
... | ... | |
211 | 199 |
// "TaxonName_TypeDesignationBase","TaxonName_TypeDesignationBase_AUD", |
212 | 200 |
// "TaxonName_TypeDesignationBase","SpecimenOrObservationBase","SpecimenOrObservationBase_AUD", |
213 | 201 |
// "HomotypicalGroup","HomotypicalGroup_AUD"}); |
214 |
|
|
215 | 202 |
} |
216 | 203 |
|
217 | 204 |
@Test |
... | ... | |
233 | 220 |
|
234 | 221 |
occurrenceDao.saveOrUpdate(specimen); |
235 | 222 |
commit(); |
236 |
|
|
237 | 223 |
} |
238 | 224 |
|
239 |
|
|
240 | 225 |
@Test |
241 | 226 |
@DataSet |
242 | 227 |
public void testGetTypeDesignationStatusInUse() { |
... | ... | |
244 | 229 |
assertEquals(2, statusTerms.size()); |
245 | 230 |
} |
246 | 231 |
|
247 |
|
|
248 | 232 |
@Test |
249 | 233 |
// @ExpectedDataSet |
250 | 234 |
public void testRemoveTypeDesignationsFromName() { |
... | ... | |
335 | 319 |
this.setComplete(); |
336 | 320 |
this.endTransaction(); |
337 | 321 |
|
338 |
|
|
339 | 322 |
// printDataSet(System.out, new String[]{"TaxonName","TaxonName_AUD","TypeDesignationBase","TypeDesignationBase_AUD", |
340 | 323 |
// "TaxonName_TypeDesignationBase","TaxonName_TypeDesignationBase_AUD", |
341 | 324 |
// "SpecimenOrObservationBase","SpecimenOrObservationBase_AUD", |
342 | 325 |
// "HomotypicalGroup","HomotypicalGroup_AUD"}); |
343 | 326 |
} |
344 |
/* (non-Javadoc) |
|
345 |
* @see eu.etaxonomy.cdm.test.integration.CdmIntegrationTest#createTestData() |
|
346 |
*/ |
|
347 |
@Override |
|
348 |
public void createTestDataSet() throws FileNotFoundException { |
|
349 |
// TODO Auto-generated method stub |
|
350 |
|
|
351 |
} |
|
352 | 327 |
|
328 |
@Override |
|
329 |
public void createTestDataSet() throws FileNotFoundException {} |
|
353 | 330 |
} |
Also available in: Unified diff
cleanup