Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2013-09-24 17:16:00 -0400
committerGerrit Code Review @ Eclipse.org2013-09-27 16:16:26 -0400
commite24e27004369f5eac46aa96a02efeff3d1bd5ec6 (patch)
tree2d49b256c0b7ab9f412c145d6b2955c2028d69b4 /plugins/org.eclipse.osee.ats.client.integration.tests
parent66d39a632474bae7b347953ccdf520d8efa934bb (diff)
downloadorg.eclipse.osee-e24e27004369f5eac46aa96a02efeff3d1bd5ec6.tar.gz
org.eclipse.osee-e24e27004369f5eac46aa96a02efeff3d1bd5ec6.tar.xz
org.eclipse.osee-e24e27004369f5eac46aa96a02efeff3d1bd5ec6.zip
bug[ats_PXWHE]: Task Edit Status gives error if task's Related-To-State is empty
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/workflow/SMAPromptChangeStatusTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/workflow/SMAPromptChangeStatusTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/workflow/SMAPromptChangeStatusTest.java
index 7a5d60fcaf..897ef3749b 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/workflow/SMAPromptChangeStatusTest.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/workflow/SMAPromptChangeStatusTest.java
@@ -161,6 +161,20 @@ public class SMAPromptChangeStatusTest {
assertTrue(result.getText().contains("Task work must be done in"));
}
+ @Test
+ public void test05ChangeStatusPassesIfTaskNotUsingRelatedToState() throws Exception {
+ SkynetTransaction transaction =
+ TransactionManager.createTransaction(AtsUtil.getAtsBranch(), "Prompt Change Status Test");
+ Collection<TaskArtifact> tasks =
+ DemoTestUtil.createSimpleTasks(teamArt, getClass().getSimpleName() + "_RelState", 2, "", transaction);
+ transaction.execute();
+
+ assertTrue(tasks.size() == 2);
+
+ Result result = SMAPromptChangeStatus.isValidToChangeStatus(tasks);
+ assertTrue(result.isTrue());
+ }
+
private static void validateSMAs(Collection<? extends AbstractWorkflowArtifact> awas, String stateName, int totalPercent, double hoursSpent) throws Exception {
for (AbstractWorkflowArtifact awa : awas) {
assertEquals("Current State wrong for " + awa.getHumanReadableId(), awa.getStateMgr().getCurrentStateName(),

Back to the top