| java.lang.Object net.sf.persist.tests.framework.BeanTest
BeanTest | public class BeanTest (Code) | | |
Method Summary | |
public static void | test(Persist persist, BeanMap beanMap) | public static void | testAll(Persist persist, Class cls, Class clsNoTable, BeanMap beanMap) | public static void | testAllNull(Persist persist, Class cls, Class clsNoTable, BeanMap beanMap) | public static void | testExecuteUpdateAutoGeneratedKeys(Persist persist) | public static void | testInsert(Persist persist, Object obj, BeanMap beanMap) | public static void | testReadNoTable(Persist persist, Object obj, Class clsNoTable) | public static void | testSelectByFields(Persist persist, Object obj, BeanMap beanMap) | public static void | testSelectByFieldsNull(Persist persist, Object obj, BeanMap beanMap) | public static void | testSelectFields(Persist persist, Object obj, BeanMap beanMap, boolean useNulls) | public static void | testSelectMap(Persist persist, Object obj, BeanMap beanMap) | public static void | testSetAutoGeneratedKeys(Persist persist) |
testAll | public static void testAll(Persist persist, Class cls, Class clsNoTable, BeanMap beanMap)(Code) | | Perform tests using a bean with non-null values
|
testAllNull | public static void testAllNull(Persist persist, Class cls, Class clsNoTable, BeanMap beanMap)(Code) | | Perform tests using a bean with null values
|
testExecuteUpdateAutoGeneratedKeys | public static void testExecuteUpdateAutoGeneratedKeys(Persist persist)(Code) | | Tests if explicitly specifying autoGeneratedKeys in executeUpdate works
|
testReadNoTable | public static void testReadNoTable(Persist persist, Object obj, Class clsNoTable)(Code) | | tests reading with NoTable class
|
testSelectByFields | public static void testSelectByFields(Persist persist, Object obj, BeanMap beanMap)(Code) | | For each field and each field type, execute a query in the format
select * from tableName where columnName=?
|
testSelectByFieldsNull | public static void testSelectByFieldsNull(Persist persist, Object obj, BeanMap beanMap)(Code) | | For each field, execute a query in the format
select * from tableName where columnName is null
|
testSelectFields | public static void testSelectFields(Persist persist, Object obj, BeanMap beanMap, boolean useNulls)(Code) | | for each field, and for each field type perform a query in the form
select columnName from tableName
|
testSelectMap | public static void testSelectMap(Persist persist, Object obj, BeanMap beanMap)(Code) | | perform [select * from tableName] and get the results as a map
|
testSetAutoGeneratedKeys | public static void testSetAutoGeneratedKeys(Persist persist)(Code) | | Tests setUpdateGeneratedKeys
|
|
|