Skip to content

Commit d0f5e60

Browse files
renovate[bot]matthewelwelltoddbaert
authored
fix(deps): update dependency com.flagsmith:flagsmith-java-client to v7.3.0 (#734)
Signed-off-by: Matthew Elwell <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matthew Elwell <[email protected]> Co-authored-by: Todd Baert <[email protected]>
1 parent e0c7a26 commit d0f5e60

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

providers/flagsmith/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>com.flagsmith</groupId>
3232
<artifactId>flagsmith-java-client</artifactId>
33-
<version>7.2.0</version>
33+
<version>7.3.0</version>
3434
</dependency>
3535

3636
<dependency>

providers/flagsmith/src/test/java/dev.openfeature.contrib.providers.flagsmith/FlagsmithProviderTest.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ public MockResponse dispatch(RecordedRequest request) {
6767
}
6868
};
6969

70+
final QueueDispatcher errorDispatcher = new QueueDispatcher() {
71+
@SneakyThrows
72+
@Override
73+
public MockResponse dispatch(RecordedRequest request) {
74+
return new MockResponse().setResponseCode(500);
75+
}
76+
};
77+
7078
private static Stream<Arguments> provideKeysForFlagResolution() {
7179
return Stream.of(
7280
Arguments.of("true_key", "getBooleanEvaluation", Boolean.class, "true"),
@@ -132,9 +140,9 @@ void setUp() throws IOException {
132140
// Error server will always result in FlagsmithApiError's used for
133141
// tests that need to handle this type of error
134142
mockFlagsmithErrorServer = new MockWebServer();
143+
mockFlagsmithErrorServer.setDispatcher(this.errorDispatcher);
135144
mockFlagsmithErrorServer.start();
136145

137-
138146
FlagsmithProviderOptions options = FlagsmithProviderOptions.builder()
139147
.apiKey("API_KEY")
140148
.baseUri(String

0 commit comments

Comments
 (0)