summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java')
-rw-r--r--auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java b/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java
index 92debf44..fe3d5d95 100644
--- a/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java
+++ b/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java
@@ -104,24 +104,25 @@ public class JU_Future {
@Test
public void testResetLocalData() {
- future.resetLocalData();
+ Future.resetLocalData();
}
@Test
public void testSizeForDeletion() {
- Assert.assertEquals(0, future.sizeForDeletion());
+ Assert.assertEquals(0, Future.sizeForDeletion());
}
@Test
public void testPendingDelete() {
- Assert.assertEquals(false, future.pendingDelete(future));
+ Assert.assertEquals(false, Future.pendingDelete(future));
}
@Test
public void testLoad() {
Session session = mock(Session.class);
Trans trans = mock(Trans.class);
- Creator<Future> creator = mock(Creator.class);
+ @SuppressWarnings("unchecked")
+ Creator<Future> creator = (Creator<Future>)mock(Creator.class);
LogTarget target = mock(LogTarget.class);
TimeTaken tt = mock(TimeTaken.class);
ResultSet results = mock(ResultSet.class);