Revision 4e8d61cc
Added by Katja Luther about 3 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java | ||
---|---|---|
129 | 129 |
byte[] reference = data.get(CdmLightExportTable.REFERENCE.getTableName()); |
130 | 130 |
String referenceString = new String(reference); |
131 | 131 |
Assert.assertNotNull("Reference table must not be null", reference); |
132 |
expected ="\"b8dd7f4a-0c7f-4372-bc5d-3b676363bc0f\",\"Mill. 1804\",\"\",\"The book of botany\",\"1804\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"3\",\"1804\",\"Mill.\"";
|
|
132 |
expected ="\"b8dd7f4a-0c7f-4372-bc5d-3b676363bc0f\",\"Mill. (1804)\",\"\",\"The book of botany\",\"1804\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"3\",\"1804\",\"Mill.\"";
|
|
133 | 133 |
Assert.assertTrue(referenceString.contains(expected)); |
134 | 134 |
|
135 | 135 |
byte[] geographicAreaFact = data.get(CdmLightExportTable.GEOGRAPHIC_AREA_FACT.getTableName()); |
... | ... | |
224 | 224 |
byte[] reference = data.get(CdmLightExportTable.REFERENCE.getTableName()); |
225 | 225 |
String referenceString = new String(reference); |
226 | 226 |
Assert.assertNotNull("Reference table must not be null", reference); |
227 |
expected ="\"b8dd7f4a-0c7f-4372-bc5d-3b676363bc0f\",\"Mill. 1804\",\"\",\"The book of botany\",\"1804\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"3\",\"1804\",\"Mill.\"";
|
|
227 |
expected ="\"b8dd7f4a-0c7f-4372-bc5d-3b676363bc0f\",\"Mill. (1804)\",\"\",\"The book of botany\",\"1804\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"3\",\"1804\",\"Mill.\"";
|
|
228 | 228 |
Assert.assertTrue(referenceString.contains(expected)); |
229 | 229 |
|
230 | 230 |
byte[] geographicAreaFact = data.get(CdmLightExportTable.GEOGRAPHIC_AREA_FACT.getTableName()); |
Also available in: Unified diff
adapt test to fixed short citation