Package org.shredzone.acme4j.challenge
Class ChallengeTest
java.lang.Object
org.shredzone.acme4j.challenge.ChallengeTest
Unit tests for
Challenge
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test that unmarshalling something different like a challenge fails.void
Test that an exception is thrown on challenge type mismatch.void
Test thatChallenge.prepareResponse(JSONBuilder)
contains the type.void
Test that a challenge can be triggered.void
Test that after unmarshaling, the challenge properties are set correctly.void
Test that a challenge is properly updated.void
Test that a challenge is properly updated, with Retry-After header.
-
Constructor Details
-
ChallengeTest
public ChallengeTest()
-
-
Method Details
-
testUnmarshal
Test that after unmarshaling, the challenge properties are set correctly. -
testRespond
Test thatChallenge.prepareResponse(JSONBuilder)
contains the type. -
testNotAcceptable
Test that an exception is thrown on challenge type mismatch. -
testTrigger
Test that a challenge can be triggered.- Throws:
Exception
-
testUpdate
Test that a challenge is properly updated.- Throws:
Exception
-
testUpdateRetryAfter
Test that a challenge is properly updated, with Retry-After header.- Throws:
Exception
-
testBadUnmarshall
Test that unmarshalling something different like a challenge fails.
-