Package org.kuali.rice.krad.uif.element

Examples of org.kuali.rice.krad.uif.element.Link


     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());
  }
View Full Code Here

TOP

Related Classes of org.kuali.rice.krad.uif.element.Link

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.