Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2015-03-18 15:38:36 -0400
committerjmisinco2015-03-23 12:30:46 -0400
commit5ea082ba70716a15ae7b8ea1b375765b89a0e9bc (patch)
tree1c0fbb8141a7418495b23eab8b3dc61b290efd2c /plugins/org.eclipse.osee.orcs.db.test
parentaa7d9317121cce7140027448a95952e995657e89 (diff)
downloadorg.eclipse.osee-5ea082ba70716a15ae7b8ea1b375765b89a0e9bc.tar.gz
org.eclipse.osee-5ea082ba70716a15ae7b8ea1b375765b89a0e9bc.tar.xz
org.eclipse.osee-5ea082ba70716a15ae7b8ea1b375765b89a0e9bc.zip
feature: Add attribute not exists search to client
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.db.test')
-rw-r--r--plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/search/handlers/SqlHandlerFactoryUtilTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/search/handlers/SqlHandlerFactoryUtilTest.java b/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/search/handlers/SqlHandlerFactoryUtilTest.java
index a823971c84..03ffdef98a 100644
--- a/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/search/handlers/SqlHandlerFactoryUtilTest.java
+++ b/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/search/handlers/SqlHandlerFactoryUtilTest.java
@@ -27,6 +27,7 @@ import org.eclipse.osee.orcs.core.ds.criteria.CriteriaArtifactType;
import org.eclipse.osee.orcs.core.ds.criteria.CriteriaAttributeKeywords;
import org.eclipse.osee.orcs.core.ds.criteria.CriteriaAttributeOther;
import org.eclipse.osee.orcs.core.ds.criteria.CriteriaAttributeTypeExists;
+import org.eclipse.osee.orcs.core.ds.criteria.CriteriaAttributeTypeNotExists;
import org.eclipse.osee.orcs.core.ds.criteria.CriteriaRelatedTo;
import org.eclipse.osee.orcs.core.ds.criteria.CriteriaRelationTypeExists;
import org.eclipse.osee.orcs.core.ds.criteria.CriteriaRelationTypeFollow;
@@ -71,6 +72,7 @@ public class SqlHandlerFactoryUtilTest {
criteria.add(new CriteriaArtifactType(null, null, true));
criteria.add(new CriteriaRelationTypeExists(null));
criteria.add(new CriteriaAttributeTypeExists(null));
+ criteria.add(new CriteriaAttributeTypeNotExists(null));
criteria.add(new CriteriaAttributeOther(null, null));
criteria.add(new CriteriaAttributeKeywords(false, null, null, Collections.<String> emptyList(), null, null, null));
criteria.add(new CriteriaRelatedTo(null, null));
@@ -81,7 +83,7 @@ public class SqlHandlerFactoryUtilTest {
CriteriaSet criteriaSet = createCriteria(criteria);
List<SqlHandler<?>> handlers = factory.createHandlers(criteriaSet);
- Assert.assertEquals(10, handlers.size());
+ Assert.assertEquals(11, handlers.size());
Iterator<SqlHandler<?>> iterator = handlers.iterator();
assertHandler(iterator.next(), ArtifactIdsSqlHandler.class, SqlHandlerPriority.ARTIFACT_ID);
@@ -92,6 +94,8 @@ public class SqlHandlerFactoryUtilTest {
tagProcessor);
assertHandler(iterator.next(), ArtifactTypeSqlHandler.class, SqlHandlerPriority.ARTIFACT_TYPE);
assertHandler(iterator.next(), AttributeTypeExistsSqlHandler.class, SqlHandlerPriority.ATTRIBUTE_TYPE_EXISTS);
+ assertHandler(iterator.next(), AttributeTypeNotExistsSqlHandler.class,
+ SqlHandlerPriority.ATTRIBUTE_TYPE_NOT_EXISTS);
assertHandler(iterator.next(), RelationTypeExistsSqlHandler.class, SqlHandlerPriority.RELATION_TYPE_EXISTS);
assertHandler(iterator.next(), RelatedToSqlHandler.class, SqlHandlerPriority.RELATED_TO_ART_IDS);
assertHandler(iterator.next(), AllArtifactsSqlHandler.class, SqlHandlerPriority.ALL_ARTIFACTS);

Back to the top