Examples of MissingRequiredTracking


Examples of org.amplafi.flow.validation.MissingRequiredTracking

        if ( flowTypeName == null) {
            throw new IllegalArgumentException("null flowTypeName");
        }
        FlowImplementor flow = this.getFlowDefinitions().get(flowTypeName);
        if (flow==null) {
            throw new FlowValidationException("flow.definition-not-found", new MissingRequiredTracking(flowTypeName));
        }
        return flow;
    }
View Full Code Here

Examples of org.amplafi.flow.validation.MissingRequiredTracking

        assertFalse(result.isValid());
    }

    public void testAddDifferentTrackings() {
        ReportAllValidationResult result = new ReportAllValidationResult(
                new MissingRequiredTracking("firstname"),
                new InconsistencyTracking("field not a number", "username"),
                new MismatchTracking("field1", "field2"),
                new ExceptionTracking("field", new RuntimeException())
        );
View Full Code Here

Examples of org.amplafi.flow.validation.MissingRequiredTracking

        assertEquals(result.getTrackings().size(), 4);
    }

    public void testMerge() {
        FlowValidationResult result = new ReportAllValidationResult(
            new MissingRequiredTracking("firstname"));

        FlowValidationResult result1 = new ReportAllValidationResult();
        result1.merge(result);
        assertFalse(result1.isValid());
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.