| org.jaffa.persistence.blackboxtests.DeleteTest
DeleteTest | public class DeleteTest extends TestCase (Code) | | author: GautamJ |
Method Summary | |
protected void | setUp() Sets up the fixture, by creating the UOW. | protected void | tearDown() Tears down the fixture, by closing the UOW. | public void | testCheckRollbackAfterDelete() Deletes a record from SYCD using the following query:
delete from sycd WHERE condition='Z-TESTSYCD-03'
It then does a rollback. | public void | testDeleteCondition() Executes the following query:
delete from sycd WHERE condition='Z-TESTSYCD-02'
It then ensures that the record was got deleted. |
DeleteTest | public DeleteTest(String name)(Code) | | Creates new QueryTest
Parameters: name - The name of the test case. |
setUp | protected void setUp()(Code) | | Sets up the fixture, by creating the UOW. This method is called before a test is executed.
|
tearDown | protected void tearDown()(Code) | | Tears down the fixture, by closing the UOW. This method is called after a test is executed.
|
testCheckRollbackAfterDelete | public void testCheckRollbackAfterDelete()(Code) | | Deletes a record from SYCD using the following query:
delete from sycd WHERE condition='Z-TESTSYCD-03'
It then does a rollback. This is followed by a commit.
The test fails if the record is deleted.
|
testDeleteCondition | public void testDeleteCondition()(Code) | | Executes the following query:
delete from sycd WHERE condition='Z-TESTSYCD-02'
It then ensures that the record was got deleted.
|
|
|