diff options
Diffstat (limited to 'sonar-duplications/src/test/java/net/sourceforge/pmd/cpd/AbstractLanguageTest.java')
-rw-r--r-- | sonar-duplications/src/test/java/net/sourceforge/pmd/cpd/AbstractLanguageTest.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sonar-duplications/src/test/java/net/sourceforge/pmd/cpd/AbstractLanguageTest.java b/sonar-duplications/src/test/java/net/sourceforge/pmd/cpd/AbstractLanguageTest.java index 75e1c49510c..eac34fb50a9 100644 --- a/sonar-duplications/src/test/java/net/sourceforge/pmd/cpd/AbstractLanguageTest.java +++ b/sonar-duplications/src/test/java/net/sourceforge/pmd/cpd/AbstractLanguageTest.java @@ -19,13 +19,14 @@ */ package net.sourceforge.pmd.cpd; -import static org.hamcrest.Matchers.is; -import static org.junit.Assert.*; +import org.junit.Test; + import java.io.File; import java.io.FilenameFilter; import java.io.IOException; -import org.junit.Test; +import static org.hamcrest.Matchers.is; +import static org.junit.Assert.assertThat; /** * We use modified version of {@link AbstractLanguage} in comparison with PMD - it doesn't use package "net.sourceforge.pmd.util.filter", @@ -55,7 +56,13 @@ public class AbstractLanguageTest { @Test(expected = NullPointerException.class) public void shouldThrowException() { - new AbstractLanguage(null, null) { + new AbstractLanguage(null, (String) null) { + }; + } + + @Test(expected = NullPointerException.class) + public void shouldAlsoThrowException() { + new AbstractLanguage(null, (String[]) null) { }; } |