From 8c100b308b01f58769443d1d5cdc743c9c6b3e8b Mon Sep 17 00:00:00 2001 From: Ian Young Date: Sun, 25 Jan 2015 09:21:04 +0000 Subject: [PATCH] Add a check for prefix declaration. --- .../uk/org/ukfederation/mda/dom/saml/AttributeMakerTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/uk/org/ukfederation/mda/dom/saml/AttributeMakerTest.java b/src/test/java/uk/org/ukfederation/mda/dom/saml/AttributeMakerTest.java index 06adcb1..3cead68 100644 --- a/src/test/java/uk/org/ukfederation/mda/dom/saml/AttributeMakerTest.java +++ b/src/test/java/uk/org/ukfederation/mda/dom/saml/AttributeMakerTest.java @@ -42,5 +42,8 @@ public void apply() { final Node node = attrs.item(i); Assert.assertNotNull(node.getLocalName()); } + + // check that the prefix is declared properly + Assert.assertEquals(newElement.lookupNamespaceURI(SAMLSupport.SAML_PREFIX), SAMLSupport.SAML_NS); } }