import org.cacert.gigi.DevelLauncher;
import org.cacert.gigi.EmailAddress;
import org.cacert.gigi.GigiApiException;
-import org.cacert.gigi.Language;
import org.cacert.gigi.User;
import org.cacert.gigi.database.DatabaseConnection;
+import org.cacert.gigi.localisation.Language;
+import org.cacert.gigi.pages.account.MyDetails;
import org.cacert.gigi.testUtils.TestEmailReciever.TestMail;
import org.cacert.gigi.util.DatabaseManager;
import org.cacert.gigi.util.PEM;
try {
String query = "fname=" + URLEncoder.encode(firstName, "UTF-8") + "&lname=" + URLEncoder.encode(lastName, "UTF-8") + "&email=" + URLEncoder.encode(email, "UTF-8") + "&pword1=" + URLEncoder.encode(password, "UTF-8") + "&pword2=" + URLEncoder.encode(password, "UTF-8") + "&day=1&month=1&year=1910&cca_agree=1";
String data = fetchStartErrorMessage(runRegister(query));
- assertTrue(data, data.startsWith("</div>"));
+ assertNull(data);
} catch (UnsupportedEncodingException e) {
throw new Error(e);
} catch (IOException e) {
static int count = 0;
public static String createUniqueName() {
- return "test" + System.currentTimeMillis() + "a" + (count++);
+ return "test" + System.currentTimeMillis() + "a" + (count++) + "u";
}
private String stripCookie(String headerField) {
return headerField.substring(0, headerField.indexOf(';'));
}
- public static final String SECURE_REFERENCE = "/account/certs/email";
+ public static final String SECURE_REFERENCE = MyDetails.PATH;
public boolean isLoggedin(String cookie) throws IOException {
URL u = new URL("https://" + getServerName() + SECURE_REFERENCE);