Skip to content

Commit

Permalink
Feature: Organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Basfar committed Nov 23, 2023
1 parent c566d69 commit 32c493a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class OrganizationResponseData {
private List<PartnerConfigurations> partnerConfigurations;
private String createdAt;
private String updatedAt;

@SerializedName("_v")
private Integer v;

}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public void test_createOrganization() throws IOException, NovuNetworkException,
data.setPartnerConfigurations(List.of(partnerConfigurations));
data.setCreatedAt("createdAt");
data.setUpdatedAt("updatedAt");
data.setV(0);
organizationResponse.setData(data);

mockWebServer.enqueue(new MockResponse().setResponseCode(200).setBody(gson.toJson(organizationResponse)));
Expand Down Expand Up @@ -112,6 +113,7 @@ public void test_fetchAllOrganizations() throws IOException, NovuNetworkExceptio
data.setPartnerConfigurations(List.of(partnerConfigurations));
data.setCreatedAt("createdAt");
data.setUpdatedAt("updatedAt");
data.setV(0);
fetchOrganizationResponse.setData(List.of(data));
mockWebServer.enqueue(new MockResponse().setResponseCode(200).setBody(gson.toJson(fetchOrganizationResponse)));

Expand Down Expand Up @@ -164,6 +166,7 @@ public void test_fetchCurrentOrganization() throws IOException, NovuNetworkExcep
data.setPartnerConfigurations(List.of(partnerConfigurations));
data.setCreatedAt("createdAt");
data.setUpdatedAt("updatedAt");
data.setV(0);
organizationResponse.setData(data);

mockWebServer.enqueue(new MockResponse().setResponseCode(200).setBody(gson.toJson(organizationResponse)));
Expand Down

0 comments on commit 32c493a

Please sign in to comment.