[java-identity-provider] branch maint-4 updated: Fix test
Rod Widdowson
rdw at steadingsoftware.com
Tue Oct 25 12:18:00 UTC 2022
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch maint-4
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=e44b9256574a684a74537aaef379f3b1986487f7
The following commit(s) were added to refs/heads/maint-4 by this push:
new e44b92565 Fix test
e44b92565 is described below
commit e44b9256574a684a74537aaef379f3b1986487f7
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Oct 25 13:17:54 2022 +0100
Fix test
---
.../idp/attribute/resolver/spring/ad/SimpleAttributeParserTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/SimpleAttributeParserTest.java b/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/SimpleAttributeParserTest.java
index cc1898c4e..2e7452892 100644
--- a/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/SimpleAttributeParserTest.java
+++ b/idp-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/ad/SimpleAttributeParserTest.java
@@ -20,6 +20,7 @@ package net.shibboleth.idp.attribute.resolver.spring.ad;
import static org.testng.Assert.*;
import java.util.Collection;
+import java.util.Map;
import java.util.Set;
import java.util.function.Predicate;
@@ -60,7 +61,8 @@ public class SimpleAttributeParserTest extends BaseAttributeDefinitionParserTest
assertFalse(attrDef.isPreRequested());
assertEquals(attrDef.getAttributeDependencies().size(), 1);
- assertTrue(pendingTeardownContext.getBeansOfType(Collection.class).isEmpty());
+ final Map<String, Collection> beans = pendingTeardownContext.getBeansOfType(Collection.class);
+ assertTrue(beans.isEmpty() || (beans.size() == 1 && beans.containsKey("StaticConnectorValues")));
}
@Test public void simplePopulated() throws ComponentInitializationException {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list