package com.github.dockerjava.utils;

import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.core.RemoteApiVersion;

/**
 * @author Kanstantsin Shautsou
 */
public class TestUtils {
    private TestUtils() {
    }

    public static RemoteApiVersion getVersion(DockerClient client) {
        final String serverVersion = client.versionCmd().exec().getApiVersion();
        return RemoteApiVersion.parseConfig(serverVersion);
    }
}

Add helper for api version extraction
Add helper for api version extraction
