Revision 3bdbeb62
Added by Andreas Müller about 3 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/specimen/abcd206/in/AbcdGgbnImportTest.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.io.specimen.abcd206.in; |
11 | 10 |
|
12 | 11 |
import static org.junit.Assert.assertEquals; |
... | ... | |
68 | 67 |
* @author a.mueller |
69 | 68 |
* @since 29.01.2009 |
70 | 69 |
*/ |
71 |
|
|
72 | 70 |
public class AbcdGgbnImportTest extends CdmTransactionalIntegrationTest { |
73 | 71 |
|
74 | 72 |
@SpringBeanByName |
... | ... | |
461 | 459 |
@DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="/eu/etaxonomy/cdm/database/ClearDBDataSet.xml"), |
462 | 460 |
@DataSet( value="AbcdGgbnImportTest.testAttachDnaSampleToDerivedUnit.xml", loadStrategy=CleanSweepInsertLoadStrategy.class) |
463 | 461 |
}) |
464 |
|
|
465 | 462 |
public void testAttachDnaSampleToExistingDerivedUnit_parentChild(){ |
466 | 463 |
UUID fieldUnit1Uuid = UUID.fromString("0f896630-48d6-4352-9c91-278be28ce19c"); |
467 | 464 |
UUID derivedUnit1Uuid = UUID.fromString("eb40cb0f-efb2-4985-819e-a9168f6d61fe"); |
... | ... | |
516 | 513 |
@DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="/eu/etaxonomy/cdm/database/ClearDBDataSet.xml"), |
517 | 514 |
@DataSet( value="AbcdGgbnImportTest.testAttachDnaSampleToDerivedUnit.xml", loadStrategy=CleanSweepInsertLoadStrategy.class) |
518 | 515 |
}) |
519 |
|
|
520 | 516 |
public void testAttachDnaSampleToExistingDerivedUnit_sibling(){ |
521 | 517 |
UUID fieldUnit1Uuid = UUID.fromString("0f896630-48d6-4352-9c91-278be28ce19c"); |
522 | 518 |
UUID derivedUnit1Uuid = UUID.fromString("eb40cb0f-efb2-4985-819e-a9168f6d61fe"); |
... | ... | |
669 | 665 |
|
670 | 666 |
} |
671 | 667 |
|
672 |
|
|
673 | 668 |
@Override |
674 | 669 |
public void createTestDataSet() throws FileNotFoundException { |
675 | 670 |
UUID derivedUnit1Uuid = UUID.fromString("eb40cb0f-efb2-4985-819e-a9168f6d61fe"); |
... | ... | |
687 | 682 |
setComplete(); |
688 | 683 |
endTransaction(); |
689 | 684 |
|
690 |
|
|
691 | 685 |
try { |
692 | 686 |
writeDbUnitDataSetFile(new String[] { |
693 | 687 |
"SpecimenOrObservationBase", |
... | ... | |
696 | 690 |
e.printStackTrace(); |
697 | 691 |
} |
698 | 692 |
} |
699 |
|
|
700 |
} |
|
693 |
} |
Also available in: Unified diff
cleanup