Exemplo n.º 1
0
  /** Common setup method (populateRequiredData & the first test */
  private void setupRequiredData() {

    Assertion assertion = (Assertion) target;
    assertion.setIssuer("Issuer");
    assertion.setID("ident");
    assertion.setIssueInstant(new DateTime());
    QName name =
        new QName(
            SAMLConstants.SAML1_NS,
            AttributeStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML1_PREFIX);
    assertion.getStatements().add((AttributeStatement) buildXMLObject(name));
  }
Exemplo n.º 2
0
 public void testMissingStatement() {
   Assertion assertion = (Assertion) target;
   assertion.getStatements().clear();
   assertValidationFail("No statements, should raise a Validation Exception");
 }