Package org.jitterbit.integration.data

Examples of org.jitterbit.integration.data.ValidationMessageCollectorImpl.result()


    public final ValidationResult validate(ValidationContext context) {
        ValidationMessageCollectorImpl collector = new ValidationMessageCollectorImpl(context);
        ValidationResult result;
        synchronized (getDataLock()) {
            collector.collect(this);
            result = collector.result();
            currentValidationResult = result;
        }
        notifyValidationListeners(result);
        return result;
    }
View Full Code Here


        doc.setDelimiter(FieldDelimiter.COMMA);
        doc.setStructure(struct);
        ValidationMessageCollectorImpl collector = new ValidationMessageCollectorImpl(ValidationContext.EMPTY);
        TextDocumentValidator validator = new TextDocumentValidator(doc, collector);
        validator.run();
        assertSame(ValidationStatus.VALID, collector.result().status());
    }
   
}
View Full Code Here

    }

    private void runValidation(TextDocument doc, ValidationStatus expected) {
        ValidationMessageCollectorImpl c = new ValidationMessageCollectorImpl(ValidationContext.EMPTY);
        new TextDocumentValidator(doc, c).run();
        assertEquals(c.result().status(), expected);
    }

    private static TextDocument createValidSimpleDelimitedDocument(int numberOfFields) {
        TextDocument doc = new TextDocument("Test");
        SimpleTextStructure struct = new SimpleTextStructure(doc.getName(), false);
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.