Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-02-12 10:30:47 -0500
committerRyan D. Brooks2016-02-12 10:30:47 -0500
commit6f2502aa6039770325f733fbefedf18d64ceecc0 (patch)
treebb2177d4fee68206adc97cd1708913f99b2e1fd9 /plugins/org.eclipse.osee.ats.core.test
parent7ef50bfc435bb99f9dfc8dd1bc7270658f207bda (diff)
downloadorg.eclipse.osee-6f2502aa6039770325f733fbefedf18d64ceecc0.tar.gz
org.eclipse.osee-6f2502aa6039770325f733fbefedf18d64ceecc0.tar.xz
org.eclipse.osee-6f2502aa6039770325f733fbefedf18d64ceecc0.zip
feature[ats_ATS263337]: Add metrics to ATS Earned Value Service
Diffstat (limited to 'plugins/org.eclipse.osee.ats.core.test')
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/mock/MockWorkItem.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/mock/MockWorkItem.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/mock/MockWorkItem.java
index cb7256601f..6bc54fe23e 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/mock/MockWorkItem.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/mock/MockWorkItem.java
@@ -246,4 +246,24 @@ public class MockWorkItem implements IAtsWorkItem {
return false;
}
+ @Override
+ public boolean isInWork() {
+ return getStateMgr().getStateType().isInWork();
+ }
+
+ @Override
+ public boolean isCompleted() {
+ return getStateMgr().getStateType().isCompleted();
+ }
+
+ @Override
+ public boolean isCompletedOrCancelled() {
+ return isCompleted() || isCancelled();
+ }
+
+ @Override
+ public boolean isCancelled() {
+ return getStateMgr().getStateType().isCancelled();
+ }
+
}

Back to the top