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

Bug in PersonAttribute.compareTo

    XMLWordPrintable

    Details

      Description

      The PersonAttribute.compareTo method manually calls attributeType.getPersonAttributeTypeId() instead of just delegating to the equals method of PersonAttributeType.

      This is a bit inconvenient when writing non-context-sensitive unit tests. The (easy) workaround is to just manually set an id after doing new PersonAttributeType().

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rpuzdrowski Radosław Puzdrowski
                Reporter:
                darius Darius Jazayeri
                Designated Committer:
                Wyclif Luyima Wyclif Luyima
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 hours Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 4 days, 2 hours
                    4d 2h