Hi there maven-gurus !
I really hope someone can help me on this one:
I am trying to run some tests, I keep getting :
[junit] java.lang.ClassNotFoundException: null
As a result, all my tests fail
This is where my tests are located:
<unitTestSourceDirectory>${basedir}/../testdir/src</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/PolisImplTest.java</include>
</includes>
</unitTest>
directory structure
basedir\sourcedir\src
basedir\unittestdir\src
The tests run in Eclipse and they compile in maven.
On other projects the test
Is there a solution to this problem or a way to add some extensive logging ?
I am using the -X option, but I can't get a stack trace on the failed test.
When more information is needed I will provide it.
Kind regards,
Alex Brussee
When I run test:ui, I get the next error
warning(junit.framework.TestSuite$1): Cannot instantiate test case:
testFondsCode (java.lang.InstantiationException at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
junit.framework.TestSuite.createTest(TestSuite.java:131) at
junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at
junit.framework.TestSuite.(TestSuite.java:75) at
junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:103) at
junit.swingui.TestRunner.runSuite(TestRunner.java:591) at
junit.swingui.TestRunner$9.actionPerformed(TestRunner.java:283) at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100) at
java.awt.Component.processEvent(Component.java:4897) at
java.awt.Container.processEvent(Container.java:1569) at
java.awt.Component.dispatchEventImpl(Component.java:3615) at
java.awt.Container.dispatchEventImpl(Container.java:1627) at
java.awt.Component.dispatchEvent(Component.java:3477) at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at
java.awt.Container.dispatchEventImpl(Container.java:1613) at
java.awt.Window.dispatchEventImpl(Window.java:1606) at
java.awt.Component.dispatchEvent(Component.java:3477) at
java.awt.EventQueue.dispatchEvent(EventQueue.java:480) at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread..java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100) )
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.