Package org.infinispan.schematic.SchemaLibrary

Examples of org.infinispan.schematic.SchemaLibrary.Results.errorCount()


                                         int numExpectedMismatchedValues ) {
        Results results = schemas.validate(doc, schemaUri);
        if (print) System.out.println(results);
        if (numExpectedMismatchedValues > 0) {
            assertThat("expected mismatch errors, but found none", results.hasOnlyTypeMismatchErrors(), is(true));
            assertThat("expected different number of mismatches", results.errorCount(), is(numExpectedMismatchedValues));
        } else {
            assertThat("expected no mismatch errors", results.hasOnlyTypeMismatchErrors(), is(false));
            assertThat("expected to find problems", results.hasProblems(), is(false));
        }
        Document output = schemas.convertValues(doc, results);
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.