Example #1
0
 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);
   }
 }
Example #2
0
 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);
   }
 }