Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Alexey Kudravtsev 
Subsystem
Unit Testing. JUnit 
Affected versions
Fixed in
Fixed in build
Next build 
Build
6107
Fixed in build
6730
Severity
0
  • Submitted by   Christian Hujer
    3 years ago (18 Nov 2006 15:34)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:37)
  • Jira: IDEA-35474
    (history, comments)

IDEA-35474

IntelliJ IDEA cannot run JUnit 4.2 tests

19
IntelliJ IDEA cannot run JUnit 4.2 tests. When I try to put a JUnit 4.2 test in (they only differ in the module / project jar used being one from JUnit 4.2 instead of JUnit 4.1 or 4.0), executing the tests results in a ClassCastException.


/home/cher/Documents/Downloads/jdk1.5.0_07/bin/java -Didea.launcher.port=7536 -Didea.launcher.bin.path=/home/cher/Documents/Downloads/idea-6107/bin -Dfile.encoding=UTF-8 -classpath /home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/deploy.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/jsse.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/plugin.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/javaws.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/charsets.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/rt.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/jce.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/dnsns.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/j3dcore.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/j3dutils.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/sunpkcs11.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/sunjce_provider.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/localedata.jar:/home/cher/Documents/Downloads/jdk1.5.0_07/jre/lib/ext/vecmath.jar:/home/cher/cvs/sf/gridarta/classes:/home/cher/cvs/sf/gridarta/lib/japi.jar:/home/cher/cvs/sf/gridarta/lib/log4j-1.2.13.jar:/home/cher/cvs/sf/gridarta/lib/junit-4.2.jar:/home/cher/Documents/Downloads/idea-6107/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 @/tmp/idea_junit46615.tmp
Cannot instantiate test(s): java.lang.ClassCastException: class test.net.sf.gridarta.gui.HideFileFilterProxyTest

Process finished with exit code 1


Environment: uname -a
Linux riedquat 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux

JUnit 4.2
jdk 1.5.0_07

Issue was resolved
Comments (2)
 
History (1)
 
Links
 
Taras Tielkes
  Taras Tielkes
06 Mar 2007 20:47
(2 years ago)
#permalink
Will this get backported to 6.0.5?
Alexey Kudravtsev
  Alexey Kudravtsev
06 Mar 2007 21:14
(2 years ago)
#permalink
Yes