You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "Algirdas M." <sn...@splius.lt> on 2003/08/28 14:50:15 UTC
Re[3]: JUnit + Cactus + IntelliJ IDEA problems
Hello,
Thursday, August 28, 2003, 2:46:41 PM, you wrote:
i tried also cactus 1.4.1 version with the same code. When i run it with JUnit 3.8.1, i
get another exception:
warning(junit.framework.TestSuite$1): Exception in constructor: testRequest
(org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:506)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at org.apache.cactus.util.JUnitVersionHelper.around146_getTestCaseName
(JUnitVersionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):1170)
at org.apache.cactus.util.JUnitVersionHelper.getTestCaseName
(JUnitVersionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):103)
at org.apache.cactus.AbstractTestCase.<init>(AbstractTestCase.java:124)
at org.apache.cactus.AbstractWebTestCase.<init>(AbstractWebTestCase.java:86)
at org.apache.cactus.ServletTestCase.<init>(ServletTestCase.java:119)
at MyRunnerClass.<init>(MyRunnerClass.java:22)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at junit.framework.TestSuite.createTest(TestSuite.java:135)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.<init>(TestSuite.java:75)
at com.intellij.rt.execution.junit.TestRunnerUtil.getTestImpl(TestRunnerUtil.java:111)
at com.intellij.rt.execution.junit.ui.SwingTestRunner.getTest(SwingTestRunner.java:19)
at junit.swingui.TestRunner.runSuite(TestRunner.java:591)
at junit.swingui.TestRunner.start(TestRunner.java:708)
at com.intellij.rt.execution.junit.ui.SwingTestRunner.main(SwingTestRunner.java:11)
Caused by: java.lang.ClassCastException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:504)
... 20 more
)
--
Best regards,
Algirdas mailto:snk@splius.lt