//We don't pass in the URI, so no fast source is possible
assertTrue(!imgSrc.isFastSource());
}
public void testStreamSourceWithFile() throws Exception {
URIResolver resolver = new URIResolver() {
public Source resolve(String href, String base) throws TransformerException {
if (href.startsWith("img:")) {
String filename = href.substring(4);
File f = new File(MockImageSessionContext.IMAGE_BASE_DIR, filename);
return new StreamSource(f);