|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.openoces.ooapi.cert.OrganizationalOcesCertificateTest
public class OrganizationalOcesCertificateTest
This class implements junit tests specific to OCES employee certificates
| Field Summary | |
|---|---|
protected OrganizationalOcesCertificate |
c
|
protected java.security.cert.X509Certificate |
organizationalCertificate
|
| Constructor Summary | |
|---|---|
OrganizationalOcesCertificateTest()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testConstruction()
|
void |
testExtractedSubjectDN()
|
void |
testOcesIdExtraction()
|
void |
testOrganizationalOcesIdExtraction()
|
void |
testVerification()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.security.cert.X509Certificate organizationalCertificate
protected OrganizationalOcesCertificate c
| Constructor Detail |
|---|
public OrganizationalOcesCertificateTest()
| Method Detail |
|---|
public void testConstruction()
public void testOcesIdExtraction()
throws NonOcesCertificateException
NonOcesCertificateException
public void testOrganizationalOcesIdExtraction()
throws NonOcesCertificateException
NonOcesCertificateException
public void testVerification()
throws SignatureVerificationException,
CertificateHasExpiredException,
InternalException,
CertificateIsNotYetValidException,
CertificateRevokedException,
CRLExpiredException,
CRLNotYetValidException
SignatureVerificationException
CertificateHasExpiredException
InternalException
CertificateIsNotYetValidException
CertificateRevokedException
CRLExpiredException
CRLNotYetValidExceptionpublic void testExtractedSubjectDN()
protected void setUp()
throws java.security.cert.CertificateException,
java.io.IOException,
java.security.cert.CRLException,
CRLExpiredException,
CRLNotYetValidException
setUp in class junit.framework.TestCasejava.security.cert.CertificateException
java.io.IOException
java.security.cert.CRLException
CRLExpiredException
CRLNotYetValidExceptionprotected void tearDown()
tearDown in class junit.framework.TestCase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||