Re: [OJB-developers] reference proxies not working
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-06-05 05:50:50
|
hi georg, your testcase and the fix are now in cvs. how can a bug like this survive such a long time ? it's due to the lack of a decent testcase ! my own private 'testcase' has a proxy reference from person to person (theBoss) so it simply didn't matter if the wrong class was taken to build the proxy :( thanks a lot jakob ----- Original Message ----- From: "Georg Schneider" <ge...@me...> To: "Mahler Thomas" <tho...@it...> Cc: <obj...@li...> Sent: Tuesday, June 04, 2002 4:30 PM Subject: [OJB-developers] reference proxies not working > Hi Thomas, > > I just tried out the new release and I noticed that reference proxies are > still not working due to a bug I mentioned in the following posting > > http://sourceforge.net/mailarchive/forum.php?thread_id=664723&forum_id=4880 > > Please correct me if I am wrong, but there seems to be no testcase testing > reference proxies, so I constructed one and attached it to this posting. > If you run that testcase you should see an IllegalArgumentException being > thrown, which should disappear when fixing the code as mentioned in the > posting (btw, there is a typo in my posting, it should be > referencedProxy=null, and not referenceProxy=null :-) ) > > The get the testcase running you have to do 3 things: > > 1.) put the ArticleWithReferenceProxy.java file from the attachement into > the test/ojb/broker/ directory (the class simply extends Article, so I can > put a new mapping into the repository) > > 2.) add the mapping-xml from the attachement to the repository_junit.xml > file. The mapping is basically a copy of the mapping for the > Article-class, the major difference being the addition of proxy="true" for the reference-descriptor > for productGroup > > 3.) add the method testReferenceProxies() from the attachement to the > ProxyExample class in the test/ojb/broker/ directory > > > Cheers > > Georg > |