From aef545a638a0d2b441c74d6533f67f85350a7899 Mon Sep 17 00:00:00 2001 From: Enes Kutay SEZEN Date: Mon, 11 Sep 2023 17:50:21 -0400 Subject: [PATCH] Update error message --- .../java/io/constructor/client/ConstructorIOBrowseTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/constructorio-client/src/test/java/io/constructor/client/ConstructorIOBrowseTest.java b/constructorio-client/src/test/java/io/constructor/client/ConstructorIOBrowseTest.java index 71c68616..f9731fc4 100644 --- a/constructorio-client/src/test/java/io/constructor/client/ConstructorIOBrowseTest.java +++ b/constructorio-client/src/test/java/io/constructor/client/ConstructorIOBrowseTest.java @@ -491,9 +491,7 @@ public void BrowseShouldReturnAResultWithOffset() throws Exception { @Test public void BrowseShouldReturnErrorWithPageAndOffset() throws Exception { thrown.expect(ConstructorException.class); - thrown.expectMessage( - "[HTTP 400] You've used both 'page' and 'offset' parameters for pagination. Please," - + " use just one of them"); + thrown.expectMessage("[HTTP 400] offset, page are mutually exclusive"); ConstructorIO constructor = new ConstructorIO("", apiKey, true, null); UserInfo userInfo = new UserInfo(3, "c62a-2a09-faie"); BrowseRequest request = new BrowseRequest("Brand", "XYZ");