package org.superdev.coddy.application.utils;

public class TestUtils {

    private static final String SERVER_HOST = "localhost";

    private static final int SERVER_PORT = 8888;

    private static final String API_PREFIX = "/api/v1";

    private TestUtils() {

    }

    public static String getUrl(final String endpoint) {
        return "http://" + SERVER_HOST + ":" + SERVER_PORT + API_PREFIX + endpoint;
    }

}

@@ -40,16 +40,126 @@
 utils;%0A%0A
+import com.fasterxml.jackson.databind.ObjectMapper;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0A
 public c
@@ -525,10 +525,856 @@
 %0A    %7D%0A%0A
+    /**%0A     * Method to deserialize JSON content from given json file into given Java type.%0A     *%0A     * @param jsonFile the json file to read%0A     * @param object   the object mapped to the json file%0A     * @param %3CT%3E      the type of the object%0A     * @return an object instance by the data contains inside the json file%0A     * @throws IOException if the file doesn't exist%0A     */%0A    public static %3CT%3E T getObjecFromJson(final String jsonFile, Class%3CT%3E object) throws IOException %7B%0A        InputStream stream = null;%0A        try %7B%0A            ObjectMapper mapper = new ObjectMapper();%0A            stream = TestUtils.class.getClassLoader().getResourceAsStream(jsonFile);%0A            return mapper.readValue(stream, object);%0A        %7D finally %7B%0A            if (stream != null) %7B%0A                stream.close();%0A            %7D%0A        %7D%0A    %7D%0A%0A
 %7D%0A

add utils method do get object from json files