Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/SMATestUtil.java')
-rw-r--r--plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/SMATestUtil.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/SMATestUtil.java b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/SMATestUtil.java
index f3a7ee8acf1..faf1977c0d1 100644
--- a/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/SMATestUtil.java
+++ b/plugins/org.eclipse.osee.ats.test/src/org/eclipse/osee/ats/test/util/SMATestUtil.java
@@ -12,7 +12,7 @@ package org.eclipse.osee.ats.test.util;
import java.util.Arrays;
import java.util.Collection;
-import junit.framework.TestCase;
+import junit.framework.Assert;
import org.eclipse.osee.ats.artifact.ATSAttributes;
import org.eclipse.osee.ats.artifact.StateMachineArtifact;
import org.eclipse.osee.ats.artifact.TeamWorkFlowArtifact.DefaultTeamState;
@@ -29,22 +29,22 @@ public class SMATestUtil {
public static void validateSMAs(Collection<? extends StateMachineArtifact> smas, String stateName, int totalPercent, double hoursSpent) throws Exception {
for (StateMachineArtifact sma : smas) {
- TestCase.assertEquals("Current State wronf for " + sma.getHumanReadableId(),
- sma.getStateMgr().getCurrentStateName(), stateName);
+ Assert.assertEquals("Current State wronf for " + sma.getHumanReadableId(),
+ sma.getStateMgr().getCurrentStateName(), stateName);
if (sma.isCancelledOrCompleted()) {
- TestCase.assertEquals("ats.CurrentState wrong " + sma.getHumanReadableId(),
- sma.getStateMgr().getCurrentStateName() + ";;;",
- sma.getSoleAttributeValue(ATSAttributes.CURRENT_STATE_ATTRIBUTE.getStoreName()));
+ Assert.assertEquals("ats.CurrentState wrong " + sma.getHumanReadableId(),
+ sma.getStateMgr().getCurrentStateName() + ";;;",
+ sma.getSoleAttributeValue(ATSAttributes.CURRENT_STATE_ATTRIBUTE.getStoreName()));
}
- TestCase.assertEquals("Percent wrong for " + sma.getHumanReadableId(), sma.getWorldViewPercentCompleteTotal(),
- totalPercent);
- TestCase.assertEquals("Hours Spent wrong for " + sma.getHumanReadableId(), sma.getWorldViewHoursSpentTotal(),
- hoursSpent);
+ Assert.assertEquals("Percent wrong for " + sma.getHumanReadableId(), sma.getWorldViewPercentCompleteTotal(),
+ totalPercent);
+ Assert.assertEquals("Hours Spent wrong for " + sma.getHumanReadableId(), sma.getWorldViewHoursSpentTotal(),
+ hoursSpent);
for (String stateValue : sma.getAttributesToStringList(ATSAttributes.STATE_ATTRIBUTE.getStoreName())) {
if (stateValue.startsWith(DefaultTeamState.Completed.name())) {
- TestCase.assertEquals("ats.State wrong " + sma.getHumanReadableId(), stateValue, "Completed;;;");
+ Assert.assertEquals("ats.State wrong " + sma.getHumanReadableId(), stateValue, "Completed;;;");
} else if (stateValue.startsWith(DefaultTeamState.Cancelled.name())) {
- TestCase.assertEquals("ats.State wrong " + sma.getHumanReadableId(), stateValue, "Cancelled;;;");
+ Assert.assertEquals("ats.State wrong " + sma.getHumanReadableId(), stateValue, "Cancelled;;;");
}
}
}

Back to the top