diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2015-06-23 12:23:15 -0400 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2015-06-23 17:30:18 -0400 |
| commit | cc97f8628b23f8ea75308bb97a31307cb4f162b9 (patch) | |
| tree | 0e8eb0d56294eb7beedf0041f4ba6f8d9f0cf3fd /base/common | |
| parent | e1e1e1867c3665def4738530d5c36a1f9801fdb9 (diff) | |
| download | pki-cc97f8628b23f8ea75308bb97a31307cb4f162b9.tar.gz pki-cc97f8628b23f8ea75308bb97a31307cb4f162b9.tar.xz pki-cc97f8628b23f8ea75308bb97a31307cb4f162b9.zip | |
Fixed selftests log message.
The SelfTestSubsystem has been modified to display a 'successful'
message only if all tests have passed. If a test fails, it will
log a failure, subsequent tests will not be executed, and the
subsystem will shutdown immediately.
The runSelfTest() in various tests have been cleaned up to throw
the original exception to help troubleshooting. The unused
RAPresence test has been removed.
https://fedorahosted.org/pki/ticket/1249
Diffstat (limited to 'base/common')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/selftests/ISelfTest.java | 5 | ||||
| -rw-r--r-- | base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java b/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java index 24ad623e4..0ffc74b6b 100644 --- a/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java +++ b/base/common/src/com/netscape/certsrv/selftests/ISelfTest.java @@ -126,8 +126,7 @@ public interface ISelfTest { * <P> * * @param logger specifies logging subsystem - * @exception ESelfTestException self test exception + * @exception Exception self test exception */ - public void runSelfTest(ILogEventListener logger) - throws ESelfTestException; + public void runSelfTest(ILogEventListener logger) throws Exception; } diff --git a/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java b/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java index 214ee1764..29adde082 100644 --- a/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java +++ b/base/common/src/com/netscape/certsrv/selftests/ISelfTestSubsystem.java @@ -206,10 +206,9 @@ public interface ISelfTestSubsystem * <P> * * @exception EMissingSelfTestException subsystem has missing name - * @exception ESelfTestException self test exception + * @exception Exception self test exception */ - public void runSelfTestsAtStartup() - throws EMissingSelfTestException, ESelfTestException; + public void runSelfTestsAtStartup() throws Exception; // // methods associated with the list of self test instances |
