Hello maven gurus,

I am trying to solve a problem concerning my maven junit test.
They work fine in eclipse, they compile both in eclipse and with maven.
They all FAIL in maven (while they succeed in eclipse)
I get the next error:
 [junit] java.lang.ClassNotFoundException: null


my dir structure

basedir\sourcedir\src
basedir\junittestdir\src

Is there a solution ? Is there a way to get a stack trace on the failure ? I 
used -X and got no stack trace concerning an error.  I am very curious to what 
class can't be found.

Any help would be much appreciated

Kind Regarrds,
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.

Reply via email to