Lines 219-224
Link Here
|
219 |
assertEquals("succeeded", System.getProperty(processorClass)); |
219 |
assertEquals("succeeded", System.getProperty(processorClass)); |
220 |
} |
220 |
} |
221 |
|
221 |
|
|
|
222 |
/** |
223 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=209961 |
224 |
*/ |
225 |
public void test209961() throws IOException { |
226 |
File targetFolder = TestUtils.concatPath(BatchTestUtils.getSrcFolderName(), "targets", "dispatch"); |
227 |
File inputFile = BatchTestUtils.copyResource("targets/dispatch/X.java", targetFolder); |
228 |
assertNotNull("No input file", inputFile); |
229 |
File classpathEntry =TestUtils.concatPath( |
230 |
new File(BatchTestUtils.getPluginDirectoryPath(), BatchTestUtils.getResourceFolderName()).getAbsolutePath(), |
231 |
"targets", |
232 |
"dispatch"); |
233 |
|
234 |
List<String> options = new ArrayList<String>(); |
235 |
// See corresponding list in CheckArgsProc processor. |
236 |
// Processor will throw IllegalStateException if it detects a mismatch. |
237 |
options.add("-classpath"); |
238 |
options.add(classpathEntry.getAbsolutePath()); |
239 |
options.add("-verbose"); |
240 |
|
241 |
BatchTestUtils.compileOneClass(BatchTestUtils.getEclipseCompiler(), options, inputFile); |
242 |
} |
243 |
|
222 |
@Override |
244 |
@Override |
223 |
protected void tearDown() throws Exception { |
245 |
protected void tearDown() throws Exception { |
224 |
BatchTestUtils.tearDown(); |
246 |
BatchTestUtils.tearDown(); |