Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-02-03 12:15:15 -0500
committerRyan D. Brooks2016-02-03 12:15:15 -0500
commit0ae5c366c41ad3d1b85747628ae7993fa5d69bd0 (patch)
treeb389d53f50f524e645ed485789dd14ff7e3d6f98 /plugins/org.eclipse.osee.ats.core.test
parent4cff77d34bb5e83544a872a0fcd7ed61da1e7c9f (diff)
downloadorg.eclipse.osee-0ae5c366c41ad3d1b85747628ae7993fa5d69bd0.tar.gz
org.eclipse.osee-0ae5c366c41ad3d1b85747628ae7993fa5d69bd0.tar.xz
org.eclipse.osee-0ae5c366c41ad3d1b85747628ae7993fa5d69bd0.zip
refactor: Convert HasUuid.getUuid 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/mock/MockWorkItem.java4
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsObjectTest.java4
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java10
3 files changed, 9 insertions, 9 deletions
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 87f8f56b99..cb7256601f 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
@@ -227,8 +227,8 @@ public class MockWorkItem implements IAtsWorkItem {
}
@Override
- public long getUuid() {
- return 456;
+ public Long getUuid() {
+ return Long.valueOf(456);
}
@Override
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsObjectTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsObjectTest.java
index 8793ecd0f7..7b91918390 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsObjectTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsObjectTest.java
@@ -16,7 +16,7 @@ import org.junit.Test;
/**
* Test case for {@link AtsObject}
- *
+ *
* @author Donald G. Dunne
*/
public class AtsObjectTest {
@@ -25,7 +25,7 @@ public class AtsObjectTest {
public void testGetNameGuidId() {
AtsObject obj = new AtsObject("hello", 456);
Assert.assertEquals("hello", obj.getName());
- Assert.assertEquals(456, obj.getUuid());
+ Assert.assertEquals(456, obj.getUuid().longValue());
obj = new AtsObject("hello", Lib.generateUuid());
Assert.assertEquals("hello", obj.getName());
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java
index c89ad53c29..aff8da5149 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java
@@ -25,7 +25,7 @@ import org.junit.Test;
* Test case for {@link Anonymous}<br/>
* Test case for {@link UnAssigned}<br/>
* Test case for {@link AbstractAtsUser}
- *
+ *
* @author Donald G. Dunne
*/
public class CoreAtsUsersTest {
@@ -170,8 +170,8 @@ public class CoreAtsUsersTest {
}
@Override
- public long getUuid() {
- return 999994;
+ public Long getUuid() {
+ return 999994L;
}
};
@@ -228,8 +228,8 @@ public class CoreAtsUsersTest {
}
@Override
- public long getUuid() {
- return 0;
+ public Long getUuid() {
+ return new Long(0);
}
};
}

Back to the top