Project

General

Profile

« Previous | Next » 

Revision 749a2e19

Added by Andreas Müller over 2 years ago

ref #9477 fix term loading for ordered new terms

View differences:

cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/term/TermVocabularyDaoImplTest.java
13 13
import static org.junit.Assert.assertFalse;
14 14

  
15 15
import java.io.FileNotFoundException;
16
import java.util.ArrayList;
16 17
import java.util.HashMap;
17
import java.util.HashSet;
18 18
import java.util.List;
19 19
import java.util.Map;
20 20
import java.util.Set;
......
99 99
	      @DataSet("/eu/etaxonomy/cdm/database/TermsDataSet-with_auditing_info.xml")}
100 100
	)
101 101
	public void testMissingTermUuids() {
102
		Set<UUID> uuidSet = new HashSet<>();
102
		List<UUID> uuidSet = new ArrayList<>();
103 103
		uuidSet.add(Language.uuidEnglish);
104 104
		uuidSet.add(Language.uuidFrench);
105 105
		UUID uuidNotExisting = UUID.fromString("e93e8c10-d9d2-4ad6-9907-952da6d139c4");
106 106
		uuidSet.add(uuidNotExisting);
107
		Map<UUID, Set<UUID>> uuidVocs = new HashMap<>();
107
		Map<UUID, List<UUID>> uuidVocs = new HashMap<>();
108 108
		uuidVocs.put( Language.uuidLanguageVocabulary, uuidSet);
109 109
		Map<UUID, Set<UUID>> notExisting = new HashMap<>();
110 110
		Map<UUID, TermVocabulary<?>> vocabularyMap = new HashMap<>();

Also available in: Unified diff