blob: 979ea629e199b03fef541a7837de71cce55b96cc [file] [log] [blame]
/*
* Copyright (c) 2009-2013 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Andre Dietisheim - initial API and implementation
* Eike Stepper - maintenance
*/
package org.eclipse.emf.cdo.tests.revisioncache;
import org.eclipse.emf.cdo.common.revision.CDORevisionUtil;
import org.eclipse.emf.cdo.session.CDORepositoryInfo;
import org.eclipse.emf.cdo.session.CDOSession;
import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionCache;
/**
* @author Andre Dietisheim
*/
public class DefaultRevisionCacheTest extends AbstractRevisionCacheTest
{
@Override
protected InternalCDORevisionCache createRevisionCache(CDOSession session) throws Exception
{
CDORepositoryInfo repositoryInfo = session.getRepositoryInfo();
boolean supportingAudits = repositoryInfo.isSupportingAudits();
boolean supportingBranches = repositoryInfo.isSupportingBranches();
return (InternalCDORevisionCache)CDORevisionUtil.createRevisionCache(supportingAudits, supportingBranches);
}
}