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

Zookeeper systest is missing Junit Classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3.4, 3.4.0, 3.5.0
    • tests
    • None
    • Reviewed

    Description

      For running these tests, I am following instructions on https://github.com/apache/zookeeper/blob/trunk/src/java/systest/README.txt

      In Step 4, when I try to run java jar build/contrib/fatjar/zookeeper<version>-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest , it throws the following error,

      Exception in thread "main" java.lang.NoClassDefFoundError: junit/framework/TestCase

      The problem is that zookeeper-dev-fatjar.jar does not contain the TestCase class.

      Patrick Hunt suggested that adding <zipgroupfileset dir="${zk.root}/build/test/lib" includes="*.jar" /> to fatjar/build.xml should solve the problem and it does.

      Attachments

        1. ZK-1203-patch.txt
          0.6 kB
          Jolly Chen

        Activity

          People

            prashant@cloudera.com Prashant Gokhale
            prashant@cloudera.com Prashant Gokhale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: