Skip to content

Commit

Permalink
Improve variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Avishka-Shamendra committed Sep 23, 2024
1 parent 662a242 commit 01a7917
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ public void testDocumentContentSearch() throws Exception {
public void testContentSearchWithAccessControl() throws Exception {
// Set API publisher access control to role1
HttpResponse httpResponse = restAPIPublisher.getAPI(apiId);
Gson g = new Gson();
APIDTO apiDto = g.fromJson(httpResponse.getData(), APIDTO.class);
APIDTO apiDto = new Gson().fromJson(httpResponse.getData(), APIDTO.class);

apiDto.setAccessControl(APIDTO.AccessControlEnum.RESTRICTED);
List<String> roles = new ArrayList<>();
Expand Down Expand Up @@ -310,8 +309,7 @@ public void testContentSearchWithStoreVisibility() throws Exception {

// Set store visibility to role1
HttpResponse httpResponse = restAPIPublisher.getAPI(apiId);
Gson g = new Gson();
APIDTO apiDto = g.fromJson(httpResponse.getData(), APIDTO.class);
APIDTO apiDto = new Gson().fromJson(httpResponse.getData(), APIDTO.class);
apiDto.setAccessControl(APIDTO.AccessControlEnum.NONE);

List<String> roles = new ArrayList<>();
Expand Down

0 comments on commit 01a7917

Please sign in to comment.