blob: 20e9744ab704faf8b893c3ad33a084951b8e36d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (c) 2004 - 2012 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 AbstractCDORevisionCacheTest
{
@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);
}
}
|