Revision 0453b64d
Added by Andreas Kohlbecker over 6 years ago
src/test/java/eu/etaxonomy/cdm/service/SpecimenTypeDesignationWorkingSetServiceImplTest.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
import org.junit.Assert; |
16 | 16 |
import org.junit.BeforeClass; |
17 |
import org.junit.Ignore; |
|
18 | 17 |
import org.junit.Test; |
19 | 18 |
import org.unitils.database.annotations.Transactional; |
20 | 19 |
import org.unitils.database.util.TransactionMode; |
... | ... | |
49 | 48 |
* @since Nov 17, 2017 |
50 | 49 |
* |
51 | 50 |
*/ |
52 |
@Transactional(TransactionMode.ROLLBACK)
|
|
51 |
@Transactional(TransactionMode.DISABLED)
|
|
53 | 52 |
public class SpecimenTypeDesignationWorkingSetServiceImplTest extends CdmVaadinIntegrationTest{ |
54 | 53 |
|
55 | 54 |
@SpringBeanByName |
... | ... | |
142 | 141 |
// printDataSetWithNull(System.err, includeTableNames_delete); |
143 | 142 |
writeDbUnitDataSetFile(includeTableNames_delete, "deleteTest"); |
144 | 143 |
*/ |
144 |
/* The following audit table fix needs also to be added to the test data: |
|
145 |
<!-- Test data is being used by more than one test - need to reset a couple of *_AUD tables --> |
|
146 |
<AUDITEVENT /> |
|
147 |
<TAXONNAME_AUD /> |
|
148 |
<DERIVATIONEVENT_AUD /> |
|
149 |
<TYPEDESIGNATIONBASE_AUD /> |
|
150 |
<SPECIMENOROBSERVATIONBASE_DERIVATIONEVENT_AUD /> |
|
151 |
<REGISTRATION_AUD /> |
|
152 |
<SPECIMENOROBSERVATIONBASE_AUD /> |
|
153 |
<TAXONNAME_TYPEDESIGNATIONBASE_AUD /> |
|
154 |
*/ |
|
145 | 155 |
|
146 | 156 |
} |
147 | 157 |
|
148 | 158 |
@Test |
149 | 159 |
@DataSet("SpecimenTypeDesignationWorkingSetServiceImplTest-deleteTest.xml") |
150 |
@Ignore |
|
160 |
// @Ignore
|
|
151 | 161 |
public void deleteTypeDesignationTest() { |
152 | 162 |
|
153 | 163 |
printDataSetWithNull(System.err, includeTableNames_delete); // new String[]{"TAXONNAME", "REFERENCE", "AGENTBASE", "HOMOTYPICALGROUP", "REGISTRATION"}); |
... | ... | |
170 | 180 |
reg.getTypeDesignations().remove(std); |
171 | 181 |
|
172 | 182 |
|
173 |
printDataSetWithNull(System.err, includeTableNames_delete); |
|
183 |
//printDataSetWithNull(System.err, includeTableNames_delete);
|
|
174 | 184 |
|
175 | 185 |
service.save(workingset); |
176 | 186 |
|
... | ... | |
178 | 188 |
|
179 | 189 |
workingset = service.loadDtoByIds(registrationId, 0); |
180 | 190 |
Assert.assertEquals(1, workingset.getSpecimenTypeDesignationDTOs().size()); |
191 |
reg = workingset.getOwner(); |
|
192 |
Assert.assertEquals(1, reg.getTypeDesignations().size()); |
|
181 | 193 |
} |
182 | 194 |
|
183 | 195 |
@Test |
Also available in: Unified diff
ref #7103 fixing test setup and data for SpecimenTypeDesignationWorkingSetServiceImplTest