DataResource configuredResource = (DataResource) getContext().getResourceObject(RES_KEY_3,
new String[] { ConfigurableDataResource.PARAM_URI, "http://dum.my/conf" });
assertNotNull(configuredResource);
assertEquals("http://dum.my/conf.lala", configuredResource.getUri().toString());
} catch (ResourceAccessException e) {
throw new AnalysisEngineProcessException(e);
}
assertNotNull(sharedObject);
assertEquals("3", sharedObject.getValue());
assertNotNull(sharedObject);
assertEquals(EX_URI, sharedObject.getUrl().toString());
assertNotNull(jndiPropertes);
assertEquals("proper noun", jndiPropertes.get("Hans"));
assertNotNull(someUrl);
assertEquals(new File(EX_FILE_1).toURI().toString(), someUrl.getUri().toString());
assertNotNull(someOtherUrl);
assertEquals(new File(EX_FILE_3).toURI().toString(), someOtherUrl.getUri().toString());
assertTrue(someFile.getUrl().toString().startsWith("file:"));
assertTrue("URL [" + someFile.getUrl() + "] should end in [" + EX_FILE_1 + "]", someFile
.getUrl().toString().endsWith(EX_FILE_1));
try {
assertNotNull(getContext().getResourceObject("legacyResource"));
} catch (ResourceAccessException e) {
throw new AnalysisEngineProcessException(e);
}
}