Ejemplo n.º 1
0
  /**
   * Tests for ProfileURI failure.
   *
   * @throws ValidationException
   */
  public void testProfileURIFailure() throws ValidationException {
    AttributeProfile attributeProfile = (AttributeProfile) target;

    attributeProfile.setProfileURI(null);
    assertValidationFail("ProfileURI was null, should raise a Validation Exception.");

    attributeProfile.setProfileURI("");
    assertValidationFail("ProfileURI was empty string, should raise a Validation Exception.");

    attributeProfile.setProfileURI("   ");
    assertValidationFail("ProfileURI was white space, should raise a Validation Exception.");
  }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 protected void populateRequiredData() {
   super.populateRequiredData();
   AttributeProfile attributeProfile = (AttributeProfile) target;
   attributeProfile.setProfileURI("profile uri");
 }