For convenience allow build -Dtest.methods=class#method. For example to cut and paste a method from the test report into the -Dtest.methods parameter.
| | |
| | | methodLine = mhd.split(","); |
| | | if(methodLine.length > 0) |
| | | { |
| | | // Allow class.method or class#method |
| | | methodNameStartIdx = methodLine[0].lastIndexOf("#"); |
| | | if (methodNameStartIdx == -1) |
| | | { |
| | | methodNameStartIdx = methodLine[0].lastIndexOf("."); |
| | | } |
| | | methodClass = methodLine[0].substring(0, |
| | | methodNameStartIdx); |
| | | methodName = methodLine[0].substring(methodNameStartIdx + 1, |