]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ManagedTest.java
Implement and test change password form.
[gigi.git] / tests / org / cacert / gigi / testUtils / ManagedTest.java
index 36ae2ca1802beec9cd821a1b0569e4f14b0941a8..20318a7f03eb35a46fcba5abad8bb7d714644ed0 100644 (file)
@@ -1,7 +1,6 @@
 package org.cacert.gigi.testUtils;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertTrue;
 
 import java.io.BufferedReader;
@@ -196,7 +195,9 @@ public class ManagedTest {
        public String fetchStartErrorMessage(String d) throws IOException {
                String formFail = "<div class='formError'>";
                int idx = d.indexOf(formFail);
-               assertNotEquals(-1, idx);
+               if (idx == -1) {
+                       return null;
+               }
                String startError = d.substring(idx + formFail.length(), idx + 100).trim();
                return startError;
        }