Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java')
-rw-r--r--plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java
index 86bf9783eea..c571aaeb871 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java
@@ -52,7 +52,6 @@ import org.eclipse.osee.framework.core.enums.DemoUsers;
import org.eclipse.osee.framework.core.enums.SystemUser;
import org.eclipse.osee.framework.core.util.Result;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.osee.framework.ui.ws.AWorkspace;
import org.junit.AfterClass;
import org.junit.Assert;
@@ -411,9 +410,9 @@ public class TransitionManagerTest {
Assert.assertTrue(results.isEmpty());
// validate that can't transition without targeted version when team def rule is set
- ((Artifact) teamArt.getTeamDefinition().getStoreObject()).addAttributeFromString(AtsAttributeTypes.RuleDefinition,
- RuleDefinitionOption.RequireTargetedVersion.name());
- ((Artifact) teamArt.getTeamDefinition().getStoreObject()).persist(getClass().getSimpleName());
+ AtsClientService.get().getArtifact(teamArt.getTeamDefinition()).addAttributeFromString(
+ AtsAttributeTypes.RuleDefinition, RuleDefinitionOption.RequireTargetedVersion.name());
+ AtsClientService.get().getArtifact(teamArt.getTeamDefinition()).persist(getClass().getSimpleName());
results.clear();
transMgr.handleTransitionValidation(results);
Assert.assertTrue(results.contains(teamArt, TransitionResult.MUST_BE_TARGETED_FOR_VERSION));

Back to the top