Testing Change on Maintenance Class

Next, a new read is performed (using the same read header above), and you can perform a change to the page body in the method:


protected PageBody changedPageBody(PageBody original)

Here is an example:


    protected PageBody changedPageBody(PageBody original) {
        original.put(Maintenance.STRUCTURE.ACCUM_ALL_INST_SW, Boolean.TRUE);

        ItemList list = original.getList("BCP");
        ListBody param = (ListBody) list.getList().get(0);
        param.put(Maintenance.STRUCTURE.list_BCP.DESCR50,
             "Changed parameter 1");
        param.prepareToChange();

        return original;
    }

A read is performed after the above changes are sent, and the results are compared.