Skip to content

Commit 5eba97c

Browse files
committed
Fixed test case
1 parent 9135987 commit 5eba97c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/test/java/com/amihaiemil/docker/RemoteDockerTestCase.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class RemoteDockerTestCase {
5353
@Test
5454
public void pingTrueIfResponseIsOk() throws Exception {
5555
MatcherAssert.assertThat(
56-
new TcpDocker(
56+
new RemoteDocker(
5757
new AssertRequest(
5858
new Response(HttpStatus.SC_OK, "")
5959
),
@@ -70,7 +70,7 @@ public void pingTrueIfResponseIsOk() throws Exception {
7070
@Test
7171
public void pingFalseIfResponseIsNotOk() throws Exception {
7272
MatcherAssert.assertThat(
73-
new TcpDocker(
73+
new RemoteDocker(
7474
new AssertRequest(
7575
new Response(HttpStatus.SC_NOT_FOUND, "")
7676
),
@@ -86,7 +86,7 @@ public void pingFalseIfResponseIsNotOk() throws Exception {
8686
@Test
8787
public void getsContainers() {
8888
MatcherAssert.assertThat(
89-
new TcpDocker(
89+
new RemoteDocker(
9090
Mockito.mock(HttpClient.class),
9191
URI.create("http://localhost")
9292
).containers(),
@@ -100,7 +100,7 @@ public void getsContainers() {
100100
@Test
101101
public void returnsSwarm() {
102102
MatcherAssert.assertThat(
103-
new TcpDocker(
103+
new RemoteDocker(
104104
Mockito.mock(HttpClient.class),
105105
URI.create("http://localhost")
106106
).swarm(),
@@ -115,7 +115,7 @@ public void returnsSwarm() {
115115
@Test
116116
public void returnsImages() {
117117
MatcherAssert.assertThat(
118-
new TcpDocker(
118+
new RemoteDocker(
119119
Mockito.mock(HttpClient.class),
120120
URI.create("http://localhost")
121121
).images(),
@@ -130,7 +130,7 @@ public void returnsImages() {
130130
public void returnsHttpClient() {
131131
final HttpClient client = Mockito.mock(HttpClient.class);
132132
MatcherAssert.assertThat(
133-
new TcpDocker(
133+
new RemoteDocker(
134134
client,
135135
URI.create("http://localhost")
136136
).httpClient(),
@@ -147,7 +147,7 @@ public void returnsHttpClient() {
147147
@Test
148148
public void returnsAuthHttpClient() {
149149
MatcherAssert.assertThat(
150-
new TcpDocker(
150+
new RemoteDocker(
151151
URI.create("http://localhost"),
152152
new Credentials("user", "pwd", "[email protected]", "server.com")
153153
).httpClient(),
@@ -164,7 +164,7 @@ public void returnsAuthHttpClient() {
164164
@Test
165165
public void returnsVolumes() {
166166
MatcherAssert.assertThat(
167-
new TcpDocker(
167+
new RemoteDocker(
168168
Mockito.mock(HttpClient.class),
169169
URI.create("http://localhost")
170170
).volumes(),

src/test/java/com/amihaiemil/docker/UnixDockerITCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public final class UnixDockerITCase {
5151
*/
5252
@Test
5353
public void pingsDocker() throws Exception {
54-
final Docker docker = new LocalDocker(
54+
final Docker docker = new UnixDocker(
5555
new File("/var/run/docker.sock")
5656
);
5757
MatcherAssert.assertThat(docker.ping(), Matchers.is(Boolean.TRUE));
@@ -64,7 +64,7 @@ public void pingsDocker() throws Exception {
6464
@Test
6565
@Ignore
6666
public void followsEvents() throws Exception {
67-
final Reader reader = new LocalDocker(
67+
final Reader reader = new UnixDocker(
6868
new File("/var/run/docker.sock")
6969
).events();
7070
final String events = IOUtils.toString(reader);
@@ -79,7 +79,7 @@ public void followsEvents() throws Exception {
7979
*/
8080
@Test
8181
public void listVolumes() throws Exception {
82-
final Docker docker = new LocalDocker(
82+
final Docker docker = new UnixDocker(
8383
Paths.get("/var/run/docker.sock").toFile()
8484
);
8585
MatcherAssert.assertThat(

0 commit comments

Comments
 (0)