Project

General

Profile

« Previous | Next » 

Revision 8693

Do a more thorough check that the characteristic annotation was successfully indexed as expected (semtools)

View differences:

metacat-index/src/test/java/edu/ucsb/nceas/metacat/index/SolrIndexIT.java
218 218
       Identifier annotationPid = new Identifier();
219 219
       annotationPid.setValue(annotation_id);
220 220
       solrIndex.update(annotationPid, annotationSystemMetadata, annotationInputStream);
221
       String annotationResult = doQuery(solrIndex.getSolrServer());
222
       assertTrue(annotationResult.contains("characteristic_sm"));
223
       
221
       String annotationResult = doQuery(solrIndex.getSolrServer(), "&fq=characteristic_sm:\"http://ecoinformatics.org/oboe/oboe.1.0/oboe-characteristics.owl#Mass\"");
222
       assertTrue(annotationResult.contains(pid.getValue()));
223
       assertTrue(annotationResult.contains("http://ecoinformatics.org/oboe/oboe.1.0/oboe-characteristics.owl#Mass"));
224 224
    }
225 225
    
226 226
    /**

Also available in: Unified diff