public class QueryHistoryTest
extends junit.framework.TestCase
Title: Test the query history class
Description:
Copyright: Copyright (c) 2006-2014
Company:
Constructor and Description |
---|
QueryHistoryTest()
Setup the test case instance
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Setup the test
|
void |
testAddQuery()
Test adding a query
|
void |
testClearAllQueries()
Test clearing the history list
|
void |
testDeleteQueryAtIndex()
Test deleting the query based on the index position
|
void |
testEnforceSize()
Test enforcing the history list max size
|
void |
testExceptions()
Test thrown exceptions
|
void |
testGetCurrentQueryInfo()
Test getting the current query's information
|
void |
testGetNumberOfQueries()
Test getting the number of queries
|
void |
testHasNext()
Test detecting whether there are more queries in the history list
|
void |
testHasPrevious()
Test detecting whether there are earlier queries in the history list
|
void |
testInsertSameQuery()
Test inserting a duplicate query
|
void |
testMoveBackward()
Test moving backward in the history list
|
void |
testMoveForward()
Test moving forward in the history list
|
void |
testTruncation()
Test the truncation of query history
|
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
public void setUp()
setUp
in class junit.framework.TestCase
public void testAddQuery()
public void testDeleteQueryAtIndex()
public void testGetNumberOfQueries()
public void testGetCurrentQueryInfo()
public void testMoveBackward()
public void testMoveForward()
public void testHasPrevious()
public void testHasNext()
public void testClearAllQueries()
public void testTruncation()
public void testInsertSameQuery()
public void testEnforceSize()
public void testExceptions()