@@ -0,0 +1,1728 @@
+/*%0A * Copyright (c) 2013-2016 Cinchapi Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.cinchapi.concourse.server.plugin.util;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport com.cinchapi.concourse.util.Random;%0Aimport com.cinchapi.concourse.util.Strings;%0Aimport com.github.zafarkhaja.semver.Version;%0A%0A/**%0A * Unit tests for the %7B@link Versions%7D util class.%0A * %0A * @author Jeff Nelson%0A */%0Apublic class VersionsTest %7B%0A%0A    @Test%0A    public void testParseCinchapiSemanticVersion() %7B%0A        int major = Random.getScaleCount();%0A        int minor = Random.getScaleCount();%0A        int patch = Random.getScaleCount();%0A        int build = Random.getScaleCount();%0A        String snapshot = Random.getBoolean() ? %22-SNAPSHOT%22 : %22%22;%0A        String cinchapiVersion = Strings.format(%22%7B%7D.%7B%7D.%7B%7D.%7B%7D%7B%7D%22, major, minor,%0A                patch, build, snapshot);%0A        Version version = Versions.parseSemanticVersion(cinchapiVersion);%0A        Assert.assertEquals(major, version.getMajorVersion());%0A        Assert.assertEquals(minor, version.getMinorVersion());%0A        Assert.assertEquals(patch, version.getPatchVersion());%0A        Assert.assertEquals(String.valueOf(build), version.getBuildMetadata());%0A    %7D%0A%0A%7D%0A

add unit tests for Versions