Version { public String getVersion() { return info.getVersion(); } @Deprecated  Version();   Version(VersionInfo info, boolean expired); static Version getInstance(); static boolean isAGPLVersion(); static boolean isExpired(); String getProduct(); String getRelease(); String getVersion(); String getKey(); VersionInfo getInfo();  }
@Test public void customVersionIncorrectMajorTest() { Version customVersion = new Version( new VersionInfo("iText®", "8.5.1-SNAPSHOT", "iText® 8.5.1-SNAPSHOT ©2000-2090 iText Group NV", null), false); Assert.assertFalse(checkVersion(customVersion.getVersion())); }
@Test public void customVersionIncorrectMinorTest() { Version customVersion = new Version( new VersionInfo("iText®", "7.a.1-SNAPSHOT", "iText® 7.a.1-SNAPSHOT ©2000-2090 iText Group NV", null), false); Assert.assertFalse(checkVersion(customVersion.getVersion())); }
@Test public void customVersionIncorrectPatchTest() { Version customVersion = new Version( new VersionInfo("iText®", "7.50.a-SNAPSHOT", "iText® 7.50.a-SNAPSHOT ©2000-2090 iText Group NV", null), false); Assert.assertFalse(checkVersion(customVersion.getVersion())); }