Package mock.java.sql

Examples of mock.java.sql.ResultSetMock


    /**
     * Tests that all the mock objects can be initialised correctly.
     */
    public void testInitialisation() {
        new ResultSetMock("resultSet", expectations);
        new ConnectionMock("connection", expectations);
        new StatementMock("statement", expectations);
        new PreparedStatementMock("preparedStatement", expectations);
        new CallableStatementMock("callableStatement", expectations);
        new DatabaseMetaDataMock("databaseMetaData", expectations);
View Full Code Here


//        jdbcConnectionMock.expects.createAtomicStatement(command)
//                .returns(atomicStatementMock);
//        atomicStatementMock.expects.setColumnValue("PROJECT", "Project");

        resultSetMock = new ResultSetMock("resultSetMock", expectations);

        lockManager = new JDBCLockManagerImpl(repositoryMock, "Project");
    }
View Full Code Here

        // =====================================================================
        //   Create Mocks
        // =====================================================================

        final ResultSetMock resultSet2Mock =
                new ResultSetMock("resultSet2Mock", expectations);
//        final AtomicUpdateMock atomicUpdateMock =
//                new AtomicUpdateMock("atomicUpdateMock", expectations);

        // =====================================================================
        //   Set Expectations
View Full Code Here

TOP

Related Classes of mock.java.sql.ResultSetMock

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.