/** {@inheritDoc} */ public void testSingleElementMarshall() { QName qname = new QName(SAMLConstants.SAML20MD_NS, NameIDMappingService.DEFAULT_ELEMENT_LOCAL_NAME); NameIDMappingService service = (NameIDMappingService) buildXMLObject(qname); service.setBinding(expectedBinding); service.setLocation(expectedLocation); assertEquals(expectedDOM, service); }
/** {@inheritDoc} */ public void testSingleElementOptionalAttributesUnmarshall() { NameIDMappingService service = (NameIDMappingService) unmarshallElement(singleElementOptionalAttributesFile); assertEquals("Binding URI was not expected value", expectedBinding, service.getBinding()); assertEquals("Location was not expected value", expectedLocation, service.getLocation()); assertEquals( "ResponseLocation was not expected value", expectedResponseLocation, service.getResponseLocation()); ; }
/** {@inheritDoc} */ public void testSingleElementUnmarshall() { NameIDMappingService service = (NameIDMappingService) unmarshallElement(singleElementFile); assertEquals("Binding URI was not expected value", expectedBinding, service.getBinding()); assertEquals("Location was not expected value", expectedLocation, service.getLocation()); }