-// $Id$
-/**
-* Copyright (C) 2015 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-package eu.etaxonomy.cdm.test.integration;
-
-import java.io.FileNotFoundException;
-import java.util.UUID;
-
-import org.unitils.dbunit.annotation.DataSet;
-import org.unitils.spring.annotation.SpringBeanByType;
-
-import eu.etaxonomy.cdm.model.reference.Reference;
-import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
-import eu.etaxonomy.cdm.model.taxon.Classification;
-import eu.etaxonomy.cdm.persistence.dao.reference.IReferenceDao;
-import eu.etaxonomy.cdm.persistence.dao.taxon.IClassificationDao;
-import eu.etaxonomy.cdm.persistence.dao.taxon.ITaxonDao;
-import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy;
-
-/**
- * This is only an example for am implementation of the {@link CdmTransactionalIntegrationTest}
- * which is never meant to be executed.
- *
- * @author a.kohlbecker
- * @date Jun 15, 2015
- *
- */
-public class CdmTransactionalIntegrationTestExample extends CdmTransactionalIntegrationTest {
-
- @SpringBeanByType
- private ITaxonDao taxonDao;
- @SpringBeanByType
- private IClassificationDao classificationDao;
- @SpringBeanByType
- private IReferenceDao referenceDao;
-
- private static final String CLASSIFICATION_UUID = "2a5ceebb-4830-4524-b330-78461bf8cb6b";
-
- /**
- * This is an example implementation for {@link CdmTransactionalIntegrationTest#createTestDataSet()}:
- *
- * {@inheritDoc}
- */
- @Override
- // @Test // uncomment to write out the test data xml file for this test class
- @DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="/eu/etaxonomy/cdm/database/ClearDBDataSet.xml")
- public final void createTestDataSet() throws FileNotFoundException {
-
- // 1. create the entities and save them
- Classification europeanAbiesClassification = Classification.NewInstance("European Abies");
- europeanAbiesClassification.setUuid(UUID.fromString(CLASSIFICATION_UUID));
- classificationDao.save(europeanAbiesClassification);
-
- Reference<?> sec = ReferenceFactory.newBook();
- sec.setTitleCache("Kohlbecker, A., Testcase standart views, 2013", true);
- Reference<?> sec_sensu = ReferenceFactory.newBook();
- sec_sensu.setTitleCache("Komarov, V. L., Flora SSSR 29", true);
- referenceDao.save(sec);
- referenceDao.save(sec_sensu);
-
- // 2. end the transaction so that all data is actually written to the db
- setComplete();
- endTransaction();
-
- // use the fileNameAppendix if you are creating a data set file which need to be named differently
- // from the standard name. Fir example if a single test method needs different data then the other
- // methods the test class you may want to set the fileNameAppendix when creating the data for this method.
- String fileNameAppendix = "";
-
- // 3.
- writeDbUnitDataSetFile(new String[] {
- "TAXONBASE", "TAXONNAMEBASE",
- "SYNONYMRELATIONSHIP", "TAXONRELATIONSHIP",
- "REFERENCE",
- "AGENTBASE", "HOMOTYPICALGROUP",
- "CLASSIFICATION", "TAXONNODE",
- "HIBERNATE_SEQUENCES" // IMPORTANT!!!
- },
- fileNameAppendix );
-
- }
-
-}
+// $Id$\r
+/**\r
+* Copyright (C) 2015 EDIT\r
+* European Distributed Institute of Taxonomy\r
+* http://www.e-taxonomy.eu\r
+*\r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
+package eu.etaxonomy.cdm.test.integration;\r
+\r
+import java.io.FileNotFoundException;\r
+import java.util.UUID;\r
+\r
+import org.unitils.dbunit.annotation.DataSet;\r
+import org.unitils.spring.annotation.SpringBeanByType;\r
+\r
+import eu.etaxonomy.cdm.model.reference.Reference;\r
+import eu.etaxonomy.cdm.model.reference.ReferenceFactory;\r
+import eu.etaxonomy.cdm.model.taxon.Classification;\r
+import eu.etaxonomy.cdm.persistence.dao.reference.IReferenceDao;\r
+import eu.etaxonomy.cdm.persistence.dao.taxon.IClassificationDao;\r
+import eu.etaxonomy.cdm.persistence.dao.taxon.ITaxonDao;\r
+import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy;\r
+\r
+/**\r
+ * This is only an example for am implementation of the {@link CdmTransactionalIntegrationTest}\r
+ * which is never meant to be executed.\r
+ *\r
+ * @author a.kohlbecker\r
+ * @date Jun 15, 2015\r
+ *\r
+ */\r
+public class CdmTransactionalIntegrationTestExample extends CdmTransactionalIntegrationTest {\r
+\r
+ @SpringBeanByType\r
+ private ITaxonDao taxonDao;\r
+ @SpringBeanByType\r
+ private IClassificationDao classificationDao;\r
+ @SpringBeanByType\r
+ private IReferenceDao referenceDao;\r
+\r
+ private static final String CLASSIFICATION_UUID = "2a5ceebb-4830-4524-b330-78461bf8cb6b";\r
+\r
+ /**\r
+ * This is an example implementation for {@link CdmTransactionalIntegrationTest#createTestDataSet()}:\r
+ *\r
+ * {@inheritDoc}\r
+ */\r
+ @Override\r
+ // @Test // uncomment to write out the test data xml file for this test class\r
+ @DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="/eu/etaxonomy/cdm/database/ClearDBDataSet.xml")\r
+ public final void createTestDataSet() throws FileNotFoundException {\r
+\r
+ // 1. create the entities and save them\r
+ Classification europeanAbiesClassification = Classification.NewInstance("European Abies");\r
+ europeanAbiesClassification.setUuid(UUID.fromString(CLASSIFICATION_UUID));\r
+ classificationDao.save(europeanAbiesClassification);\r
+\r
+ Reference<?> sec = ReferenceFactory.newBook();\r
+ sec.setTitleCache("Kohlbecker, A., Testcase standart views, 2013", true);\r
+ Reference<?> sec_sensu = ReferenceFactory.newBook();\r
+ sec_sensu.setTitleCache("Komarov, V. L., Flora SSSR 29", true);\r
+ referenceDao.save(sec);\r
+ referenceDao.save(sec_sensu);\r
+\r
+ // 2. end the transaction so that all data is actually written to the db\r
+ setComplete();\r
+ endTransaction();\r
+\r
+ // use the fileNameAppendix if you are creating a data set file which need to be named differently\r
+ // from the standard name. Fir example if a single test method needs different data then the other\r
+ // methods the test class you may want to set the fileNameAppendix when creating the data for this method.\r
+ String fileNameAppendix = "";\r
+\r
+ // 3.\r
+ writeDbUnitDataSetFile(new String[] {\r
+ "TAXONBASE", "TAXONNAMEBASE",\r
+ "SYNONYMRELATIONSHIP", "TAXONRELATIONSHIP",\r
+ "REFERENCE",\r
+ "AGENTBASE", "HOMOTYPICALGROUP",\r
+ "CLASSIFICATION", "TAXONNODE",\r
+ "HIBERNATE_SEQUENCES" // IMPORTANT!!!\r
+ },\r
+ fileNameAppendix );\r
+\r
+ }\r
+\r
+}\r