コード例 #1
0
  /** {@inheritDoc} */
  @Test
  public void testChildElementsUnmarshall() {
    AuthnRequest req = (AuthnRequest) unmarshallElement(childElementsFile);

    Assert.assertNotNull(req.getSubject(), "Subject was null");
    Assert.assertNotNull(req.getNameIDPolicy(), "NameIDPolicy was null");
    Assert.assertNotNull(req.getConditions(), "Conditions was null");
    Assert.assertNotNull(req.getRequestedAuthnContext(), "RequestedAuthnContext was null");
    Assert.assertNotNull(req.getScoping(), "Scoping was null");

    super.helperTestChildElementsUnmarshall(req);
  }