Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.18.1
-
None
-
Java 8, Linux
Description
testing selected methods (more than 1) of the same class using the syntax
mvn -Dtest=MyClass#method1+method2 test
Gives:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1948)
at org.apache.maven.surefire.junit4.JUnit4Provider.getMethod(JUnit4Provider.java:307)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:147)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
Attachments
Issue Links
- is part of
-
SUREFIRE-1125 Running multiple methods via the `test` property does not work in junit47 provider
- Closed