From 32c493ad365b843a3823bfef3110e3aef951e0ec Mon Sep 17 00:00:00 2001 From: basfar Date: Thu, 23 Nov 2023 18:28:18 +0000 Subject: [PATCH] Feature: Organization --- .../api/organizations/responses/OrganizationResponseData.java | 3 ++- .../co/novu/api/organizations/OrganizationHandlerTest.java | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/co/novu/api/organizations/responses/OrganizationResponseData.java b/src/main/java/co/novu/api/organizations/responses/OrganizationResponseData.java index f3cacac..fe2fdec 100644 --- a/src/main/java/co/novu/api/organizations/responses/OrganizationResponseData.java +++ b/src/main/java/co/novu/api/organizations/responses/OrganizationResponseData.java @@ -17,6 +17,7 @@ public class OrganizationResponseData { private List partnerConfigurations; private String createdAt; private String updatedAt; - + @SerializedName("_v") + private Integer v; } diff --git a/src/test/java/co/novu/api/organizations/OrganizationHandlerTest.java b/src/test/java/co/novu/api/organizations/OrganizationHandlerTest.java index 17e2ddc..4d149e4 100644 --- a/src/test/java/co/novu/api/organizations/OrganizationHandlerTest.java +++ b/src/test/java/co/novu/api/organizations/OrganizationHandlerTest.java @@ -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))); @@ -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))); @@ -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)));