public boolean test() {
        if (mInputSpecs.isEmpty()) {
            throw new IllegalArgumentException("No inputs and schemes to test");
        }
        InputSpec working = null;
        try {
            boolean passed = true;
            for (InputSpec spec : mInputSpecs) {
                working = spec;
                final Result r = perform(spec);
                if (!r.passed) {
                    mMessageDisplay.show(working.input, r.message);
                    passed = false;
                    if (mStopIfFail) {
                        return false;
                    }
                }
            }
            return passed;
        } catch (Throwable thr) {
            mMessageDisplay.show(working.input, thr.getMessage());
            return false;
        }
    }
public boolean test ( ) { if ( mInputSpecs . isEmpty ( ) ) { throw new IllegalArgumentException ( "No inputs and schemes to test" ) ; } InputSpec working = null ; try { boolean passed = true ; for ( InputSpec spec : mInputSpecs ) { working = spec ; final Result r = perform ( spec ) ; if ( ! r . passed ) { mMessageDisplay . show ( working . input , r . message ) ; passed = false ; if ( mStopIfFail ) { return false ; } } } return passed ; } catch ( Throwable thr ) { mMessageDisplay . show ( working . input , thr . getMessage ( ) ) ; return false ; } }
执行校验测试，并返回测试结果。

@return 校验测试结果是否成功