]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.testing/src/org/simantics/db/testing/base/TestCommonNoVirtual.java
Added missing org.simantics.db.{tests,testing} plug-ins.
[simantics/platform.git] / bundles / org.simantics.db.testing / src / org / simantics / db / testing / base / TestCommonNoVirtual.java
1 package org.simantics.db.testing.base;
2 /*******************************************************************************
3  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4  * in Industry THTH ry.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  *     VTT Technical Research Centre of Finland - initial API and implementation
12  *******************************************************************************/
13
14
15 import org.junit.After;
16 import org.junit.Before;
17 import org.simantics.db.testing.impl.Configuration;
18
19 @Deprecated
20 public class TestCommonNoVirtual extends ExistingDatabaseTest {
21     protected final boolean VIRTUAL = Configuration.get().virtual;
22         @Before
23         public void setUp() throws Exception {
24         if (!VIRTUAL)
25             super.setUp();
26         }
27         @After
28         public void tearDown() throws Exception {
29         if (!VIRTUAL)
30             super.tearDown();
31         }
32         protected boolean noVirtual() {
33         if (VIRTUAL) {
34             printStart(this);
35             System.out.println("This test is not suitable for virtual graph.");
36             return true;
37         }
38         return false;
39         }
40 }