| java.security.cert.X509CRLSelectorTest
X509CRLSelectorTest | public class X509CRLSelectorTest extends TestCase (Code) | | |
Method Summary | |
public static void | main(String[] args) | public static Test | suite() | public void | testAddIssuer() addIssuer(X500Principal issuer) method testing. | public void | testAddIssuerName1() addIssuerName(String name) method testing. | public void | testAddIssuerName2() addIssuerName(byte[] name) method testing. | public void | testClone() clone() method testing. | public void | testGetDateAndTime() getDateAndTime() method testing. | public void | testGetIssuerNames() getIssuerNames() method testing. | public void | testGetIssuers() getIssuers() method testing. | public void | testGetMaxCRL() getMaxCRL() method testing. | public void | testGetMinCRL() getMinCRL() method testing. | public void | testMatch() match(CRL crl) method testing. | public void | testSetDateAndTime() setDateAndTime(Date dateAndTime) method testing. | public void | testSetIssuerNames() setIssuerNames(Collection > names) method testing. | public void | testSetIssuers() setIssuers(Collection issuers) method testing. | public void | testSetMaxCRLNumber() setMaxCRLNumber(BigInteger maxCRL) method testing.
Tests if CRLs with any crl number value match the selector in the case of
null crlNumber criteria, if specified maxCRL value matches the selector,
and if CRL with inappropriate crlNumber value does not match the selector. | public void | testSetMinCRLNumber() setMinCRLNumber(BigInteger minCRL) method testing.
Tests if CRLs with any crl number value match the selector in the case of
null crlNumber criteria, if specified minCRL value matches the selector,
and if CRL with inappropriate crlNumber value does not match the selector. | public void | testToString() |
suite | public static Test suite()(Code) | | |
testAddIssuer | public void testAddIssuer()(Code) | | addIssuer(X500Principal issuer) method testing.
Tests if CRLs with specified issuers match the selector,
and if not specified issuer does not match the selector.
|
testAddIssuerName1 | public void testAddIssuerName1()(Code) | | addIssuerName(String name) method testing.
Tests if CRLs with specified issuers match the selector,
and if not specified issuer does not match the selector.
|
testAddIssuerName2 | public void testAddIssuerName2()(Code) | | addIssuerName(byte[] name) method testing.
Tests if CRLs with specified issuers match the selector,
and if not specified issuer does not match the selector.
|
testClone | public void testClone()(Code) | | clone() method testing.
Tests if the selector is cloned correctly: the crl which matche to
the initial selector should match to the clone and the change of clone
should not cause the change of initial selector.
|
testGetDateAndTime | public void testGetDateAndTime()(Code) | | getDateAndTime() method testing.
Tests if the method return null in the case of not specified dateAndTime
criteria, and if the returned value corresponds to the specified one.
|
testGetIssuerNames | public void testGetIssuerNames()(Code) | | getIssuerNames() method testing.
Tests if the method return null in the case of not specified issuers,
if the returned collection corresponds to the specified issuers.
|
testGetIssuers | public void testGetIssuers() throws Exception(Code) | | getIssuers() method testing.
Tests if the method return null in the case of not specified issuers,
if the returned collection corresponds to the specified issuers and
this collection is unmodifiable.
|
testGetMaxCRL | public void testGetMaxCRL()(Code) | | getMaxCRL() method testing.
Tests if the method return null in the case of not specified maxCRL
criteria, and if the returned value corresponds to the specified one.
|
testGetMinCRL | public void testGetMinCRL()(Code) | | getMinCRL() method testing.
Tests if the method return null in the case of not specified minCRL
criteria, and if the returned value corresponds to the specified one.
|
testMatch | public void testMatch()(Code) | | match(CRL crl) method testing.
Tests if the null object matches to the selector or not.
|
testSetDateAndTime | public void testSetDateAndTime()(Code) | | setDateAndTime(Date dateAndTime) method testing.
Tests if CRLs with any update dates match the selector in the case of
null dateAndTime criteria, if correct dates match and incorrect
do not match the selector.
|
testSetIssuerNames | public void testSetIssuerNames()(Code) | | setIssuerNames(Collection > names) method testing.
Tests if CRLs with any issuers match the selector in the case of
null issuerNames criteria, if specified issuers match the selector,
if not specified issuer does not match the selector, and if the
internal collection of issuer names is copied during initialization.
|
testSetIssuers | public void testSetIssuers()(Code) | | setIssuers(Collection issuers) method testing.
Tests if CRLs with any issuers match the selector in the case of
null issuerNames criteria, if specified issuers match the selector,
and if not specified issuer does not match the selector.
|
testSetMaxCRLNumber | public void testSetMaxCRLNumber()(Code) | | setMaxCRLNumber(BigInteger maxCRL) method testing.
Tests if CRLs with any crl number value match the selector in the case of
null crlNumber criteria, if specified maxCRL value matches the selector,
and if CRL with inappropriate crlNumber value does not match the selector.
|
testSetMinCRLNumber | public void testSetMinCRLNumber()(Code) | | setMinCRLNumber(BigInteger minCRL) method testing.
Tests if CRLs with any crl number value match the selector in the case of
null crlNumber criteria, if specified minCRL value matches the selector,
and if CRL with inappropriate crlNumber value does not match the selector.
|
testToString | public void testToString()(Code) | | |
|
|