diff --git a/src/main/java/api_assured/ApiUtilities.java b/src/main/java/api_assured/ApiUtilities.java index 59fe6d2..3a10ed4 100644 --- a/src/main/java/api_assured/ApiUtilities.java +++ b/src/main/java/api_assured/ApiUtilities.java @@ -19,6 +19,7 @@ import static utils.reflection.ReflectionUtilities.iterativeConditionalInvocation; @SuppressWarnings("unused") +@Deprecated(since = "1.7.4") public abstract class ApiUtilities extends Caller { public static Printer log = new Printer(ApiUtilities.class); diff --git a/src/main/java/api_assured/Caller.java b/src/main/java/api_assured/Caller.java index 66267f1..ab2caf6 100644 --- a/src/main/java/api_assured/Caller.java +++ b/src/main/java/api_assured/Caller.java @@ -8,13 +8,11 @@ import retrofit2.Call; import retrofit2.Response; import utils.*; -import utils.reflection.ReflectionUtilities; - import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Objects; - -import static utils.MappingUtilities.Json.*; +import static utils.mapping.MappingUtilities.Json.fromJsonString; +import static utils.mapping.MappingUtilities.Json.getJsonString; import static utils.reflection.ReflectionUtilities.getPreviousMethodName; import static utils.StringUtilities.Color.*; import static utils.reflection.ReflectionUtilities.isOfType; @@ -29,6 +27,7 @@ * @version 1.4.0 (Documented in 1.4.0, released in an earlier version) */ @SuppressWarnings("unused") +@Deprecated(since = "1.7.4") public abstract class Caller { /** @@ -175,7 +174,7 @@ private static Response getResponse(Call call, boolean printBody) thro * @return A deserialized error object instance of type {@code Model}. * @throws RuntimeException if there's an issue processing the error content or deserializing it. * - * @see MappingUtilities.Json#fromJsonString(String, Class) + * @see utils.mapping.MappingUtilities.Json#fromJsonString(String, Class) */ @SuppressWarnings("unchecked") private static ErrorModel getErrorObject(Response response, Class errorModel) throws JsonProcessingException { @@ -253,8 +252,8 @@ private static Response call( * @return A deserialized error model instance of type {@code ErrorModel} if a match is found. * @throws RuntimeException if none of the provided error models match the error content of the response. * - * @see MappingUtilities.Json#fromJsonString(String, Class) - * @see MappingUtilities.Json#getJsonStringFor(Object) + * @see utils.mapping.MappingUtilities.Json#fromJsonString(String, Class) + * @see utils.mapping.MappingUtilities.Json#getJsonStringFor(Object) * @see #getErrorObject(Response, Class) */ @SuppressWarnings("unchecked") diff --git a/src/main/java/api_assured/ResponsePair.java b/src/main/java/api_assured/ResponsePair.java index eb3135d..10fbb70 100644 --- a/src/main/java/api_assured/ResponsePair.java +++ b/src/main/java/api_assured/ResponsePair.java @@ -6,4 +6,5 @@ * @param expected Response-SuccessModel- * @param potential error body */ +@Deprecated(since = "1.7.4") public record ResponsePair(Response response, ErrorBody errorBody) { } diff --git a/src/main/java/api_assured/ServiceGenerator.java b/src/main/java/api_assured/ServiceGenerator.java index 57561ba..f888c26 100644 --- a/src/main/java/api_assured/ServiceGenerator.java +++ b/src/main/java/api_assured/ServiceGenerator.java @@ -37,6 +37,7 @@ * @version 1.4.0 (Documented in 1.4.0, released in version 1.0.0) */ @SuppressWarnings({"unused", "UnusedReturnValue"}) +@Deprecated(since = "1.7.4") public class ServiceGenerator { OkHttpClient client; diff --git a/src/main/java/api_assured/exceptions/FailedCallException.java b/src/main/java/api_assured/exceptions/FailedCallException.java index 90b33d4..507c63c 100644 --- a/src/main/java/api_assured/exceptions/FailedCallException.java +++ b/src/main/java/api_assured/exceptions/FailedCallException.java @@ -3,6 +3,7 @@ /** * This class represents an exception that is thrown when a call fails. */ +@Deprecated(since = "1.7.4") public class FailedCallException extends RuntimeException { /** diff --git a/src/main/java/api_assured/exceptions/JavaUtilitiesException.java b/src/main/java/api_assured/exceptions/JavaUtilitiesException.java index 05d10fc..3d1b94d 100644 --- a/src/main/java/api_assured/exceptions/JavaUtilitiesException.java +++ b/src/main/java/api_assured/exceptions/JavaUtilitiesException.java @@ -3,6 +3,7 @@ /** * This class represents an exception that is thrown when an error occurs in JavaUtilities. */ +@Deprecated(since = "1.7.4") public class JavaUtilitiesException extends RuntimeException { /**