Arnoud,

Thank you for the reply. I did not receive mail in my mailbox so i
switched to gmail. I hope to reply in the same thread next time.

I set the property
maven.junit.fork=true
I also tried without forking

Earlier, the junit report showed an error concerning something to do
with xmltransformerfactory.

Right now, no report is generated by the junit-report. The
target/test-reports dir contains emty xml files (corrupted ?)

I inverstigated the xml problem and tried tried the next properties:
maven.junit.sysproperties=javax.xml.transform.TransformerFactory
javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
Did not help.

When I call
maven:clean
maven:site,
All the tests fail and then this is printed (for all tests)

   [junitreport] The file
C:\mysourcepath\Sources\ebo-model-fase1\target\test-reports\TEST-package.name.MockAankoop.xml
is not a valid XML document. It is possibly corrupted.

Kind Regards,
Alex Brussee

>Did you take a look at the reports in target/test-reports ?
>Do you fork your tests ?
>
>Arnaud
>
>On 3/29/06, Brussee, Alex <[EMAIL PROTECTED]> wrote:
>>
>>
>> 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.
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to