Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-remote/src/test/java/eu/etaxonomy/cdm/remote/view/OaiPmhViewTest.java | ||
---|---|---|
127 | 127 |
@Test |
128 | 128 |
public void testGetRecordView() throws Exception { |
129 | 129 |
Taxon taxon = Taxon.NewInstance(null, null); |
130 |
taxon.setTitleCache("TitleCache"); |
|
130 |
taxon.setTitleCache("TitleCache", true);
|
|
131 | 131 |
taxon.setCreated(new DateTime()); |
132 | 132 |
taxon.setLsid(new LSID("urn:lsid:example.org:taxonconcepts:1")); |
133 | 133 |
|
... | ... | |
143 | 143 |
@Test |
144 | 144 |
public void testRdfGetRecordView() throws Exception { |
145 | 145 |
Taxon taxon = Taxon.NewInstance(null, null); |
146 |
taxon.setTitleCache("TitleCache"); |
|
146 |
taxon.setTitleCache("TitleCache", true);
|
|
147 | 147 |
taxon.setCreated(new DateTime()); |
148 | 148 |
taxon.setLsid(new LSID("urn:lsid:example.org:taxonconcepts:1")); |
149 | 149 |
|
... | ... | |
186 | 186 |
List<AuditEventRecord<TaxonBase>> r = new ArrayList<AuditEventRecord<TaxonBase>>(); |
187 | 187 |
for(int i = 0; i < 10; i++) { |
188 | 188 |
TaxonBase taxon = Taxon.NewInstance(null, null); |
189 |
taxon.setTitleCache("TitleCache"); |
|
189 |
taxon.setTitleCache("TitleCache", true);
|
|
190 | 190 |
taxon.setCreated(new DateTime()); |
191 | 191 |
taxon.setLsid(new LSID("urn:lsid:example.org:taxonconcepts:"+i)); |
192 | 192 |
if((i % 3) == 0 ) { |
... | ... | |
217 | 217 |
List<AuditEventRecord<TaxonBase>> r = new ArrayList<AuditEventRecord<TaxonBase>>(); |
218 | 218 |
for(int i = 0; i < 10; i++) { |
219 | 219 |
TaxonBase taxon = Taxon.NewInstance(null, null); |
220 |
taxon.setTitleCache("TitleCache"); |
|
220 |
taxon.setTitleCache("TitleCache", true);
|
|
221 | 221 |
taxon.setCreated(new DateTime()); |
222 | 222 |
taxon.setLsid(new LSID("urn:lsid:example.org:taxonconcepts:"+i)); |
223 | 223 |
if((i % 3) == 0 ) { |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk