public class HTTPTestUtil
extends Object
Constructor and Description |
---|
HTTPTestUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
invokeToHttpCode(String body,
String endpoint,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
static com.liferay.portal.kernel.json.JSONObject |
invokeToJSONObject(String body,
String endpoint,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
static <T extends Throwable> |
withCredentials(String emailAddress,
String password,
com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) |
public static int invokeToHttpCode(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception
public static com.liferay.portal.kernel.json.JSONObject invokeToJSONObject(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception
public static <T extends Throwable> void withCredentials(String emailAddress, String password, com.liferay.petra.function.UnsafeRunnable<T> unsafeRunnable) throws T extends Throwable
T extends Throwable