Package org.apache.torque

Examples of org.apache.torque.PkSchemaData


     * @throws Exception if a database error occurs.
     */
    public void testDeleteByObjectWithoutPk() throws Exception
    {
        PkSchemaData.clearTablesInDatabase();
        PkSchemaData testData = PkSchemaData.getDefaultTestData();
        testData.save();

        Nopk toDelete = testData.getNopkList().get(1);

        // check that isDeleted() is false before deletion
        assertFalse(toDelete.isDeleted());
        // check that three entries are in the Nopk table
        List<Nopk> nopkList = getNopkList();
View Full Code Here


     * @throws Exception if a database error occurs.
     */
    public void testDeleteByObjectWithoutPkChangedColumn() throws Exception
    {
        PkSchemaData.clearTablesInDatabase();
        PkSchemaData testData = PkSchemaData.getDefaultTestData();
        testData.save();

        Nopk toDelete = testData.getNopkList().get(1);
        toDelete.setName("nopk1Changed");

        // check that three entries are in the Nopk table
        List<Nopk> nopkList = getNopkList();
        assertEquals(3, nopkList.size());
View Full Code Here

TOP

Related Classes of org.apache.torque.PkSchemaData

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.