package org.panthercode.arctic.core.helper.version;

import org.testng.annotations.Test;

/**
 * Created by architect on 01.12.16.
 */
public class VersionTest {
}

@@ -61,104 +61,1415 @@
 org.
-testng.annotations.Test;%0A%0A/**%0A * Created by architect on 01.12.16.%0A */%0Apublic class VersionTest %7B
+panthercode.arctic.core.helper.version.annotation.VersionInfo;%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0A/**%0A * Created by architect on 01.12.16.%0A */%0Apublic class VersionTest %7B%0A%0A    @VersionInfo(major = 1, minor = 5, build = 9)%0A    public static class TestClass %7B%0A    %7D%0A%0A    public static final String TEST_VERSION_STRING_SHORT = %221.0%22;%0A%0A    public static final String TEST_VERSION_STRING_LONG = %221.2.3.4%22;%0A%0A    public static final Version TEST_VERSION_SHORT = new Version(1, 0);%0A%0A    public static final Version TEST_VERSION_LONG = new Version(1, 2, 3, 4);%0A%0A    public static final Version TEST_VERSION_CLASS = new Version(1, 5, 0, 9);%0A%0A    @Test%0A    public void T01_Version_parse() %7B%0A        Version actualVersion = Version.parse(TEST_VERSION_STRING_LONG);%0A%0A        boolean result = TEST_VERSION_LONG.equals(actualVersion);%0A%0A        Assert.assertTrue(result, %22Versions are equal.%22);%0A    %7D%0A%0A    @Test%0A    public void T02_Version_isAnnotated() %7B%0A        TestClass testClass = new TestClass();%0A%0A        Assert.assertTrue(Version.isAnnotated(testClass), %22Class is annotated.%22);%0A    %7D%0A%0A    @Test%0A    public void T03_Version_fromAnnotation() %7B%0A        TestClass testClass = new TestClass();%0A%0A        Version actualVersion = Version.fromAnnotation(testClass);%0A%0A        boolean result = TEST_VERSION_CLASS.equals(actualVersion);%0A%0A        Assert.assertTrue(result, %22Versions are equal.%22);%0A    %7D
 %0A%7D%0A

implement test cases