diff options
author | David W. Miller | 2017-10-03 23:33:49 +0000 |
---|---|---|
committer | David W. Miller | 2017-10-04 15:30:01 +0000 |
commit | 31f5ae9ba86ea0c6794ec5ced8b91db3c80ad3c5 (patch) | |
tree | c3a4e5453466c0adc789319301144e228fbee3c6 /plugins/org.eclipse.osee.client.integration.tests | |
parent | 3c53b7c2387c074dd01f15e045ac0019b67e1b68 (diff) | |
download | org.eclipse.osee-31f5ae9ba86ea0c6794ec5ced8b91db3c80ad3c5.tar.gz org.eclipse.osee-31f5ae9ba86ea0c6794ec5ced8b91db3c80ad3c5.tar.xz org.eclipse.osee-31f5ae9ba86ea0c6794ec5ced8b91db3c80ad3c5.zip |
bug[ats_TW2213]: Add utility to help with feature name comparison
Change-Id: I518ff99245f71b3afa3102f172ae507809b67082
Diffstat (limited to 'plugins/org.eclipse.osee.client.integration.tests')
-rw-r--r-- | plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/ui/skynet/WordApplicabilityTest.java | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/ui/skynet/WordApplicabilityTest.java b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/ui/skynet/WordApplicabilityTest.java index b6998857a43..a38a7acd5f1 100644 --- a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/ui/skynet/WordApplicabilityTest.java +++ b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/ui/skynet/WordApplicabilityTest.java @@ -14,16 +14,13 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.util.HashSet; -import java.util.List; import org.eclipse.osee.framework.core.data.BranchId; -import org.eclipse.osee.framework.core.data.FeatureDefinitionData; import org.eclipse.osee.framework.core.enums.DemoBranches; import org.eclipse.osee.framework.core.util.WordCoreUtil; import org.eclipse.osee.framework.jdk.core.type.HashCollection; import org.eclipse.osee.framework.jdk.core.util.Lib; +import org.eclipse.osee.framework.skynet.core.utility.ApplicabilityUtility; import org.eclipse.osee.framework.skynet.core.word.WordUtil; -import org.eclipse.osee.framework.ui.skynet.internal.ServiceUtil; -import org.eclipse.osee.orcs.rest.client.OseeClient; import org.junit.Before; import org.junit.Test; @@ -37,14 +34,12 @@ public class WordApplicabilityTest { private static final String TEST_ElSE_TAGS = "support/WordApplicabilityElseTags.xml"; private static final String TEST_EMBEDDED_TAGS = "support/WordApplicabilityEmbeddedTags.xml"; - private OseeClient oseeClient; HashCollection<String, String> validFeatureValuesForBranch; HashSet<String> validConfigurations; @Before public void setup() { - oseeClient = ServiceUtil.getOseeClient(); - validFeatureValuesForBranch = getValidFeatureValuesForBranch(DemoBranches.SAW_Bld_1); + validFeatureValuesForBranch = ApplicabilityUtility.getValidFeatureValuesForBranch(DemoBranches.SAW_Bld_1); validConfigurations = getValidConfigurations(DemoBranches.SAW_Bld_1); } @@ -80,18 +75,6 @@ public class WordApplicabilityTest { validConfigurations)); } - private HashCollection<String, String> getValidFeatureValuesForBranch(BranchId branch) { - List<FeatureDefinitionData> featureDefinitionData = - oseeClient.getApplicabilityEndpoint(branch).getFeatureDefinitionData(); - - HashCollection<String, String> validFeatureValues = new HashCollection<>(); - for (FeatureDefinitionData feat : featureDefinitionData) { - validFeatureValues.put(feat.getName(), feat.getValues()); - } - - return validFeatureValues; - } - private HashSet<String> getValidConfigurations(BranchId branch) { return WordUtil.getValidConfigurations(branch); } |