Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2015-06-19 11:52:35 -0400
committerAngel Avila2015-06-19 11:52:35 -0400
commitb637ae73a63fb2e3d3998d8cb47ffb925c189075 (patch)
tree66b88f2967b50d65388e3ecf634f9760e4f8e629 /plugins/org.eclipse.osee.ats.core.test
parent4e81efe5e00c74583f2caf6e5a8071c4b48a64e8 (diff)
downloadorg.eclipse.osee-b637ae73a63fb2e3d3998d8cb47ffb925c189075.tar.gz
org.eclipse.osee-b637ae73a63fb2e3d3998d8cb47ffb925c189075.tar.xz
org.eclipse.osee-b637ae73a63fb2e3d3998d8cb47ffb925c189075.zip
feature[ats_ATS209755]: Remove Object parameters from ATS.core
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/column/AssigneeColumnTest.java3
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ImplementersColumnTest.java5
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ParentTopTeamColumnTest.java16
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java1
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/AbstractWorkPackageUtilityTest.java7
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/mock/MockWorkItem.java5
6 files changed, 11 insertions, 26 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java
index b0410ababb..fc96fa4485 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/AssigneeColumnTest.java
@@ -14,6 +14,7 @@ import static org.mockito.Mockito.when;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import org.eclipse.osee.ats.api.IAtsObject;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.user.IAtsUser;
import org.eclipse.osee.ats.api.workdef.StateType;
@@ -192,7 +193,7 @@ public class AssigneeColumnTest extends AbstractUserTest {
AssigneeColumn column = new AssigneeColumn(new ImplementersStringProvider() {
@Override
- public String getImplementersStr(Object object) {
+ public String getImplementersStr(IAtsObject atsObject) {
return null;
}
});
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ImplementersColumnTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ImplementersColumnTest.java
index 55d97ef511..337d759106 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ImplementersColumnTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ImplementersColumnTest.java
@@ -61,11 +61,6 @@ public class ImplementersColumnTest extends AbstractUserTest {
Assert.assertEquals("", ImplementersColumn.instance.getImplementersStr(null));
}
- @org.junit.Test
- public void testGetImplementersStrFromInWorkWorkflow_blank() throws OseeCoreException {
- Assert.assertEquals("", ImplementersColumn.instance.getImplementersStr("this"));
- }
-
/**
* Should be blank if in Working state
*/
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ParentTopTeamColumnTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ParentTopTeamColumnTest.java
index 2113086501..a575d3cd03 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ParentTopTeamColumnTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ParentTopTeamColumnTest.java
@@ -27,13 +27,13 @@ import org.mockito.MockitoAnnotations;
/**
* Test Case for {@link ParentTopTeamColumn}
- *
+ *
* @author Donald G. Dunne
*/
public class ParentTopTeamColumnTest {
// @formatter:off
-
+
@Mock private IAtsTeamWorkflow teamWf1;
@Mock private IAtsTeamDefinition teamDef_top;
@Mock private IAtsTeamDefinition teamDef_child;
@@ -41,7 +41,7 @@ public class ParentTopTeamColumnTest {
@Mock private IAtsActionableItem aia_parent;
@Mock private IAtsVersion ver1;
@Mock private IAtsAbstractReview rev1;
-
+
// @formatter:on
@Before
@@ -121,16 +121,6 @@ public class ParentTopTeamColumnTest {
}
/**
- * Test method works on unexpected object types
- */
- @org.junit.Test
- public void testGetColumnText_invalidType() throws Exception {
- String columnText = ParentTopTeamColumn.getColumnText("String");
-
- Assert.assertEquals("", columnText);
- }
-
- /**
* Test that get current Team Def if no versionss and no ais
*/
@org.junit.Test
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java
index 476bccdd98..0d552375e4 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/TeamColumnUtilityTest.java
@@ -61,7 +61,6 @@ public class TeamColumnUtilityTest {
Assert.assertEquals(TEAM_NAME, utility.getColumnText(teamWf));
Assert.assertEquals(TEAM_NAME, utility.getColumnText(review));
- Assert.assertEquals("", utility.getColumnText("some object"));
Assert.assertEquals(TEAM_NAME, utility.getColumnText(standAloneReview));
}
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/AbstractWorkPackageUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/AbstractWorkPackageUtilityTest.java
index e5e761581b..0731523a28 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/AbstractWorkPackageUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/AbstractWorkPackageUtilityTest.java
@@ -11,7 +11,6 @@
package org.eclipse.osee.ats.core.internal.column.ev;
import static org.mockito.Mockito.when;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.ev.IAtsEarnedValueService;
import org.eclipse.osee.ats.api.ev.IAtsEarnedValueServiceProvider;
@@ -19,6 +18,7 @@ import org.eclipse.osee.ats.api.ev.IAtsWorkPackage;
import org.eclipse.osee.ats.core.column.IAtsColumnUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.util.Strings;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
@@ -46,11 +46,6 @@ public abstract class AbstractWorkPackageUtilityTest {
public abstract IAtsColumnUtility getUtil();
@Test
- public void testGetColumnText_notWorkItem() {
- Assert.assertEquals("", getUtil().getColumnText(new Boolean(false)));
- }
-
- @Test
public void testGetDescription() {
Assert.assertTrue(Strings.isValid(getUtil().getDescription()));
}
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 963a60ebc0..1e0383fe12 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
@@ -240,4 +240,9 @@ public class MockWorkItem implements IAtsWorkItem {
return null;
}
+ @Override
+ public boolean isGoal() {
+ return false;
+ }
+
}

Back to the top