Project

General

Profile

bug #7103

verify, fix, improve SpecimenTypeDesignationWorkingSetServiceImpl delete functions

Added by Andreas Kohlbecker about 1 year ago. Updated 10 months ago.

Status:
Closed
Priority:
New
Category:
cdm-vaadin
Target version:
Start date:
12/01/2017
Due date:
% Done:

100%

Severity:
normal
Found in Version:
Tags:

Description

SpecimenTypeDesignationWorkingSetServiceImpl implements the delete operation for SpecimenTypeDesignationWorkingSetDTO<Registration> and also handles the removal of SpecimenTypeDesignations from a workingset. For both test are implemented in SpecimenTypeDesignationWorkingSetServiceImplTest but they still fail completely or not all assumptions are fulfilled:

  • deleteTypeDesignationTest: fails completely and is ignored
  • deleteWorkingsetTest: works but the deletion of the working set is not complete:
    • the gathering event is not deleted, should it be deleted by orphan removal?
    • media are not affected be the deletion, should be an option in SpecimenDeleteConfigurator?

Associated revisions

Revision 8f5a9520 (diff)
Added by Katja Luther about 1 year ago

fix delete and tests of specimen with typedesignations and gathering events

Revision b1b16714 (diff)
Added by Andreas Kohlbecker about 1 year ago

renaming SpecimenTypeDesignationWorkingsetEditorPresenterTest to SpecimenTypeDesignationWorkingSetServiceImplTest and fixing test data

Revision 28481c29 (diff)
Added by Andreas Kohlbecker about 1 year ago

ref #7103 using transaction rollback to reset db after test method

Revision 0453b64d (diff)
Added by Andreas Kohlbecker about 1 year ago

ref #7103 fixing test setup and data for SpecimenTypeDesignationWorkingSetServiceImplTest

Revision 9a56a56f (diff)
Added by Andreas Kohlbecker about 1 year ago

ref #7103 completeting assertions for SpecimenTypeDesignationWorkingSetServiceImplTest

Revision d1344a8b (diff)
Added by Andreas Kohlbecker 12 months ago

ref #7103 defined test method execution order

Revision 8555ad50 (diff)
Added by Andreas Kohlbecker 10 months ago

ref #7103 TypedEntityReference: harmonizing equals with hashCode method (ignore label) and reenabling testcase in SpecimenTypeDesignationWorkingSetServiceImplTest

History

#1 Updated by Andreas Kohlbecker about 1 year ago

  • Description updated (diff)

#2 Updated by Katja Luther about 1 year ago

  • Assignee changed from Katja Luther to Andreas Kohlbecker

The delete in OccurrenceService is updated. Now the deletion of field units of a specimen used in a typedesignation works within a cdmlib service test (see OccurrenceServiceDeepDeleteTest.testDeepDelete_FieldUnitWithTypeDesignation()), the deletion of the gathering event if it is not used somewhere else, works too (see testDeepDelete_FieldUnit()).

Please try if the tests in vaadin work as well.

#3 Updated by Katja Luther about 1 year ago

  • Status changed from New to In Progress

#4 Updated by Andreas Kohlbecker about 1 year ago

  • Target version changed from Release 4.12 to Release 4.13

#5 Updated by Andreas Kohlbecker 12 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 70

#6 Updated by Andreas Kohlbecker 10 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 70 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)