[java-opensaml] branch master updated: Checkstyle: Tests changed to use Predicate#test() not #apply()
Rod Widdowson
rdw at steadingsoftware.com
Tue Feb 12 11:19:15 EST 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=fbcc7a53aa9c41ab493157f5ba83504c80dda403
The following commit(s) were added to refs/heads/master by this push:
new fbcc7a5 Checkstyle: Tests changed to use Predicate#test() not #apply()
fbcc7a5 is described below
commit fbcc7a53aa9c41ab493157f5ba83504c80dda403
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Feb 12 16:18:55 2019 +0000
Checkstyle: Tests changed to use Predicate#test() not #apply()
---
.../common/profile/logic/EntityAttributesPredicateTest.java | 12 ++++++------
.../common/profile/logic/EntityGroupNamePredicateTest.java | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicateTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicateTest.java
index 2bc899b..cdad546 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicateTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityAttributesPredicateTest.java
@@ -65,7 +65,7 @@ public class EntityAttributesPredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertFalse(condition.apply(entity));
+ Assert.assertFalse(condition.test(entity));
}
@Test
@@ -80,7 +80,7 @@ public class EntityAttributesPredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertFalse(condition.apply(entity));
+ Assert.assertFalse(condition.test(entity));
}
@Test
@@ -95,7 +95,7 @@ public class EntityAttributesPredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertTrue(condition.apply(entity));
+ Assert.assertTrue(condition.test(entity));
}
@Test
@@ -110,7 +110,7 @@ public class EntityAttributesPredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertTrue(condition.apply(entity));
+ Assert.assertTrue(condition.test(entity));
}
@Test
@@ -125,11 +125,11 @@ public class EntityAttributesPredicateTest extends XMLObjectBaseTestCase {
final EntityDescriptor entity =
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertFalse(condition.apply(entity));
+ Assert.assertFalse(condition.test(entity));
final EntityDescriptor entity2 =
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-sub1.example.org")));
Assert.assertNotNull(entity2);
- Assert.assertTrue(condition.apply(entity2));
+ Assert.assertTrue(condition.test(entity2));
}
}
\ No newline at end of file
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityGroupNamePredicateTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityGroupNamePredicateTest.java
index 7b50f4f..283c000 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityGroupNamePredicateTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/common/profile/logic/EntityGroupNamePredicateTest.java
@@ -79,7 +79,7 @@ public class EntityGroupNamePredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertFalse(condition.apply(entity));
+ Assert.assertFalse(condition.test(entity));
}
@Test
@@ -92,7 +92,7 @@ public class EntityGroupNamePredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertTrue(condition.apply(entity));
+ Assert.assertTrue(condition.test(entity));
}
@Test
@@ -105,7 +105,7 @@ public class EntityGroupNamePredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-sub2a.example.org")));
Assert.assertNotNull(entity);
- Assert.assertTrue(condition.apply(entity));
+ Assert.assertTrue(condition.test(entity));
}
@Test
@@ -118,7 +118,7 @@ public class EntityGroupNamePredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-sub2a.example.org")));
Assert.assertNotNull(entity);
- Assert.assertTrue(condition.apply(entity));
+ Assert.assertTrue(condition.test(entity));
}
@Test
@@ -131,7 +131,7 @@ public class EntityGroupNamePredicateTest extends XMLObjectBaseTestCase {
metadataProvider.resolveSingle(new CriteriaSet(new EntityIdCriterion("https://idp-top.example.org")));
Assert.assertNotNull(entity);
- Assert.assertFalse(condition.apply(entity));
+ Assert.assertFalse(condition.test(entity));
}
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list