diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-11-07 20:59:18 -0600 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-11-07 20:59:22 -0600 |
commit | 07c721465a0cc40d8e215cf5411bfd825b2c6b13 (patch) | |
tree | 3e06853309d28962c23b2ce422d9408483b5c5be /auth | |
parent | 8cd88b8fbd5cdaa3fe796a11c0788ba202a808a3 (diff) |
Faulty JUnit
Issue-ID: AAF-617
Change-Id: Ib3060c832d3bc939609b1401db47826a659d6b52
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-core/src/test/java/org/onap/aaf/auth/env/test/JU_NullTrans.java | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/auth/auth-core/src/test/java/org/onap/aaf/auth/env/test/JU_NullTrans.java b/auth/auth-core/src/test/java/org/onap/aaf/auth/env/test/JU_NullTrans.java index f6c00ad8..f67716fa 100644 --- a/auth/auth-core/src/test/java/org/onap/aaf/auth/env/test/JU_NullTrans.java +++ b/auth/auth-core/src/test/java/org/onap/aaf/auth/env/test/JU_NullTrans.java @@ -22,7 +22,9 @@ package org.onap.aaf.auth.env.test; -import static org.junit.Assert.*; +import static org.mockito.Mockito.mock; + +import java.security.Principal; import javax.servlet.http.HttpServletRequest; @@ -34,7 +36,6 @@ import org.mockito.runners.MockitoJUnitRunner; import org.onap.aaf.auth.env.AuthzEnv; import org.onap.aaf.auth.env.AuthzTrans; import org.onap.aaf.auth.env.NullTrans; -import org.onap.aaf.auth.env.AuthzTrans.REQD_TYPE; import org.onap.aaf.auth.org.Organization; import org.onap.aaf.cadi.Permission; import org.onap.aaf.misc.env.Decryptor; @@ -43,12 +44,6 @@ import org.onap.aaf.misc.env.LogTarget; import org.onap.aaf.misc.env.Slot; import org.onap.aaf.misc.env.TimeTaken; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - -import java.security.Principal; -import java.util.Date; - @RunWith(MockitoJUnitRunner.class) public class JU_NullTrans { NullTrans nullTrans; @@ -261,13 +256,14 @@ public class JU_NullTrans { Assert.assertFalse(reqd); nullTrans.requested(null, true); } - - @Test - public void testNow() { - Date date = new Date(); - Assert.assertEquals(date,nullTrans.now()); - //when(nullTrans.now()).thenReturn(null); - } + +// This is very inconsistent, and rather pointless +// @Test +// public void testNow() { +// Date date = new Date(); +// Assert.assertEquals(date,nullTrans.now()); +// //when(nullTrans.now()).thenReturn(null); +// } |