Project

General

Profile

« Previous | Next » 

Revision eae56a30

Added by Andreas Müller over 3 years ago

ref #6581 update HQL and property paths and similar to nomenclaturalSource (some issues unclear)

View differences:

cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/BeanInitializerIntegrationTest.java
69 69
	@Test
70 70
	@Ignore //FIXME homotypicalGroup is initialized even if it shouldn't
71 71
	public void testInitializeManyToOneProperty() {
72
		List<String> propertyPaths = new ArrayList<String>();
73
		propertyPaths.add("nomenclaturalReference");
72
		List<String> propertyPaths = new ArrayList<>();
73
		propertyPaths.add("nomenclaturalSource.citation");   //changed for #6581, may destroy test
74 74

  
75 75
		TaxonName sphingidae = taxonNameDao.load(sphingidaeUuid, propertyPaths);
76 76
		setComplete();
......
78 78

  
79 79
		assertNotNull("Sphingidae should not be null",sphingidae);
80 80
		assertFalse("TaxonName.homotypicalGroup should not be initialized",Hibernate.isInitialized(sphingidae.getHomotypicalGroup()));
81
		assertTrue("TaxonName.nomenclaturalReference should be initialized",Hibernate.isInitialized(sphingidae.getNomenclaturalReference()));
81
		assertTrue("TaxonName.nomenclaturalSource.citation should be initialized",Hibernate.isInitialized(sphingidae.getNomenclaturalReference()));
82 82
	}
83 83

  
84 84
	/**
......
102 102
		endTransaction();
103 103

  
104 104
		assertNotNull("Sphingidae should not be null",sphingidae);
105
		assertTrue("TaxonName.nomenclaturalReference should be initialized",Hibernate.isInitialized(sphingidae.getCombinationAuthorship()));
105
		assertTrue("TaxonName.combinationAuthorship should be initialized",Hibernate.isInitialized(sphingidae.getCombinationAuthorship()));
106 106
	}
107 107

  
108 108
	/**

Also available in: Unified diff