diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/DemoDbPopulateSuite.java')
-rw-r--r-- | plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/DemoDbPopulateSuite.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/DemoDbPopulateSuite.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/DemoDbPopulateSuite.java new file mode 100644 index 00000000000..a922e1e57cf --- /dev/null +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/DemoDbPopulateSuite.java @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2010 Boeing. + * 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: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.ats.client.integration.tests; + +import static org.junit.Assert.assertTrue; +import org.eclipse.osee.ats.client.demo.DemoUtil; +import org.eclipse.osee.framework.core.client.ClientSessionManager; +import org.eclipse.osee.framework.jdk.core.util.OseeProperties; +import org.eclipse.osee.framework.ui.skynet.render.RenderingUtil; +import org.eclipse.osee.support.test.util.TestUtil; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({PopulateDemoDatabaseTest.class, DemoDbGroupsTest.class, PopulateDemoActionsTest.class}) +/** + * @author Donald G. Dunne + */ +public class DemoDbPopulateSuite { + @BeforeClass + public static void setUp() throws Exception { + DemoUtil.checkDbInitSuccess(); + System.out.println("\nBegin " + DemoDbPopulateSuite.class.getSimpleName()); + OseeProperties.setIsInTest(true); + assertTrue("Demo Application Server must be running.", + ClientSessionManager.getAuthenticationProtocols().contains("demo")); + assertTrue("Client must authenticate using demo protocol", + ClientSessionManager.getSession().getAuthenticationProtocol().equals("demo")); + assertTrue("Should be run on demo database.", TestUtil.isDemoDb()); + + RenderingUtil.setPopupsAllowed(false); + } + + @AfterClass + public static void tearDown() throws Exception { + System.out.println("End " + DemoDbPopulateSuite.class.getSimpleName() + "\n\n"); + } +} |