diff options
author | Roberto E. Escobar | 2012-11-29 18:22:33 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2012-11-29 18:22:33 +0000 |
commit | 77c5195d10913adbf512efb066a58d35022db80b (patch) | |
tree | 5b980b7e7f7987cf4e07bbc5283328df1f8943ba /plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse | |
parent | c2b5c34f406285f5a67e06aaf5c75a0686425234 (diff) | |
download | org.eclipse.osee-77c5195d10913adbf512efb066a58d35022db80b.tar.gz org.eclipse.osee-77c5195d10913adbf512efb066a58d35022db80b.tar.xz org.eclipse.osee-77c5195d10913adbf512efb066a58d35022db80b.zip |
feature[ats_TL5SF]: Add ATS tests to maven
Create ATS client integration test bundle
Separate junit tests from integration tests
Add profile to build ATS individually
Move enumerations from support.test.util into ats.client.demo
Change-Id: I12dc0b9e2e144413e2272043adfd39920ada6f96
Diffstat (limited to 'plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse')
-rw-r--r-- | plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/AllAtsImplTestSuite.java (renamed from plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsImpl_Query_Suite.java) | 24 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/AtsImpl_JT_Suite.java | 39 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/convert/ConvertTestSuite.java | 23 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/model/ModelTestSuite.java (renamed from plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/model/AtsCore_WorkDef_JT_Suite.java) | 34 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsQueryTest.java | 53 |
5 files changed, 42 insertions, 131 deletions
diff --git a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsImpl_Query_Suite.java b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/AllAtsImplTestSuite.java index 0e40420a52c..1c9f77be111 100644 --- a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsImpl_Query_Suite.java +++ b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/AllAtsImplTestSuite.java @@ -8,28 +8,18 @@ * Contributors: * Boeing - initial API and implementation *******************************************************************************/ -package org.eclipse.osee.ats.impl.internal.query; +package org.eclipse.osee.ats.impl; -import org.junit.AfterClass; -import org.junit.BeforeClass; +import org.eclipse.osee.ats.impl.internal.convert.ConvertTestSuite; +import org.eclipse.osee.ats.impl.internal.model.ModelTestSuite; import org.junit.runner.RunWith; import org.junit.runners.Suite; -@RunWith(Suite.class) -@Suite.SuiteClasses({AtsQueryTest.class}) /** - * This test suite contains tests that can be run as stand-alone JUnit tests (JT) - * * @author Donald G. Dunne */ -public class AtsImpl_Query_Suite { - @BeforeClass - public static void setUp() throws Exception { - System.out.println("\n\nBegin " + AtsImpl_Query_Suite.class.getSimpleName()); - } - - @AfterClass - public static void tearDown() throws Exception { - System.out.println("End " + AtsImpl_Query_Suite.class.getSimpleName()); - } +@RunWith(Suite.class) +@Suite.SuiteClasses({ConvertTestSuite.class, ModelTestSuite.class}) +public class AllAtsImplTestSuite { + // Test Suite } diff --git a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/AtsImpl_JT_Suite.java b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/AtsImpl_JT_Suite.java deleted file mode 100644 index 7130e3a74bf..00000000000 --- a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/AtsImpl_JT_Suite.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2007 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.impl.internal; - -import org.eclipse.osee.ats.impl.internal.model.AtsCore_WorkDef_JT_Suite; -import org.eclipse.osee.ats.impl.internal.query.AtsImpl_Query_Suite; -import org.eclipse.osee.framework.jdk.core.util.OseeProperties; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses({AtsCore_WorkDef_JT_Suite.class, AtsImpl_Query_Suite.class}) -/** - * This test suite contains tests that can be run as stand-alone JUnit tests (JT) - * - * @author Donald G. Dunne - */ -public class AtsImpl_JT_Suite { - @BeforeClass - public static void setUp() throws Exception { - OseeProperties.setIsInTest(true); - System.out.println("\n\nBegin " + AtsImpl_JT_Suite.class.getSimpleName()); - } - - @AfterClass - public static void tearDown() throws Exception { - System.out.println("End " + AtsImpl_JT_Suite.class.getSimpleName()); - } -} diff --git a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/convert/ConvertTestSuite.java b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/convert/ConvertTestSuite.java new file mode 100644 index 00000000000..4e0954d715b --- /dev/null +++ b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/convert/ConvertTestSuite.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 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.impl.internal.convert; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +/** + * @author Donald G. Dunne + */ +@RunWith(Suite.class) +@Suite.SuiteClasses({ConvertWorkDefinitionToAtsDslTest.class}) +public class ConvertTestSuite { + // Test Suite +} diff --git a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/model/AtsCore_WorkDef_JT_Suite.java b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/model/ModelTestSuite.java index a01d42c82af..77fa287a9d4 100644 --- a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/model/AtsCore_WorkDef_JT_Suite.java +++ b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/model/ModelTestSuite.java @@ -10,39 +10,29 @@ *******************************************************************************/ package org.eclipse.osee.ats.impl.internal.model; -import org.eclipse.osee.ats.impl.internal.convert.ConvertWorkDefinitionToAtsDslTest; -import org.junit.AfterClass; -import org.junit.BeforeClass; import org.junit.runner.RunWith; import org.junit.runners.Suite; +/** + * @author Donald G. Dunne + */ @RunWith(Suite.class) @Suite.SuiteClasses({ - ConvertWorkDefinitionToAtsDslTest.class, + AbstractWorkDefItemTest.class, + CompositeStateItemTest.class, + DecisionReviewDefinitionTest.class, + DecisionReviewOptionTest.class, ModelUtilTest.class, - WidgetOptionTest.class, + PeerReviewDefinitionTest.class, StateDefinitionTest.class, WorkDefinitionTest.class, WidgetOptionHandlerTest.class, - WidgetDefinitionTest.class, - PeerReviewDefinitionTest.class, - DecisionReviewOptionTest.class, - DecisionReviewDefinitionTest.class, - AbstractWorkDefItemTest.class, - CompositeStateItemTest.class}) + WidgetOptionTest.class, + WidgetDefinitionTest.class}) /** - * This test suite contains tests that can be run as stand-alone JUnit tests (JT) * * @author Donald G. Dunne */ -public class AtsCore_WorkDef_JT_Suite { - @BeforeClass - public static void setUp() throws Exception { - System.out.println("\n\nBegin " + AtsCore_WorkDef_JT_Suite.class.getSimpleName()); - } - - @AfterClass - public static void tearDown() throws Exception { - System.out.println("End " + AtsCore_WorkDef_JT_Suite.class.getSimpleName()); - } +public class ModelTestSuite { + // Test Suite } diff --git a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsQueryTest.java b/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsQueryTest.java deleted file mode 100644 index 5eaa263a0d1..00000000000 --- a/plugins/org.eclipse.osee.ats.impl.test/src/org/eclipse/osee/ats/impl/internal/query/AtsQueryTest.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Created on Oct 9, 2012 - * - * PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE - */ -package org.eclipse.osee.ats.impl.internal.query; - -import static org.junit.Assert.*; -import org.junit.Test; - -public class AtsQueryTest { - - @Test - public void testAtsQuery() { - fail("Not yet implemented"); - } - - @Test - public void testFrom() { - fail("Not yet implemented"); - } - - @Test - public void testIsOfType() { - fail("Not yet implemented"); - } - - @Test - public void testUnion() { - fail("Not yet implemented"); - } - - @Test - public void testFromTeam() { - fail("Not yet implemented"); - } - - @Test - public void testIsStateType() { - fail("Not yet implemented"); - } - - @Test - public void testGetItems() { - fail("Not yet implemented"); - } - - @Test - public void testWithOrValue() { - fail("Not yet implemented"); - } - -} |