Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2015-12-02 17:55:30 -0500
committerRyan D. Brooks2015-12-02 17:55:30 -0500
commit96a7920a7b9c48a1190ec5bc91425827b8789119 (patch)
treee5395c1188b5f8b15d5badd7a202f890efb73aac /plugins/org.eclipse.osee.ats.core.test
parentc03dc0b9ae6b6afea4650c8e44eb467bc81e56ad (diff)
downloadorg.eclipse.osee-96a7920a7b9c48a1190ec5bc91425827b8789119.tar.gz
org.eclipse.osee-96a7920a7b9c48a1190ec5bc91425827b8789119.tar.xz
org.eclipse.osee-96a7920a7b9c48a1190ec5bc91425827b8789119.zip
refinement: Add missing AtsCoreServiceImplTest to test suite
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/util/AtsCoreServiceImplTest.java8
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCore_Util_JT_Suite.java1
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCoreServiceImplTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCoreServiceImplTest.java
index a4dded8b1b..39c2751e6b 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCoreServiceImplTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCoreServiceImplTest.java
@@ -30,6 +30,7 @@ public class AtsCoreServiceImplTest {
// @formatter:off
@Mock private ArtifactId artifact;
+ @Mock private ArtifactId storeArtifact;
@Mock private IAtsObject atsObject;
@Mock private IAttributeResolver attrResolver;
// @formatter:on
@@ -42,7 +43,8 @@ public class AtsCoreServiceImplTest {
@Test
public void testGetAtsId() {
when(attrResolver.getSoleAttributeValue(artifact, AtsAttributeTypes.AtsId, null)).thenReturn(null);
- when(artifact.getGuid()).thenReturn("guid");
+ when(artifact.getStoreObject()).thenReturn(storeArtifact);
+ when(storeArtifact.getGuid()).thenReturn("guid");
String result = AtsCoreServiceImpl.getAtsId(attrResolver, artifact);
assertEquals(result, "guid");
@@ -51,11 +53,11 @@ public class AtsCoreServiceImplTest {
result = AtsCoreServiceImpl.getAtsId(attrResolver, atsObject);
assertEquals(result, "guid");
- when(attrResolver.getSoleAttributeValue(artifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
+ when(attrResolver.getSoleAttributeValue(storeArtifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
result = AtsCoreServiceImpl.getAtsId(attrResolver, artifact);
assertEquals(result, "ATS23");
- when(attrResolver.getSoleAttributeValue(atsObject, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
+ when(attrResolver.getSoleAttributeValue(storeArtifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
assertEquals(result, "ATS23");
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCore_Util_JT_Suite.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCore_Util_JT_Suite.java
index 7a0db5a773..2b84088112 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCore_Util_JT_Suite.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsCore_Util_JT_Suite.java
@@ -15,6 +15,7 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
+ AtsCoreServiceImplTest.class,
VisitedItemCacheTest.class,
AtsObjectsTest.class,
AtsUserGroupTest.class,

Back to the top