| java.lang.Object simpleorm.examples.BasicTests
BasicTests | public class BasicTests implements SConstants(Code) | | Similar to ADemo tests, but with more assertions.
|
Method Summary | |
static void | createDeptEmp() Prepare for tests, Delete old data. | static void | deptTest() Basic examples/tests not involving foreign keys. | static void | empTest() Examples/Tests of the (non identifying) foreign key relationship
from Employee to Department, and from Employee to
Employee.Manager. | public static void | main(String[] argv) | static void | metaTest() Test of meta data and properties. | static void | queryTest() | static void | selectDepartments(int total) Query all the departments with Budget > 10000 and check that the
total budget == total.
This uses the lower level SQL interface,
ADemo does the same thing using the Query interface. |
createDeptEmp | static void createDeptEmp() throws Exception(Code) | | Prepare for tests, Delete old data.
|
deptTest | static void deptTest() throws Exception(Code) | | Basic examples/tests not involving foreign keys.
|
empTest | static void empTest()(Code) | | Examples/Tests of the (non identifying) foreign key relationship
from Employee to Department, and from Employee to
Employee.Manager.
|
metaTest | static void metaTest()(Code) | | Test of meta data and properties.
|
queryTest | static void queryTest()(Code) | | |
selectDepartments | static void selectDepartments(int total)(Code) | | Query all the departments with Budget > 10000 and check that the
total budget == total.
This uses the lower level SQL interface,
ADemo does the same thing using the Query interface.
|
|
|