Package org.kuali.rice.krad.datadictionary

Examples of org.kuali.rice.krad.datadictionary.AttributeDefinition


        "Uif-DocumentDescription");
    // see org.kuali.rice.krad.uif.control.TextControl#setWatermarkText for why the additional space is added
    assertEquals("instructional msg differs", "A brief statement of the action you are taking",
        desc.getInstructionalText());
   
    AttributeDefinition expln = (AttributeDefinition) KRADServiceLocatorWeb.getDataDictionaryService().getDictionaryObject(
        "DocumentHeader-explanation");
    assertNotNull("watermark should not be null", ((TextAreaControl)expln.getControlField()).getWatermarkText());
  }
View Full Code Here


   * tests the date time format configured for the date time picker
   * <p>code adapted from {@link org.kuali.rice.krad.datadictionary.validation.constraint.DatePatternConstraintTest}
   */
  public void testDateTimeFormatValidation() {
    final String attributeName = "startDate";
    AttributeDefinition dateDefinition = new AttributeDefinition();
    dateDefinition.setName(attributeName);
    //String date = "28 Feb 2013 03:50 PM";
    Timestamp date = new Timestamp(System.currentTimeMillis());
    SingleAttributeValueReader attributeValueReader = new SingleAttributeValueReader(
        date, MatterEvent.class.getCanonicalName(), attributeName,
        dateDefinition);
View Full Code Here

TOP

Related Classes of org.kuali.rice.krad.datadictionary.AttributeDefinition

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.