summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv/selftests
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/selftests')
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java54
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/EInvalidSelfTestException.java54
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/EMissingSelfTestException.java54
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/ESelfTestException.java17
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java31
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java84
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/SelfTestResources.java2
7 files changed, 112 insertions, 184 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java b/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
index d0f6b4c3..958919e1 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
@@ -20,13 +20,10 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
-
-
//////////////////////
// class definition //
//////////////////////
@@ -35,20 +32,18 @@ package com.netscape.certsrv.selftests;
* This class implements a duplicate self test exception.
* EDuplicateSelfTestExceptions are derived from ESelfTestExceptions
* in order to allow users to easily do self tests without try-catch clauses.
- *
+ *
* EDuplicateSelfTestExceptions should be caught by SelfTestSubsystem managers.
* <P>
*
* @version $Revision$, $Date$
*/
public class EDuplicateSelfTestException
- extends ESelfTestException {
+ extends ESelfTestException {
////////////////////////
// default parameters //
////////////////////////
-
-
///////////////////////
// helper parameters //
///////////////////////
@@ -66,14 +61,10 @@ public class EDuplicateSelfTestException
// EDuplicateSelfTestException parameters //
////////////////////////////////////////////
-
-
///////////////////////////////////////////////
// ESelfTestException parameters (inherited) //
///////////////////////////////////////////////
-
-
/////////////////////
// default methods //
/////////////////////
@@ -81,13 +72,13 @@ public class EDuplicateSelfTestException
/**
* Constructs a "duplicate" self test exception.
* <P>
- *
+ *
* @param instanceName duplicate "instanceName" exception details
*/
public EDuplicateSelfTestException(String instanceName) {
super("The self test plugin property named "
- + instanceName
- + " already exists.");
+ + instanceName
+ + " already exists.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -103,17 +94,17 @@ public class EDuplicateSelfTestException
* Constructs a "duplicate" self test exception where the value is always
* a duplicate from a name/value pair
* <P>
- *
+ *
* @param instanceName duplicate "instanceName" exception details
* @param instanceValue duplicate "instanceValue" exception details
*/
public EDuplicateSelfTestException(String instanceName,
- String instanceValue) {
+ String instanceValue) {
super("The self test plugin property named "
- + instanceName
- + " contains a value of "
- + instanceValue
- + " which already exists.");
+ + instanceName
+ + " contains a value of "
+ + instanceValue
+ + " which already exists.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -134,18 +125,18 @@ public class EDuplicateSelfTestException
* duplicate from a substore.parameter/value pair; (the value passed in may
* be null).
* <P>
- *
+ *
* @param instanceStore duplicate "instanceStore" exception details
* @param instanceParameter duplicate "instanceParameter" exception details
* @param instanceValue duplicate "instanceValue" exception details
- * (may be null)
+ * (may be null)
*/
public EDuplicateSelfTestException(String instanceStore,
- String instanceParameter,
- String instanceValue) {
+ String instanceParameter,
+ String instanceValue) {
super("The self test plugin property named "
- + instanceStore + "." + instanceParameter
- + " is a duplicate.");
+ + instanceStore + "." + instanceParameter
+ + " is a duplicate.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -172,7 +163,7 @@ public class EDuplicateSelfTestException
/**
* Returns the instance name associated with this self test.
* <P>
- *
+ *
* @return name portion of the name/value pair
*/
public String getInstanceName() {
@@ -182,7 +173,7 @@ public class EDuplicateSelfTestException
/**
* Returns the store associated with this self test.
* <P>
- *
+ *
* @return substore portion of the substore.parameter/value pair
*/
public String getInstanceStore() {
@@ -192,7 +183,7 @@ public class EDuplicateSelfTestException
/**
* Returns the parameter associated with this self test.
* <P>
- *
+ *
* @return parameter portion of the substore.parameter/value pair
*/
public String getInstanceParameter() {
@@ -202,7 +193,7 @@ public class EDuplicateSelfTestException
/**
* Returns the value associated with this self test.
* <P>
- *
+ *
* @return value portion of the name/value pair
*/
public String getInstanceValue() {
@@ -213,8 +204,6 @@ public class EDuplicateSelfTestException
// EDuplicateSelfTestException methods //
/////////////////////////////////////////
-
-
////////////////////////////////////////////
// ESelfTestException methods (inherited) //
////////////////////////////////////////////
@@ -225,4 +214,3 @@ public class EDuplicateSelfTestException
* public ESelfTestException( String msg );
*/
}
-
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/EInvalidSelfTestException.java b/pki/base/common/src/com/netscape/certsrv/selftests/EInvalidSelfTestException.java
index 11907695..58592b89 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/EInvalidSelfTestException.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/EInvalidSelfTestException.java
@@ -20,13 +20,10 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
-
-
//////////////////////
// class definition //
//////////////////////
@@ -35,20 +32,18 @@ package com.netscape.certsrv.selftests;
* This class implements an invalid self test exception.
* EInvalidSelfTestExceptions are derived from ESelfTestExceptions
* in order to allow users to easily do self tests without try-catch clauses.
- *
+ *
* EInvalidSelfTestExceptions should be caught by SelfTestSubsystem managers.
* <P>
*
* @version $Revision$, $Date$
*/
public class EInvalidSelfTestException
- extends ESelfTestException {
+ extends ESelfTestException {
////////////////////////
// default parameters //
////////////////////////
-
-
///////////////////////
// helper parameters //
///////////////////////
@@ -66,14 +61,10 @@ public class EInvalidSelfTestException
// EInvalidSelfTestException parameters //
//////////////////////////////////////////
-
-
///////////////////////////////////////////////
// ESelfTestException parameters (inherited) //
///////////////////////////////////////////////
-
-
/////////////////////
// default methods //
/////////////////////
@@ -81,13 +72,13 @@ public class EInvalidSelfTestException
/**
* Constructs an "invalid" self test exception.
* <P>
- *
+ *
* @param instanceName invalid "instanceName" exception details
*/
public EInvalidSelfTestException(String instanceName) {
super("The self test plugin named "
- + instanceName
- + " is invalid.");
+ + instanceName
+ + " is invalid.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -103,17 +94,17 @@ public class EInvalidSelfTestException
* Constructs a "invalid" self test exception where the value is always
* invalid from a name/value pair
* <P>
- *
+ *
* @param instanceName invalid "instanceName" exception details
* @param instanceValue invalid "instanceValue" exception details
*/
public EInvalidSelfTestException(String instanceName,
- String instanceValue) {
+ String instanceValue) {
super("The self test plugin named "
- + instanceName
- + " contains a value "
- + instanceValue
- + " which is invalid.");
+ + instanceName
+ + " contains a value "
+ + instanceValue
+ + " which is invalid.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -134,18 +125,18 @@ public class EInvalidSelfTestException
* invalid from a substore.parameter/value pair; (the value passed in may
* be null).
* <P>
- *
+ *
* @param instanceStore invalid "instanceStore" exception details
* @param instanceParameter invalid "instanceParameter" exception details
* @param instanceValue invalid "instanceValue" exception details
- * (may be null)
+ * (may be null)
*/
public EInvalidSelfTestException(String instanceStore,
- String instanceParameter,
- String instanceValue) {
+ String instanceParameter,
+ String instanceValue) {
super("The self test plugin parameter named "
- + instanceStore + "." + instanceParameter
- + " is invalid.");
+ + instanceStore + "." + instanceParameter
+ + " is invalid.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -172,7 +163,7 @@ public class EInvalidSelfTestException
/**
* Returns the instance name associated with this self test.
* <P>
- *
+ *
* @return name portion of the name/value pair
*/
public String getInstanceName() {
@@ -182,7 +173,7 @@ public class EInvalidSelfTestException
/**
* Returns the store associated with this self test.
* <P>
- *
+ *
* @return substore portion of the substore.parameter/value pair
*/
public String getInstanceStore() {
@@ -192,7 +183,7 @@ public class EInvalidSelfTestException
/**
* Returns the parameter associated with this self test.
* <P>
- *
+ *
* @return parameter portion of the substore.parameter/value pair
*/
public String getInstanceParameter() {
@@ -202,7 +193,7 @@ public class EInvalidSelfTestException
/**
* Returns the value associated with this self test.
* <P>
- *
+ *
* @return value portion of the name/value pair
*/
public String getInstanceValue() {
@@ -213,8 +204,6 @@ public class EInvalidSelfTestException
// EInvalidSelfTestException methods //
///////////////////////////////////////
-
-
////////////////////////////////////////////
// ESelfTestException methods (inherited) //
////////////////////////////////////////////
@@ -225,4 +214,3 @@ public class EInvalidSelfTestException
* public ESelfTestException( String msg );
*/
}
-
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/EMissingSelfTestException.java b/pki/base/common/src/com/netscape/certsrv/selftests/EMissingSelfTestException.java
index 88fa14cb..c15852f4 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/EMissingSelfTestException.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/EMissingSelfTestException.java
@@ -20,13 +20,10 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
-
-
//////////////////////
// class definition //
//////////////////////
@@ -35,20 +32,18 @@ package com.netscape.certsrv.selftests;
* This class implements a missing self test exception.
* EMissingSelfTestExceptions are derived from ESelfTestExceptions
* in order to allow users to easily do self tests without try-catch clauses.
- *
+ *
* EMissingSelfTestExceptions should be caught by SelfTestSubsystem managers.
* <P>
*
* @version $Revision$, $Date$
*/
public class EMissingSelfTestException
- extends ESelfTestException {
+ extends ESelfTestException {
////////////////////////
// default parameters //
////////////////////////
-
-
///////////////////////
// helper parameters //
///////////////////////
@@ -66,14 +61,10 @@ public class EMissingSelfTestException
// EMissingSelfTestException parameters //
//////////////////////////////////////////
-
-
///////////////////////////////////////////////
// ESelfTestException parameters (inherited) //
///////////////////////////////////////////////
-
-
/////////////////////
// default methods //
/////////////////////
@@ -81,7 +72,7 @@ public class EMissingSelfTestException
/**
* Constructs a "missing" self test exception where the name is null
* <P>
- *
+ *
*/
public EMissingSelfTestException() {
super("The self test plugin property name is null.");
@@ -91,13 +82,13 @@ public class EMissingSelfTestException
* Constructs a "missing" self test exception where the name is always
* missing from a name/value pair.
* <P>
- *
+ *
* @param instanceName missing "instanceName" exception details
*/
public EMissingSelfTestException(String instanceName) {
super("The self test plugin property named "
- + instanceName
- + " does not exist.");
+ + instanceName
+ + " does not exist.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -113,16 +104,16 @@ public class EMissingSelfTestException
* Constructs a "missing" self test exception where the value is always
* missing from a name/value pair; (the value passed in is always null).
* <P>
- *
+ *
* @param instanceName missing "instanceName" exception details
* @param instanceValue missing "instanceValue" exception details
- * (always null)
+ * (always null)
*/
public EMissingSelfTestException(String instanceName,
- String instanceValue) {
+ String instanceValue) {
super("The self test plugin property named "
- + instanceName
- + " contains no values.");
+ + instanceName
+ + " contains no values.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -143,18 +134,18 @@ public class EMissingSelfTestException
* missing from a substore.parameter/value pair; (the value passed in may
* be null).
* <P>
- *
+ *
* @param instanceStore missing "instanceStore" exception details
* @param instanceParameter missing "instanceParameter" exception details
* @param instanceValue missing "instanceValue" exception details
- * (may be null)
+ * (may be null)
*/
public EMissingSelfTestException(String instanceStore,
- String instanceParameter,
- String instanceValue) {
+ String instanceParameter,
+ String instanceValue) {
super("The self test plugin property named "
- + instanceStore + "." + instanceParameter
- + " is missing.");
+ + instanceStore + "." + instanceParameter
+ + " is missing.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -181,7 +172,7 @@ public class EMissingSelfTestException
/**
* Returns the instance name associated with this self test.
* <P>
- *
+ *
* @return name portion of the name/value pair
*/
public String getInstanceName() {
@@ -191,7 +182,7 @@ public class EMissingSelfTestException
/**
* Returns the store associated with this self test.
* <P>
- *
+ *
* @return substore portion of the substore.parameter/value pair
*/
public String getInstanceStore() {
@@ -201,7 +192,7 @@ public class EMissingSelfTestException
/**
* Returns the parameter associated with this self test.
* <P>
- *
+ *
* @return parameter portion of the substore.parameter/value pair
*/
public String getInstanceParameter() {
@@ -211,7 +202,7 @@ public class EMissingSelfTestException
/**
* Returns the value associated with this self test.
* <P>
- *
+ *
* @return value portion of the name/value pair
*/
public String getInstanceValue() {
@@ -222,8 +213,6 @@ public class EMissingSelfTestException
// EMissingSelfTestException methods //
///////////////////////////////////////
-
-
////////////////////////////////////////////
// ESelfTestException methods (inherited) //
////////////////////////////////////////////
@@ -234,4 +223,3 @@ public class EMissingSelfTestException
* public ESelfTestException( String msg );
*/
}
-
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/ESelfTestException.java b/pki/base/common/src/com/netscape/certsrv/selftests/ESelfTestException.java
index e465517c..6c4f6bf2 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/ESelfTestException.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/ESelfTestException.java
@@ -20,14 +20,12 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
import com.netscape.certsrv.base.EBaseException;
-
//////////////////////
// class definition //
//////////////////////
@@ -36,20 +34,18 @@ import com.netscape.certsrv.base.EBaseException;
* This class implements a self test exception. ESelfTestExceptions
* are derived from EBaseExceptions in order to allow users
* to easily do self tests without try-catch clauses.
- *
+ *
* ESelfTestExceptions should be caught by SelfTestSubsystem managers.
* <P>
*
* @version $Revision$, $Date$
*/
public class ESelfTestException
- extends EBaseException {
+ extends EBaseException {
////////////////////////
// default parameters //
////////////////////////
-
-
///////////////////////////////////
// ESelfTestException parameters //
///////////////////////////////////
@@ -60,7 +56,6 @@ public class ESelfTestException
private static final long serialVersionUID = -8001373369705595891L;
private static final String SELFTEST_RESOURCES = SelfTestResources.class.getName();
-
///////////////////////////////////////////
// EBaseException parameters (inherited) //
///////////////////////////////////////////
@@ -71,8 +66,6 @@ public class ESelfTestException
* public Object mParams[];
*/
-
-
/////////////////////
// default methods //
/////////////////////
@@ -80,14 +73,13 @@ public class ESelfTestException
/**
* Constructs a self test exception.
* <P>
- *
+ *
* @param msg exception details
*/
public ESelfTestException(String msg) {
super(msg);
}
-
////////////////////////////////
// ESelfTestException methods //
////////////////////////////////
@@ -95,13 +87,13 @@ public class ESelfTestException
/**
* Returns the bundle file name.
* <P>
+ *
* @return name of bundle class associated with this exception.
*/
protected String getBundleName() {
return SELFTEST_RESOURCES;
}
-
////////////////////////////////////////
// EBaseException methods (inherited) //
////////////////////////////////////////
@@ -124,4 +116,3 @@ public class ESelfTestException
* public String toString( Locale locale );
*/
}
-
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java b/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java
index f881a285..04285a9d 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java
@@ -20,7 +20,6 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
@@ -30,7 +29,6 @@ import java.util.Locale;
import com.netscape.certsrv.base.IConfigStore;
import com.netscape.certsrv.logging.ILogEventListener;
-
//////////////////////
// class definition //
//////////////////////
@@ -46,8 +44,6 @@ public interface ISelfTest {
// default parameters //
////////////////////////
-
-
//////////////////////////
// ISelfTest parameters //
//////////////////////////
@@ -58,8 +54,6 @@ public interface ISelfTest {
// default methods //
/////////////////////
-
-
///////////////////////
// ISelfTest methods //
///////////////////////
@@ -68,29 +62,29 @@ public interface ISelfTest {
* Initializes this subsystem with the configuration store
* associated with this instance name.
* <P>
- *
+ *
* @param subsystem the associated subsystem
- * @param instanceName the name of this self test instance
+ * @param instanceName the name of this self test instance
* @param parameters configuration store (self test parameters)
* @exception EDuplicateSelfTestException subsystem has duplicate name/value
* @exception EInvalidSelfTestException subsystem has invalid name/value
* @exception EMissingSelfTestException subsystem has missing name/value
*/
public void initSelfTest(ISelfTestSubsystem subsystem,
- String instanceName,
- IConfigStore parameters)
- throws EDuplicateSelfTestException,
+ String instanceName,
+ IConfigStore parameters)
+ throws EDuplicateSelfTestException,
EInvalidSelfTestException,
EMissingSelfTestException;
/**
* Notifies this subsystem if it is in execution mode.
* <P>
- *
+ *
* @exception ESelfTestException failed to start
*/
public void startupSelfTest()
- throws ESelfTestException;
+ throws ESelfTestException;
/**
* Stops this subsystem. The subsystem may call shutdownSelfTest
@@ -103,7 +97,7 @@ public interface ISelfTest {
* Returns the name associated with this self test. This method may
* return null if the self test has not been intialized.
* <P>
- *
+ *
* @return instanceName of this self test
*/
public String getSelfTestName();
@@ -112,7 +106,7 @@ public interface ISelfTest {
* Returns the root configuration storage (self test parameters)
* associated with this subsystem.
* <P>
- *
+ *
* @return configuration store (self test parameters) of this subsystem
*/
public IConfigStore getSelfTestConfigStore();
@@ -121,7 +115,7 @@ public interface ISelfTest {
* Retrieves description associated with an individual self test.
* This method may return null.
* <P>
- *
+ *
* @param locale locale of the client that requests the description
* @return description of self test
*/
@@ -130,11 +124,10 @@ public interface ISelfTest {
/**
* Execute an individual self test.
* <P>
- *
+ *
* @param logger specifies logging subsystem
* @exception ESelfTestException self test exception
*/
public void runSelfTest(ILogEventListener logger)
- throws ESelfTestException;
+ throws ESelfTestException;
}
-
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java b/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java
index 3391bdd1..d16627ab 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java
@@ -20,7 +20,6 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
@@ -28,7 +27,6 @@ package com.netscape.certsrv.selftests;
import com.netscape.certsrv.base.ISubsystem;
import com.netscape.certsrv.logging.ILogEventListener;
-
//////////////////////
// class definition //
//////////////////////
@@ -40,13 +38,11 @@ import com.netscape.certsrv.logging.ILogEventListener;
* @version $Revision$, $Date$
*/
public interface ISelfTestSubsystem
- extends ISubsystem {
+ extends ISubsystem {
////////////////////////
// default parameters //
////////////////////////
-
-
//////////////////////////////////
// ISelfTestSubsystem constants //
//////////////////////////////////
@@ -64,14 +60,10 @@ public interface ISelfTestSubsystem
// ISubsystem parameters (inherited) //
///////////////////////////////////////
-
-
/////////////////////
// default methods //
/////////////////////
-
-
////////////////////////////////
// ISelfTestSubsystem methods //
////////////////////////////////
@@ -84,7 +76,7 @@ public interface ISelfTestSubsystem
* List the instance names of all the self tests enabled to run on demand
* (in execution order); may return null.
* <P>
- *
+ *
* @return list of self test instance names run on demand
*/
public String[] listSelfTestsEnabledOnDemand();
@@ -92,10 +84,10 @@ public interface ISelfTestSubsystem
/**
* Enable the specified self test to be executed on demand.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @param isCritical isCritical is either a critical failure (true) or
- * a non-critical failure (false)
+ * a non-critical failure (false)
* @exception EInvalidSelfTestException subsystem has invalid name/value
* @exception EMissingSelfTestException subsystem has missing name/value
*/
@@ -103,51 +95,49 @@ public interface ISelfTestSubsystem
// boolean isCritical )
// throws EInvalidSelfTestException, EMissingSelfTestException;
-
/**
* Disable the specified self test from being able to be executed on demand.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @exception EMissingSelfTestException subsystem has missing name
*/
// public void disableSelfTestOnDemand( String instanceName )
// throws EMissingSelfTestException;
-
/**
* Determine if the specified self test is enabled to be executed on demand.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @return true if the specified self test is enabled on demand
* @exception EMissingSelfTestException subsystem has missing name
*/
public boolean isSelfTestEnabledOnDemand(String instanceName)
- throws EMissingSelfTestException;
+ throws EMissingSelfTestException;
/**
- * Determine if failure of the specified self test is fatal when
+ * Determine if failure of the specified self test is fatal when
* it is executed on demand.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @return true if failure of the specified self test is fatal when
- * it is executed on demand
+ * it is executed on demand
* @exception EMissingSelfTestException subsystem has missing name
*/
public boolean isSelfTestCriticalOnDemand(String instanceName)
- throws EMissingSelfTestException;
+ throws EMissingSelfTestException;
/**
* Execute all self tests specified to be run on demand.
* <P>
- *
+ *
* @exception EMissingSelfTestException subsystem has missing name
* @exception ESelfTestException self test exception
*/
public void runSelfTestsOnDemand()
- throws EMissingSelfTestException, ESelfTestException;
+ throws EMissingSelfTestException, ESelfTestException;
//
// methods associated with the list of startup self tests
@@ -157,7 +147,7 @@ public interface ISelfTestSubsystem
* List the instance names of all the self tests enabled to run
* at server startup (in execution order); may return null.
* <P>
- *
+ *
* @return list of self test instance names run at server startup
*/
public String[] listSelfTestsEnabledAtStartup();
@@ -165,10 +155,10 @@ public interface ISelfTestSubsystem
/**
* Enable the specified self test at server startup.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @param isCritical isCritical is either a critical failure (true) or
- * a non-critical failure (false)
+ * a non-critical failure (false)
* @exception EInvalidSelfTestException subsystem has invalid name/value
* @exception EMissingSelfTestException subsystem has missing name/value
*/
@@ -176,52 +166,50 @@ public interface ISelfTestSubsystem
// boolean isCritical )
// throws EInvalidSelfTestException, EMissingSelfTestException;
-
/**
* Disable the specified self test at server startup.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @exception EMissingSelfTestException subsystem has missing name
*/
// public void disableSelfTestAtStartup( String instanceName )
// throws EMissingSelfTestException;
-
/**
* Determine if the specified self test is executed automatically
* at server startup.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @return true if the specified self test is executed at server startup
* @exception EMissingSelfTestException subsystem has missing name
*/
public boolean isSelfTestEnabledAtStartup(String instanceName)
- throws EMissingSelfTestException;
+ throws EMissingSelfTestException;
/**
* Determine if failure of the specified self test is fatal to
* server startup.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @return true if failure of the specified self test is fatal to
- * server startup
+ * server startup
* @exception EMissingSelfTestException subsystem has missing name
*/
public boolean isSelfTestCriticalAtStartup(String instanceName)
- throws EMissingSelfTestException;
+ throws EMissingSelfTestException;
/**
* Execute all self tests specified to be run at server startup.
* <P>
- *
+ *
* @exception EMissingSelfTestException subsystem has missing name
* @exception ESelfTestException self test exception
*/
public void runSelfTestsAtStartup()
- throws EMissingSelfTestException, ESelfTestException;
+ throws EMissingSelfTestException, ESelfTestException;
//
// methods associated with the list of self test instances
@@ -231,7 +219,7 @@ public interface ISelfTestSubsystem
* Retrieve an individual self test from the instances list
* given its instance name.
* <P>
- *
+ *
* @param instanceName instance name of self test
* @return individual self test
*/
@@ -245,7 +233,7 @@ public interface ISelfTestSubsystem
* Returns the ILogEventListener of this subsystem.
* This method may return null.
* <P>
- *
+ *
* @return ILogEventListener of this subsystem
*/
public ILogEventListener getSelfTestLogger();
@@ -253,7 +241,7 @@ public interface ISelfTestSubsystem
/**
* This method represents the log interface for the self test subsystem.
* <P>
- *
+ *
* @param logger log event listener
* @param msg self test log message
*/
@@ -264,10 +252,10 @@ public interface ISelfTestSubsystem
* on the "on demand" list (note that the specified self test
* will be appended to the end of each list).
* <P>
- *
+ *
* @param instanceName instance name of self test
* @param isCritical isCritical is either a critical failure (true) or
- * a non-critical failure (false)
+ * a non-critical failure (false)
* @param instance individual self test
* @exception EDuplicateSelfTestException subsystem has duplicate name
* @exception EInvalidSelfTestException subsystem has invalid name/value
@@ -280,29 +268,27 @@ public interface ISelfTestSubsystem
// EInvalidSelfTestException,
// EMissingSelfTestException;
-
/**
* Deregister an individual self test on the instances list AND
* on the "on demand" list (note that the specified self test
* will be removed from each list).
* <P>
- *
+ *
* @param instanceName instance name of self test
* @exception EMissingSelfTestException subsystem has missing name
*/
// public void deregisterSelfTestOnDemand( String instanceName )
// throws EMissingSelfTestException;
-
/**
* Register an individual self test on the instances list AND
* on the "startup" list (note that the specified self test
* will be appended to the end of each list).
* <P>
- *
+ *
* @param instanceName instance name of self test
* @param isCritical isCritical is either a critical failure (true) or
- * a non-critical failure (false)
+ * a non-critical failure (false)
* @param instance individual self test
* @exception EDuplicateSelfTestException subsystem has duplicate name
* @exception EInvalidSelfTestException subsystem has invalid name/value
@@ -315,21 +301,18 @@ public interface ISelfTestSubsystem
// EInvalidSelfTestException,
// EMissingSelfTestException;
-
/**
* Deregister an individual self test on the instances list AND
* on the "startup" list (note that the specified self test
* will be removed from each list).
* <P>
- *
+ *
* @param instanceName instance name of self test
* @exception EMissingSelfTestException subsystem has missing name
*/
// public void deregisterSelfTestAtStartup( String instanceName )
// throws EMissingSelfTestException;
-
-
////////////////////////////////////
// ISubsystem methods (inherited) //
////////////////////////////////////
@@ -353,4 +336,3 @@ public interface ISelfTestSubsystem
* public IConfigStore getConfigStore();
*/
}
-
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/SelfTestResources.java b/pki/base/common/src/com/netscape/certsrv/selftests/SelfTestResources.java
index c396c14b..c7c4d372 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/SelfTestResources.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/SelfTestResources.java
@@ -17,10 +17,8 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.certsrv.selftests;
-
import java.util.ListResourceBundle;
-
/**
* A class represents a resource bundle for Self Tests.
* <P>