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

el_kaboing
01.44.2007 cf7e63f7a885aabbe9ce13bf6ab3698215ef742d
Corrected a bug where the parsing tool was only parsing one line for the #@TestResult tag.
1 files modified
21 ■■■■ changed files
opends/tests/functional-tests/shared/java/parsingtool/ParseData.java 21 ●●●● patch | view | raw | blame | history
opends/tests/functional-tests/shared/java/parsingtool/ParseData.java
@@ -179,10 +179,25 @@
                  }
                  else if(tmpStr.indexOf("#@TestResult") >= 0)
                  {
                    arrayData.setTestResult(StripSubstring(tmpStr, "#@TestResult"));
                    if(fileFormat.startsWith("java"))
                    if(fileFormat.startsWith("xml"))
                    {
                        String currTestResult = StripSubstring(tmpStr, "#@TestResult");
                        fin.mark(1000);
                        String oneMoLine = new String(fin.readLine().trim());
                        while((oneMoLine.indexOf("#@") < 0) && (oneMoLine.indexOf("-->") < 0))
                        {
                            currTestResult = currTestResult + " " + oneMoLine;
                            oneMoLine = new String(fin.readLine().trim());
                        }
                        arrayData.setTestResult(currTestResult);
                        fin.reset();
                    }
                    else if(fileFormat.startsWith("java"))
                    {
                        arrayData.setTestResult(StripSubstring(tmpStr, "#@TestResult"));
                        // parse test purpose from java doc comments
                        fin.mark(1000);
                        String oneMoLine = new String(fin.readLine().trim());