XmiFileTreeCorpusDAO implements CorpusDAO { @Override public Set<URI> getDocuments() throws URISyntaxException { return annotatorsByDocument.keySet(); } XmiFileTreeCorpusDAO(String corpusPathString); @Override Set<URI> getDocuments(); @Override Set<String> getAnnotatorIds(URI docURI); @Override void getDocumentCas(URI docURI, String annotatorId, CAS aCAS); @Override boolean hasDocument(URI docURI, String annotatorId); @Override void persist(URI docUri, String annotatorId, CAS cas); static TypeSystemDescription getTypeSystem(String corpusPathString); static final String XMI_FILE_EXTENSION; }
@Test public void testGetDocuments() throws URISyntaxException { assertEquals(Sets.newHashSet(new URI("62007.txt"), new URI("65801.txt"), new URI("75788.txt")), corpusDAO.getDocuments()); }