-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#659: excluded JUnit public static methods from rule
- Loading branch information
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
qulice-pmd/src/test/resources/com/qulice/pmd/JunitStaticPublicMethods.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package foo.test; | ||
|
||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
|
||
import java.util.Collection; | ||
import java.util.Collections; | ||
|
||
public class SomeTest { | ||
|
||
@BeforeClass | ||
public static void beforeClass(){ | ||
// setup before class | ||
} | ||
|
||
@Test | ||
public void emptyTest(){ | ||
//test something | ||
} | ||
|
||
@AfterClass | ||
public static void afterClass() throws Exception { | ||
//tear down after class | ||
} | ||
|
||
@Parameterized.Parameters | ||
public static Collection parameters() { | ||
return Collections.EMPTY_LIST; | ||
} | ||
} |