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

coulbeck
18.22.2007 c3bcfad10965a6e120add659aac29333cae7c70b
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
opends/src/build-tools/org/opends/build/tools/PrepTestNG.java 7 ●●●● patch | view | raw | blame | history
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,