Package org.shredzone.acme4j.connector
Class SessionProviderTest
java.lang.Object
org.shredzone.acme4j.connector.SessionProviderTest
Unit tests for
Session.provider()
. Requires that both enclosed
AcmeProvider
implementations are registered via Java's ServiceLoader
API when the test is run.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test that connecting to an acme URI will return anAcmeProvider
, and that the result is cached.void
There are two testing providers acceptingacme://example.net
.void
testNone()
There are no testing providers acceptingacme://example.org
.
-
Constructor Details
-
SessionProviderTest
public SessionProviderTest()
-
-
Method Details
-
testNone
There are no testing providers acceptingacme://example.org
. Test that connecting to this URI will result in anIllegalArgumentException
. -
testConnectURI
Test that connecting to an acme URI will return anAcmeProvider
, and that the result is cached.- Throws:
Exception
-
testDuplicate
There are two testing providers acceptingacme://example.net
. Test that connecting to this URI will result in anIllegalArgumentException
.
-