File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
main/java/com/github/dockerjava/core
test/java/com/github/dockerjava Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11package com .github .dockerjava .core ;
22
3- import java .io .Serializable ;
4- import java .util .regex .Matcher ;
5- import java .util .regex .Pattern ;
6-
73import com .google .common .base .MoreObjects ;
84import com .google .common .base .Objects ;
95import com .google .common .base .Preconditions ;
106import 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 ) {
Original file line number Diff line number Diff 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" ;
Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments