Project

General

Profile

Revision 2b8bd3d8

ID2b8bd3d8acf7fdd066ac4eeaff00734a89fd832c
Parent bf0b8a9d
Child 78234aa8

Added by Andreas Müller over 1 year ago

fix CategoricalDataTest

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/description/CategoricalDataTest.java
66 66
        TaxonDescription desc = TaxonDescription.NewInstance();
67 67
        CategoricalData data = CategoricalData.NewInstance();
68 68
        desc.addElement(data);
69
        TermVocabulary<State> useCategoryVocabulary = TermVocabulary.NewInstance(TermType.Feature, "Use category vocabulary", "use categories", null, null);
69
        TermVocabulary<State> useCategoryVocabulary = TermVocabulary.NewInstance(TermType.State, "Use category vocabulary", "use categories", null, null);
70 70
        State useCategory1 = State.NewInstance("My first use category", "use category 1", null);
71 71
        useCategoryVocabulary.addTerm(useCategory1);
72 72
        State useCategory2 = State.NewInstance("My favorite use category", "use category 2", null);
......
91 91
        TaxonDescription desc = TaxonDescription.NewInstance();
92 92
        CategoricalData data = CategoricalData.NewInstance();
93 93
        desc.addElement(data);
94
        TermVocabulary<State> useCategoryVocabulary = TermVocabulary.NewInstance(TermType.Feature,"Use category vocabulary", "use categories", null, null);
94
        TermVocabulary<State> useCategoryVocabulary = TermVocabulary.NewInstance(TermType.State, "Use category vocabulary", "use categories", null, null);
95 95
        State useCategory1 = State.NewInstance("My first use category", "use category 1", null);
96 96
        useCategoryVocabulary.addTerm(useCategory1);
97 97
        data.addStateData(useCategory1);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)