Package net.sourceforge.pmd.test
Class AbstractLanguageVersionTest
- java.lang.Object
-
- net.sourceforge.pmd.test.AbstractLanguageVersionTest
-
public abstract class AbstractLanguageVersionTest extends Object
Base test class forLanguageVersion
implementations.
Each language implementation should subclass this and provide a method calleddata
.static Collection<TestDescriptor> data() { final Language myLanguage = LanguageRegistry.getLanguage(MyLanguageModule.NAME); return Arrays.asList( new TestDescriptor(myLanguage, "1.1"), new TestDescriptor(myLanguage, "1.2"), defaultVersionIs(myLanguage, "1.2), // doesn't exist versionDoesNotExist(myLanguage, "1.3") };
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLanguageVersionTest.TestDescriptor
-
Constructor Summary
Constructors Constructor Description AbstractLanguageVersionTest()
-