예제 #1
0
  /**
   * Tests for Name failure.
   *
   * @throws ValidationException
   */
  public void testNameFailure() throws ValidationException {
    ServiceName serviceName = (ServiceName) target;

    serviceName.setName(null);
    assertValidationFail("Name was null, should raise a Validation Exception.");
  }
예제 #2
0
 /** {@inheritDoc} */
 protected void populateRequiredData() {
   super.populateRequiredData();
   ServiceName serviceName = (ServiceName) target;
   serviceName.setName(new LocalizedString("name", "language"));
 }