Project

General

Profile

« Previous | Next » 

Revision d7919b1c

Added by Andreas Müller about 7 years ago

ref #6362, ref #6365 remove occurrence of NonViralName, BotanicalName, ZoologicalName and others

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/HandlingCdmEntitiesTest.java
32 32
import eu.etaxonomy.cdm.model.description.TaxonDescription;
33 33
import eu.etaxonomy.cdm.model.description.TextData;
34 34
import eu.etaxonomy.cdm.model.name.BotanicalName;
35
import eu.etaxonomy.cdm.model.name.INonViralName;
35 36
import eu.etaxonomy.cdm.model.name.NonViralName;
36 37
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
37 38
import eu.etaxonomy.cdm.model.reference.Reference;
......
157 158
        // objects in the object graph (including teamMembers) will have values of
158 159
        // initialized=false and session=null
159 160

  
160
        NonViralName nvn = CdmBase.deproxy(taxon.getName(),NonViralName.class);
161
        INonViralName nvn = CdmBase.deproxy(taxon.getName(),NonViralName.class);
161 162

  
162 163
        // normally this call should throw a lazy loading exception since
163 164
        // the combinationAuthorship object is not initialized, but
......
222 223
        // objects in the object graph (including teamMembers) will have a new
223 224
        // session attached implying that all the following calls will succeed
224 225

  
225
        NonViralName nvn =  CdmBase.deproxy(taxon.getName(),NonViralName.class);
226
        INonViralName nvn =  CdmBase.deproxy(taxon.getName());
226 227
        Team team = CdmBase.deproxy(nvn.getCombinationAuthorship(),Team.class);
227 228
        taxonService.update(taxon);
228 229

  
......
234 235
        // objects in the object graph (including teamMembers) will have a new
235 236
        // session attached implying that all the following calls will succeed
236 237

  
237
        nvn =  CdmBase.deproxy(taxon.getName(),NonViralName.class);
238
        team = CdmBase.deproxy(nvn.getCombinationAuthorship(),Team.class);
238
        nvn =  CdmBase.deproxy(taxon.getName());
239
        team = CdmBase.deproxy(nvn.getCombinationAuthorship(), Team.class);
239 240
        taxonService.update(taxon);
240 241

  
241 242
        // ---- loading taxon with findTaxonByUuid ----
......
286 287

  
287 288
        taxon = (Taxon)taxonService.findTaxonByUuid(taxonUuid, TAXON_INIT_STRATEGY);
288 289

  
289
        NonViralName nvn = CdmBase.deproxy(taxon.getName(),NonViralName.class);
290
        Team team = CdmBase.deproxy(nvn.getCombinationAuthorship(),Team.class);
290
        INonViralName nvn = CdmBase.deproxy(taxon.getName());
291
        Team team = CdmBase.deproxy(nvn.getCombinationAuthorship(), Team.class);
291 292
        team.setProtectedTitleCache(false);
292 293

  
293 294
        try {
......
344 345
        // objects in the object graph (including teamMembers) will have values of
345 346
        // initialized=false and session=null
346 347

  
347
        NonViralName nvn = CdmBase.deproxy(taxon.getName(),NonViralName.class);
348
        INonViralName nvn = CdmBase.deproxy(taxon.getName());
348 349

  
349 350
        // normally this call should throw a lazy loading exception since
350 351
        // the combinationAuthorship object is not initialized, but

Also available in: Unified diff