Package org.shredzone.acme4j
Class AuthorizationTest
java.lang.Object
org.shredzone.acme4j.AuthorizationTest
Unit tests for
Authorization
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test that an authorization can be deactivated.void
Test thatAuthorization.findChallenge(String)
fails on duplicate challenges.void
Test thatAuthorization.findChallenge(String)
finds challenges.void
Test thatAuthorization.findChallenge(Class)
finds challenges.void
Test lazy loading.void
Test that authorization is properly updated.void
Test that authorization is properly updated, with retry-after header set.void
Test that wildcard authorization are correct.
-
Constructor Details
-
AuthorizationTest
public AuthorizationTest()
-
-
Method Details
-
testFindChallenge
Test thatAuthorization.findChallenge(String)
finds challenges.- Throws:
IOException
-
testFindChallengeByType
Test thatAuthorization.findChallenge(Class)
finds challenges.- Throws:
IOException
-
testFailDuplicateChallenges
Test thatAuthorization.findChallenge(String)
fails on duplicate challenges. -
testUpdate
Test that authorization is properly updated.- Throws:
Exception
-
testWildcard
Test that wildcard authorization are correct.- Throws:
Exception
-
testLazyLoading
Test lazy loading.- Throws:
Exception
-
testUpdateRetryAfter
Test that authorization is properly updated, with retry-after header set.- Throws:
Exception
-
testDeactivate
Test that an authorization can be deactivated.- Throws:
Exception
-