|
||||||||||
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 | +--net.sf.saffron.test.SaffronTestCase
Field Summary | |
protected OJStatement.Argument[] |
arguments
|
(package private) static OJStatement.Argument[] |
emptyArguments
|
protected static String[] |
emptyStringArray
|
protected static String |
nl
|
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
SaffronTestCase(String s)
|
Method Summary | |
protected void |
assertEquals(Iterator iterator,
Object[] a)
Checks that an iterator returns the same objects as the contents of an array. |
protected void |
assertEquals(List list,
Object[] a)
Checks that a list has the same contents as an array. |
protected void |
assertEquals(Object[] expected,
Object actual)
|
protected void |
assertEquals(Object[] expected,
Object[] actual)
Checks that two arrays are equal. |
protected static void |
assertEqualsDeep(Object o,
Object o2)
|
protected void |
assertSynthetic(Object o,
int rows,
String[] columnNames)
Checks that o is a result set with a given number of rows,
a list of columns with given names, and every row is the same type. |
protected void |
assertSynthetic(Object o,
int rows,
String[] columnNames,
Class[] columnClasses)
Checks that o is a result set with a given number of rows,
a list of columns with given names and types, and every row is the
same type. |
protected void |
assertThrowableContains(Throwable throwable,
String pattern)
Fails if throwable is null, or if its message does not
contain the string pattern . |
SaffronConnection |
getConnection()
|
static Iterator |
makeIterator(Object[] a)
Returns an iterator over the elements of an array. |
protected Object |
runQuery(String query)
Runs a query, using the default arguments, and returns the result. |
protected Object |
runQuery(String query,
OJStatement.Argument[] arguments)
Runs a query and returns the result. |
protected Throwable |
runQueryCatch(String query)
Runs a query, and returns any exception. |
protected void |
setUp()
|
protected void |
tearDown()
|
protected static List |
toList(Enumeration enumeration)
Converts an enumeration to a list. |
protected static List |
toList(Iterator iterator)
Converts an iterator to a list. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final OJStatement.Argument[] emptyArguments
protected static final String nl
protected static final String[] emptyStringArray
protected OJStatement.Argument[] arguments
Constructor Detail |
public SaffronTestCase(String s) throws Exception
Method Detail |
protected static void assertEqualsDeep(Object o, Object o2)
protected void assertSynthetic(Object o, int rows, String[] columnNames)
o
is a result set with a given number of rows,
a list of columns with given names, and every row is the same type.
protected void assertSynthetic(Object o, int rows, String[] columnNames, Class[] columnClasses)
o
is a result set with a given number of rows,
a list of columns with given names and types, and every row is the
same type.
protected void assertThrowableContains(Throwable throwable, String pattern)
throwable
is null, or if its message does not
contain the string pattern
.
public static Iterator makeIterator(Object[] a)
public SaffronConnection getConnection()
protected Object runQuery(String query, OJStatement.Argument[] arguments)
protected Object runQuery(String query)
protected Throwable runQueryCatch(String query)
protected static List toList(Iterator iterator)
protected static List toList(Enumeration enumeration)
protected void setUp() throws Exception
setUp
in class TestCase
Exception
protected void assertEquals(Iterator iterator, Object[] a)
protected void assertEquals(List list, Object[] a)
protected void assertEquals(Object[] expected, Object[] actual)
protected void assertEquals(Object[] expected, Object actual)
protected void tearDown() throws Exception
tearDown
in class TestCase
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |