Revision 9dc896c9
Added by Andreas Müller almost 7 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImplTest.java | ||
---|---|---|
40 | 40 |
import eu.etaxonomy.cdm.model.common.Marker; |
41 | 41 |
import eu.etaxonomy.cdm.model.common.MarkerType; |
42 | 42 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
43 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
43 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
44 | 44 |
import eu.etaxonomy.cdm.model.reference.Reference; |
45 | 45 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
46 | 46 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
... | ... | |
107 | 107 |
|
108 | 108 |
private static final String[] TABLE_NAMES = new String[] { |
109 | 109 |
"HOMOTYPICALGROUP", "HOMOTYPICALGROUP_AUD", "REFERENCE", "REFERENCE_AUD", "TAXONBASE", "TAXONBASE_AUD" |
110 |
, "TAXONNAMEBASE", "TAXONNAMEBASE_AUD", "TAXONRELATIONSHIP", "TAXONRELATIONSHIP_AUD" };
|
|
110 |
, "TAXONNAME", "TAXONNAME_AUD", "TAXONRELATIONSHIP", "TAXONRELATIONSHIP_AUD" };
|
|
111 | 111 |
|
112 | 112 |
|
113 | 113 |
@Before |
... | ... | |
176 | 176 |
if (logger.isDebugEnabled()) { |
177 | 177 |
for (int i = 0; i < results.size(); i++) { |
178 | 178 |
String nameCache = ""; |
179 |
TaxonNameBase<?,?> taxonNameBase= results.get(i).getName();
|
|
180 |
nameCache = taxonNameBase.getNameCache();
|
|
179 |
TaxonName taxonName= results.get(i).getName();
|
|
180 |
nameCache = taxonName.getNameCache(); |
|
181 | 181 |
logger.debug(results.get(i).getClass() + "(" + i +")" + |
182 | 182 |
": Name Cache = " + nameCache + ", Title Cache = " + results.get(i).getTitleCache()); |
183 | 183 |
} |
... | ... | |
1167 | 1167 |
// @Test |
1168 | 1168 |
public void createTestDataSet() throws FileNotFoundException { |
1169 | 1169 |
// Classification classification = Classification.NewInstance("Test"); |
1170 |
// BotanicalName taxonNameBase = null;
|
|
1170 |
// BotanicalName TaxonName = null;
|
|
1171 | 1171 |
// Reference sec = null; |
1172 |
// Taxon taxon = Taxon.NewInstance(taxonNameBase, sec);
|
|
1172 |
// Taxon taxon = Taxon.NewInstance(taxonName, sec); |
|
1173 | 1173 |
// classification.addChildTaxon(taxon, sec, null); |
1174 | 1174 |
// |
1175 | 1175 |
// classificationDao.save(classification); |
1176 | 1176 |
// this.commitAndStartNewTransaction(null); |
1177 | 1177 |
// |
1178 | 1178 |
// writeDbUnitDataSetFile(new String[] { |
1179 |
// "CLASSIFICATION", "TAXONNAMEBASE",
|
|
1179 |
// "CLASSIFICATION", "TAXONNAME", |
|
1180 | 1180 |
// "REFERENCE","TAXONNODE", |
1181 | 1181 |
// "TAXONBASE","LANGUAGESTRING", |
1182 | 1182 |
// "HIBERNATE_SEQUENCES" // IMPORTANT!!! |
Also available in: Unified diff
fix #6368 rename table and class TaxonNameBase