Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2016-02-05 09:15:23 -0500
committerRyan D. Brooks2016-02-05 09:15:23 -0500
commit60965980be809aaafb0a2a7dedc5c596cc3b918b (patch)
treefb560f1738c9546e27e555d42268ddb087f20868 /plugins/org.eclipse.osee.x.server.integration.tests
parent6d6d7de7ff2d14bc2898c8722cc03a3339479ca9 (diff)
downloadorg.eclipse.osee-60965980be809aaafb0a2a7dedc5c596cc3b918b.tar.gz
org.eclipse.osee-60965980be809aaafb0a2a7dedc5c596cc3b918b.tar.xz
org.eclipse.osee-60965980be809aaafb0a2a7dedc5c596cc3b918b.zip
refactor: Create BranchId using Long
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.java29
1 files changed, 5 insertions, 24 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 1367f38678..c352fda29b 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
@@ -18,13 +18,13 @@ import static org.eclipse.osee.framework.core.enums.CoreArtifactTypes.SoftwareRe
import static org.eclipse.osee.framework.core.enums.CoreAttributeTypes.AccessContextId;
import static org.eclipse.osee.framework.core.enums.CoreAttributeTypes.Active;
import static org.eclipse.osee.framework.core.enums.CoreBranches.COMMON;
+import static org.eclipse.osee.framework.core.enums.DemoBranches.SAW_Bld_1;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Properties;
import javax.ws.rs.core.MediaType;
-import org.eclipse.osee.framework.core.data.IOseeBranch;
import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
import org.eclipse.osee.framework.core.enums.QueryOption;
import org.eclipse.osee.framework.core.enums.SystemUser;
@@ -43,24 +43,6 @@ public class OseeClientQueryTest {
private static final String GUID1 = SystemUser.Anonymous.getGuid();
private static final String GUID2 = SystemUser.OseeSystem.getGuid();
- private static final IOseeBranch SAW_1 = new IOseeBranch() {
-
- @Override
- public Long getGuid() {
- return 3L;
- }
-
- @Override
- public String getName() {
- return "SAW_Bld_1";
- }
-
- @Override
- public Long getUuid() {
- return 3L;
- }
- };
-
private static OseeClient createClient;
@BeforeClass
@@ -138,14 +120,14 @@ public class OseeClientQueryTest {
public void searchForArtifactType() throws OseeCoreException {
final int EXPECTED_RESULTS = 7;
SearchResult results =
- createClient.createQueryBuilder(SAW_1).andTypeEquals(Folder).getSearchResult(RequestType.IDS);
+ createClient.createQueryBuilder(SAW_Bld_1).andTypeEquals(Folder).getSearchResult(RequestType.IDS);
assertEquals(EXPECTED_RESULTS, results.getTotal());
}
@Test
public void searchForArtifactTypes() throws OseeCoreException {
final int EXPECTED_RESULTS = 24;
- SearchResult results = createClient.createQueryBuilder(SAW_1).andTypeEquals(GeneralData, GeneralDocument,
+ SearchResult results = createClient.createQueryBuilder(SAW_Bld_1).andTypeEquals(GeneralData, GeneralDocument,
SoftwareRequirement).getSearchResult(RequestType.IDS);
assertEquals(EXPECTED_RESULTS, results.getTotal());
}
@@ -153,9 +135,8 @@ public class OseeClientQueryTest {
@Test
public void searchForArtifactTypesIncludeTypeInheritance() throws OseeCoreException {
final int EXPECTED_RESULTS = 150;
- SearchResult results =
- createClient.createQueryBuilder(SAW_1).andIsOfType(GeneralData, GeneralDocument, Requirement).getSearchResult(
- RequestType.IDS);
+ SearchResult results = createClient.createQueryBuilder(SAW_Bld_1).andIsOfType(GeneralData, GeneralDocument,
+ Requirement).getSearchResult(RequestType.IDS);
assertEquals(EXPECTED_RESULTS, results.getTotal());
}

Back to the top