]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/dbObjects/TestCertificate.java
upd: rename package name and all references to it
[gigi.git] / tests / org / cacert / gigi / dbObjects / TestCertificate.java
diff --git a/tests/org/cacert/gigi/dbObjects/TestCertificate.java b/tests/org/cacert/gigi/dbObjects/TestCertificate.java
deleted file mode 100644 (file)
index 3b4a63b..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.cacert.gigi.dbObjects;
-
-import static org.junit.Assert.*;
-
-import java.io.IOException;
-import java.security.GeneralSecurityException;
-import java.security.KeyPair;
-
-import org.cacert.gigi.GigiApiException;
-import org.cacert.gigi.dbObjects.Certificate.CSRType;
-import org.cacert.gigi.testUtils.ClientBusinessTest;
-import org.junit.Test;
-
-public class TestCertificate extends ClientBusinessTest {
-
-    @Test
-    public void testSetLoginEnabled() throws GeneralSecurityException, IOException, GigiApiException {
-        KeyPair kp = generateKeypair();
-        String key = generatePEMCSR(kp, "CN=testmail@example.com");
-        Certificate c = new Certificate(u, u, Certificate.buildDN("CN", "testmail@example.com"), Digest.SHA256, key, CSRType.CSR, getClientProfile());
-
-        assertFalse(c.isLoginEnabled());
-        c.setLoginEnabled(true);
-        assertTrue(c.isLoginEnabled());
-        c.setLoginEnabled(true);
-        assertTrue(c.isLoginEnabled());
-        c.setLoginEnabled(false);
-        assertFalse(c.isLoginEnabled());
-        c.setLoginEnabled(false);
-        assertFalse(c.isLoginEnabled());
-    }
-}