]> WPIA git - gigi.git/commitdiff
(hopefully) stabelize the Orga test
authorFelix Dörre <felix@dogcraft.de>
Thu, 7 Apr 2016 15:58:08 +0000 (17:58 +0200)
committerFelix Dörre <felix@dogcraft.de>
Thu, 7 Apr 2016 15:58:08 +0000 (17:58 +0200)
tests/org/cacert/gigi/pages/orga/TestOrgaManagement.java

index a21eff56d25f95c63b8ef86842f28f33a5673a51..3ecc7a21dbb6705525db623b206c21390adba97e 100644 (file)
@@ -8,6 +8,7 @@ import java.net.HttpURLConnection;
 import java.net.URL;
 import java.net.URLConnection;
 import java.net.URLEncoder;
 import java.net.URL;
 import java.net.URLConnection;
 import java.net.URLEncoder;
+import java.sql.SQLException;
 import java.util.List;
 
 import org.cacert.gigi.GigiApiException;
 import java.util.List;
 
 import org.cacert.gigi.GigiApiException;
@@ -18,6 +19,7 @@ import org.cacert.gigi.dbObjects.User;
 import org.cacert.gigi.pages.account.MyDetails;
 import org.cacert.gigi.testUtils.ClientTest;
 import org.cacert.gigi.testUtils.IOUtils;
 import org.cacert.gigi.pages.account.MyDetails;
 import org.cacert.gigi.testUtils.ClientTest;
 import org.cacert.gigi.testUtils.IOUtils;
+import org.junit.After;
 import org.junit.Test;
 
 public class TestOrgaManagement extends ClientTest {
 import org.junit.Test;
 
 public class TestOrgaManagement extends ClientTest {
@@ -29,6 +31,11 @@ public class TestOrgaManagement extends ClientTest {
         cookie = login(email, TEST_PASSWORD);
     }
 
         cookie = login(email, TEST_PASSWORD);
     }
 
+    @After
+    public void purgeDbAfterTest() throws SQLException, IOException {
+        purgeDatabase();
+    }
+
     @Test
     public void testAdd() throws IOException {
         for (Organisation i : Organisation.getOrganisations(0, 30)) {
     @Test
     public void testAdd() throws IOException {
         for (Organisation i : Organisation.getOrganisations(0, 30)) {