Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2014-08-04 17:44:34 -0400
committerRoberto E. Escobar2014-09-29 18:55:05 -0400
commit118d50b87fab3db2615d2f23a5d9b7ff8642ecfc (patch)
tree89b10f5c9d507e063f3319410fd312ef8010ef34 /plugins/org.eclipse.osee.x.server.integration.tests
parentdcb326ebb42d136dfcf2e550f2323dcfad7979ca (diff)
downloadorg.eclipse.osee-118d50b87fab3db2615d2f23a5d9b7ff8642ecfc.tar.gz
org.eclipse.osee-118d50b87fab3db2615d2f23a5d9b7ff8642ecfc.tar.xz
org.eclipse.osee-118d50b87fab3db2615d2f23a5d9b7ff8642ecfc.zip
refactor[ats_ATS56804]: Simplify artifact searching options
Diffstat (limited to 'plugins/org.eclipse.osee.x.server.integration.tests')
-rw-r--r--plugins/org.eclipse.osee.x.server.integration.tests/src/org/eclipse/osee/x/server/integration/tests/performance/OseeClientQueryTest.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.x.server.integration.tests/src/org/eclipse/osee/x/server/integration/tests/performance/OseeClientQueryTest.java b/plugins/org.eclipse.osee.x.server.integration.tests/src/org/eclipse/osee/x/server/integration/tests/performance/OseeClientQueryTest.java
index bbb3003650..83a5cb6a92 100644
--- a/plugins/org.eclipse.osee.x.server.integration.tests/src/org/eclipse/osee/x/server/integration/tests/performance/OseeClientQueryTest.java
+++ b/plugins/org.eclipse.osee.x.server.integration.tests/src/org/eclipse/osee/x/server/integration/tests/performance/OseeClientQueryTest.java
@@ -21,12 +21,9 @@ import static org.eclipse.osee.framework.core.enums.CoreBranches.COMMON;
import static org.junit.Assert.assertEquals;
import org.databene.contiperf.PerfTest;
import org.eclipse.osee.framework.core.data.IOseeBranch;
-import org.eclipse.osee.framework.core.enums.CaseType;
import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.framework.core.enums.MatchTokenCountType;
+import org.eclipse.osee.framework.core.enums.QueryOption;
import org.eclipse.osee.framework.core.enums.SystemUser;
-import org.eclipse.osee.framework.core.enums.TokenDelimiterMatch;
-import org.eclipse.osee.framework.core.enums.TokenOrderType;
import org.eclipse.osee.framework.jdk.core.type.Identity;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.orcs.rest.client.OseeClient;
@@ -137,8 +134,8 @@ public class OseeClientQueryTest {
public void searchForArtifactWithActionInName() throws OseeCoreException {
final int EXPECTED_RESULTS = 43;
SearchResult results =
- createClient.createQueryBuilder(COMMON).and(CoreAttributeTypes.Name, "SAW", CaseType.IGNORE_CASE,
- TokenOrderType.MATCH_ORDER, TokenDelimiterMatch.ANY, MatchTokenCountType.IGNORE_TOKEN_COUNT).getSearchResult(
+ createClient.createQueryBuilder(COMMON).and(CoreAttributeTypes.Name, "SAW", QueryOption.CASE__IGNORE,
+ QueryOption.TOKEN_MATCH_ORDER__MATCH, QueryOption.TOKEN_DELIMITER__ANY, QueryOption.TOKEN_COUNT__IGNORE).getSearchResult(
RequestType.IDS);
assertEquals(EXPECTED_RESULTS, results.getTotal());
}

Back to the top