Author: dbaeli
Date: 2010-03-01 23:41:18 -0500 (Mon, 01 Mar 2010)
New Revision: 1921
Modified:
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java
Log:
GTNPORTAL-509 Selenium tests, fix Java5 api compatibility in generator, to avoid animal
sniffer detection to fail the whole build
Modified:
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java 2010-03-01
23:26:41 UTC (rev 1920)
+++
portal/trunk/testsuite/selenium-snifftests/src/main/java/org/exoplatform/portal/selenium/SeleniumTestCaseGenerator.java 2010-03-02
04:41:18 UTC (rev 1921)
@@ -3,8 +3,6 @@
import java.io.File;
import java.io.IOException;
-import junit.framework.TestCase;
-
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringEscapeUtils;
@@ -400,7 +398,7 @@
sb.append("selenium.waitForPageToLoad(timeout);\n");
} else if (param1.equals("echo")) {
sb.append("System.out.println(\"" + param2 +
"\");\n");
- } else if (!param1.isEmpty()) {
+ } else if (param1.length() > 0) {
String message = param1 + " was not translated \"" + param2 +
"\"";
System.err.println("[ERROR] " + message);
sb.append("// NOT GENERATED " + message);
Show replies by date