Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/DirtyArtifactCacheTest.java')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/DirtyArtifactCacheTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/DirtyArtifactCacheTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/DirtyArtifactCacheTest.java
new file mode 100644
index 00000000000..55b6ad4953c
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/DirtyArtifactCacheTest.java
@@ -0,0 +1,24 @@
+/*
+ * Created on May 17, 2011
+ *
+ * PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE
+ */
+package org.eclipse.osee.framework.skynet.core.artifact;
+
+import junit.framework.Assert;
+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() {
+ Assert.assertTrue(String.format(
+ "After all tests are run, there should be no dirty artifacts in Artifact Cache; Found [%s]",
+ Artifacts.artNames(ArtifactCache.getDirtyArtifacts())), ArtifactCache.getDirtyArtifacts().isEmpty());
+ }
+}

Back to the top