the Unit Test framework what parameters need to be setup before the test is run.
In this case, you need to instantiate the SysDictTable object using the table name.
1 2 3 4 5 6 | public void setUp() { sysDictTable = new SysDictTable(TableNum(CustTable)); super(); } |
The setUp method can also be used to insert or update any data necessary for the
test.
TearDown Method
At the completion of a test run, it may be necessary to "undo" any data created in
the setUp method. This can be done in the tearDown method, which is called at
the end of the test. The tearDown method can be overridden on any class
extending SysTestCase.
Best Regards,
Hossein Karimi
No comments:
Post a Comment