| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | |
| | | |
| | | // Get the build root and use it to create a test package directory. |
| | | public static final String BUILD_ROOT = |
| | | public static final String BUILD_ROOT = |
| | | System.getProperty(TestCaseUtils.PROPERTY_BUILD_ROOT); |
| | | |
| | | |
| | | |
| | | /** |
| | | * The path to a JKS key store file. |
| | | */ |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test(expectedExceptions = { NullPointerException.class }) |
| | | @Test |
| | | public void testConstructorNullPIN() |
| | | throws Exception |
| | | { |
| | | new CertificateManager(JKS_KEY_STORE_PATH, "JKS", null); |
| | | assertNotNull(new CertificateManager(JKS_KEY_STORE_PATH, "JKS", null)); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test(expectedExceptions = { NullPointerException.class }) |
| | | @Test |
| | | public void testConstructorEmptyPIN() |
| | | throws Exception |
| | | { |
| | | new CertificateManager(JKS_KEY_STORE_PATH, "JKS", ""); |
| | | assertNotNull(new CertificateManager(JKS_KEY_STORE_PATH, "JKS", "")); |
| | | } |
| | | |
| | | |