@@ -0,0 +1,996 @@
+/*%0A * This file is part of the DITA Open Toolkit project.%0A *%0A * Copyright 2018 Jarno Elovirta%0A *%0A * See the accompanying LICENSE file for applicable license.%0A */%0A%0Apackage org.dita.dost.platform;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class SemVerTest %7B%0A%0A    @Test%0A    public void testCompareEqual() %7B%0A        assertEquals(0, new SemVer(%221.2.3%22).compareTo(new SemVer(%221.2.3%22)));%0A    %7D%0A%0A    @Test%0A    public void testCompareLessThan() %7B%0A        assertEquals(-1, new SemVer(%221.2.3%22).compareTo(new SemVer(%221.2.4%22)));%0A        assertEquals(-1, new SemVer(%221.2.3%22).compareTo(new SemVer(%221.3.0%22)));%0A        assertEquals(-1, new SemVer(%221.2.3%22).compareTo(new SemVer(%222.0.0%22)));%0A    %7D%0A%0A    @Test%0A    public void testCompareGreaterThan() %7B%0A        assertEquals(1, new SemVer(%221.2.4%22).compareTo(new SemVer(%221.2.3%22)));%0A        assertEquals(1, new SemVer(%221.3.0%22).compareTo(new SemVer(%221.2.3%22)));%0A        assertEquals(1, new SemVer(%222.0.0%22).compareTo(new SemVer(%221.2.3%22)));%0A    %7D%0A%0A%7D

Add SemVer unit test