return sources.containsKey(pResourceName);
}
};
final MemoryResourceStore store = new MemoryResourceStore();
final CompilationResult result = compiler.compile(
new String[] {
"jci/Simple.js"
}, reader, store);
assertEquals(toString(result.getErrors()), 0, result.getErrors().length);
assertEquals(toString(result.getWarnings()), 0, result.getWarnings().length);
final byte[] clazzBytes = store.read("jci/Simple.class");
assertNotNull(clazzBytes);
assertTrue(clazzBytes.length > 0);
}