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 42ab516..282badc 100644 --- a/pom.xml +++ b/pom.xml @@ -1,14 +1,14 @@ - + 4.0.0 com.github.switcherapi switcher-client jar - 1.7.1 + 1.7.2-SNAPSHOT Switcher Client Switcher Client SDK for working with Switcher API @@ -59,15 +59,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 1.9.1 - 1.13.1 + 1.13.3 3.14.0 @@ -77,7 +77,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(); }