|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.eigenbase.test.DiffTestCase net.sf.farrago.test.ResultSetTestCase
public abstract class ResultSetTestCase
ResultSetTestCase (refactroed from FarragoTestCase) is a abstract base for JUnit tests (see FarragoJdbcTest) that uses result sets.
Field Summary | |
---|---|
protected ResultSet |
resultSet
ResultSet for processing queries. |
Fields inherited from class org.eigenbase.test.DiffTestCase |
---|
logFile, logOutputStream, refFile |
Constructor Summary | |
---|---|
protected |
ResultSetTestCase(String testName)
Creates a new FarragoTestCase object. |
Method Summary | |
---|---|
protected void |
compareResultList(List<String> refList)
Compares the first column of a result set against a String-valued reference set, taking order into account. |
protected void |
compareResultLists(List<String>... refLists)
Compares the columns of a result set against several String-valued reference lists, taking order into account. |
protected void |
compareResultSet(Set<String> refSet)
Compares the first column of a result set against a String-valued reference set, disregarding order entirely. |
protected void |
compareResultSetWithDelta(double expected,
double delta)
Compares the first column of a result set against a numeric result, within a given tolerance. |
protected void |
compareResultSetWithPattern(Pattern pattern)
Compares the first column of a result set against a pattern. |
protected int |
getResultSetCount()
|
Methods inherited from class org.eigenbase.test.DiffTestCase |
---|
addDiffMask, addIgnorePattern, diffFile, diffLines, diffTestLog, fileContents, getTestlogRoot, openTestLog, openTestLogOutputStream, setGC, setRefFileDiffMasks, setUp, setVerbose, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ResultSet resultSet
Constructor Detail |
---|
protected ResultSetTestCase(String testName) throws Exception
testName
- .
Exception
- .Method Detail |
---|
protected int getResultSetCount() throws Exception
Exception
protected void compareResultSet(Set<String> refSet) throws Exception
refSet
- expected results
Exception
- .protected void compareResultSetWithPattern(Pattern pattern) throws Exception
pattern
- Expected pattern
Exception
protected void compareResultSetWithDelta(double expected, double delta) throws Exception
expected
- Expected resultdelta
- Tolerance
Exception
protected void compareResultList(List<String> refList) throws Exception
refList
- expected results
Exception
- .protected void compareResultLists(List<String>... refLists) throws Exception
refLists
- vararg of ListException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |