Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2274

ZooKeeperServerMain is difficult to subclass for unit testing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.5.1
    • None
    • server, tests
    • None

    Description

      Apache Curator needs a testable version of ZooKeeperServerMain. In the past, Curator has used javassist, reflection, etc. but this is all clumsy. With a few trivial changes, Curator could use ZooKeeperServerMain directly by subclassing.

      Attachments

        1. ZOOKEEPER-2274.2.patch
          3 kB
          Jordan Zimmerman
        2. ZOOKEEPER-2274.patch
          3 kB
          Jordan Zimmerman

        Activity

          People

            randgalt Jordan Zimmerman
            randgalt Jordan Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: