1 22 23 package org.dbunit.database; 24 25 import org.dbunit.AbstractDatabaseTest; 26 27 32 public abstract class AbstractDatabaseConnectionTest extends AbstractDatabaseTest 33 { 34 public AbstractDatabaseConnectionTest(String s) 35 { 36 super(s); 37 } 38 39 public final void testGetRowCount() throws Exception 40 { 41 assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("empty_table", null)); 42 assertEquals("EMPTY_TABLE", 0, _connection.getRowCount("empty_table")); 43 44 assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table", null)); 45 assertEquals("TEST_TABLE", 6, _connection.getRowCount("test_table")); 46 47 assertEquals("PK_TABLE", 1, _connection.getRowCount("pk_table", "where PK0 = 0")); 48 } 49 } 50 51 52 | Popular Tags |