Пример #1
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());
    ;
  }
Пример #2
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());
  }