| java.lang.Object org.h2.test.TestBase org.h2.test.db.TestFunctions
TestFunctions | public class TestFunctions extends TestBase (Code) | | Tests for user defined functions and aggregates.
|
Method Summary | |
public static int | addRow(Connection conn, int id, String name) | public static BufferedInputStream | blob2stream(Blob value) | public static Object[] | getArray() | public static ResultSet | nullResultSet(Connection conn) | public static int | root(int value) | public static ResultSet | select(Connection conn, String sql) | public static ResultSet | selectMaxId(Connection conn) | public static ResultSet | simpleResultSet(Integer count, int ip, boolean bp, float fp, double dp, long lp, byte byParam, short sp) Test method to create a simple result set. | public static BufferedInputStream | stream2stream(InputStream value) | public void | test() | void | test(String sql, String value) | public void | testFileRead() |
root | public static int root(int value)(Code) | | |
simpleResultSet | public static ResultSet simpleResultSet(Integer count, int ip, boolean bp, float fp, double dp, long lp, byte byParam, short sp) throws SQLException(Code) | | Test method to create a simple result set.
Parameters: count - the number of rows Parameters: ip - an int Parameters: bp - a boolean Parameters: fp - a float Parameters: dp - a double Parameters: lp - a long Parameters: byParam - a byte Parameters: sp - a short a result set |
Methods inherited from org.h2.test.TestBase | public void check(int a, int b) throws Exception(Code)(Java Doc) protected void check(byte[] a, byte[] b) throws Exception(Code)(Java Doc) protected void check(String a, String b) throws Exception(Code)(Java Doc) protected void check(long a, long b) throws Exception(Code)(Java Doc) protected void check(double a, double b) throws Exception(Code)(Java Doc) protected void check(float a, float b) throws Exception(Code)(Java Doc) protected void check(boolean a, boolean b) throws Exception(Code)(Java Doc) protected void check(boolean value) throws Exception(Code)(Java Doc) protected void check(Integer a, Integer b) throws Exception(Code)(Java Doc) protected void checkContains(String result, String contains) throws Exception(Code)(Java Doc) protected void checkFalse(String a, String b) throws Exception(Code)(Java Doc) protected void checkFalse(boolean value) throws Exception(Code)(Java Doc) protected void checkNotGeneralException(SQLException e) throws Exception(Code)(Java Doc) protected void checkResultRowCount(ResultSet rs, int expected) throws Exception(Code)(Java Doc) protected void checkSingleValue(Statement stat, String sql, int value) throws Exception(Code)(Java Doc) protected void checkSmaller(long a, long b) throws Exception(Code)(Java Doc) protected void compareDatabases(Statement stat1, Statement stat2) throws Exception(Code)(Java Doc) protected void crash(Connection conn) throws Exception(Code)(Java Doc) protected void deleteDb(String name) throws Exception(Code)(Java Doc) protected void deleteDb(String dir, String name) throws Exception(Code)(Java Doc) protected void error() throws Exception(Code)(Java Doc) protected void error(String string) throws Exception(Code)(Java Doc) protected void fail(String s, Throwable e)(Code)(Java Doc) public Connection getConnection(String name) throws Exception(Code)(Java Doc) protected Connection getConnection(String name, String user, String password) throws Exception(Code)(Java Doc) public static int getMemoryUsed()(Code)(Java Doc) protected String getPassword()(Code)(Java Doc) protected int getSize(int small, int big) throws Exception(Code)(Java Doc) public static String getTestDir(String name)(Code)(Java Doc) protected String getURL(String name, boolean admin) throws SQLException(Code)(Java Doc) protected String getUser()(Code)(Java Doc) public TestBase init(TestAll conf) throws Exception(Code)(Java Doc) public static void logError(String s, Throwable e)(Code)(Java Doc) protected void printTime(String s)(Code)(Java Doc) public void printTimeMemory(String s, long time)(Code)(Java Doc) protected void println(String s)(Code)(Java Doc) protected String readString(Reader reader) throws Exception(Code)(Java Doc) public void runTest(TestAll conf)(Code)(Java Doc) protected void startServerIfRequired() throws SQLException(Code)(Java Doc) abstract public void test() throws Exception(Code)(Java Doc) public void testCase(int i) throws Exception(Code)(Java Doc) protected void testResultSetMeta(ResultSet rs, int columnCount, String[] labels, int[] datatypes, int[] precision, int[] scale) throws Exception(Code)(Java Doc) protected void testResultSetOrdered(ResultSet rs, String[][] data) throws Exception(Code)(Java Doc) protected void trace(int x)(Code)(Java Doc) public void trace(String s)(Code)(Java Doc) protected void traceMemory()(Code)(Java Doc)
|
|
|