Package com.technoetic.mocks.sql

Examples of com.technoetic.mocks.sql.MockConnection


    public XPlannerTestSupport() throws Exception {
        hibernateSessionFactory = new MockSessionFactory();
        GlobalSessionFactory.set(hibernateSessionFactory);
        hibernateSession = new MockSession();
        hibernateSessionFactory.openSessionReturn = hibernateSession;
        connection = new MockConnection();
        hibernateSession.connectionReturn = connection;
        mockPreparedStatement = new MockPreparedStatement();
        connection.prepareStatementReturn = mockPreparedStatement;
        mockResultSet = new MockResultSet();
        mockPreparedStatement.executeQueryReturn = mockResultSet;
View Full Code Here

TOP

Related Classes of com.technoetic.mocks.sql.MockConnection

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.