diff --git a/src/test/java/org/olat/core/util/xml/XMLDigitalSignatureUtilTest.java b/src/test/java/org/olat/core/util/xml/XMLDigitalSignatureUtilTest.java index c24d2b36287b4ca0d497799c23af1c798b33dc5e..61cdd7ac87ac4c5bd6791b13d890ba4ffb85f79e 100644 --- a/src/test/java/org/olat/core/util/xml/XMLDigitalSignatureUtilTest.java +++ b/src/test/java/org/olat/core/util/xml/XMLDigitalSignatureUtilTest.java @@ -40,6 +40,19 @@ import org.w3c.dom.NodeList; */ public class XMLDigitalSignatureUtilTest { + /** + * Preliminary test which read the certificate. The method is used in + * every other test of the class. + * + * @throws Exception + */ + @Test + public void readCertificatePrivateKeyPair() throws Exception { + X509CertificatePrivateKeyPair keyPair = getCertificatePrivateKeyPair(); + Assert.assertNotNull(keyPair); + Assert.assertNotNull(keyPair.getPrivateKey()); + Assert.assertNotNull(keyPair.getX509Cert()); + } /** * Check if the cycle sign -> validation works diff --git a/src/test/java/org/olat/selenium/BusinessGroupTest.java b/src/test/java/org/olat/selenium/BusinessGroupTest.java index ca6f172de2312406a3f995c9b55da2cc2e1ff229..ef85b5518b6839ce2be0b7455580b34bd340a205 100644 --- a/src/test/java/org/olat/selenium/BusinessGroupTest.java +++ b/src/test/java/org/olat/selenium/BusinessGroupTest.java @@ -801,6 +801,7 @@ public class BusinessGroupTest extends Deployments { Assert.assertEquals(1, participants); Assert.assertEquals(2, waitingList); } + /** * An author create a course, with an enrollment course element. It * configure it and create 3 groups and set the maximum enrollment counter to 2<br> @@ -813,7 +814,6 @@ public class BusinessGroupTest extends Deployments { * @throws IOException * @throws URISyntaxException */ - @Test @RunAsClient public void enrollmentWithMultiEnrollment(@InitialPage LoginPage authorLoginPage,