blob: 80baf9e8e35f63856b8442b4dd53260971a150d0 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/**
* Copyright (c) 2004 - 2011 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:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.emf.cdo.tests.objectivity;
import org.eclipse.emf.cdo.tests.AllConfigs;
import org.eclipse.emf.cdo.tests.AuditSameSessionTest;
import org.eclipse.emf.cdo.tests.AuditTest;
import org.eclipse.emf.cdo.tests.BranchingSameSessionTest;
import org.eclipse.emf.cdo.tests.BranchingTest;
import org.eclipse.emf.cdo.tests.MergingTest;
import org.eclipse.emf.cdo.tests.XATransactionTest;
import org.eclipse.emf.cdo.tests.bugzilla.Bugzilla_252214_Test;
import org.eclipse.emf.cdo.tests.bugzilla.Bugzilla_303807_Test;
import org.eclipse.emf.cdo.tests.config.IScenario;
import org.eclipse.emf.cdo.tests.config.impl.ConfigTest;
import java.util.List;
/**
* @author Eike Stepper
*/
public abstract class ObjyDBConfigs extends AllConfigs
{
@Override
protected void initTestClasses(List<Class<? extends ConfigTest>> testClasses, IScenario scenario)
{
super.initTestClasses(testClasses, scenario);
// remove BranchingTests because most mappings do not support it
// Subclasses should add Banching tests if supported
if (!scenario.getRepositoryConfig().isSupportingBranches())
{
testClasses.remove(BranchingTest.class);
testClasses.remove(BranchingSameSessionTest.class);
testClasses.remove(MergingTest.class);
testClasses.remove(Bugzilla_303807_Test.class);
}
if (!scenario.getRepositoryConfig().isSupportingAudits())
{
// non-audit mode - remove audit tests
testClasses.remove(AuditTest.class);
testClasses.remove(AuditSameSessionTest.class);
testClasses.remove(Bugzilla_252214_Test.class);
}
// testClasses.add(DBStoreTest.class);
// testClasses.add(SQLQueryTest.class);
// testClasses.add(DBAnnotationsTest.class);
// sometime cause a crash (Investigate!!)
testClasses.remove(XATransactionTest.class);
}
}
|