/** * Tests getting a proxy certificate for failure. * * @throws Exception if the test fails. */ @Test public void testLoadCertificateRevocationListsForFailure() throws Exception { try { authService.loadKey(null); fail(); } catch (IllegalArgumentException e) { assertTrue(true); } }
/** * Tests getting a proxy certificate for success. * * @throws Exception if the test fails. */ @Test public void testLoadCertificateRevocationListsForSuccess() throws Exception { OpenSSLKey key = authService.loadKey( System.getProperty(AuthenticationTestConstants.USER_DIR) + AuthenticationTestConstants.TESTRESOURCES_DIR + AuthenticationTestConstants.USERKEY_RCE_ENGINEER_PEM); assertNotNull(key); }