/************************************************************************* * * * EJBCA Community: The OpenSource Certificate Authority * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.ejbca.ui.web.protocol; import static org.junit.Assert.assertNull; import java.io.PrintWriter; import java.io.StringWriter; import java.net.HttpURLConnection; import java.net.URI; import java.net.URL; import java.security.cert.X509Certificate; import org.apache.log4j.Logger; import org.bouncycastle.util.Arrays; import org.cesecore.SystemTestsConfiguration; import org.cesecore.certificates.certificate.HashID; import org.cesecore.certificates.crl.CrlStoreSessionRemote; import org.cesecore.util.EjbRemoteHelper; import org.ejbca.config.WebConfiguration; import org.ejbca.core.ejb.ca.CaTestCase; import org.ejbca.core.ejb.config.ConfigurationSessionRemote; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * Testing of CrlStoreServlet * * @version $Id: CrlStoreServletTest.java 23327 2016-05-02 07:35:19Z mikekushner $ * */ public class CrlStoreServletTest extends CaTestCase { private final static Logger log = Logger.getLogger(CrlStoreServletTest.class); private final ConfigurationSessionRemote configurationSession = EjbRemoteHelper.INSTANCE.getRemoteSession(ConfigurationSessionRemote.class, EjbRemoteHelper.MODULE_TEST); private final CrlStoreSessionRemote crlSession = EjbRemoteHelper.INSTANCE.getRemoteSession(CrlStoreSessionRemote.class); @Override @Before public void setUp() throws Exception{ super.setUp(); } @Override @After public void tearDown() throws Exception { super.tearDown(); } @Test public void testCRLStore() throws Exception { log.trace(">testCRLStore()"); final X509Certificate cacert = (X509Certificate)getTestCACert(); final String result = testCRLStore(cacert); assertNull(result, result); log.trace("