Version { boolean isAGPL() { return getVersion().indexOf(AGPL) > 0; } @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 isAGPLTrueTest() { Version customVersion = new Version(new VersionInfo("iText®", "7.5.1-SNAPSHOT", "iText® 7.5.1-SNAPSHOT ©2000-2090 iText Group NV (AGPL-version)", null), false); Assert.assertTrue(customVersion.isAGPL()); }
@Test public void isAGPLFalseTest() { Version customVersion = new Version( new VersionInfo("iText®", "7.5.1-SNAPSHOT", "iText® 7.5.1-SNAPSHOT ©2000-2090 iText Group NV", null), false); Assert.assertFalse(customVersion.isAGPL()); }