mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

coulbeck
18.22.2007 47507f7eb2f2052d1043f4e055f85bed08110277
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.
1 files modified
7 ■■■■ changed files
opendj-sdk/opends/src/build-tools/org/opends/build/tools/PrepTestNG.java 7 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/build-tools/org/opends/build/tools/PrepTestNG.java
@@ -208,7 +208,12 @@
                methodLine = mhd.split(",");
                if(methodLine.length > 0)
                {
                  methodNameStartIdx = methodLine[0].lastIndexOf(".");
                  // 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,