Ejemplo n.º 1
0
  /** {@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);
  }
Ejemplo n.º 2
0
  /** {@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());
    ;
  }
Ejemplo n.º 3
0
  /** {@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());
  }