Search in sources :

Example 1 with DateSearchField

use of com.manydesigns.elements.fields.search.DateSearchField in project Portofino by ManyDesigns.

the class DateSearchFieldTest method setupFields.

private void setupFields() {
    ClassAccessor classAccessor = JavaClassAccessor.getClassAccessor(this.getClass());
    try {
        PropertyAccessor myPropertyAccessor = classAccessor.getProperty("date");
        dateField = new DateSearchField(myPropertyAccessor);
    } catch (NoSuchFieldException e) {
        fail(e.getMessage(), e);
    }
}
Also used : PropertyAccessor(com.manydesigns.elements.reflection.PropertyAccessor) DateSearchField(com.manydesigns.elements.fields.search.DateSearchField) JavaClassAccessor(com.manydesigns.elements.reflection.JavaClassAccessor) ClassAccessor(com.manydesigns.elements.reflection.ClassAccessor)

Aggregations

DateSearchField (com.manydesigns.elements.fields.search.DateSearchField)1 ClassAccessor (com.manydesigns.elements.reflection.ClassAccessor)1 JavaClassAccessor (com.manydesigns.elements.reflection.JavaClassAccessor)1 PropertyAccessor (com.manydesigns.elements.reflection.PropertyAccessor)1