Examples of ValidationResult


Examples of org.sonatype.nexus.capability.ValidationResult

  @Override
  public ValidationResult validate(final Map<String, String> properties) {
    final DefaultValidationResult result = new DefaultValidationResult();
    for (final Validator validator : validators) {
      final ValidationResult validationResult = validator.validate(properties);
      if (!validationResult.isValid()) {
        result.add(validationResult.violations());
      }
    }
    if(result.isValid())
    {
      return ValidationResult.VALID;
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.livexp.core.ValidationResult

   * to dealt with this situation (e.g. by triggering a background download and showing a
   * temporary info message until download is complete.
   */
  public ValidationResult validateBuildType(BuildType bt) throws UIThreadDownloadDisallowed {
    for (CodeSet cs : getCodeSets()) {
      ValidationResult result = cs.validateBuildType(bt);
      if (!result.isOk()) {
        return result;
      }
    }
    return ValidationResult.OK;
  }
View Full Code Here

Examples of org.switchyard.validate.ValidationResult

    }

    @Test(expected=SwitchYardException.class)
    public void test_invalid_schemafile() throws IOException, SAXException {
        Validator validator = getValidator("sw-config-invalid-schemafile.xml");
        ValidationResult result = validator.validate(new DefaultMessage().setContent("<order type='A' />"));
    }
View Full Code Here

Examples of org.syncany.plugins.transfer.TransferPluginOption.ValidationResult

      if ("".equals(value)) {
        value = null;
      }

      // Validate result
      ValidationResult validationResult = option.isValid(value);

      switch (validationResult) {
      case INVALID_NOT_SET:
        out.println("ERROR: This option is mandatory.");
        out.println();
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.automaton.DocOpAutomaton.ValidationResult

    // initialize document
    doc.consume(d.finishUnchecked());

    // check whether m would apply
    ViolationCollector v = new ViolationCollector();
    ValidationResult result =
        DocOpValidator.validate(v, t.getSchemaConstraints(), doc, m.finishUnchecked());

    try {
      assertEquals(expected, v.isValid());
      assertEquals(result, v.getValidationResult());
View Full Code Here

Examples of play.data.validation.Validation.ValidationResult

    }
    @Test
    public void testSingleColumn() {
        Book firstBook = Book.find("byIsbn", "1").first();
        firstBook.isbn = "2";
        ValidationResult res = Validation.current().valid(firstBook);
        assertFalse(res.ok);
        assertNotNull(Validation.errors(".isbn"));
        Error error = Validation.errors(".isbn").get(0);
        assertEquals("validation.unique", error.message());
    }
View Full Code Here

Examples of utils.ValidationResult

public class EnrollOrganizationApp extends Controller {

    @Transactional
    public static Result enroll(String organizationName) {
        ValidationResult result = validateForEnroll(organizationName);
        if (result.hasError()) {
            return result.getResult();
        }

        Organization organization = Organization.findByName(organizationName);
        if (!User.enrolled(organization)) {
            User user = UserApp.currentUser();
View Full Code Here

Examples of yalp.data.validation.Validation.ValidationResult

    }
    @Test
    public void testSingleColumn() {
        Book firstBook = Book.find("byIsbn", "1").first();
        firstBook.isbn = "2";
        ValidationResult res = Validation.current().valid(firstBook);
        assertFalse(res.ok);
        assertNotNull(Validation.errors(".isbn"));
        Error error = Validation.errors(".isbn").get(0);
        assertEquals("Must be unique", error.message());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.