Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5139

Create a base test for PropertyEditors

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.2.0
    • Component/s: None
    • Complexity:
      Medium

      Description

      We have around 30 classes in the package org.openmrs.propertyeditor that implement the java.beans.PropertyEditorSupport interface to serialize/deserialize an object to a string which Spring for example uses to pass an object to/from html

      The package currently has a coverage of ~45%.

      Create a base class that makes it a !!!joy!!! to test these very simple classes.
      There are only two methods that are implemented which need to be tested for a handful of cases which are the same for all classes (what if text is null, empty, an id, a uuid, ...).

        Attachments

          Activity

            People

            Assignee:
            teleivo Ivo Ulrich
            Reporter:
            teleivo Ivo Ulrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: