import org.cacert.gigi.dbObjects.EmailAddress;
import org.cacert.gigi.dbObjects.Name;
import org.cacert.gigi.dbObjects.User;
-import org.cacert.gigi.testUtils.ManagedTest;
+import org.cacert.gigi.testUtils.BusinessTest;
import org.cacert.gigi.util.DayDate;
import org.junit.Test;
-public class TestUser extends ManagedTest {
+public class TestUser extends BusinessTest {
@Test
public void testStoreAndLoad() throws SQLException, GigiApiException {
}
@Test
- public void testWebStoreAndLoad() throws SQLException {
+ public void testWebStoreAndLoad() throws SQLException, GigiApiException {
int id = createVerifiedUser("aä", "b", createUniqueName() + "a@email.org", TEST_PASSWORD);
Name u = User.getById(id).getName();
}
@Test
- public void testAssurerUtilMethods() throws SQLException {
+ public void testAssurerUtilMethods() throws SQLException, GigiApiException {
int id = createAssuranceUser("aä", "b", createUniqueName() + "a@email.org", TEST_PASSWORD);
User u = User.getById(id);
}
@Test
- public void testGetByMail() {
+ public void testGetByMail() throws GigiApiException {
String email = createUniqueName() + "a@email.org";
int id = createVerifiedUser("aä", "b", email, TEST_PASSWORD);
User emailUser = User.getByEmail(email);
}
@Test
- public void testNoCats() {
+ public void testNoCats() throws GigiApiException {
String email = createUniqueName() + "a@email.org";
createVerifiedUser("aä", "b", email, TEST_PASSWORD);
User emailUser = User.getByEmail(email);