[java-metadata-aggregator] branch master updated: Fix unchecked cast warnings in a test.

Ian Young ian at iay.org.uk
Thu Dec 10 09:35:13 EST 2015


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

iay pushed a commit to branch master
in repository java-metadata-aggregator.

The following commit(s) were added to refs/heads/master by this push:
       new  44cf794   Fix unchecked cast warnings in a test.
44cf794 is described below

commit 44cf794b9cfe68e8154874cdc0a69182ff05275b
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Dec 10 14:28:14 2015 +0000

    Fix unchecked cast warnings in a test.
---
 .../metadata/dom/saml/mdattr/EntityCategoryMatcherSpringTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/mdattr/EntityCategoryMatcherSpringTest.java b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/mdattr/EntityCategoryMatcherSpringTest.java
index a14f787..aa4831f 100644
--- a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/mdattr/EntityCategoryMatcherSpringTest.java
+++ b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/mdattr/EntityCategoryMatcherSpringTest.java
@@ -28,7 +28,7 @@ public class EntityCategoryMatcherSpringTest extends AbstractTestNGSpringContext
     @Test
     public void testNoRA() {
         final Predicate<EntityAttributeContext> matcher =
-                (Predicate<EntityAttributeContext>)applicationContext.getBean("categoryMatcherNoRA");
+                (Predicate<EntityAttributeContext>)applicationContext.getBean("categoryMatcherNoRA", Predicate.class);
         
         // all four components match
         test(true, matcher, new ContextImpl("category", "http://macedir.org/entity-category",
@@ -50,7 +50,7 @@ public class EntityCategoryMatcherSpringTest extends AbstractTestNGSpringContext
     @Test
     public void testWithRA() {
         final Predicate<EntityAttributeContext> matcher =
-                (Predicate<EntityAttributeContext>)applicationContext.getBean("categoryMatcherWithRA");
+                (Predicate<EntityAttributeContext>)applicationContext.getBean("categoryMatcherWithRA", Predicate.class);
         
         // all four components match
         test(true, matcher, new ContextImpl("category", "http://macedir.org/entity-category",

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


More information about the commits mailing list