public Compiler assertCompile() { try { strategy.compile(); classLoader = new URLClassLoader(new URL[] {strategy.classOutput.getURL()}, baseClassLoader); return strategy.compiler; } catch (Exception e) { throw AbstractTestCase.failure(e); } }
public List<CompilationError> failCompile() { try { strategy.compile(); throw AbstractTestCase.failure("Was expecting compilation to fail"); } catch (CompilationException e) { return e.getErrors(); } catch (Exception e) { throw AbstractTestCase.failure(e); } }
public CompilerAssert<I, O> addClassPath(ReadFileSystem<?> classPath) { strategy.addClassPath(classPath); return this; }
public CompilerAssert<I, O> with(Provider<? extends Processor> processorFactory) { strategy.processorFactory = processorFactory; return this; }