| java.lang.Object test.org.mandarax.testsupport.TestUtils
TestUtils | public class TestUtils (Code) | | Class containing some useful test utilities.
author: Jens Dietrich version: 3.4 <7 March 05> since: 3.0 |
asStrings | public static Collection asStrings(ResultSet rs, Collection container, DateFormat df) throws Exception(Code) | | Convert the results (an entire result set) to a collection
of strings.
Parameters: rs - a result set Parameters: container - the collection used to store the strings return the container |
asStrings | public static Collection asStrings(java.sql.ResultSet rs, Collection container, DateFormat df, String excludePattern) throws Exception(Code) | | Convert the results (an entire SQL result set) to a collection
of strings. Exclude columns matching a certain pattern.
Parameters: rs - a result set Parameters: container - the collection used to store the strings return the container Parameters: excludePattern - do not include values from columns matching this pattern |
asStrings | public static Collection asStrings(java.sql.ResultSet rs, Collection container, DateFormat df) throws Exception(Code) | | Convert the results (an entire SQL result set) to a collection
of strings. Exclude columns matching a certain pattern.
Parameters: rs - a result set Parameters: container - the collection used to store the strings return the container |
getFile | public static File getFile(String fileName)(Code) | | Get a file for test data.
Parameters: fileName - the file name (without folder) a file |
getFileName | public static String getFileName(String fileName)(Code) | | Get a file name for test data.
Parameters: fileName - the file name (without folder) |
getFolder | public static File getFolder(String fileName)(Code) | | Get a folder for test data.
Parameters: fileName - the file name (without folder) a folder |
record2string | public static String record2string(Object[] record, DateFormat df)(Code) | | Convert records to a string.
This is useful when comparing arrays or collections of arrays in the debugger.
Parameters: record - an array of objects Parameters: df - the data format used to turn dates into strings a string |
|
|