1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.jci.compilers;
19
20 import junit.framework.AssertionFailedError;
21
22 public final class EclipseJavaCompilerTestCase extends AbstractCompilerTestCase {
23
24 @Override
25 public String getCompilerName() {
26 return "eclipse";
27 }
28
29 @Override
30 public JavaCompiler createJavaCompiler() {
31 return new EclipseJavaCompiler();
32 }
33
34 @Override
35 public void testAdditionalTopLevelClassCompile() throws Exception {
36 try {
37 super.testAdditionalTopLevelClassCompile();
38 } catch (AssertionFailedError e) {
39 if (e.getMessage().contains("The type AdditionalTopLevel collides")) {
40 System.err.println("WARNING: See JCI-59 - EclipseJavaCompile#isPackage() is not yet working correctly - ignoring the failure for now");
41 } else {
42 throw e;
43 }
44 }
45 }
46 }