Project

General

Profile

Download (2.23 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2012 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.api.application;
10

    
11
import java.io.FileNotFoundException;
12

    
13
import org.apache.log4j.Logger;
14
import org.junit.Test;
15
import org.unitils.dbunit.annotation.DataSet;
16
import org.unitils.dbunit.annotation.ExpectedDataSet;
17
import org.unitils.spring.annotation.SpringBeanByType;
18

    
19
import eu.etaxonomy.cdm.api.service.IClassificationService;
20
import eu.etaxonomy.cdm.api.service.IDescriptionService;
21
import eu.etaxonomy.cdm.api.service.INameService;
22
import eu.etaxonomy.cdm.api.service.IReferenceService;
23
import eu.etaxonomy.cdm.api.service.ITaxonService;
24
import eu.etaxonomy.cdm.api.service.TaxonServiceImplTest;
25
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
26

    
27
/**
28
 * test for the {@link FirstDataInserter}
29
 *
30
 * @author a.kohlbecker
31
 * @since Oct 12, 2012
32
 */
33
@DataSet
34
public class FirstDataInserterTest extends CdmTransactionalIntegrationTest {
35

    
36
//    private final String[] tableNames = new String[]{"USERACCOUNT", "USERACCOUNT_GRANTEDAUTHORITYIMPL", "GRANTEDAUTHORITYIMPL", "CDMMETADATA", "PERMISSIONGROUP"};
37

    
38
    @SuppressWarnings("unused")
39
	private static final Logger logger = Logger.getLogger(TaxonServiceImplTest.class);
40

    
41
    @SpringBeanByType
42
    private ITaxonService taxonService;
43

    
44
    @SpringBeanByType
45
    private INameService nameService;
46

    
47
    @SpringBeanByType
48
    private IReferenceService referenceService;
49

    
50
    @SpringBeanByType
51
    private IClassificationService classificationService;
52

    
53
    @SpringBeanByType
54
    private IDescriptionService descriptionService;
55

    
56
    /**
57
     * Runs the FirstDataInserter on a blank database and
58
     * asserts that all groups and users have been created.
59
     */
60
    @Test
61
    @DataSet(value="FirstDataInserterTest.testBlankDB.xml")
62
    @ExpectedDataSet(value="FirstDataInserterTest.testBlankDB-result.xml")
63
    public void testOnBlankDatabase(){
64

    
65
        commitAndStartNewTransaction(null);
66
//        printDataSet(System.err, tableNames);
67
    }
68

    
69

    
70
    @Override
71
    public void createTestDataSet() throws FileNotFoundException {}
72

    
73
}
    (1-1/1)