From: Dmitriy S. <sha...@gm...> - 2010-02-06 20:13:25
|
Hello, I did commit fix for AllXmlRpcTests ( http://exist.svn.sourceforge.net/exist/?rev=11135&view=rev ) , please confirm that this one fixed. If not we should make server @JettyStart static. -- Cheers, Dmitriy Shabanov On Sat, 2010-02-06 at 20:23 +0100, Wolfgang Meier wrote: > Hi Joe, > > ok, so we are at least all getting those errors. > > > I'm admittedly a testing newbie here. Is there a resource you could > > point me to so I could understand junit or how eXist implements it? > > We are mostly using junit4. This is probably rather difficult to > understand without knowing Java, though I recently tried to write more > tests in XQuery (see test/src/xquery/). > > Anyway, each test class should be self-contained. If a class needs a > running server for its test, it will start one, usually in its > @BeforeClass method and stop it in @AfterClass. This worked perfectly > well until recently. But if you now try to run, for example, > AllXmlRpcTests: > > bin/run.sh org.junit.runner.JUnitCore org.exist.xmlrpc.AllXmlRpcTests > > you more or less see how the first test class completes and closes > down the server, but while the second test class starts up a new > jetty, Java just terminates without further notice. > > Wolfgang |