Package org.amplafi.flow.validation

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


        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

        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

Related Classes of org.amplafi.flow.validation.MissingRequiredTracking

Copyright © 2018 www.massapicom. 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.