mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Make ASTWriterTester abstract so it doesn't look like a test
JDT thinks this is a test and will run it in the IDE and display an error. But it is only used to compose other tests, by making it abstract the IDE won't see it anymore. Part of #117
This commit is contained in:
parent
a5b9803e91
commit
9811767b6a
2 changed files with 5 additions and 2 deletions
|
@ -46,7 +46,7 @@ import org.eclipse.core.resources.IFile;
|
|||
/**
|
||||
* @author Guido Zgraggen
|
||||
*/
|
||||
public class ASTWriterTester extends RewriteBaseTest {
|
||||
public abstract class ASTWriterTester extends RewriteBaseTest {
|
||||
private static final IParserLogService NULL_LOG = new NullLogService();
|
||||
|
||||
private IFile file;
|
||||
|
|
|
@ -199,7 +199,10 @@ public class SourceRewriteTest extends TestSuite {
|
|||
}
|
||||
|
||||
private static RewriteBaseTest createTestClass(String testName, ASTWriterTestSourceFile file) throws Exception {
|
||||
ASTWriterTester test = new ASTWriterTester(testName, file);
|
||||
ASTWriterTester test = new ASTWriterTester(testName, file) {
|
||||
// ASTWriterTester is an abstract class so it doesn't
|
||||
// look like a test, make it a concrete class here
|
||||
};
|
||||
TextSelection sel = file.getSelection();
|
||||
if (sel != null) {
|
||||
test.setFileWithSelection(file.getName());
|
||||
|
|
Loading…
Add table
Reference in a new issue