Project

General

Profile

Revision e676c6b0

IDe676c6b0786d4bc57b88f0b87d2ad8fa0b8d1aa9
Parent 96b017d6
Child 9ee0028c

Added by Katja Luther over 3 years ago

fix #6138: add dataset to test to fix the test

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacadeTest.java
26 26
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
27 27
import org.springframework.security.core.context.SecurityContextHolder;
28 28
import org.unitils.dbunit.annotation.DataSet;
29
import org.unitils.dbunit.annotation.DataSets;
29 30
import org.unitils.dbunit.annotation.ExpectedDataSet;
30 31
import org.unitils.spring.annotation.SpringBeanByType;
31 32

  
......
65 66
import eu.etaxonomy.cdm.model.reference.Reference;
66 67
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
67 68
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
69
import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy;
68 70

  
69 71
/**
70 72
 * Test class for {@link DerivedUnitFacade}
......
1679 1681
     *
1680 1682
     */
1681 1683
    @Test
1682
    @Ignore
1684
    @DataSets({
1685
        @DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class, value="ClearDB_with_Terms_DataSet.xml"),
1686
        @DataSet(value="TermsDataSet-with_auditing_info.xml")
1687
    })
1688
   // @Ignore
1683 1689
    public void testNoRecursiveChangeEvents(){
1684 1690
        String username = "username";
1685 1691
        String password = "password";
......
1691 1697
        DerivedUnitFacade facade = DerivedUnitFacade.NewInstance(SpecimenOrObservationType.PreservedSpecimen);
1692 1698
        facade.setLocality("testLocality");
1693 1699
        facade.getTitleCache();
1694
//		facade.innerGatheringEvent().firePropertyChange("createdBy", null, user);
1700
	//	facade.innerGatheringEvent().firePropertyChange("createdBy", null, user);
1695 1701
        this.service.save(facade.innerDerivedUnit());
1696 1702
        commitAndStartNewTransaction(null);
1697 1703
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)