diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/BranchStatusColumnTest.java')
-rw-r--r-- | plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/BranchStatusColumnTest.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/BranchStatusColumnTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/BranchStatusColumnTest.java new file mode 100644 index 00000000000..98562fda044 --- /dev/null +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/BranchStatusColumnTest.java @@ -0,0 +1,54 @@ +/******************************************************************************* + * Copyright (c) 2010 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.ats.client.integration.tests.ats.column; + +import org.eclipse.osee.ats.client.demo.DemoWorkType; +import org.eclipse.osee.ats.client.integration.tests.util.DemoTestUtil; +import org.eclipse.osee.ats.column.BranchStatusColumn; +import org.eclipse.osee.ats.core.client.team.TeamWorkFlowArtifact; +import org.eclipse.osee.framework.logging.SevereLoggingMonitor; +import org.eclipse.osee.framework.skynet.core.artifact.Artifact; +import org.eclipse.osee.support.test.util.TestUtil; +import org.junit.Assert; + +/** + * @tests BranchStatusColumn + * @author Donald G. Dunne + */ +public class BranchStatusColumnTest { + + @org.junit.Test + public void testGetColumnText() throws Exception { + SevereLoggingMonitor loggingMonitor = TestUtil.severeLoggingStart(); + + TeamWorkFlowArtifact reqArt = + (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Requirements); + Assert.assertEquals("Working", + BranchStatusColumn.getInstance().getColumnText(reqArt, BranchStatusColumn.getInstance(), 0)); + + TeamWorkFlowArtifact testArt = + (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Test); + Assert.assertEquals("", + BranchStatusColumn.getInstance().getColumnText(testArt, BranchStatusColumn.getInstance(), 0)); + + Artifact actionArt = reqArt.getParentActionArtifact(); + Assert.assertEquals("Working", + BranchStatusColumn.getInstance().getColumnText(actionArt, BranchStatusColumn.getInstance(), 0)); + + TeamWorkFlowArtifact reqArt2 = + (TeamWorkFlowArtifact) DemoTestUtil.getCommittedActionWorkflow(DemoWorkType.Requirements); + Assert.assertEquals("Committed", + BranchStatusColumn.getInstance().getColumnText(reqArt2, BranchStatusColumn.getInstance(), 0)); + + TestUtil.severeLoggingEnd(loggingMonitor); + } + +} |