Project

General

Profile

Revision 6c782c0a

ID6c782c0ad60cc8d985191237b852f59f8e0cffda
Parent 8555ad50
Child 0101fa8d

Added by Andreas Kohlbecker almost 4 years ago

ref #7077 removing 'hack' from test after the issue has been fixed

View differences:

src/test/java/eu/etaxonomy/cdm/service/SpecimenTypeDesignationWorkingSetServiceImplTest.java
34 34
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
35 35
import eu.etaxonomy.cdm.model.name.Rank;
36 36
import eu.etaxonomy.cdm.model.name.Registration;
37
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
38 37
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
39 38
import eu.etaxonomy.cdm.model.name.TaxonName;
40 39
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
......
188 187
        }
189 188
        workingset.getSpecimenTypeDesignationDTOs().remove(deleteDTO);
190 189

  
191
        // TODO once https://dev.e-taxonomy.eu/redmine/issues/7077 is fixed dissociating from the Registration could be removed here
192
        Registration reg = workingset.getOwner();
193
        SpecimenTypeDesignation std = deleteDTO.asSpecimenTypeDesignation();
194
        reg.getTypeDesignations().remove(std);
195

  
196 190
        service.save(workingset);
197 191

  
198
        //printDataSetWithNull(System.err, includeTableNames_delete);
192
        // printDataSetWithNull(System.err, includeTableNames_delete);
199 193

  
200 194
        workingset = service.loadDtoByIds(registrationId, baseEntityRef);
195
        Registration reg = workingset.getOwner();
201 196
        Assert.assertEquals(1, workingset.getSpecimenTypeDesignationDTOs().size());
202 197
        reg = workingset.getOwner();
203 198
        Assert.assertEquals(1, reg.getTypeDesignations().size());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)