public class QueryInfoTest
extends junit.framework.TestCase
Title: Test the query info class
Description:
Copyright: Copyright (c) 2006-2014
Company:
Modifier and Type | Field and Description |
---|---|
private QueryInfo |
hist
The query info instance to test
|
private static int |
SQL_STATEMENT_INDEX
Test index for the SQL statement
|
private static java.lang.String[] |
TEST_COLUMN_NAMES
Column names for the test data
|
private static java.lang.String[][] |
TEST_TABLE_DATA
Test data for result set 1
|
private static java.lang.String[][] |
TEST_TABLE_DATA_2
Test data for result set 2
|
private static int |
URL_INDEX
Test index for the URL
|
Constructor and Description |
---|
QueryInfoTest()
Setup the test case instance
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Setup the test
|
void |
testGetResults()
Test retrieving the cached results
|
void |
testGetSQLIndex()
Test getting the index for the SQL statement
|
void |
testGetURLIndex()
Test getting the index for the connection URL
|
void |
testSetResults()
Set the results
|
void |
testSetSQLIndex()
Set the index for the SQL statement
|
void |
testSetURLIndex()
Set the index for the connection URL
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
private static final int URL_INDEX
private static final int SQL_STATEMENT_INDEX
private static final java.lang.String[][] TEST_TABLE_DATA
private static final java.lang.String[][] TEST_TABLE_DATA_2
private static final java.lang.String[] TEST_COLUMN_NAMES
private QueryInfo hist
public void setUp()
setUp
in class junit.framework.TestCase
public void testGetURLIndex()
public void testGetSQLIndex()
public void testSetURLIndex()
public void testSetSQLIndex()
public void testGetResults()
public void testSetResults()