Skip to content

Commit 373be76

Browse files
committed
Enable lost tests.
1 parent 06170d8 commit 373be76

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

src/main/java/com/github/dockerjava/core/RemoteApiVersion.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package com.github.dockerjava.core;
22

3-
import java.io.Serializable;
4-
import java.util.regex.Matcher;
5-
import java.util.regex.Pattern;
6-
73
import com.google.common.base.MoreObjects;
84
import com.google.common.base.Objects;
95
import com.google.common.base.Preconditions;
106
import com.google.common.base.Strings;
117

8+
import java.io.Serializable;
9+
import java.util.regex.Matcher;
10+
import java.util.regex.Pattern;
11+
1212
/**
1313
* Bean to encapsulate the version of the <a href="http://docs.docker.com/engine/reference/api/docker_remote_api/">Docker Remote (REST)
1414
* API</a>
@@ -125,6 +125,13 @@ public boolean isGreaterOrEqual(final RemoteApiVersion other) {
125125
return false;
126126
}
127127

128+
/**
129+
* @return String representation of version. i.e. "1.22"
130+
*/
131+
public String getVersion() {
132+
return major + "." + minor;
133+
}
134+
128135
// CHECKSTYLE:OFF
129136
@Override
130137
public boolean equals(final Object o) {

src/test/java/com/github/dockerjava/core/command/ListContainersCmdImplTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public void afterMethod(ITestResult result) {
5252
super.afterMethod(result);
5353
}
5454

55+
@Test
5556
public void testListContainers() throws Exception {
5657

5758
String testImage = "busybox";

src/test/java/com/github/dockerjava/netty/exec/ListContainersCmdExecTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public void afterMethod(ITestResult result) {
5454
super.afterMethod(result);
5555
}
5656

57+
@Test
5758
public void testListContainers() throws Exception {
5859

5960
String testImage = "busybox";

0 commit comments

Comments
 (0)