Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2015-03-19 17:41:43 -0400
committerAngel Avila2015-03-19 17:41:43 -0400
commit99085f77f9730e74a5399b5b0f471a96420c866c (patch)
treefe4362d4feb978d71dfb4995a5eeeaecbcfb64f4 /plugins/org.eclipse.osee.x.server.integration.tests
parentf3e290830b50f6dc064cd9fb26c8d6e70ee35e95 (diff)
downloadorg.eclipse.osee-99085f77f9730e74a5399b5b0f471a96420c866c.tar.gz
org.eclipse.osee-99085f77f9730e74a5399b5b0f471a96420c866c.tar.xz
org.eclipse.osee-99085f77f9730e74a5399b5b0f471a96420c866c.zip
refactor: Extract IdeClientEndpoint API
Change-Id: I1b44c6c9474250b7e81ed94afbe021b7c10db766 Signed-off-by: Angel Avila <angel.avila2@boeing.com>
Diffstat (limited to 'plugins/org.eclipse.osee.x.server.integration.tests')
-rw-r--r--plugins/org.eclipse.osee.x.server.integration.tests/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.osee.x.server.integration.tests/src/org/eclipse/osee/x/server/integration/tests/performance/OseeClientQueryTest.java8
2 files changed, 8 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.x.server.integration.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.x.server.integration.tests/META-INF/MANIFEST.MF
index cc4ae4f676..29479e2db4 100644
--- a/plugins/org.eclipse.osee.x.server.integration.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.x.server.integration.tests/META-INF/MANIFEST.MF
@@ -19,6 +19,7 @@ Import-Package: javax.ws.rs.core;version="2.0.0",
org.eclipse.osee.jaxrs,
org.eclipse.osee.jaxrs.client,
org.eclipse.osee.orcs.rest.client,
+ org.eclipse.osee.orcs.rest.model,
org.eclipse.osee.orcs.rest.model.search.artifact,
org.hamcrest.core,
org.junit,
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 ff037acd34..72a977cf8c 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
@@ -19,6 +19,7 @@ import static org.eclipse.osee.framework.core.enums.CoreAttributeTypes.AccessCon
import static org.eclipse.osee.framework.core.enums.CoreAttributeTypes.Active;
import static org.eclipse.osee.framework.core.enums.CoreBranches.COMMON;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Properties;
@@ -31,6 +32,8 @@ import org.eclipse.osee.framework.core.enums.SystemUser;
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;
+import org.eclipse.osee.orcs.rest.model.IdeClientEndpoint;
+import org.eclipse.osee.orcs.rest.model.IdeVersion;
import org.eclipse.osee.orcs.rest.model.search.artifact.RequestType;
import org.eclipse.osee.orcs.rest.model.search.artifact.SearchResult;
import org.eclipse.osee.x.server.integration.tests.util.IntegrationUtil;
@@ -197,7 +200,10 @@ public class OseeClientQueryTest {
@PerfTest(threads = 1, invocations = 1)
@Test
public void supportedVersions() {
- Collection<String> supportedVersions = createClient.getIdeClientSupportedVersions();
+ IdeClientEndpoint endpoint = createClient.getIdeClientEndpoint();
+ IdeVersion versions = endpoint.getSupportedVersions();
+ assertNotNull(versions);
+ Collection<String> supportedVersions = versions.getVersions();
assertEquals(true, !supportedVersions.isEmpty());
}

Back to the top