forked from phoedos/pmd
Fix neg test case
This commit is contained in:
@@ -24,7 +24,7 @@ import net.sourceforge.pmd.util.ResourceLoader;
|
||||
/**
|
||||
* Base test class for {@link LanguageVersion} implementations. <br>
|
||||
* Each language implementation should subclass this and provide a data method.
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* @Parameters
|
||||
* public static Collection<Object[]> data() {
|
||||
@@ -39,7 +39,7 @@ import net.sourceforge.pmd.util.ResourceLoader;
|
||||
* null }
|
||||
* });
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>For the parameters, see the constructor
|
||||
* {@link #AbstractLanguageVersionTest(String, String, String, LanguageVersion)}.</p>
|
||||
*/
|
||||
@@ -54,7 +54,7 @@ public class AbstractLanguageVersionTest {
|
||||
|
||||
/**
|
||||
* Creates a new {@link AbstractLanguageVersionTest}
|
||||
*
|
||||
*
|
||||
* @param name
|
||||
* the name under which the language module is registered
|
||||
* @param terseName
|
||||
@@ -105,7 +105,7 @@ public class AbstractLanguageVersionTest {
|
||||
|
||||
/**
|
||||
* Makes sure, that for each language a "categories.properties" file exists.
|
||||
*
|
||||
*
|
||||
* @throws Exception
|
||||
* any error
|
||||
*/
|
||||
@@ -127,7 +127,7 @@ public class AbstractLanguageVersionTest {
|
||||
|
||||
/**
|
||||
* If a rulesets.properties file still exists, test it as well.
|
||||
*
|
||||
*
|
||||
* @throws Exception
|
||||
* any error
|
||||
*/
|
||||
@@ -153,6 +153,9 @@ public class AbstractLanguageVersionTest {
|
||||
|
||||
@Test
|
||||
public void testVersionsAreDistinct() {
|
||||
if (expected == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Language lang = expected.getLanguage();
|
||||
|
||||
|
Reference in New Issue
Block a user