Project

General

Profile

Revision 74d92b60

ID74d92b60d613b33bad5b12a4a29e0bea55b62a27
Parent 40b05355
Child d621df66

Added by Andreas Müller about 1 year ago

ref #6794 minor adaptations of tests

View differences:

cdmlib-io/src/test/resources/eu/etaxonomy/cdm/database/ClearDBDataSet.xml
447 447
  <USERACCOUNT_AUD />
448 448
  <USERACCOUNT_GRANTEDAUTHORITYIMPL/>
449 449
  <USERACCOUNT_PERMISSIONGROUP/>
450
</dataset>
450
</dataset>
cdmlib-persistence/src/test/resources/eu/etaxonomy/cdm/database/ClearDBDataSet.xml
447 447
  <USERACCOUNT_AUD />
448 448
  <USERACCOUNT_GRANTEDAUTHORITYIMPL/>
449 449
  <USERACCOUNT_PERMISSIONGROUP/>
450
</dataset>
450
</dataset>
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/utility/DerivedUnitConverterIntegrationTest.java
59 59
        SpecimenTypeDesignation std = SpecimenTypeDesignation.NewInstance();
60 60
        std.setTypeSpecimen(du);
61 61
        du = (DerivedUnit) service.save(du); // intermediate save is essential for this test
62
        DerivedUnitConverter<MediaSpecimen> converter = new DerivedUnitConverter<MediaSpecimen>(std);
62
        DerivedUnitConverter<MediaSpecimen> converter = new DerivedUnitConverter<>(std);
63 63
        SpecimenTypeDesignation newDu = converter.convertTo(MediaSpecimen.class, SpecimenOrObservationType.StillImage);
64 64
        assertEquals(du, converter.oldDerivedUnit());
65 65
//        printDataSet(System.err, new String[]{"SpecimenOrObservationBase", "TypeDesignationBase"});
......
85 85
        du.setTitleCache("test media specimen", true);
86 86
        SpecimenTypeDesignation std = SpecimenTypeDesignation.NewInstance();
87 87
        std.setTypeSpecimen(du);
88
        DerivedUnitConverter<DerivedUnit> duc = new DerivedUnitConverter<DerivedUnit>(std);
88
        DerivedUnitConverter<DerivedUnit> duc = new DerivedUnitConverter<>(std);
89 89
        du = (MediaSpecimen) service.save(du); // intermediate save is essential for this test
90 90
        duc.convertTo(DerivedUnit.class, SpecimenOrObservationType.PreservedSpecimen);
91 91

  
cdmlib-services/src/test/resources/eu/etaxonomy/cdm/database/ClearDBDataSet.xml
316 316
  <REFERENCE_RIGHTSINFO/>
317 317
  <REFERENCE_RIGHTSINFO_AUD/>
318 318
  <REGISTRATION/>
319
  <REGISTRATION_AUD/>
320
  <REGISTRATION_ANNOTATION/>
321
  <REGISTRATION_ANNOTATION_AUD/>
322
  <REGISTRATION_MARKER/>
323
  <REGISTRATION_MARKER_AUD/>
324
  <REGISTRATION_REGISTRATION/>
325
  <REGISTRATION_REGISTRATION_AUD/>
326
  <REGISTRATION_TYPEDESIGNATIONBASE/>
327
  <REGISTRATION_TYPEDESIGNATIONBASE_AUD/>
319 328
  <REPRESENTATION_ANNOTATION/>
320 329
  <REPRESENTATION_ANNOTATION_AUD/>
321 330
  <REPRESENTATION_MARKER/>
......
438 447
  <USERACCOUNT_AUD />
439 448
  <USERACCOUNT_GRANTEDAUTHORITYIMPL/>
440 449
  <USERACCOUNT_PERMISSIONGROUP/>
441
</dataset>
450
</dataset>

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)