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