public class EPPLaunchTst
extends junit.framework.TestCase
| Constructor and Description |
|---|
EPPLaunchTst(java.lang.String name)
Creates a new EPPLaunchTst object.
|
| Modifier and Type | Method and Description |
|---|---|
static java.security.cert.PKIXParameters |
loadPKIXParameters(java.lang.String aTrustStoreName,
java.util.List<java.lang.String> aCrls)
Loads the trust store file and the Certificate Revocation List (CRL) file
into the
PKIXParameters used to verify the certificate chain
and verify the certificate against the CRL. |
static java.security.PublicKey |
loadPublicKey(java.lang.String aKeyStoreName,
java.lang.String aPublicKeyAlias)
Loads the public key used to verify a digital signature signed with the
associated private key, loaded by
loadPrivateKeyEntry(String, String, String). |
static void |
main(java.lang.String[] args)
Main method for running tests using stand alone program.
|
static void |
setNumIterations(long aNumIterations)
Sets the number of iterations to run per test.
|
protected void |
setUp()
JUNIT
setUp method, which sets the default client Id to
"theRegistrar" and initializes the EPPDomainMapFactory with
the EPPCodec. |
static junit.framework.Test |
suite()
JUNIT
suite static method, which returns the tests
associated with EPPLaunchTst. |
protected void |
tearDown()
JUNIT
tearDown, which currently does nothing. |
void |
testActiveSMDs()
Read and validate the active SMD's.
|
void |
testInvalidSMDs()
Read and ensure invalid SMD's do not pass validation.
|
void |
testLaunchAvailabilityCheckForm()
Tests the
testLaunchAvailabilityCheckForm check command extension. |
void |
testLaunchClaimsCheckForm()
Tests the
testLaunchClaimsCheckForm check command extension. |
void |
testLaunchCreateCodeMark()
Tests the
EPPLaunchCreate create command extension with use
of the code and mark in Sunrise Create Form. |
void |
testLaunchCreateGeneric()
Tests the
EPPLaunchCreate create command extension with use
of the Generic Create Form:Test create command for landrush with no type defined Test create command for a landrush application Test create command for a landrush registration |
void |
testLaunchCreateNotice()
Tests the
EPPLaunchCreate create command extension with use
of the notice information in Claims Create Form. |
void |
testLaunchCreateSignedMark()
Tests the
EPPLaunchCreate create command extension with use
of the code and mark in Sunrise Create Form. |
void |
testLaunchCreData()
Tests the
EPPLaunchCreData create response extension. |
void |
testLaunchDelete()
Tests the
EPPLaunchDelete delete command extension. |
void |
testLaunchInfData()
Tests the
EPPLaunchInfo info command extension. |
void |
testLaunchInfo()
Tests the
EPPLaunchInfo info command extension. |
void |
testLaunchTrademarkCheckForm()
Tests the
testLaunchTrademarkCheckForm check command extension. |
void |
testLaunchUpdate()
Tests the
EPPLaunchUpdate update command extension. |
void |
testMark()
Tests the
EPPMark class. |
void |
testRevokedCertSMDs()
Read and ensure SMD's signed by revoked certificate do not pass
validation.
|
void |
testRevokedSMDs()
Read and ensure revoked SMD's are valid and are in the revocation list.
|
void |
testSignedMark()
Tests the
EPPSignedMark class. |
void |
testTrademarkHolderEnglishActive()
Tests the
EPPSignedMark class using the exact attributes
defined in the SMD sample Trademark-Holder-English-Active.smd. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failpublic EPPLaunchTst(java.lang.String name)
name - Name of test to executepublic void testSignedMark()
EPPSignedMark class. The tests include the
following:public void testTrademarkHolderEnglishActive()
EPPSignedMark class using the exact attributes
defined in the SMD sample Trademark-Holder-English-Active.smd.public void testLaunchInfo()
EPPLaunchInfo info command extension. The tests
include the following:public void testLaunchInfData()
EPPLaunchInfo info command extension. The tests
include the following:public void testLaunchUpdate()
EPPLaunchUpdate update command extension. The
tests include the following:public void testLaunchDelete()
EPPLaunchDelete delete command extension. The
tests include the following:public void testLaunchClaimsCheckForm()
testLaunchClaimsCheckForm check command extension. The tests
include the following:public void testLaunchAvailabilityCheckForm()
testLaunchAvailabilityCheckForm check command extension. The tests
include the following:public void testLaunchTrademarkCheckForm()
testLaunchTrademarkCheckForm check command extension. The tests
include the following:public void testLaunchCreateCodeMark()
EPPLaunchCreate create command extension with use
of the code and mark in Sunrise Create Form. The tests include the
following:public void testLaunchCreateGeneric()
EPPLaunchCreate create command extension with use
of the Generic Create Form:public void testLaunchCreateSignedMark()
EPPLaunchCreate create command extension with use
of the code and mark in Sunrise Create Form. The tests include the
following:public void testLaunchCreateNotice()
EPPLaunchCreate create command extension with use
of the notice information in Claims Create Form. The tests include the
following:public void testLaunchCreData()
EPPLaunchCreData create response extension. The
tests include the following:public void testMark()
EPPMark class. The tests include the following:public void testActiveSMDs()
public void testRevokedCertSMDs()
public void testInvalidSMDs()
public void testRevokedSMDs()
protected void setUp()
setUp method, which sets the default client Id to
"theRegistrar" and initializes the EPPDomainMapFactory with
the EPPCodec.setUp in class junit.framework.TestCaseprotected void tearDown()
tearDown, which currently does nothing.tearDown in class junit.framework.TestCasepublic static junit.framework.Test suite()
suite static method, which returns the tests
associated with EPPLaunchTst.Junit testspublic static void main(java.lang.String[] args)
args - Command line argumentspublic static void setNumIterations(long aNumIterations)
aNumIterations - number of iterations to run per testpublic static java.security.cert.PKIXParameters loadPKIXParameters(java.lang.String aTrustStoreName,
java.util.List<java.lang.String> aCrls)
throws java.lang.Exception
PKIXParameters used to verify the certificate chain
and verify the certificate against the CRL. Both the Java Trust Store is
loaded with the trusted root CA certificates (trust anchors) and the CRL
file is attempted to be loaded to identify the revoked certificates. If
the CRL file is not found, then no CRL checking will be done.aTrustStoreName - Trust store file nameaCrls - List of Certificate Revocation List (CRL) file namesPKIXParameters instance.java.lang.Exception - Error initializing the PKIX parameterspublic static java.security.PublicKey loadPublicKey(java.lang.String aKeyStoreName,
java.lang.String aPublicKeyAlias)
throws java.lang.Exception
loadPrivateKeyEntry(String, String, String).aKeyStoreName - Java Keystore containing the certificateaPublicKeyAlias - Java Keystore alias of the trustedCertEntry
containing the public keyPublicKey instancejava.lang.Exception - Error loading the public key