Project

General

Profile

« Previous | Next » 

Revision 4344fddf

Added by Andreas Müller almost 8 years ago

Adapt test dataset loading to standard path

View differences:

cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/sdd/in/SDDImportTest.java
9 9

  
10 10
package eu.etaxonomy.cdm.io.sdd.in;
11 11

  
12
import static org.junit.Assert.*;
12
import static org.junit.Assert.assertEquals;
13
import static org.junit.Assert.assertNotNull;
13 14

  
14 15
import java.io.FileNotFoundException;
15 16
import java.net.URI;
......
32 33

  
33 34
//@Ignore // we ignore this test at the moment because it does not run with maven
34 35
//org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of eu.etaxonomy.cdm.model.common.Language.protectedTitleCache
35
//...at eu.etaxonomy.cdm.persistence.dao.hibernate.common.DefinedTermDaoImpl.getLanguageByIso(DefinedTermDaoImpl.java:286) 
36
//...at eu.etaxonomy.cdm.persistence.dao.hibernate.common.DefinedTermDaoImpl.getLanguageByIso(DefinedTermDaoImpl.java:286)
36 37
public class SDDImportTest extends CdmTransactionalIntegrationTest {
37 38

  
38 39
    @SpringBeanByType
......
61 62
    }
62 63

  
63 64
    @Test
64
    @DataSet(/*loadStrategy=CleanSweepInsertLoadStrategy.class, */value="../../BlankDataSet.xml")
65
    @DataSet(/*loadStrategy=CleanSweepInsertLoadStrategy.class, */value="/eu/etaxonomy/cdm/database/BlankDataSet.xml")
65 66
	public void testDoInvoke() {
66 67
        sddImport.doInvoke(new SDDImportState(configurator));
67 68
        this.setComplete();
68 69
        logger.warn("Name service count: " + (nameService.count(null)));
69
        
70

  
70 71
        this.endTransaction();
71 72
        assertEquals("Number of TaxonNames should be 1", 1, nameService.count(null));
72 73
    }
73 74

  
74
    /* (non-Javadoc)
75
     * @see eu.etaxonomy.cdm.test.integration.CdmIntegrationTest#createTestData()
76
     */
77 75
    @Override
78
    public void createTestDataSet() throws FileNotFoundException {
79
        // TODO Auto-generated method stub
80
        
81
    }
76
    public void createTestDataSet() throws FileNotFoundException {}
82 77

  
83 78

  
84 79
}

Also available in: Unified diff