Uploaded image for project: 'VIVO'
  1. VIVO
  2. VIVO-177

Add case to unit test for object dump to exercise exceptions in getMapDump()

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      0

      Description

      moved from https://issues.library.cornell.edu/browse/NIHVIVO-3119, dated 8/8/11, originally created by Rebecca Younes:

      Need tests to exercise the "continue" cases in BaseDumpDirective.getMapDump() - methods, plus properties "class" and "empty". The code has been added to DumpDirectiveTest but currently doesn't work and so is commented out; search for "degrees" in the file.

      Most likely collections other than maps will have the same issue, and will need to skip methods as well; though see notes in BaseDumpDirective - this is not necessarily the optimal approach, since it uses dump to filter out things we assume the template shouldn't be exposed to. At this point it's a quick 'n' dirty solution to crashes in dump when reaching a method inside getMapDump().

        Attachments

          Activity

            People

            • Assignee:
              j2blake Jim Blake
              Reporter:
              j2blake Jim Blake
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified