Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2016-03-02 04:58:11 -0500
committerRyan D. Brooks2016-03-02 04:58:11 -0500
commit640a48c2684153ac0cd054a785cbe136ade0dbab (patch)
tree876d7aea8dc9ec9e4bfbe4f28d39cf01415de563 /plugins/org.eclipse.osee.ats.core.test
parentb4a6440a00ba4adfe1bb26e7c35b1b59a2f31810 (diff)
downloadorg.eclipse.osee-640a48c2684153ac0cd054a785cbe136ade0dbab.tar.gz
org.eclipse.osee-640a48c2684153ac0cd054a785cbe136ade0dbab.tar.xz
org.eclipse.osee-640a48c2684153ac0cd054a785cbe136ade0dbab.zip
refactor[ats_ATS253925]: Change ids in Account from int to Long
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
1 files changed, 3 insertions, 5 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 39c2751e6b..6bd8926ee4 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,7 +30,6 @@ public class AtsCoreServiceImplTest {
// @formatter:off
@Mock private ArtifactId artifact;
- @Mock private ArtifactId storeArtifact;
@Mock private IAtsObject atsObject;
@Mock private IAttributeResolver attrResolver;
// @formatter:on
@@ -43,8 +42,7 @@ public class AtsCoreServiceImplTest {
@Test
public void testGetAtsId() {
when(attrResolver.getSoleAttributeValue(artifact, AtsAttributeTypes.AtsId, null)).thenReturn(null);
- when(artifact.getStoreObject()).thenReturn(storeArtifact);
- when(storeArtifact.getGuid()).thenReturn("guid");
+ when(artifact.getGuid()).thenReturn("guid");
String result = AtsCoreServiceImpl.getAtsId(attrResolver, artifact);
assertEquals(result, "guid");
@@ -53,11 +51,11 @@ public class AtsCoreServiceImplTest {
result = AtsCoreServiceImpl.getAtsId(attrResolver, atsObject);
assertEquals(result, "guid");
- when(attrResolver.getSoleAttributeValue(storeArtifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
+ when(attrResolver.getSoleAttributeValue(artifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
result = AtsCoreServiceImpl.getAtsId(attrResolver, artifact);
assertEquals(result, "ATS23");
- when(attrResolver.getSoleAttributeValue(storeArtifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
+ when(attrResolver.getSoleAttributeValue(artifact, AtsAttributeTypes.AtsId, null)).thenReturn("ATS23");
assertEquals(result, "ATS23");
}

Back to the top