We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5c7f44 commit 6761841Copy full SHA for 6761841
src/test/java/com/github/dockerjava/utils/TestUtils.java
@@ -0,0 +1,17 @@
1
+package com.github.dockerjava.utils;
2
+
3
+import com.github.dockerjava.api.DockerClient;
4
+import com.github.dockerjava.core.RemoteApiVersion;
5
6
+/**
7
+ * @author Kanstantsin Shautsou
8
+ */
9
+public class TestUtils {
10
+ private TestUtils() {
11
+ }
12
13
+ public static RemoteApiVersion getVersion(DockerClient client) {
14
+ final String serverVersion = client.versionCmd().exec().getApiVersion();
15
+ return RemoteApiVersion.parseConfig(serverVersion);
16
17
+}
0 commit comments