Skip to content
Snippets Groups Projects

fix: Change unauthorized to forbidden

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -78,14 +78,14 @@ public class TestCaseHelper {
/**
* Creates a EndpointTestCase object with the desired path and params.
* Used to test an unauthorized request. Status code 403 (Unauthorized) is
* Used to test an forbidden request. Status code 403 (Forbidden) is
* assumed.
*
* @param path the endpoint URL
* @param params the request path/query parameters
* @return the desired endpoint test case
*/
public static EndpointTestCase buildUnauthorizedCase(String path, String[] params) {
public static EndpointTestCase buildForbiddenCase(String path, String[] params) {
return EndpointTestCase.builder()
.setPath(path)
.setParams(Optional.of(params))
Loading