|
fabrizio giustina made changes - 17/Sep/05 02:56 AM
Fabrizio,
You're welcome; glad to help. Regarding the unit tests, TestAll fails when running the test goal "fresh out of the box". This is what I did to generate the unit test result below. 1. Download project with maven 2. run "maven jar" from displaytag dir. Looks like something fundamental is missing in my sandbox or procedure, which wouldn't surprise me much as I'm new to maven. Having done some research to no avail, I'd really appreciate it if you could shed some light on what's missing as I have some other changes I'd like to submit after running unit tests. The culprit seems to be String[] files in TestAll.findAndStoreTestClasses coming back null. Testsuite: org.displaytag.test.TestAll Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec Null Test: Caused an ERROR null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) Caused by: java.lang.NullPointerException at org.displaytag.test.ClassFinder.findAndStoreTestClasses(TestAll.java:180) at org.displaytag.test.ClassFinder.<init>(TestAll.java:156) at org.displaytag.test.TestAll.suite(TestAll.java:104) ... 7 more Thanks, -Jorge |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Btw, tests in CVS for 1.1 should run without problems since a couple of weeks, see: http://displaytag.sourceforge.net/11/multiproject/displaytag/junit-report.html