Rename internal util package in client module

Avoids a split package in Java 9.
Fixes issue #37.
pull/38/head
Richard Körber 2017-09-30 18:12:35 +02:00
parent 8f7b45a69f
commit a87e35b311
45 changed files with 97 additions and 97 deletions

View File

@ -14,7 +14,7 @@
package org.shredzone.acme4j; package org.shredzone.acme4j;
import static java.util.stream.Collectors.toList; import static java.util.stream.Collectors.toList;
import static org.shredzone.acme4j.util.AcmeUtils.parseTimestamp; import static org.shredzone.acme4j.toolbox.AcmeUtils.parseTimestamp;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URI; import java.net.URI;
@ -30,8 +30,8 @@ import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -25,7 +25,7 @@ import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -19,9 +19,9 @@ import java.net.URI;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSON.Array; import org.shredzone.acme4j.toolbox.JSON.Array;
import org.shredzone.acme4j.util.JSON.Value; import org.shredzone.acme4j.toolbox.JSON.Value;
/** /**
* Contains metadata related to the provider. * Contains metadata related to the provider.

View File

@ -16,7 +16,7 @@ package org.shredzone.acme4j;
import java.io.Serializable; import java.io.Serializable;
import java.net.URI; import java.net.URI;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
/** /**
* Represents a JSON Problem. * Represents a JSON Problem.

View File

@ -13,7 +13,7 @@
*/ */
package org.shredzone.acme4j; package org.shredzone.acme4j;
import static org.shredzone.acme4j.util.AcmeUtils.*; import static org.shredzone.acme4j.toolbox.AcmeUtils.*;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URI; import java.net.URI;
@ -36,8 +36,8 @@ import org.shredzone.acme4j.connector.ResourceIterator;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -22,7 +22,7 @@ import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.connector.Resource; import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeConflictException; import org.shredzone.acme4j.exception.AcmeConflictException;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -30,7 +30,7 @@ import org.shredzone.acme4j.challenge.TokenChallenge;
import org.shredzone.acme4j.connector.Resource; import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.provider.AcmeProvider; import org.shredzone.acme4j.provider.AcmeProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
/** /**
* A session stores the ACME server URI and the account's key pair. It also tracks * A session stores the ACME server URI and the account's key pair. It also tracks

View File

@ -26,8 +26,8 @@ import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -13,7 +13,7 @@
*/ */
package org.shredzone.acme4j.challenge; package org.shredzone.acme4j.challenge;
import static org.shredzone.acme4j.util.AcmeUtils.*; import static org.shredzone.acme4j.toolbox.AcmeUtils.*;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;

View File

@ -13,7 +13,7 @@
*/ */
package org.shredzone.acme4j.challenge; package org.shredzone.acme4j.challenge;
import static org.shredzone.acme4j.util.AcmeUtils.*; import static org.shredzone.acme4j.toolbox.AcmeUtils.*;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;

View File

@ -13,7 +13,7 @@
*/ */
package org.shredzone.acme4j.challenge; package org.shredzone.acme4j.challenge;
import static org.shredzone.acme4j.util.AcmeUtils.*; import static org.shredzone.acme4j.toolbox.AcmeUtils.*;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;

View File

