Skip to content

Commit 1ceca19

Browse files
committed
Version Bump
1 parent f05af59 commit 1ceca19

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

constructorio-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>io.constructor.client</groupId>
55
<artifactId>constructorio-client</artifactId>
66
<packaging>jar</packaging>
7-
<version>5.9.0</version>
7+
<version>5.10.0</version>
88
<name>constructorio-client</name>
99
<url>https://github.com/Constructor-io/constructorio-java</url>
1010
<dependencies>

constructorio-client/src/main/java/io/constructor/client/ConstructorIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ protected static String getResponseBody(Response response) throws ConstructorExc
10921092
* @return version number
10931093
*/
10941094
protected String getVersion() {
1095-
return "ciojava-5.9.0";
1095+
return "ciojava-5.10.0";
10961096
}
10971097

10981098
/**

constructorio-client/src/test/java/io/constructor/client/ConstructorIOAutocompleteUrlEncodingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void AutocompleteWithPlusShouldBeEncodedInUrl() throws Exception {
4141
constructor.autocomplete(request, null);
4242

4343
RecordedRequest recordedRequest = mockServer.takeRequest();
44-
String expectedPath = "/autocomplete/r%2Bco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0";
44+
String expectedPath = "/autocomplete/r%2Bco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0";
4545
String actualPath = recordedRequest.getPath();
4646
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
4747
}
@@ -57,7 +57,7 @@ public void AutocompleteWithSpaceShouldBeEncodedInUrl() throws Exception {
5757
constructor.autocomplete(request, null);
5858

5959
RecordedRequest recordedRequest = mockServer.takeRequest();
60-
String expectedPath = "/autocomplete/r%20co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0";
60+
String expectedPath = "/autocomplete/r%20co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0";
6161
String actualPath = recordedRequest.getPath();
6262
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
6363
}
@@ -73,7 +73,7 @@ public void AutocompleteWithSlashShouldBeEncodedInUrl() throws Exception {
7373
constructor.autocomplete(request, null);
7474

7575
RecordedRequest recordedRequest = mockServer.takeRequest();
76-
String expectedPath = "/autocomplete/r%2Fco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0";
76+
String expectedPath = "/autocomplete/r%2Fco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0";
7777
String actualPath = recordedRequest.getPath();
7878
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
7979
}
@@ -89,7 +89,7 @@ public void AutocompleteWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
8989
constructor.autocomplete(request, null);
9090

9191
RecordedRequest recordedRequest = mockServer.takeRequest();
92-
String expectedPath = "/autocomplete/r'co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0";
92+
String expectedPath = "/autocomplete/r'co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0";
9393
String actualPath = recordedRequest.getPath();
9494
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
9595
}

constructorio-client/src/test/java/io/constructor/client/ConstructorIOBasicTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void makeUrlShouldReturnAUrl() throws Exception {
125125
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"));
126126
assertEquals("host is set", url.host(), "ac.cnstrc.com");
127127
assertEquals("protocol is set", url.scheme(), "https");
128-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.9.0");
128+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.10.0");
129129
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
130130
}
131131

@@ -136,7 +136,7 @@ public void makeUrlWithUserIdShouldReturnAUrl() throws Exception {
136136
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
137137
assertEquals("host is set", url.host(), "ac.cnstrc.com");
138138
assertEquals("protocol is set", url.scheme(), "https");
139-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.9.0");
139+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.10.0");
140140
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
141141
assertEquals("session id is set", url.queryParameter("s"), "2");
142142
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -151,7 +151,7 @@ public void makeUrlWithUserInfoShouldReturnAUrl() throws Exception {
151151
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
152152
assertEquals("host is set", url.host(), "ac.cnstrc.com");
153153
assertEquals("protocol is set", url.scheme(), "https");
154-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.9.0");
154+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.10.0");
155155
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
156156
assertEquals("session id is set", url.queryParameter("s"), "2");
157157
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -167,7 +167,7 @@ public void makeUrlWithUserSegmentsShouldReturnAUrl() throws Exception {
167167
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
168168
assertEquals("host is set", url.host(), "ac.cnstrc.com");
169169
assertEquals("protocol is set", url.scheme(), "https");
170-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.9.0");
170+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.10.0");
171171
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
172172
assertEquals("session id is set", url.queryParameter("s"), "2");
173173
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -184,7 +184,7 @@ public void verifyShouldReturnTrueWithValidKeyTokenPair() throws Exception {
184184
@Test
185185
public void getVersionShouldReturnClientVersion() throws Exception {
186186
ConstructorIO constructor = new ConstructorIO("tok_AFQd9IKamjHXRsTp", "ZqXaOfXuBWD4s3XzCI1q", true, null);
187-
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-5.9.0");
187+
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-5.10.0");
188188
}
189189

190190
@Test

constructorio-client/src/test/java/io/constructor/client/ConstructorIOSearchUrlEncodingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void SearchWithPlusShouldBeEncodedInUrl() throws Exception {
4141
constructor.search(request, null);
4242

4343
RecordedRequest recordedRequest = mockServer.takeRequest();
44-
String expectedPath = "/search/r%2Bco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0&section=Products&page=1&num_results_per_page=30";
44+
String expectedPath = "/search/r%2Bco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0&section=Products&page=1&num_results_per_page=30";
4545
String actualPath = recordedRequest.getPath();
4646
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
4747
}
@@ -57,7 +57,7 @@ public void SearchWithSpaceShouldBeEncodedInUrl() throws Exception {
5757
constructor.search(request, null);
5858

5959
RecordedRequest recordedRequest = mockServer.takeRequest();
60-
String expectedPath = "/search/r%20co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0&section=Products&page=1&num_results_per_page=30";
60+
String expectedPath = "/search/r%20co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0&section=Products&page=1&num_results_per_page=30";
6161
String actualPath = recordedRequest.getPath();
6262
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
6363
}
@@ -73,7 +73,7 @@ public void SearchWithSlashShouldBeEncodedInUrl() throws Exception {
7373
constructor.search(request, null);
7474

7575
RecordedRequest recordedRequest = mockServer.takeRequest();
76-
String expectedPath = "/search/r%2Fco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0&section=Products&page=1&num_results_per_page=30";
76+
String expectedPath = "/search/r%2Fco?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0&section=Products&page=1&num_results_per_page=30";
7777
String actualPath = recordedRequest.getPath();
7878
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
7979
}
@@ -89,7 +89,7 @@ public void SearchWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
8989
constructor.search(request, null);
9090

9191
RecordedRequest recordedRequest = mockServer.takeRequest();
92-
String expectedPath = "/search/r'co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.9.0&section=Products&page=1&num_results_per_page=30";
92+
String expectedPath = "/search/r'co?key=key_K2hlXt5aVSwoI1Uw&c=ciojava-5.10.0&section=Products&page=1&num_results_per_page=30";
9393
String actualPath = recordedRequest.getPath();
9494
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
9595
}

0 commit comments

Comments
 (0)