Merge - display class name of tests (bug 23717053) jdev_excrep-stable
authorJakub Lehotsky <jlehotsky@netbeans.org>
Fri, 08 Jul 2016 14:45:17 +0200
branchjdev_excrep-stable
changeset 63417c6b675b0fe5
parent 6339 368a38e0d9f6
parent 6340 273839936624
child 6343 4e02cd6b1248
Merge - display class name of tests (bug 23717053)
     1.1 --- a/logger/uihandler.api/src/org/netbeans/modules/exceptions/entity/Submit.java	Fri Jul 08 14:30:14 2016 +0200
     1.2 +++ b/logger/uihandler.api/src/org/netbeans/modules/exceptions/entity/Submit.java	Fri Jul 08 14:45:17 2016 +0200
     1.3 @@ -169,7 +169,13 @@
     1.4  
     1.5      public String getShortTestName() {
     1.6          if (testName.contains("::")) {
     1.7 -            return testName.split("::")[1];
     1.8 +            String[] classSplit = testName.split("::");
     1.9 +            if (classSplit[0].contains(".")) {
    1.10 +                String[] packageSplit = classSplit[0].split("\\.");
    1.11 +                return packageSplit[packageSplit.length - 1] + "::" + classSplit[1];
    1.12 +            } else {
    1.13 +                return testName;
    1.14 +            }
    1.15          } else {
    1.16              return testName;
    1.17          }