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); } }