Class RestClientUtils
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.rest.RestClientUtils
-
public final class RestClientUtils extends Object
Provides REST client utility functions.- Author:
- aherscu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
successful(jakarta.ws.rs.core.Response.StatusType status)
Tests whether the status is successful.static boolean
unauthorized(jakarta.ws.rs.core.Response.StatusType status)
Tests whether the status is unauthorised.
-
-
-
Method Detail
-
successful
public static boolean successful(jakarta.ws.rs.core.Response.StatusType status)
Tests whether the status is successful.- Parameters:
status
- the REST status- Returns:
- true if the status belongs to
Response.Status.Family.SUCCESSFUL
-
unauthorized
public static boolean unauthorized(jakarta.ws.rs.core.Response.StatusType status)
Tests whether the status is unauthorised.- Parameters:
status
- the REST status- Returns:
- true if the status was
Response.Status.UNAUTHORIZED
-
-