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:
Brett Leslie Porter 2005-08-19 06:22:20 +00:00
parent 441219f137
commit 3c460805af
1 changed files with 2 additions and 2 deletions

View File

@ -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",