|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
pk.edu.niit.clarens.test.CertificateBlockTest
Tests of the class that manage certificate pem blocks.
CertificateBlock| Constructor Summary | |
CertificateBlockTest(java.lang.String s)
Create a named test case. |
|
| Method Summary | |
void |
testCertFileWithJunk()
Read a certificate from a PEM file that contains text before the PEM header. |
void |
testCertReadOfKeyStream()
Attempt to read non-certificate PEM data into a certificate. |
void |
testCertReadOfKeyString()
Attempt to read non-certificate PEM data into a certificate. |
void |
testCertStream()
Read a certificate from a stream of data. |
void |
testCertStreamWithJunk()
Read a certificate from a PEM file that contains text before the PEM header. |
void |
testCertString()
Read a certificate from string data. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 |
| Constructor Detail |
public CertificateBlockTest(java.lang.String s)
s - The name of the test to construct.| Method Detail |
public void testCertString()
throws java.lang.Exception
java.lang.Exception - Any thrown exceptions will cause the test to fail.
public void testCertStream()
throws java.lang.Exception
java.lang.Exception - Any thrown exceptions will cause the test to fail.
public void testCertFileWithJunk()
throws java.lang.Exception
CertificateBlock class
and throws an exception when attempted. This test case checks for
that exception.
java.lang.Exception - Any thrown exceptions will cause the test to fail.
public void testCertStreamWithJunk()
throws java.lang.Exception
CertificateBlock class
and throws an exception when attempted. This test case checks for
that exception.
java.lang.Exception - Any thrown exceptions will cause the test to fail.
public void testCertReadOfKeyString()
throws java.lang.Exception
java.lang.Exception - Any thrown exceptions will cause the test to fail.
public void testCertReadOfKeyStream()
throws java.lang.Exception
java.lang.Exception - Any thrown exceptions will cause the test to fail.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||