[java-metadata-aggregator] branch master updated: MDA-215 - don't reference issues.shibboleth.net in test

Ian Young ian at iay.org.uk
Thu Dec 27 11:47:56 EST 2018


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=c66d8cc41295adc6603150bfc976e29d588ff9d0

The following commit(s) were added to refs/heads/master by this push:
       new  c66d8cc   MDA-215 - don't reference issues.shibboleth.net in test
c66d8cc is described below

commit c66d8cc41295adc6603150bfc976e29d588ff9d0
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Dec 27 16:47:51 2018 +0000

    MDA-215 - don't reference issues.shibboleth.net in test
---
 .../shibboleth/metadata/dom/DOMResourceSourceTest.java    | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/DOMResourceSourceTest.java b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/DOMResourceSourceTest.java
index 804f064..f354209 100644
--- a/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/DOMResourceSourceTest.java
+++ b/aggregator-pipeline/src/test/java/net/shibboleth/metadata/dom/DOMResourceSourceTest.java
@@ -23,12 +23,7 @@ import static org.mockito.Mockito.when;
 import java.io.IOException;
 import java.util.ArrayList;
 
-import net.shibboleth.metadata.Item;
-import net.shibboleth.metadata.pipeline.StageProcessingException;
-import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
-import net.shibboleth.utilities.java.support.logic.ConstraintViolationException;
-import net.shibboleth.utilities.java.support.xml.BasicParserPool;
-
+import org.springframework.core.io.ByteArrayResource;
 import org.springframework.core.io.Resource;
 import org.springframework.core.io.UrlResource;
 import org.testng.Assert;
@@ -36,6 +31,12 @@ import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 import org.w3c.dom.Element;
 
+import net.shibboleth.metadata.Item;
+import net.shibboleth.metadata.pipeline.StageProcessingException;
+import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
+import net.shibboleth.utilities.java.support.logic.ConstraintViolationException;
+import net.shibboleth.utilities.java.support.xml.BasicParserPool;
+
 public class DOMResourceSourceTest {
 
     BasicParserPool parserPool;
@@ -46,7 +47,7 @@ public class DOMResourceSourceTest {
     }
     
     @Test public void testSuccessfulFetchAndParse() throws Exception {
-        Resource mdResource = new UrlResource("https://issues.shibboleth.net/jira/Shibboleth.sso/Metadata");
+        Resource mdResource = new ByteArrayResource("<test/>".getBytes("UTF-8"));
 
         DOMResourceSourceStage source = new DOMResourceSourceStage();
         source.setId("test");

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


More information about the commits mailing list