Story/bael 14304 (#7311)
* BAEL-15951 Moved vavr, JHipster to default profiles * BAEL-14304 Include the SpringContextIntegrationTest in the default build - Added SpringContextTest.java in all the modules where SpringContextIntegrationTest already exists * BAEL-14304 Changes in pmd rule and pom.xml to run UnitTest and SpringContextTest additionally in default profiles * BAEL-14304 Minor changes
This commit is contained in:
@@ -22,6 +22,10 @@ public class UnitTestNamingConventionRule extends AbstractJavaRule {
|
||||
String className = node.getImage();
|
||||
Objects.requireNonNull(className);
|
||||
|
||||
if (className.endsWith("SpringContextTest")) {
|
||||
return data;
|
||||
}
|
||||
|
||||
if (className.endsWith("Tests")
|
||||
|| (className.endsWith("Test") && allowedEndings.stream().noneMatch(className::endsWith))) {
|
||||
addViolation(data, node);
|
||||
|
||||
Reference in New Issue
Block a user