Package org.shredzone.acme4j.util
Class CSRBuilderTest
java.lang.Object
org.shredzone.acme4j.util.CSRBuilderTest
Unit tests for
CSRBuilder
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setup()
Add provider, create some key pairsvoid
Checks that addValue behaves correctly in dependence of the attributes being added.void
Test if the generated CSR is plausible using a ECDSA key.void
Test if the generated CSR is plausible.void
Make sure an exception is thrown when no domain is set.void
Make sure all getters will fail if the CSR is not signed.void
Make sure an exception is thrown when an unknown identifier type is used.
-
Constructor Details
-
CSRBuilderTest
public CSRBuilderTest()
-
-
Method Details
-
setup
Add provider, create some key pairs -
testGenerate
Test if the generated CSR is plausible.- Throws:
IOException
-
testECCGenerate
Test if the generated CSR is plausible using a ECDSA key.- Throws:
IOException
-
testNoDomain
Make sure an exception is thrown when no domain is set. -
testUnknownType
Make sure an exception is thrown when an unknown identifier type is used. -
testNoSign
Make sure all getters will fail if the CSR is not signed. -
testAddAttrValues
Checks that addValue behaves correctly in dependence of the attributes being added. If a common name is set, it should be handled in the same way when it's added by usingaddDomain
-