Re: [Objectbridge-developers] XML used in test.ojb.server, etc
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2001-01-08 18:02:17
|
Hi David, first of all: thanks for your interest in OJB! David Forslund wrote: > > I downloaded and built the 0.1.41 release without any problems. > However, when I run the JUnit > tests it seems to get a number of errors: [...] Yes, I get the same errors during JUnit runs. I have no idea about these errors, because if I run the testSuites test.ojb.broker.PersistenceBrokerTest, test.ojb.broker.BrokerExamples, test.ojb.broker.ProxyExamples separately and not via the embracing suite test.ojb.broker.AllTests there are no exceptions. I attached a build.xml file with a modified target junit which you might try to see if you still get exceptions using the TestSuites separately. I hope to get rid of this strange thing soon... > > Also, I can't seem to get the examples to work according to the > documentation. > "example server" returns no class found. Mea culpa! I'm planning to shift all stuff from ojb.examples.* to test.ojb.* for two reasons: 1. have only library code under ojb.*, no test stuff, no examples 2. To avoid a code doubling between tests and examples I want to rewrite all examples as JUnit tests. I'm finished with ojb.examples.broker (now contained in TestCase test.ojb.broker.BrokerExamples) and with ojb.examples.proxy (now in test.ojb.broker.ProxyExamples) So "example broker" and "example proxies" will fail (but you get their replacements executed with "build junit" !) for "example server" it slightly different: ojb.examples.server.* is not rewritten as a JUnit TestCase yet. But unfortunately I turned off compilation for packages ojb.examples.server and ojb.server in the build.xml :-( But: I corrected this mistake in the attached build.xml. So just replace your build.xml with this new version, run "build", run "example server", lean back and enjoy the wonders of OJB... The ojb.server stuff is still work in progress. The server example is meant to give an impression how programming against an ODMG implementation will look like. So it's no real loss in not seeing it running ;-) best regards, Thomas |