"&dataObjectClassName=org.martinlaw.bo.courtcase.CourtCase";
String[] urls = {editUrl, copyUrl, delUrl};
String[] methods = {KRADConstants.Maintenance.METHOD_TO_CALL_EDIT, KRADConstants.Maintenance.METHOD_TO_CALL_COPY,
KRADConstants.Maintenance.METHOD_TO_CALL_DELETE};
InquiryForm form = new InquiryForm();
form.setDataObject(dataObject);
form.setDataObjectClassName(DATA_OBJECT_CLASS.getCanonicalName());
Link link = new Link();
//link.setTarget(target);
// test for actions on existing object
for (int i=0; i<urls.length; i++) {
inquirable.getMaintenanceActionLink(link, form, methods[i]);
assertEquals("action URL differs", urls[i], link.getHref());
}
//testing new url
form.setDataObject(null);
inquirable.getMaintenanceActionLink(link, form, KRADConstants.Maintenance.METHOD_TO_CALL_NEW);
assertEquals("action URL differs", newUrl, link.getHref());
}