Package com.asakusafw.testdriver.core

Examples of com.asakusafw.testdriver.core.Verifier


        return new VerifierFactory() {
            @Override
            public <M> Verifier createVerifier(
                    DataModelDefinition<M> definition,
                    VerifyContext context) throws IOException {
                final Verifier delegate = verifierFactory.createVerifier(definition, context);
                return new Verifier() {
                    @Override
                    public List<Difference> verify(DataModelSource results) throws IOException {
                        DataModelSource filtered = sourceFilter.apply(results);
                        return delegate.verify(filtered);
                    }
                    @Override
                    public void close() throws IOException {
                        delegate.close();
                    }
                };
            }
            @Override
            public String toString() {
View Full Code Here


        };
    }

    private List<Difference> test(VerifierFactory factory, String... pattern) {
        try {
            Verifier v = factory.createVerifier(DEFINITION, new VerifyContext(CONTEXT));
            try {
                DataModelSource a = source(pattern);
                try {
                    return v.verify(a);
                } finally {
                    a.close();
                }
            } finally {
                v.close();
            }
        } catch (IOException e) {
            throw new AssertionError(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.testdriver.core.Verifier

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.