Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2013-11-26 12:58:00 -0500
committerdonald.g.dunne2013-12-02 11:36:40 -0500
commit8520347fb4618b137836fbf74ab98b64ffd0a4a5 (patch)
treeeca6c1b5fc8453dced367cd4f310a71ef650dbce /plugins/org.eclipse.osee.ats.client.integration.tests
parent9aea9fb473cf52835ed0bbffd28d5e505133fd4b (diff)
downloadorg.eclipse.osee-8520347fb4618b137836fbf74ab98b64ffd0a4a5.tar.gz
org.eclipse.osee-8520347fb4618b137836fbf74ab98b64ffd0a4a5.tar.xz
org.eclipse.osee-8520347fb4618b137836fbf74ab98b64ffd0a4a5.zip
feature[ats_S5JDQ]: Remove static getCurrentUser from StateManager
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests')
-rw-r--r--plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java13
1 files changed, 9 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/StateManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java
index 0bbc7f8983a..fd60129945f 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java
@@ -15,6 +15,7 @@ import org.eclipse.osee.ats.api.workflow.transition.ITransitionHelper;
import org.eclipse.osee.ats.api.workflow.transition.TransitionResults;
import org.eclipse.osee.ats.client.integration.tests.AtsClientService;
import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil;
+import org.eclipse.osee.ats.core.AtsCore;
import org.eclipse.osee.ats.core.client.team.TeamWorkFlowArtifact;
import org.eclipse.osee.ats.core.client.util.AtsChangeSet;
import org.eclipse.osee.ats.core.util.HoursSpentUtil;
@@ -42,7 +43,8 @@ public class StateManagerTest {
TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf();
- teamWf.getStateMgr().updateMetrics(AtsTestUtil.getAnalyzeStateDef(), 1.1, 1, false);
+ teamWf.getStateMgr().updateMetrics(AtsTestUtil.getAnalyzeStateDef(), 1.1, 1, false,
+ AtsCore.getUserService().getCurrentUser());
AtsChangeSet changes = new AtsChangeSet(getClass().getSimpleName());
ITransitionHelper helper =
@@ -54,7 +56,8 @@ public class StateManagerTest {
Assert.assertTrue(results.isEmpty());
changes.clear();
- teamWf.getStateMgr().updateMetrics(AtsTestUtil.getImplementStateDef(), 2.2, 1, false);
+ teamWf.getStateMgr().updateMetrics(AtsTestUtil.getImplementStateDef(), 2.2, 1, false,
+ AtsCore.getUserService().getCurrentUser());
helper =
new MockTransitionHelper("dodad", Collections.singletonList(teamWf),
AtsTestUtil.getCompletedStateDef().getName(),
@@ -66,11 +69,13 @@ public class StateManagerTest {
Assert.assertEquals(3.3, HoursSpentUtil.getHoursSpentTotal(teamWf), 0.001);
- teamWf.getStateMgr().updateMetrics(AtsTestUtil.getCompletedStateDef(), -2.2, 1, false);
+ teamWf.getStateMgr().updateMetrics(AtsTestUtil.getCompletedStateDef(), -2.2, 1, false,
+ AtsCore.getUserService().getCurrentUser());
AtsChangeSet.execute(getClass().getSimpleName(), teamWf);
Assert.assertEquals(1.1, HoursSpentUtil.getHoursSpentTotal(teamWf), 0.001);
- teamWf.getStateMgr().updateMetrics(AtsTestUtil.getCompletedStateDef(), -2.2, 1, false);
+ teamWf.getStateMgr().updateMetrics(AtsTestUtil.getCompletedStateDef(), -2.2, 1, false,
+ AtsCore.getUserService().getCurrentUser());
AtsChangeSet.execute(getClass().getSimpleName(), teamWf);
Assert.assertEquals(0, HoursSpentUtil.getHoursSpentTotal(teamWf), 0.001);

Back to the top