Package mock.java.sql

Examples of mock.java.sql.ConnectionMock


    /**
     * 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


    protected void setUp() throws Exception {
        super.setUp();

        dataSourceMock = new DataSourceMock("dataSourceMock", expectations);
        connectionMock = new ConnectionMock("connectionMock", expectations);
    }
View Full Code Here

        jdbcConnectionMock = new JDBCRepositoryConnectionMock(
                "jdbcConnectionMock",
                expectations);

        sqlConnectionMock =
                new ConnectionMock("sqlConnectionMock", expectations);

        selectAllStatementMock = SQLHelper.createPreparedStatementMock(
                "selectAllStatementMock", expectations,
                sqlConnectionMock);
View Full Code Here

TOP

Related Classes of mock.java.sql.ConnectionMock

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.