[java-metadata-aggregator] branch maint-0.9 updated: MDA-215 - don't reference issues.shibboleth.net in test
Ian Young
ian at iay.org.uk
Thu Dec 27 11:50:14 EST 2018
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch maint-0.9
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=89bd27e793ff74ea0e3ceb43029468a08378cd93
The following commit(s) were added to refs/heads/maint-0.9 by this push:
new 89bd27e MDA-215 - don't reference issues.shibboleth.net in test
89bd27e is described below
commit 89bd27e793ff74ea0e3ceb43029468a08378cd93
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 6ed6585..51c3969 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