@ -13,7 +13,7 @@
*/ */
package org.shredzone.acme4j.challenge; package org.shredzone.acme4j.challenge;
import static org.shredzone.acme4j.util.AcmeUtils.base64UrlEncode; import static org.shredzone.acme4j.toolbox.AcmeUtils.base64UrlEncode;
import java.security.PublicKey; import java.security.PublicKey;
@ -21,7 +21,7 @@ import org.jose4j.jwk.PublicJsonWebKey;
import org.jose4j.lang.JoseException; import org.jose4j.lang.JoseException;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
/** /**
* An extension of {@link Challenge} that handles challenges with a {@code token} and * An extension of {@link Challenge} that handles challenges with a {@code token} and

View File

@ -20,8 +20,8 @@ import java.util.Collection;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
/** /**
* Connects to the ACME server and offers different methods for invoking the API. * Connects to the ACME server and offers different methods for invoking the API.

View File

@ -13,7 +13,7 @@
*/ */
package org.shredzone.acme4j.connector; package org.shredzone.acme4j.connector;
import static org.shredzone.acme4j.util.AcmeUtils.keyAlgorithm; import static org.shredzone.acme4j.toolbox.AcmeUtils.keyAlgorithm;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
@ -52,9 +52,9 @@ import org.shredzone.acme4j.exception.AcmeRateLimitExceededException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.exception.AcmeServerException; import org.shredzone.acme4j.exception.AcmeServerException;
import org.shredzone.acme4j.exception.AcmeUnauthorizedException; import org.shredzone.acme4j.exception.AcmeUnauthorizedException;
import org.shredzone.acme4j.util.AcmeUtils; import org.shredzone.acme4j.toolbox.AcmeUtils;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -26,7 +26,7 @@ import org.shredzone.acme4j.AcmeResource;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
/** /**
* An {@link Iterator} that fetches a batch of URIs from the ACME server, and generates * An {@link Iterator} that fetches a batch of URIs from the ACME server, and generates

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.exception;
import java.util.Objects; import java.util.Objects;
import org.shredzone.acme4j.util.AcmeUtils; import org.shredzone.acme4j.toolbox.AcmeUtils;
/** /**
* An exception that is thrown when the ACME server returned an error. It contains * An exception that is thrown when the ACME server returned an error. It contains

View File

@ -31,7 +31,7 @@ import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.connector.DefaultConnection; import org.shredzone.acme4j.connector.DefaultConnection;
import org.shredzone.acme4j.connector.HttpConnector; import org.shredzone.acme4j.connector.HttpConnector;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
/** /**
* Abstract implementation of {@link AcmeProvider}. It consists of a challenge * Abstract implementation of {@link AcmeProvider}. It consists of a challenge

View File

@ -20,7 +20,7 @@ import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.challenge.Challenge; import org.shredzone.acme4j.challenge.Challenge;
import org.shredzone.acme4j.connector.Connection; import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
/** /**
* An {@link AcmeProvider} provides methods to be used for communicating with the ACME * An {@link AcmeProvider} provides methods to be used for communicating with the ACME

View File

@ -11,7 +11,7 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.net.IDN; import java.net.IDN;

View File

@ -11,10 +11,10 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.joining;
import static org.shredzone.acme4j.util.AcmeUtils.parseTimestamp; import static org.shredzone.acme4j.toolbox.AcmeUtils.parseTimestamp;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

View File

@ -11,9 +11,9 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import static org.shredzone.acme4j.util.AcmeUtils.base64UrlEncode; import static org.shredzone.acme4j.toolbox.AcmeUtils.base64UrlEncode;
import java.security.Key; import java.security.Key;
import java.security.PublicKey; import java.security.PublicKey;

View File

@ -23,7 +23,7 @@ import java.io.ObjectOutputStream;
import java.net.URI; import java.net.URI;
import org.junit.Test; import org.junit.Test;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link AcmeResource}. * Unit tests for {@link AcmeResource}.

View File

@ -15,8 +15,8 @@ package org.shredzone.acme4j;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.shredzone.acme4j.util.AcmeUtils.parseTimestamp; import static org.shredzone.acme4j.toolbox.AcmeUtils.parseTimestamp;
import static org.shredzone.acme4j.util.TestUtils.*; import static org.shredzone.acme4j.toolbox.TestUtils.*;
import java.io.IOException; import java.io.IOException;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
@ -34,8 +34,8 @@ import org.shredzone.acme4j.challenge.TlsSni02Challenge;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.provider.TestableConnectionProvider; import org.shredzone.acme4j.provider.TestableConnectionProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
/** /**
* Unit tests for {@link Authorization}. * Unit tests for {@link Authorization}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.shredzone.acme4j.util.TestUtils.*; import static org.shredzone.acme4j.toolbox.TestUtils.*;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -31,8 +31,8 @@ import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.provider.TestableConnectionProvider; import org.shredzone.acme4j.provider.TestableConnectionProvider;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Certificate}. * Unit tests for {@link Certificate}.

View File

@ -20,8 +20,8 @@ import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.net.URI; import java.net.URI;
import org.junit.Test; import org.junit.Test;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Problem}. * Unit tests for {@link Problem}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.*; import static org.shredzone.acme4j.toolbox.TestUtils.*;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
@ -25,7 +25,7 @@ import org.junit.Test;
import org.shredzone.acme4j.connector.Resource; import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.provider.TestableConnectionProvider; import org.shredzone.acme4j.provider.TestableConnectionProvider;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
/** /**
* Unit tests for {@link RegistrationBuilder}. * Unit tests for {@link RegistrationBuilder}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.shredzone.acme4j.util.TestUtils.*; import static org.shredzone.acme4j.toolbox.TestUtils.*;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -42,9 +42,9 @@ import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.provider.AcmeProvider; import org.shredzone.acme4j.provider.AcmeProvider;
import org.shredzone.acme4j.provider.TestableConnectionProvider; import org.shredzone.acme4j.provider.TestableConnectionProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Registration}. * Unit tests for {@link Registration}.

View File

@ -16,7 +16,7 @@ package org.shredzone.acme4j;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
@ -30,9 +30,9 @@ import org.shredzone.acme4j.challenge.Http01Challenge;
import org.shredzone.acme4j.connector.Resource; import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.provider.AcmeProvider; import org.shredzone.acme4j.provider.AcmeProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit test for {@link Session}. * Unit test for {@link Session}.

View File

@ -15,8 +15,8 @@ package org.shredzone.acme4j.challenge;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.shredzone.acme4j.util.AcmeUtils.parseTimestamp; import static org.shredzone.acme4j.toolbox.AcmeUtils.parseTimestamp;
import static org.shredzone.acme4j.util.TestUtils.*; import static org.shredzone.acme4j.toolbox.TestUtils.*;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -37,9 +37,9 @@ import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.provider.TestableConnectionProvider; import org.shredzone.acme4j.provider.TestableConnectionProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Challenge}. * Unit tests for {@link Challenge}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.challenge;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -24,8 +24,8 @@ import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.Status; import org.shredzone.acme4j.Status;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Dns01Challenge}. * Unit tests for {@link Dns01Challenge}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.challenge;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -25,8 +25,8 @@ import org.junit.Test;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.Status; import org.shredzone.acme4j.Status;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Http01Challenge}. * Unit tests for {@link Http01Challenge}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.challenge;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -25,8 +25,8 @@ import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.Status; import org.shredzone.acme4j.Status;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link OutOfBand01Challenge}. * Unit tests for {@link OutOfBand01Challenge}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.challenge;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -24,8 +24,8 @@ import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.Status; import org.shredzone.acme4j.Status;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link TlsSni01Challenge}. * Unit tests for {@link TlsSni01Challenge}.

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.challenge;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.io.IOException; import java.io.IOException;
@ -24,8 +24,8 @@ import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.Status; import org.shredzone.acme4j.Status;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link TlsSni02Challenge}. * Unit tests for {@link TlsSni02Challenge}.

View File

@ -47,9 +47,9 @@ import org.shredzone.acme4j.exception.AcmeNetworkException;
import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeProtocolException;
import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeRetryAfterException;
import org.shredzone.acme4j.exception.AcmeServerException; import org.shredzone.acme4j.exception.AcmeServerException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link DefaultConnection}. * Unit tests for {@link DefaultConnection}.

View File

@ -19,8 +19,8 @@ import java.util.Collection;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
/** /**
* Dummy implementation of {@link Connection} that always fails. Single methods are * Dummy implementation of {@link Connection} that always fails. Single methods are

View File

@ -15,7 +15,7 @@ package org.shredzone.acme4j.connector;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.shredzone.acme4j.util.TestUtils.isIntArrayContainingInAnyOrder; import static org.shredzone.acme4j.toolbox.TestUtils.isIntArrayContainingInAnyOrder;
import java.io.IOException; import java.io.IOException;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
@ -31,8 +31,8 @@ import org.shredzone.acme4j.Authorization;
import org.shredzone.acme4j.Session; import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.provider.TestableConnectionProvider; import org.shredzone.acme4j.provider.TestableConnectionProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSONBuilder;
/** /**
* Unit test for {@link ResourceIterator}. * Unit test for {@link ResourceIterator}.

View File

@ -27,8 +27,8 @@ import org.shredzone.acme4j.Session;
import org.shredzone.acme4j.challenge.Challenge; import org.shredzone.acme4j.challenge.Challenge;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.provider.AcmeProvider; import org.shredzone.acme4j.provider.AcmeProvider;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link Session#provider()}. Requires that both enclosed * Unit tests for {@link Session#provider()}. Requires that both enclosed

View File

@ -17,7 +17,7 @@ import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import static org.shredzone.acme4j.util.TestUtils.getJsonAsObject; import static org.shredzone.acme4j.toolbox.TestUtils.getJsonAsObject;
import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs; import static uk.co.datumedge.hamcrest.json.SameJSONAs.sameJSONAs;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
@ -34,8 +34,8 @@ import org.shredzone.acme4j.challenge.TlsSni02Challenge;
import org.shredzone.acme4j.connector.Connection; import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.connector.DefaultConnection; import org.shredzone.acme4j.connector.DefaultConnection;
import org.shredzone.acme4j.connector.HttpConnector; import org.shredzone.acme4j.connector.HttpConnector;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Unit tests for {@link AbstractAcmeProvider}. * Unit tests for {@link AbstractAcmeProvider}.

View File

@ -24,9 +24,9 @@ import org.shredzone.acme4j.connector.Connection;
import org.shredzone.acme4j.connector.DummyConnection; import org.shredzone.acme4j.connector.DummyConnection;
import org.shredzone.acme4j.connector.Resource; import org.shredzone.acme4j.connector.Resource;
import org.shredzone.acme4j.exception.AcmeException; import org.shredzone.acme4j.exception.AcmeException;
import org.shredzone.acme4j.util.JSONBuilder; import org.shredzone.acme4j.toolbox.JSON;
import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.toolbox.JSONBuilder;
import org.shredzone.acme4j.util.TestUtils; import org.shredzone.acme4j.toolbox.TestUtils;
/** /**
* Test implementation of {@link AcmeProvider}. It also implements a dummy implementation * Test implementation of {@link AcmeProvider}. It also implements a dummy implementation

View File

@ -11,11 +11,11 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.shredzone.acme4j.util.AcmeUtils.*; import static org.shredzone.acme4j.toolbox.AcmeUtils.*;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;

View File

@ -11,7 +11,7 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;

View File

@ -11,7 +11,7 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*; import static org.junit.Assert.*;

View File

@ -11,7 +11,7 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/ */
package org.shredzone.acme4j.util; package org.shredzone.acme4j.toolbox;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream; import java.io.FileOutputStream;

View File

@ -14,7 +14,7 @@
package org.shredzone.acme4j.util; package org.shredzone.acme4j.util;
import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.joining;
import static org.shredzone.acme4j.util.AcmeUtils.toAce; import static org.shredzone.acme4j.toolbox.AcmeUtils.toAce;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;