Package org.apache.agila.util

Examples of org.apache.agila.util.JDBCUtil


import java.util.Map;

public class JDBCTestCase extends DAOTestCaseSupport {

    public void testGetInstance() {
        JDBCUtil jdbcUtil = JDBCUtil.getInstance();
        assertNotNull( jdbcUtil );
    }
View Full Code Here


        JDBCUtil jdbcUtil = JDBCUtil.getInstance();
        assertNotNull( jdbcUtil );
    }

    public void testGenerateKey() {
        JDBCUtil jdbcUtil = JDBCUtil.getInstance();

        int nextKey = 0;
        int previousKey = jdbcUtil.generateKey();

        for( int i = 0; i < 10; i++ ) {
            nextKey = jdbcUtil.generateKey();

            assertTrue( (previousKey + 1) == nextKey );

            previousKey = nextKey;
        }
View Full Code Here

TOP

Related Classes of org.apache.agila.util.JDBCUtil

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.