Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrschmitt2010-05-14 21:50:54 +0000
committerrschmitt2010-05-14 21:50:54 +0000
commit673255b5d721ea9f238a77e790238d63f7d4c033 (patch)
tree6d129b18f70d0d42943c238aa2cfa44c071beee6 /plugins/org.eclipse.osee.framework.skynet.core.test
parent89302b64eebed2699547f7e6b85dc4c4825d23d9 (diff)
downloadorg.eclipse.osee-673255b5d721ea9f238a77e790238d63f7d4c033.tar.gz
org.eclipse.osee-673255b5d721ea9f238a77e790238d63f7d4c033.tar.xz
org.eclipse.osee-673255b5d721ea9f238a77e790238d63f7d4c033.zip
Fixed ArtifactQuery bug involving GET vs CHECK
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/ArtifactQueryTestDemo.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/ArtifactQueryTestDemo.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/ArtifactQueryTestDemo.java
index 081e8996642..e471860ce21 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/ArtifactQueryTestDemo.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/cases/ArtifactQueryTestDemo.java
@@ -41,6 +41,13 @@ public class ArtifactQueryTestDemo {
newArtifact.deleteAndPersist();
+ try {
+ Artifact ret = ArtifactQuery.checkArtifactFromId(newArtifact.getGuid(), BranchManager.getCommonBranch());
+ Assert.assertNull(ret);
+ } catch (ArtifactDoesNotExist ex) {
+ Assert.fail("ArtifactQuery should never throw ArtifactDoesNotExist with QueryType.CHECK");
+ }
+
// Should NOT exist, cause deleted
try {
ArtifactQuery.getArtifactFromId(newArtifact.getGuid(), BranchManager.getCommonBranch());

Back to the top