[java-identity-provider] branch main updated: Fix tests to reflect the new reality

Rod Widdowson rdw at steadingsoftware.com
Wed Feb 10 16:46:38 UTC 2021


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=334fa220b52538832d2502b6453a65661eb96047

The following commit(s) were added to refs/heads/main by this push:
       new  334fa220b Fix tests to reflect the new reality
334fa220b is described below

commit 334fa220b52538832d2502b6453a65661eb96047
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Feb 10 16:46:41 2021 +0000

    Fix tests to reflect the new reality
---
 .../shibboleth/idp/consent/flow/impl/ConsentFlowDescriptorTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/flow/impl/ConsentFlowDescriptorTest.java b/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/flow/impl/ConsentFlowDescriptorTest.java
index 22f035307..9375f4fa5 100644
--- a/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/flow/impl/ConsentFlowDescriptorTest.java
+++ b/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/flow/impl/ConsentFlowDescriptorTest.java
@@ -39,7 +39,7 @@ public class ConsentFlowDescriptorTest {
     @Test public void testInstantation() {
         Assert.assertEquals(descriptor.getId(), "test");
         Assert.assertFalse(descriptor.compareValues());
-        Assert.assertEquals(Duration.ofDays(365), descriptor.getLifetime());
+        Assert.assertNull(descriptor.getLifetime());
     }
 
     @Test public void testCompareValues() {
@@ -49,7 +49,7 @@ public class ConsentFlowDescriptorTest {
         Assert.assertFalse(descriptor.compareValues());
     }
 
-    @Test(expectedExceptions = ConstraintViolationException.class) public void testNullLifetime() {
+    @Test public void testNullLifetime() {
         descriptor.setLifetime(null);
     }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list