[java-idp-plugin-duo] branch main updated: Add mock functions to tests

Phil Smart philip.smart at jisc.ac.uk
Tue Nov 15 16:26:59 UTC 2022


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

philsmart pushed a commit to branch main
in repository java-idp-plugin-duo.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-duo.git;a=commit;h=29c0c54caa233fdb3412c86251ec129bccec55e8

The following commit(s) were added to refs/heads/main by this push:
     new 29c0c54  Add mock functions to tests
29c0c54 is described below

commit 29c0c54caa233fdb3412c86251ec129bccec55e8
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Nov 15 16:26:54 2022 +0000

    Add mock functions to tests
---
 .../authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java       | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
index ef939a4..add6ca8 100644
--- a/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
+++ b/idp-duo-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/impl/AbstractAuthnXmlFlowExecutionTests.java
@@ -424,6 +424,15 @@ public abstract class AbstractAuthnXmlFlowExecutionTests extends CustomAbstractX
                     
                 }});
         }
+        
+        // Add function
+        addBeanDefinition(builderContext, "shibboleth.Functions.Compose",BeanDefinitionBuilder.
+                genericBeanDefinition(net.shibboleth.utilities.java.support.logic.FunctionSupport.class)
+                .setFactoryMethod("compose").setAbstract(true).getBeanDefinition());
+        
+        addBeanDefinition(builderContext, "shibboleth.ChildLookup.AuthenticationContext",BeanDefinitionBuilder.
+                genericBeanDefinition(org.opensaml.messaging.context.navigate.ChildContextLookup.class)
+                .addConstructorArgValue(net.shibboleth.idp.authn.context.AuthenticationContext.class).getBeanDefinition());
                          
     }
     

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


More information about the commits mailing list