the MailUtilTest was solved by changing the hostname of my laptop ( InetAddress.getLocalHost().getHostName() didn't resolve). ReferringPagesPlugin now works (I attached a new patch to JSPWiki-100 for that). I keep getting two errors, the MassiveRepositoryTest and the WikiEngine.testSpacedNames1(), I can't explain why
Andrew, thanks for fixing the [user|group]database.xml.tmpl regards, Harry 2008/1/28, Andrew Jaquith <[EMAIL PROTECTED]>: > > As of last night, my test runs are much better: 3 failures and 2 errors: > > PageRenamerTest (2 errors): > testBug85_case3: out of memory > testBug85_case4: out of memory > > ReferringPagesPluginTest (1 failure): > testMaxReferences expected:<5> but was:<7> > > MassiveRepositoryTest (1 failure): > testMassiveRepository1 - Right number of pages expected:<1000> > but was:<1001> > > MailUtilTest (1 failure): > testSendMail: Could not send mail: Could not connect to SMTP > host: 127.0.0.1, port: 25 > > On MailUtilTest, this is failing because I haven't set up my localhost > mail relay. That's because I am lazy. So really, it's probably like 2 > failures and 2 errors. > > In the test results you posted, 18 of the 25 errors seem to be related > to this: > > java.lang.NullPointerException > at java.util.Calendar.setTime(Calendar.java:1032) > at java.text.SimpleDateFormat.format(SimpleDateFormat.java:785) > at java.text.SimpleDateFormat.format(SimpleDateFormat.java:778) > at java.text.DateFormat.format(DateFormat.java:314) > at > com > .ecyrd > .jspwiki.auth.authorize.XMLGroupDatabase.saveDOM(XMLGroupDatabase.java: > 429) > > As far as I know, this code has been pretty stable for a while. I > don't know why it would be giving you trouble, but not me. Could you > file a bug report on this? > > I see other errors related to the RCS file system -- I'm not having > those, either. > > > > Andrew > > On Jan 28, 2008, at 2:06 PM, Harry Metske wrote: > > > Hi all, > > > > the last few weeks I have been running the ant tests task a couple > > of times, > > and I noticed that there are quite a few failures (5) and errors (29). > > (For details see : http://www.computerhok.nl/tmp/junit-noframes.html ) > > > > So I have a few questions : > > 1. Are the unit tests actively maintained ? > > 2. Are there instructions available specifically for running JSPWiki > > Unit > > tests ? (Setting up the environment, now I just cd to ./workspace/ > > JSPWiki > > and run "ant tests") ? > > 3. Should we ignore (some of) these errors (I personally think we > > shouldn't) > > ? > > 4. Is there a specific reason for running JSPWiki with log4j DEBUG > > level > > (file ./etc/jspwiki.properties), this creates a 10 MB logfile for > > every test > > run. > > 5. Any other comments.... > > > > Just as an excercies for myself I fixed the > > ReferrringPagesPlugin.testMaxReferences(), should I open an issue > > for these > > (with patches) ? > > > > regards, > > Harry > > > > -- > > met vriendelijke groet, > > Harry Metske > > Telnr. +31-548-512395 > > Mobile +31-6-51898081 > > -- met vriendelijke groet, Harry Metske Telnr. +31-548-512395 Mobile +31-6-51898081