addResult(results, checkObject(session, version, properties, "Version object check: " + version.getId())); if (Boolean.TRUE.equals(version.isLatestVersion())) { countLatest++; latestId = version.getId();
+ " But that is not the intention of the spec and will be changed in CMIS 1.1." + " Thus this a warning, not an error.)"); addResult(assertIsTrue(pwc.isLatestVersion(), null, f)); } else { f = createResult(FAILURE, "The property value of 'cmis:isLatestVersion' is TRUE for a PWC! Id: " + pwc.getId()); addResult(assertIsFalse(pwc.isLatestVersion(), null, f)); f = createResult(FAILURE, "The property value of 'cmis:isLatestMajorVersion' is TRUE for a PWC! Id: " + pwc.getId());
addResult(results, assertIsTrue(lastestVersion.isLatestVersion(), null, f)); + " But that is not the intention of the spec and will be changed in CMIS 1.1." + " Thus this a warning, not an error.)"); addResult(results, assertIsTrue(version.isLatestVersion(), null, f)); } else { f = createResult(FAILURE, "Version series is not checked-out and first version history entry is not the latest version! ID: " + version.getId()); addResult(results, assertIsTrue(version.isLatestVersion(), null, f)); if (version.isLatestVersion()) { latestVersion++; "Version with the latest modification date is not flagged as latest version! ID: " + versions.get(latestModifictaionIndex)); addResult(results, assertIsTrue(versions.get(latestModifictaionIndex).isLatestVersion(), null, f));
addResult(assertEquals(true, versions.get(0).isLatestVersion(), null, f));
if (Boolean.TRUE.equals(doc.isLatestVersion())) { f = createResult(WARNING, "Document is versionable and not checked but has no CAN_CHECK_OUT allowable action!");