T
Tim Slattery
I've used StrutsTestCase (an extension of JUnit version 3) to test a
Struts Action object in NetBeans 6.8. It works - from logging
statements in the code I can see that the test runs all the way
through, returns to my object that extends MockStrutsTestCase, and
successfully performs the verifyForward statement.
The "Test Results" page shows a red bar and "No test passed". But in
the "Output" pane, it says "Tests run: 1, Failures: 0, Errors: 0, Time
elapsed: 0.656 sec". What causes the "Test Results" pane to report
failure is this message in the Output pane:
WARNING: multiple versions of ant detected in path for junit
jar:file:/D:/Program%20Files/NetBeans%206.8/java3/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
and
jar:file:/D:/bea10/modules/org.apache.ant_1.6.5/lib/ant.jar!/org/apache/tools/ant/Project.class
Both these libraries exist on my machine. I have no clue why NB is
finding the bea10 library. Opening a console window and showing
CLASSPATH yields only:
CLASSPATH=C:\WINNT\Profiles\SLATTERY_T\.vmwebclient\Java\Lib\vmi660.jar
which doesn't seem to have anything to do with this. So WTF is going
on"?
Struts Action object in NetBeans 6.8. It works - from logging
statements in the code I can see that the test runs all the way
through, returns to my object that extends MockStrutsTestCase, and
successfully performs the verifyForward statement.
The "Test Results" page shows a red bar and "No test passed". But in
the "Output" pane, it says "Tests run: 1, Failures: 0, Errors: 0, Time
elapsed: 0.656 sec". What causes the "Test Results" pane to report
failure is this message in the Output pane:
WARNING: multiple versions of ant detected in path for junit
jar:file:/D:/Program%20Files/NetBeans%206.8/java3/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
and
jar:file:/D:/bea10/modules/org.apache.ant_1.6.5/lib/ant.jar!/org/apache/tools/ant/Project.class
Both these libraries exist on my machine. I have no clue why NB is
finding the bea10 library. Opening a console window and showing
CLASSPATH yields only:
CLASSPATH=C:\WINNT\Profiles\SLATTERY_T\.vmwebclient\Java\Lib\vmi660.jar
which doesn't seem to have anything to do with this. So WTF is going
on"?