@Test public void testRunningCas() throws Exception { DoNothingListener listener = new DoNothingListener(); MockClient client = new MockClient(listener); assertNotNull(client); CAS cas = client.getEngine().getCAS(); cas.setDocumentText("aa bb cc dd ee ff gg hh ii jj kk ll mm"); assertNotNull(cas); client.run(cas); assertEquals(1, listener.getNumReceived()); }
public void run(UimaAsBaseCallbackListener... uabs) throws Exception { if (collectionReader == null) { throw new IllegalStateException("Client does not have a collection reader set."); } run(this.collectionReader, uabs); }
Client extends LeoProperties { public void run(UimaAsBaseCallbackListener... uabs) throws Exception { if (collectionReader == null) { throw new IllegalStateException("Client does not have a collection reader set."); } run(this.collectionReader, uabs); } }
Client extends LeoProperties { public void run(UimaAsBaseCallbackListener... uabs) throws Exception { if (collectionReader == null) { throw new IllegalStateException("Client does not have a collection reader set."); } run(this.collectionReader, uabs); } Client(UimaAsBaseCallbackListener... uaListeners);  Client(String propertiesFile, UimaAsBaseCallbackListener... uaListeners);  Client(String propertiesFile, LeoCollectionReaderInterface collectionReader, UimaAsBaseCallbackListener... uaListeners); }
Client extends LeoProperties { public void run(UimaAsBaseCallbackListener... uabs) throws Exception { if (collectionReader == null) { throw new IllegalStateException("Client does not have a collection reader set."); } run(this.collectionReader, uabs); } Client(UimaAsBaseCallbackListener... uaListeners);  Client(String propertiesFile, UimaAsBaseCallbackListener... uaListeners);  Client(String propertiesFile, LeoCollectionReaderInterface collectionReader, UimaAsBaseCallbackListener... uaListeners); void setLeoCollectionReader(LeoCollectionReaderInterface reader); LeoCollectionReaderInterface getLeoCollectionReader(); void addUABListener(UimaAsBaseCallbackListener uaListener); void validateData(); void run(UimaAsBaseCallbackListener... uabs); void run(LeoCollectionReaderInterface collectionReader, UimaAsBaseCallbackListener... uabs); void run(InputStream stream, UimaAsBaseCallbackListener... uabs); void run(String documentText, UimaAsBaseCallbackListener... uabs); void run(CAS cas, UimaAsBaseCallbackListener... uabs); List getListeners(); String getPerformanceReport(); static TypeSystemDescription getServiceTypeSystemDescription(String brokerURL, String inputQueueName); TypeSystemDescription getServiceTypeSystemDescription(); static String getServiceTypeSystemDescriptionXml(String brokerURL, String inputQueueName); String getServiceTypeSystemDescriptionXml(); }
Client extends LeoProperties { public void run(UimaAsBaseCallbackListener... uabs) throws Exception { if (collectionReader == null) { throw new IllegalStateException("Client does not have a collection reader set."); } run(this.collectionReader, uabs); } Client(UimaAsBaseCallbackListener... uaListeners);  Client(String propertiesFile, UimaAsBaseCallbackListener... uaListeners);  Client(String propertiesFile, LeoCollectionReaderInterface collectionReader, UimaAsBaseCallbackListener... uaListeners); void setLeoCollectionReader(LeoCollectionReaderInterface reader); LeoCollectionReaderInterface getLeoCollectionReader(); void addUABListener(UimaAsBaseCallbackListener uaListener); void validateData(); void run(UimaAsBaseCallbackListener... uabs); void run(LeoCollectionReaderInterface collectionReader, UimaAsBaseCallbackListener... uabs); void run(InputStream stream, UimaAsBaseCallbackListener... uabs); void run(String documentText, UimaAsBaseCallbackListener... uabs); void run(CAS cas, UimaAsBaseCallbackListener... uabs); List getListeners(); String getPerformanceReport(); static TypeSystemDescription getServiceTypeSystemDescription(String brokerURL, String inputQueueName); TypeSystemDescription getServiceTypeSystemDescription(); static String getServiceTypeSystemDescriptionXml(String brokerURL, String inputQueueName); String getServiceTypeSystemDescriptionXml();  }