Package org.jooq.tools.jdbc

Examples of org.jooq.tools.jdbc.MockDataProvider


        assertFalse(r.next());
    }

    @Test
    public void testCallableStatements() throws SQLException {
        MockConnection connection = new MockConnection(new MockDataProvider() {
            @Override
            public MockResult[] execute(MockExecuteContext ctx) throws SQLException {
                assertEquals("{ ? = call my_function(?, ?, ?, ?) }", ctx.sql());

                assertEquals(5, ctx.bindings().length);
View Full Code Here


    private RenderContext r_ctx() {
        return ctx.renderContext();
    }

    private BindContext b_ctx() {
        MockDataProvider p = new MockDataProvider() {
            @Override
            public MockResult[] execute(MockExecuteContext c) throws SQLException {
                return new MockResult[0];
            }
        };
View Full Code Here

public class ConverterTest extends AbstractTest {

    @Test
    public void testConverterInMockResult() {
        Result<BoolRecord> result =
        DSL.using(new MockConnection(new MockDataProvider() {

            @Override
            public MockResult[] execute(MockExecuteContext ctx) throws SQLException {
                Result<BoolRecord> r = create.newResult(BOOL_TABLE);
View Full Code Here

TOP

Related Classes of org.jooq.tools.jdbc.MockDataProvider

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.