Package net.sourceforge.pmd.test
Class AbstractLanguageVersionTest.TestDescriptor
- java.lang.Object
-
- net.sourceforge.pmd.test.AbstractLanguageVersionTest.TestDescriptor
-
- Enclosing class:
- AbstractLanguageVersionTest
public static class AbstractLanguageVersionTest.TestDescriptor extends Object
-
-
Constructor Summary
Constructors Constructor Description TestDescriptor(String name, String terseName, String version, LanguageVersion expected)
Creates a newAbstractLanguageVersionTest.TestDescriptor
TestDescriptor(Language language, String version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbstractLanguageVersionTest.TestDescriptor
defaultVersionIs(Language lang, String version)
LanguageVersion
getExpected()
String
getName()
String
getSimpleTerseName()
String
getVersion()
static AbstractLanguageVersionTest.TestDescriptor
versionDoesNotExist(String name, String terseName, String version)
static AbstractLanguageVersionTest.TestDescriptor
versionDoesNotExist(Language lang, String version)
-
-
-
Constructor Detail
-
TestDescriptor
public TestDescriptor(String name, String terseName, String version, LanguageVersion expected)
Creates a newAbstractLanguageVersionTest.TestDescriptor
- Parameters:
name
- the name under which the language module is registeredterseName
- the terse name under which the language module is registeredversion
- the specific version of the language versionexpected
- the expectedLanguageVersion
instance
-
-
Method Detail
-
versionDoesNotExist
public static AbstractLanguageVersionTest.TestDescriptor versionDoesNotExist(String name, String terseName, String version)
-
versionDoesNotExist
public static AbstractLanguageVersionTest.TestDescriptor versionDoesNotExist(Language lang, String version)
-
defaultVersionIs
public static AbstractLanguageVersionTest.TestDescriptor defaultVersionIs(Language lang, String version)
-
getName
public String getName()
-
getVersion
public String getVersion()
-
getSimpleTerseName
public String getSimpleTerseName()
-
getExpected
public LanguageVersion getExpected()
-
-