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 | |
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')
8 files changed, 84 insertions, 141 deletions
diff --git a/plugins/org.eclipse.osee.ats.impl.test/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.ats.impl.test/META-INF/MANIFEST.MF index 71749e6c338..d8d62ded209 100644 --- a/plugins/org.eclipse.osee.ats.impl.test/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.osee.ats.impl.test/META-INF/MANIFEST.MF @@ -1,15 +1,14 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 -Bundle-Name: ATS Work Definition Impl Test +Bundle-Name: ATS Work Definition Impl Test (Incubation) Bundle-SymbolicName: org.eclipse.osee.ats.impl.test -Bundle-Version: 1.0.0.qualifier +Bundle-Vendor: Eclipse Open System Engineering Environment +Bundle-Version: 0.11.0.qualifier Fragment-Host: org.eclipse.osee.ats.impl Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Import-Package: junit.framework;version="4.8.2", - org.eclipse.osee.ats.api.ai, - org.eclipse.osee.ats.api.data, - org.eclipse.osee.ats.api.team, - org.eclipse.osee.ats.api.workdef, - org.junit;version="4.8.2", - org.junit.runner;version="4.8.2", - org.junit.runners;version="4.8.2" +Import-Package: org.eclipse.osee.ats.api.workdef +Require-Bundle: org.junit, + org.mockito;bundle-version="1.9.0", + org.hamcrest.core, + org.objenesis + diff --git a/plugins/org.eclipse.osee.ats.impl.test/build.properties b/plugins/org.eclipse.osee.ats.impl.test/build.properties index 34d2e4d2dad..3b1eb2b27f6 100644 --- a/plugins/org.eclipse.osee.ats.impl.test/build.properties +++ b/plugins/org.eclipse.osee.ats.impl.test/build.properties @@ -2,3 +2,5 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ . +additional.bundles = org.eclipse.osee.ats.api,\ + org.eclipse.osee.ats.mocks diff --git a/plugins/org.eclipse.osee.ats.impl.test/pom.xml b/plugins/org.eclipse.osee.ats.impl.test/pom.xml new file mode 100644 index 00000000000..b7b493f6b61 --- /dev/null +++ b/plugins/org.eclipse.osee.ats.impl.test/pom.xml @@ -0,0 +1,31 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.eclipse.osee</groupId> + <artifactId>org.eclipse.osee.ats.parent</artifactId> + <version>0.11.0-SNAPSHOT</version> + <relativePath>../../plugins/org.eclipse.osee.ats.parent</relativePath> + </parent> + + <artifactId>org.eclipse.osee.ats.impl.test</artifactId> + <packaging>eclipse-test-plugin</packaging> + <name>OSEE ATS WorkDef Impl Test(Incubation)</name> + + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-surefire-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <testSuite>org.eclipse.osee.ats.impl.test</testSuite> + <testClass>org.eclipse.osee.ats.impl.AllAtsImplTestSuite</testClass> + </configuration> + </plugin> + </plugins> + </build> + +</project>
\ No newline at end of file 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"); - } - -} |