Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-232

Consolidate test code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Tests
    • None

    Description

      Writing additional tests for Curator can be fairly intimidating to new users, and it looks like things just get copy and pasted a lot. We can consolidate a lot of test code, starting with how we expose Timing and CuratorFramework objects. This is a probably going to be a longer term effort with several JIRAs, so I'm not concerned with this one issue covering absolutely everything, I just want to make new tests easier to write.

      One easy route is to make heavier use of annotations, like the @BeforeMethod and @AfterMethod instead of try/finally when making sure resources are cleaned up.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mdrob Mike Drob
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m