AidaReader extends JCasCollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return docIterator.hasNext(); }  @Override void initialize(final UimaContext context); @Override void getNext(JCas jCas); @Override Progress[] getProgress(); @Override boolean hasNext(); static final String PARAM_SENSE_INVENTORY; static final String PARAM_INPUT_PATH; static final String DISAMBIGUATION_METHOD_NAME; static final String NIL_DISAMBIGUATION_RESULT; static final String NIL_DISAMBIGUATION_AIDA; static final Object SENSE_INVENTORY; }
@Test public void aidaReaderTest() throws UIMAException, IOException { CollectionReader reader = createReader( AidaReader.class, AidaReader.PARAM_INPUT_PATH, "src/test/resources/aida_test.tsv"); JCasIterator i = new JCasIterator(reader); assertTrue(i.hasNext()); JCas jCas = i.next(); testJCas(jCas,0); assertTrue(i.hasNext()); jCas = i.next(); testJCas(jCas,1); assertTrue(i.hasNext()); jCas = i.next(); testJCas(jCas,2); assertFalse(i.hasNext()); }