[java-metadata-aggregator] 01/02: MDA-221 - Stop using Guava collections
Ian Young
ian at iay.org.uk
Fri Mar 13 07:28:41 EDT 2020
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch master
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=2ae16dd3400cc596ae61968a2facab5a13c5705f
commit 2ae16dd3400cc596ae61968a2facab5a13c5705f
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Mar 13 11:18:26 2020 +0000
MDA-221 - Stop using Guava collections
https://issues.shibboleth.net/jira/browse/MDA-221
---
.../shibboleth/metadata/dom/saml/ContactPersonFilterStageTest.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/ContactPersonFilterStageTest.java b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/ContactPersonFilterStageTest.java
index 0fe859f..7f1f837 100644
--- a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/ContactPersonFilterStageTest.java
+++ b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/saml/ContactPersonFilterStageTest.java
@@ -37,8 +37,6 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import org.w3c.dom.Element;
-import com.google.common.collect.Sets;
-
/** Unit test for {@link ContactPersonFilterStage}. */
public class ContactPersonFilterStageTest extends BaseDOMTest {
@@ -156,7 +154,7 @@ public class ContactPersonFilterStageTest extends BaseDOMTest {
@Test public void testBlacklistContactPersons() throws Exception {
ContactPersonFilterStage stage = new ContactPersonFilterStage();
stage.setId("foo");
- stage.setDesignatedTypes(Sets.newHashSet(ContactPersonFilterStage.ADMINISTRATIVE, ContactPersonFilterStage.OTHER));
+ stage.setDesignatedTypes(Set.of(ContactPersonFilterStage.ADMINISTRATIVE, ContactPersonFilterStage.OTHER));
stage.setWhitelistingTypes(false);
stage.initialize();
@@ -180,4 +178,4 @@ public class ContactPersonFilterStageTest extends BaseDOMTest {
contactPersons = ElementSupport.getChildElements(wikiDescriptor, contactPersonQname);
Assert.assertEquals(contactPersons.size(), 0);
}
-}
\ 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