X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.testing%2Fsrc%2Forg%2Fsimantics%2Fdb%2Ftesting%2Fbase%2FTestCommonNoVirtual.java;fp=bundles%2Forg.simantics.db.testing%2Fsrc%2Forg%2Fsimantics%2Fdb%2Ftesting%2Fbase%2FTestCommonNoVirtual.java;h=f32f5921bcbe3c5f97b20fc54d945baaff9613bd;hb=67fd62f9c742337ec80eef658192db198a0efaac;hp=0000000000000000000000000000000000000000;hpb=cde82ba81327d5515fdca362f7f4c70f5103ae80;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.testing/src/org/simantics/db/testing/base/TestCommonNoVirtual.java b/bundles/org.simantics.db.testing/src/org/simantics/db/testing/base/TestCommonNoVirtual.java new file mode 100644 index 000000000..f32f5921b --- /dev/null +++ b/bundles/org.simantics.db.testing/src/org/simantics/db/testing/base/TestCommonNoVirtual.java @@ -0,0 +1,40 @@ +package org.simantics.db.testing.base; +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ + + +import org.junit.After; +import org.junit.Before; +import org.simantics.db.testing.impl.Configuration; + +@Deprecated +public class TestCommonNoVirtual extends ExistingDatabaseTest { + protected final boolean VIRTUAL = Configuration.get().virtual; + @Before + public void setUp() throws Exception { + if (!VIRTUAL) + super.setUp(); + } + @After + public void tearDown() throws Exception { + if (!VIRTUAL) + super.tearDown(); + } + protected boolean noVirtual() { + if (VIRTUAL) { + printStart(this); + System.out.println("This test is not suitable for virtual graph."); + return true; + } + return false; + } +}