Package org.shredzone.acme4j.it.pebble
Class PebbleITBase
java.lang.Object
org.shredzone.acme4j.it.pebble.PebbleITBase
- Direct Known Subclasses:
AccountIT
,OrderIT
,OrderWildcardIT
,SessionIT
Superclass for all Pebble related integration tests.
These tests require a running
Pebble ACME test server at
localhost port 14000. The host and port can be changed via the system property
pebbleHost
and pebblePort
respectively.
Also, a running pebble-challtestsrv is required to listen on localhost port 8055. The
server's base URL can be changed via the system property bammbammUrl
.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertIsPebbleUrl
(URL url) Asserts that the givenURL
is notnull
and refers to the Pebble server.protected void
cleanup
(PebbleITBase.CleanupCallback callback) protected KeyPair
Creates a fresh key pair.protected BammBammClient
protected URI
void
protected void
updateAuth
(Authorization auth) Safely updates the authorization, catching checked exceptions.protected void
updateOrder
(Order order) Safely updates the order, catching checked exceptions.
-
Constructor Details
-
PebbleITBase
public PebbleITBase()
-
-
Method Details
-
performCleanup
- Throws:
Exception
-
cleanup
-
pebbleURI
- Returns:
- The
URI
of the pebble server to test against.
-
getBammBammClient
- Returns:
BammBammClient
singleton instance.
-
createKeyPair
Creates a fresh key pair.- Returns:
- Created
KeyPair
, guaranteed to be unknown to the Pebble server
-
assertIsPebbleUrl
Asserts that the givenURL
is notnull
and refers to the Pebble server.- Parameters:
url
-URL
to assert
-
updateAuth
Safely updates the authorization, catching checked exceptions.- Parameters:
auth
-Authorization
to update
-
updateOrder
Safely updates the order, catching checked exceptions.- Parameters:
order
-Order
to update
-