Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-02-11 16:18:21 +0000
committerjmisinco2014-02-20 13:43:49 +0000
commit0a4ad9b90cbd8d29c38122ad6ba7a5ba1d926a2b (patch)
tree7099471c7eb571925dd9a1f2df4359395493d013 /plugins/org.eclipse.osee.ats.client.integration.tests/src
parent6658925f58eeefeb07f2d92e0e697e402abd7881 (diff)
downloadorg.eclipse.osee-0a4ad9b90cbd8d29c38122ad6ba7a5ba1d926a2b.tar.gz
org.eclipse.osee-0a4ad9b90cbd8d29c38122ad6ba7a5ba1d926a2b.tar.xz
org.eclipse.osee-0a4ad9b90cbd8d29c38122ad6ba7a5ba1d926a2b.zip
feature[ats_ATS18853]: Disable user ability to delete ATS objects
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests/src')
-rw-r--r--plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java14
1 files changed, 10 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/operation/MoveTeamWorkflowsOperationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java
index 66c36557a4e..1e94b4f69de 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java
@@ -11,14 +11,15 @@
package org.eclipse.osee.ats.client.integration.tests.ats.core.client.operation;
import java.util.Arrays;
-import org.junit.Assert;
import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil;
import org.eclipse.osee.ats.core.client.action.ActionArtifact;
+import org.eclipse.osee.ats.core.client.artifact.AtsArtifactChecks;
import org.eclipse.osee.ats.core.client.operation.MoveTeamWorkflowsOperation;
import org.eclipse.osee.ats.core.client.team.TeamWorkFlowArtifact;
import org.eclipse.osee.framework.core.operation.Operations;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.junit.AfterClass;
+import org.junit.Assert;
import org.junit.BeforeClass;
/**
@@ -41,9 +42,14 @@ public class MoveTeamWorkflowsOperationTest {
ActionArtifact actArt2 = AtsTestUtil.getActionArt2();
TeamWorkFlowArtifact teamWf2 = AtsTestUtil.getTeamWf2();
- MoveTeamWorkflowsOperation operation =
- new MoveTeamWorkflowsOperation("Move", teamWf, Arrays.asList(teamWf2), "new title");
- Operations.executeWorkAndCheckStatus(operation);
+ try {
+ AtsArtifactChecks.setDeletionChecksEnabled(false);
+ MoveTeamWorkflowsOperation operation =
+ new MoveTeamWorkflowsOperation("Move", teamWf, Arrays.asList(teamWf2), "new title");
+ Operations.executeWorkAndCheckStatus(operation);
+ } finally {
+ AtsArtifactChecks.setDeletionChecksEnabled(false);
+ }
Assert.assertEquals("Parent Actions should be same", teamWf.getParentActionArtifact(),
teamWf.getParentActionArtifact());

Back to the top