Skip to content

Commit f0bc0e4

Browse files
authored
Merge pull request #20 from gofynd/FPCO-24112-update-fdk--main
Use latest fdk
2 parents 1078fb6 + 76e4ad7 commit f0bc0e4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<retrofit.version>2.3.0</retrofit.version>
2424
<okhttp3.version>3.14.7</okhttp3.version>
2525
<fdk-extension.version>0.6.5</fdk-extension.version>
26-
<fdk-client.version>1.4.7</fdk-client.version>
26+
<fdk-client.version>1.4.13</fdk-client.version>
2727
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
2828
</properties>
2929

src/main/java/com/fynd/example/java/controller/PlatformController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class PlatformController extends BasePlatformController {
2222
public CatalogPlatformModels.ProductListingResponseV2 getProducts(HttpServletRequest request) {
2323
try {
2424
PlatformClient platformClient = (PlatformClient) request.getAttribute("platformClient");
25-
return platformClient.catalog.getProducts(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), "", Collections.emptyList(), 1, 10);
25+
return platformClient.catalog.getProducts(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), "", "", Collections.emptyList(), "", Collections.emptyList(), 1, 10, "number", "latest", "");
2626

2727
} catch (Exception e) {
2828
System.out.println(e.getMessage());

src/test/java/com/fynd/example/java/controller/PlatformControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ void testGetAppProducts_Exception() throws FDKServerResponseError, FDKException
7171
@Test
7272
void testGetProducts_Success() throws Exception {
7373
CatalogPlatformModels.ProductListingResponseV2 mockResponse = new CatalogPlatformModels.ProductListingResponseV2();
74-
when(catalogPlatformService.getProducts(anyList(), anyList(), anyList(), anyList(), anyList(), anyString(), anyList(), anyInt(), anyInt()))
74+
when(catalogPlatformService.getProducts(anyList(), anyList(), anyList(), anyList(), anyList(), anyString(), anyString(), anyList(), anyString(), anyList(), anyInt(), anyInt(), anyString(), anyString(), anyString()))
7575
.thenReturn(mockResponse);
7676
CatalogPlatformModels.ProductListingResponseV2 response = platformController.getProducts(request);
7777
assertEquals(mockResponse, response);
7878
}
7979

8080
@Test
8181
void testGetProducts_Exception() throws FDKServerResponseError, FDKException {
82-
when(catalogPlatformService.getProducts(anyList(), anyList(), anyList(), anyList(), anyList(), anyString(), anyList(), anyInt(), anyInt()))
82+
when(catalogPlatformService.getProducts(anyList(), anyList(), anyList(), anyList(), anyList(), anyString(), anyString(), anyList(), anyString(), anyList(), anyInt(), anyInt(), anyString(), anyString(), anyString()))
8383
.thenThrow(new RuntimeException("Error"));
8484
RuntimeException exception = assertThrows(RuntimeException.class, () -> {
8585
platformController.getProducts(request);

0 commit comments

Comments
 (0)