Commits

Robert Massaioli [Atlassian] committed efab5bf

CONNECT-105 - Creating the issues with the correct method names.

  • Participants
  • Parent commits 31b86e7
  • Branches CONNECT-105-allow-the-remote-user-to-be-customised

Comments (0)

Files changed (1)

File src/test/java/it/RemoteUserChangeTest.java

     }
 
     public static String getMessageContent(String prefix) {
-        return prefix + " " + RemoteUserChangeTest.class.getName() + " " + getMethodName(1);
+        return prefix + " " + RemoteUserChangeTest.class.getName() + " " + getMethodName(2);
     }
 
     public static String getMethodName(final int depth)
     {
         final StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
-        final int correctDepth = stackTrace.length - 1 - depth;
+        final int correctDepth = 1 + depth;
         return stackTrace[correctDepth].getMethodName();
     }
 }