Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-91

without equals implementation in Add/Delete stubs tests are invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • pre-1.0
    • pre-1.0
    • asn1
    • None

    Description

      I just realized that the tests for add and delete req/resp pairs are using the parent equals() methods from the AbstractMessage base class which only compares the type, controls and message ids of Messages. We need to make sure the req/resp pairs factor in additional attributes while determining equality.

      For the responses we can kill two birds with one stone by overriding AbstractMessage.equals() within the AbstractResultResponse. This way we can compare the result properties in one place to determine equality.

      The Add and Delete requests are going to need their own equals() overrides within AddRequestImpl and DeleteRequestImpl.

      Attachments

        Issue Links

          Activity

            People

              akarasulu Alex Karasulu
              akarasulu Alex Karasulu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: