[java-shib-common COMMIT] in /branches/REL_1/src/test: java/edu/internet2/middleware/shibboleth/common/config/attribu...

noreply at shibboleth.net noreply at shibboleth.net
Fri Jan 15 16:14:19 EST 2016


Author: putmanb
Date: Fri Jan 15 16:14:19 2016
New Revision: 1136

URL: http://svn.shibboleth.net/view/java-shib-common?rev=1136&view=rev
Log:
Update resolver unit test with scripted attribute definition to use a static data connector, per the Nashorn style.
Hopefully this works on both Java 7 Rhino and Java 8 Nashorn, so don't have to detect and pick in the test. 

Added:
    branches/REL_1/src/test/resources/data/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/resolver-db-config-nashorn.xml   (with props)
    branches/REL_1/src/test/resources/data/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/resolver-db-nashorn.xml   (with props)
Modified:
    branches/REL_1/src/test/java/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/DBAttributeResolverTest.java

Modified: branches/REL_1/src/test/java/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/DBAttributeResolverTest.java
URL: http://svn.shibboleth.net/view/java-shib-common/branches/REL_1/src/test/java/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/DBAttributeResolverTest.java?rev=1136&r1=1135&r2=1136&view=diff
==============================================================================
--- branches/REL_1/src/test/java/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/DBAttributeResolverTest.java	(original)
+++ branches/REL_1/src/test/java/edu/internet2/middleware/shibboleth/common/config/attribute/resolver/DBAttributeResolverTest.java	Fri Jan 15 16:14:19 2016
@@ -41,7 +41,7 @@
      */
     public void testResolverInstantiation() throws ResourceException, AttributeResolutionException {
         ApplicationContext ac = createSpringContext(new String[] { DATA_PATH + "/config/base-config.xml",
-                DATA_PATH + "/config/attribute/resolver/resolver-db-config.xml", });
+                DATA_PATH + "/config/attribute/resolver/resolver-db-config-nashorn.xml", });
         AttributeResolver resolver = (AttributeResolver) ac.getBean("resolver-db");
 
         BaseSAMLProfileRequestContext context = new BaseSAMLProfileRequestContext();



More information about the commits mailing list