ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1203

Zookeeper systest is missing Junit Classes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.4, 3.4.0, 3.5.0
    • Component/s: tests
    • Labels:
      None
    • Hadoop Flags:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Prashant Gokhale
            Reporter:
            Prashant Gokhale
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development