| java.lang.Object net.sourceforge.squirrel_sql.test.TestUtil
TestUtil | public class TestUtil (Code) | | A utility class for building test objects.
author: manningr |
Method Summary | |
public static void | expectActionCollectionGet(String actionName, Class<? extends Action> actionClass, ActionCollection col) | public static String | findAncestorSquirrelSqlDistDirBase(String dirToFind) | public static TableColumnInfo | getBigintColumnInfo(ISQLDatabaseMetaData md, boolean nullable) | public static TableColumnInfo | getBinaryColumnInfo(ISQLDatabaseMetaData md, boolean nullable) | public static TableColumnInfo | getBlobColumnInfo(ISQLDatabaseMetaData md, boolean nullable) | public static TableColumnInfo | getClobColumnInfo(ISQLDatabaseMetaData md, boolean nullable) | public static TableColumnInfo | getDateColumnInfo(ISQLDatabaseMetaData md, boolean nullable) | public static ActionCollection | getEasyMockActionCollection() | public static IApplication | getEasyMockApplication(boolean nice) | public static IApplication | getEasyMockApplication() | public static DBCopyPreferenceBean | getEasyMockDBCopyPreferenceBean() | public static IDatabaseObjectInfo | getEasyMockDatabaseObjectInfo(String catalog, String schema, String simpleName, String qualName, DatabaseObjectType type) | public static ForeignKeyInfo[] | getEasyMockForeignKeyInfos(String fkName, String ctab, String ccol, String ptab, String pcol) | public static ISQLDatabaseMetaData | getEasyMockH2SQLMetaData() | public static IIdentifier | getEasyMockIdentifier() | public static List<IndexInfo> | getEasyMockIndexInfos(String tableName, String columnName) | public static IMessageHandler | getEasyMockMessageHandler() | public static PrimaryKeyInfo | getEasyMockPrimaryKeyInfo(String catalog, String schemaName, String tableName, String columnName, short keySequence, String pkName, boolean replay) | public static PrimaryKeyInfo | getEasyMockPrimaryKeyInfo(String catalog, String schemaName, String tableName, String columnName, short keySequence, String pkName) Calls replay by default. | public static IQueryTokenizer | getEasyMockQueryTokenizer() | public static IQueryTokenizer | getEasyMockQueryTokenizer(String sep, String solComment, boolean removeMultiLineComment, int queryCount) | public static SQLAlias | getEasyMockSQLAlias(IIdentifier SqlAliasId, IIdentifier SqlDriverId) | public static SQLConnection | getEasyMockSQLConnection() | public static ISQLConnection | getEasyMockSQLConnection(ResultSet rs) | public static ISQLDatabaseMetaData | getEasyMockSQLMetaData(String dbName, String dbURL, DatabaseMetaData md) | public static ISQLDatabaseMetaData | getEasyMockSQLMetaData(String dbName, String dbURL, boolean nice, boolean replay) | public static ISQLDatabaseMetaData | getEasyMockSQLMetaData(String dbName, String dbURL) Calls replay by default. | public static ISQLDatabaseMetaData | getEasyMockSQLMetaData(String dbName, String dbURL, boolean nice) Calls replay by default. | public static ISession | getEasyMockSession(String dbName, boolean replay) | public static ISession | getEasyMockSession(String dbName) Calls replay by default. | public static ISession | getEasyMockSession(ISQLDatabaseMetaData md, boolean replay) | public static ISession | getEasyMockSession(ISQLDatabaseMetaData md, ISQLConnection con, boolean replay) | public static ISession | getEasyMockSession(ISQLDatabaseMetaData md) Calls replay by default. | public static ISession | getEasyMockSession(ISQLDatabaseMetaData md, ResultSet rs) | public static SessionProperties | getEasyMockSessionProperties(String sep, String solComment, boolean removeMultLineComments) | public static ISQLAliasExt | getEasyMockSqlAliasExt() | public static SquirrelAction | getEasyMockSquirrelAction(String name) | public static SquirrelPreferences | getEasyMockSquirrelPreferences(SessionProperties props) | public static SquirrelResources | getEasyMockSquirrelResources() | public static TableColumnInfo | getEasyMockTableColumn(String catalogName, String schemaName, String tableName, String columnName, int dataType) | public static TableColumnInfo | getEasyMockTableColumnInfo(String catalogName, String schemaName, String tableName, String columnName, int dataType, int columnSize, String defaultValue, String remarks, int decimalDigits, int octetLength, int radix, boolean nullable) | public static TableColumnInfo[] | getEasyMockTableColumns(String catalogName, String schemaName, String tableName, List<String> columnNames, List<Integer> dataTypes) | public static ITableInfo | getEasyMockTableInfo(String catalog, String schema, String simpleName, String qualName) | public static TaskThreadPool | getEasyMockTaskThreadPool() | public static TableColumnInfo | getIntegerColumnInfo(ISQLDatabaseMetaData md, boolean nullable) | public static TableColumnInfo | getLongVarcharColumnInfo(ISQLDatabaseMetaData md, boolean nullable, int length) | public static TableColumnInfo | getTableColumnInfo(ISQLDatabaseMetaData md, int type, int columnSize, int decimalDigits, boolean nullable) | public static TableColumnInfo | getTableColumnInfo(ISQLDatabaseMetaData md, String columnName, int type, int columnSize, int decimalDigits, boolean nullable) | public static TaskThreadPool | getThreadPool() | public static TableColumnInfo | getVarcharColumnInfo(ISQLDatabaseMetaData md, boolean nullable, int length) | public static TableColumnInfo | setEasyMockTableColumnInfoNullable(TableColumnInfo info, boolean nullable) Returns a new TableColumnInfo EasyMock based on values from the one
specified, only the column size is the one specified. | public static TableColumnInfo | setEasyMockTableColumnInfoSize(TableColumnInfo info, int newSize) Returns a new TableColumnInfo EasyMock based on values from the one
specified, only the column size is the one specified. | public static TableColumnInfo | setEasyMockTableColumnInfoType(TableColumnInfo info, int dataType) Returns a new TableColumnInfo EasyMock based on values from the one
specified, only the column data type is the one specified. |
findAncestorSquirrelSqlDistDirBase | public static String findAncestorSquirrelSqlDistDirBase(String dirToFind)(Code) | | |
getEasyMockApplication | public static IApplication getEasyMockApplication(boolean nice)(Code) | | |
getEasyMockPrimaryKeyInfo | public static PrimaryKeyInfo getEasyMockPrimaryKeyInfo(String catalog, String schemaName, String tableName, String columnName, short keySequence, String pkName)(Code) | | Calls replay by default.
Parameters: catalog - Parameters: schemaName - Parameters: tableName - Parameters: columnName - Parameters: keySequence - Parameters: pkName - |
getEasyMockQueryTokenizer | public static IQueryTokenizer getEasyMockQueryTokenizer(String sep, String solComment, boolean removeMultiLineComment, int queryCount)(Code) | | |
getEasyMockTableColumnInfo | public static TableColumnInfo getEasyMockTableColumnInfo(String catalogName, String schemaName, String tableName, String columnName, int dataType, int columnSize, String defaultValue, String remarks, int decimalDigits, int octetLength, int radix, boolean nullable)(Code) | | |
setEasyMockTableColumnInfoNullable | public static TableColumnInfo setEasyMockTableColumnInfoNullable(TableColumnInfo info, boolean nullable)(Code) | | Returns a new TableColumnInfo EasyMock based on values from the one
specified, only the column size is the one specified.
Parameters: info - the existing TableColumnInfo to replicate Parameters: newSize - the new column size |
setEasyMockTableColumnInfoSize | public static TableColumnInfo setEasyMockTableColumnInfoSize(TableColumnInfo info, int newSize)(Code) | | Returns a new TableColumnInfo EasyMock based on values from the one
specified, only the column size is the one specified.
Parameters: info - the existing TableColumnInfo to replicate Parameters: newSize - the new column size |
setEasyMockTableColumnInfoType | public static TableColumnInfo setEasyMockTableColumnInfoType(TableColumnInfo info, int dataType)(Code) | | Returns a new TableColumnInfo EasyMock based on values from the one
specified, only the column data type is the one specified.
Parameters: info - the existing TableColumnInfo to replicate Parameters: dataTyoe - the new column data type |
|
|