ZipException when running junit tests

后端 未结 2 918
挽巷
挽巷 2021-01-12 06:51

I\'ve been trying in vain to get ant to execute some tests written in junit. Any advice would be much appreciated. I\'m pretty new to both ant and Java so please be patient.

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 07:49

    You added EasyTest.class as a JAR file to the classpath. This doesn't work. Class files aren't JAR archives, so the classloader throws an error when it tries to load classes from it.

提交回复
热议问题