mirror of https://github.com/apache/maven.git
PR: MNG-746
allow naming of TestCase as well as Test git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
441219f137
commit
3c460805af
|
@ -181,11 +181,11 @@ public class SurefirePlugin
|
||||||
// defaults here, qdox doesn't like the end javadoc value
|
// defaults here, qdox doesn't like the end javadoc value
|
||||||
if ( includes == null || includes.size() == 0 )
|
if ( includes == null || includes.size() == 0 )
|
||||||
{
|
{
|
||||||
includes = new ArrayList( Collections.singletonList( "**/*Test.java" ) );
|
includes = Arrays.asList( new String[] { "**/*Test.java", "**/*TestCase.java" } );
|
||||||
}
|
}
|
||||||
if ( excludes == null || excludes.size() == 0 )
|
if ( excludes == null || excludes.size() == 0 )
|
||||||
{
|
{
|
||||||
excludes = new ArrayList( Collections.singletonList( "**/Abstract*Test.java" ) );
|
excludes = Arrays.asList( new String[] { "**/Abstract*Test.java", "**/Abstract*TestCase.java" } );
|
||||||
}
|
}
|
||||||
|
|
||||||
surefireBooter.addBattery( "org.codehaus.surefire.battery.DirectoryBattery",
|
surefireBooter.addBattery( "org.codehaus.surefire.battery.DirectoryBattery",
|
||||||
|
|
Loading…
Reference in New Issue