diff --git a/.github/workflows/master-2.yml b/.github/workflows/master-2.yml
index 3a9ff28..dd38f92 100644
--- a/.github/workflows/master-2.yml
+++ b/.github/workflows/master-2.yml
@@ -2,9 +2,9 @@ name: Master CI v2
on:
push:
- branches: [master-2]
+ branches: [ master-2 ]
pull_request:
- branches: [master-2]
+ branches: [ master-2 ]
jobs:
build-scan:
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index ba59f18..926b22e 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -2,9 +2,9 @@ name: Master CI v1
on:
push:
- branches: [master]
+ branches: [ master ]
pull_request:
- branches: [master]
+ branches: [ master ]
jobs:
build-scan:
diff --git a/pom.xml b/pom.xml
index f449188..ce55760 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
com.github.switcherapi
switcher-client
jar
- 2.3.1
+ 2.3.2-SNAPSHOT
Switcher Client
Switcher Client SDK for working with Switcher API
@@ -53,15 +53,15 @@
2.13.1
- 3.17.0
+ 3.18.0
3.11.1
2.0.17
- 5.0.0-alpha.16
- 5.13.1
+ 5.1.0
+ 5.13.3
2.3.0
- 1.13.1
+ 1.13.3
3.14.0
@@ -71,7 +71,7 @@
3.2.7
3.11.0.3922
0.8.13
- 0.7.0
+ 0.8.0
jacoco
diff --git a/src/test/java/com/github/switcherapi/fixture/MockWebServerHelper.java b/src/test/java/com/github/switcherapi/fixture/MockWebServerHelper.java
index 0a45fd1..2420a39 100644
--- a/src/test/java/com/github/switcherapi/fixture/MockWebServerHelper.java
+++ b/src/test/java/com/github/switcherapi/fixture/MockWebServerHelper.java
@@ -26,12 +26,12 @@ protected static void setupMockServer() throws IOException {
((QueueDispatcher) mockBackEnd.getDispatcher()).setFailFast(true);
}
- protected static void tearDownMockServer() throws IOException {
- mockBackEnd.shutdown();
+ protected static void tearDownMockServer() {
+ mockBackEnd.close();
}
protected void givenResponse(MockResponse response) {
- ((QueueDispatcher) mockBackEnd.getDispatcher()).enqueueResponse(response);
+ ((QueueDispatcher) mockBackEnd.getDispatcher()).enqueue(response);
}
protected MockResponse generateTimeOut(int timeoutMs) {
@@ -103,7 +103,7 @@ protected MockResponse generateCheckSnapshotVersionResponse(String status) {
*/
protected MockResponse generateStatusResponse(String code) {
MockResponse.Builder builder = new MockResponse.Builder();
- builder.setCode(Integer.parseInt(code));
+ builder.code(Integer.parseInt(code));
return builder.build();
}