Testing Maintenance Classes

There is a convenient test superclass for entity page maintenance, com.splwg.base.api.testers.EntityPageServiceTestCase. This test class requires several methods to be implemented to handle setting up the data and validating for each action (Add, Read, Change, Delete).

In case your maintenance doesn't support add and delete, e.g. it's read and change only, then implement this method:


    protected boolean isReadAndChangeOnly() {
        return true;
    }

The test framework will only exercise the read action.

Your maintenance test class must provide the name of the service being tested, eg:


    protected String getServiceName() {
        return "CILTBTCP";
    }