From 2912b1370566e37ac0a878fc98e749132e261fc2 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sat, 7 Aug 2021 19:03:09 +0200 Subject: [PATCH] reduce internal dependencies --- .../groovy/de/gesellix/docker/client/DockerClientImpl.groovy | 2 +- .../client/authentication/ManageAuthenticationClient.groovy | 4 ---- .../authentication/ManageAuthenticationClientTest.groovy | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/client/src/main/groovy/de/gesellix/docker/client/DockerClientImpl.groovy b/client/src/main/groovy/de/gesellix/docker/client/DockerClientImpl.groovy index 2173239c..7194d0b1 100644 --- a/client/src/main/groovy/de/gesellix/docker/client/DockerClientImpl.groovy +++ b/client/src/main/groovy/de/gesellix/docker/client/DockerClientImpl.groovy @@ -109,7 +109,7 @@ class DockerClientImpl implements DockerClient { this.queryUtil = new QueryUtil() this.manageSystem = new ManageSystemClient(httpClient, responseHandler) - this.manageAuthentication = new ManageAuthenticationClient(env, httpClient, responseHandler, manageSystem) + this.manageAuthentication = new ManageAuthenticationClient(env, httpClient, manageSystem) this.manageImage = new ManageImageClient(httpClient, responseHandler, manageAuthentication) this.manageDistribution = new ManageDistributionService(httpClient, responseHandler) this.manageContainer = new ManageContainerClient(httpClient, responseHandler, manageImage) diff --git a/client/src/main/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClient.groovy b/client/src/main/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClient.groovy index a3efce07..68999826 100644 --- a/client/src/main/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClient.groovy +++ b/client/src/main/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClient.groovy @@ -1,7 +1,6 @@ package de.gesellix.docker.client.authentication import com.squareup.moshi.Moshi -import de.gesellix.docker.client.DockerResponseHandler import de.gesellix.docker.client.distribution.ReferenceParser import de.gesellix.docker.client.registry.RegistryElection import de.gesellix.docker.client.system.ManageSystem @@ -18,18 +17,15 @@ class ManageAuthenticationClient implements ManageAuthentication { private DockerEnv env private EngineClient client - private DockerResponseHandler responseHandler private RegistryElection registryElection private Moshi moshi = new Moshi.Builder().build() ManageAuthenticationClient(DockerEnv env, EngineClient client, - DockerResponseHandler responseHandler, ManageSystem manageSystem) { this.env = env this.client = client - this.responseHandler = responseHandler this.registryElection = new RegistryElection(manageSystem, this) } diff --git a/client/src/test/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClientTest.groovy b/client/src/test/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClientTest.groovy index fd8d7de2..f5c81f7e 100644 --- a/client/src/test/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClientTest.groovy +++ b/client/src/test/groovy/de/gesellix/docker/client/authentication/ManageAuthenticationClientTest.groovy @@ -3,7 +3,6 @@ package de.gesellix.docker.client.authentication import com.squareup.moshi.Moshi import com.squareup.moshi.Types import de.gesellix.docker.client.DockerClient -import de.gesellix.docker.client.DockerResponseHandler import de.gesellix.docker.client.system.ManageSystem import de.gesellix.docker.engine.DockerEnv import de.gesellix.docker.engine.EngineClient @@ -29,7 +28,6 @@ class ManageAuthenticationClientTest extends Specification { service = Spy(ManageAuthenticationClient, constructorArgs: [ env, client, - Mock(DockerResponseHandler), Mock(ManageSystem)]) }