![JAR search and dependency download from the Maven repository](/logo.png)
org.alfresco.mock.test.MockVersionHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alfresco-tests Show documentation
Show all versions of alfresco-tests Show documentation
This is a jar project based on mock classes to test fastly the alfresco applications
The newest version!
package org.alfresco.mock.test;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import org.alfresco.service.cmr.version.Version;
import org.alfresco.service.cmr.version.VersionHistory;
public class MockVersionHistory implements VersionHistory, Serializable {
private Collection versions = new ArrayList();
@Override
public Version getRootVersion() {
return versions.toArray(new Version[0])[0];
}
@Override
public Version getHeadVersion() {
return versions.toArray(new Version[0])[versions.size() - 1];
}
@Override
public Collection getAllVersions() {
return versions;
}
@Override
public Version getPredecessor(Version version) {
// TODO Auto-generated method stub
return null;
}
@Override
public Collection getSuccessors(Version version) {
// TODO Auto-generated method stub
return null;
}
@Override
public Version getVersion(String versionLabel) {
// TODO Auto-generated method stub
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy