using CleanSweepInsertLoadStrategy to resolve test dependencies
[cdmlib.git] / cdmlib-services / src / test / java / eu / etaxonomy / cdm / api / application / FirstDataInserterTest.java
1 // $Id$
2 /**
3 * Copyright (C) 2012 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.cdm.api.application;
11
12 import org.junit.Test;
13 import org.unitils.dbunit.annotation.DataSet;
14 import org.unitils.dbunit.annotation.ExpectedDataSet;
15
16 import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
17 import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy;
18
19 /**
20 * test for the {@link FirstDataInserter}
21 *
22 * @author a.kohlbecker
23 * @date Oct 12, 2012
24 *
25 */
26 @DataSet
27 public class FirstDataInserterTest extends CdmTransactionalIntegrationTest {
28
29 private final String[] tableNames = new String[]{"USERACCOUNT", "USERACCOUNT_GRANTEDAUTHORITYIMPL", "GRANTEDAUTHORITYIMPL", "CDMMETADATA"};
30
31 @Test
32 @DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="FirstDataInserterTest.testBlankDB.xml")
33 @ExpectedDataSet(value="FirstDataInserterTest.testBlankDB-result.xml")
34 public void testBlankDB(){
35
36 commitAndStartNewTransaction(null);
37 // printDataSet(System.err, tableNames);
38 }
39
40 }