/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License;
 * you may not use this file except in compliance with the Elastic License.
 */
package org.elasticsearch.xpack.sql.cli;

import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.xpack.sql.client.Version;

public class VersionTests extends ESTestCase {
    public void testVersionIsCurrent() {
        /* This test will only work properly in gradle because in gradle we run the tests
         * using the jar. */
        assertNotNull(Version.CURRENT.hash);
        assertEquals(org.elasticsearch.Version.CURRENT.major, Version.CURRENT.major);
        assertEquals(org.elasticsearch.Version.CURRENT.minor, Version.CURRENT.minor);
        assertEquals(org.elasticsearch.Version.CURRENT.revision, Version.CURRENT.revision);
    }

}
