Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2012-11-08 02:59:08 +0000
committerRoberto E. Escobar2012-11-08 02:59:08 +0000
commit5b37e94d01622f3afbd339393aa78e0ae314ad6d (patch)
tree63a36824d6237a15c29c23b377b7efd5fc8e27a3 /plugins/org.eclipse.osee.client.integration.tests
parentc04ce11db040bddd9eeda4790ba0065b26174c4e (diff)
downloadorg.eclipse.osee-5b37e94d01622f3afbd339393aa78e0ae314ad6d.tar.gz
org.eclipse.osee-5b37e94d01622f3afbd339393aa78e0ae314ad6d.tar.xz
org.eclipse.osee-5b37e94d01622f3afbd339393aa78e0ae314ad6d.zip
feature[ats_TL5SF]: Add skynet core junit tests to maven
Diffstat (limited to 'plugins/org.eclipse.osee.client.integration.tests')
-rw-r--r--plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/DirtyArtifactCacheTest.java39
-rw-r--r--plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/MasterTestSuite_DemoDbTests.java1
3 files changed, 40 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF
index 181d86f36bc..b747b54416a 100644
--- a/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.client.integration.tests/META-INF/MANIFEST.MF
@@ -45,6 +45,7 @@ Import-Package: org.eclipse.core.runtime,
org.eclipse.osee.framework.skynet.core,
org.eclipse.osee.framework.skynet.core.artifact,
org.eclipse.osee.framework.skynet.core.rule,
+ org.eclipse.osee.framework.skynet.core.utility,
org.eclipse.osee.framework.ui.plugin.xnavigate,
org.eclipse.osee.framework.ui.skynet.render,
org.eclipse.osee.framework.ui.skynet.test,
diff --git a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/DirtyArtifactCacheTest.java b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/DirtyArtifactCacheTest.java
new file mode 100644
index 00000000000..f505be99867
--- /dev/null
+++ b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/DirtyArtifactCacheTest.java
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.client.integration.tests.suite;
+
+import java.util.Collection;
+import java.util.logging.Level;
+import junit.framework.Assert;
+import org.eclipse.osee.framework.logging.OseeLog;
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.artifact.ArtifactCache;
+import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
+
+/**
+ * This test should be run as the last test of a suite to make sure that the ArtifactCache has no dirty artifacts.
+ *
+ * @author Donald G. Dunne
+ */
+public class DirtyArtifactCacheTest {
+
+ @org.junit.Test
+ public void testArtifactCacheNotDirty() {
+ final Collection<Artifact> dirtyArtifacts = ArtifactCache.getDirtyArtifacts();
+ for (Artifact artifact : dirtyArtifacts) {
+ OseeLog.logf(getClass(), Level.WARNING, "Name: %s Type: %s ", artifact.getName(),
+ artifact.getArtifactTypeName());
+ }
+ Assert.assertTrue(String.format(
+ "After all tests are run, there should be no dirty artifacts in Artifact Cache; \n Found [%s]",
+ Artifacts.getNames(dirtyArtifacts)), dirtyArtifacts.isEmpty());
+ }
+}
diff --git a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/MasterTestSuite_DemoDbTests.java b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/MasterTestSuite_DemoDbTests.java
index 24ac9397a1d..4b0c8f3cfca 100644
--- a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/MasterTestSuite_DemoDbTests.java
+++ b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/suite/MasterTestSuite_DemoDbTests.java
@@ -25,7 +25,6 @@ import org.eclipse.osee.framework.jdk.core.util.OseeProperties;
import org.eclipse.osee.framework.messaging.event.res.test.AllEventResTestSuite;
import org.eclipse.osee.framework.skynet.core.FrameworkCore_Demo_Suite;
import org.eclipse.osee.framework.skynet.core.UserManager;
-import org.eclipse.osee.framework.skynet.core.artifact.DirtyArtifactCacheTest;
import org.eclipse.osee.framework.ui.skynet.render.RenderingUtil;
import org.eclipse.osee.framework.ui.skynet.test.FrameworkUi_Demo_Suite;
import org.eclipse.osee.support.test.util.DemoUsers;

Back to the top