Skip to content

Commit cb15f0c

Browse files
authored
Merge pull request #41 from Nordstrom/pr/support-kotlin-names
Change pattern to extract method name to explicit set of delimiters
2 parents a525e66 + 92d5654 commit cb15f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/nordstrom/automation/junit/AtomicTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public AtomicTest(Object runner, Description description) {
3434
this.particles = invoke(runner, "getChildren");
3535

3636
FrameworkMethod identity = null;
37-
String methodName = description.getMethodName().split("[^_$a-zA-Z0-9]")[0];
37+
String methodName = description.getMethodName().split("[\\[\\(]")[0];
3838
for (FrameworkMethod method : particles) {
3939
if (methodName.equals(method.getName())) {
4040
identity = method;

0 commit comments

Comments
 (0)