TCK : ImplicitParameters testResult
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > TCK : ImplicitParameters testResult




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    TCK : ImplicitParameters testResult  
Andy Jefferson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-07-05 01:45 AM

The ImplicitParameters test has a test called "testResult" that puts a param
eter
in the result.
Let's leave aside why anyone would want to do this, other than insanity :-)
Looking at the result of the test (with JPOX CVS) I now get

[java] expected: [[Ljava.lang.Object;@18e1286, [Ljava.lang.O
bject;@6231c0,
[Ljava.lang.Object;@b0740c, [Ljava.lang.Object;@92c969, [Ljava.l
ang.Object;@e54d6a]
[java] got:      [[Ljava.lang.Object;@3d96b7, [Ljava.lang.Ob
ject;@171fdd8,
[Ljava.lang.Object;@d08216, [Ljava.lang.Object;@10c7af9, [Ljava.
lang.Object;@5da750]

That is, JPOX returns a List of Object[], and the expected is a List of 
Object[].
Scanning through the test I don't see evidence that the test is checking the
results of each Object[], just comparing the object array objects which 
will
clearly have different object array references. Can someone please review th
e
test, and either correct it if it needs correcting, or get it to give more
information on the actual error here - is the object returned wrong?, is the
parameter returned wrong ?

Thx
--
Andy






[ Post a follow-up to this message ]



    Re: TCK : ImplicitParameters testResult  
Michael Bouschen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-07-05 01:45 AM

Hi Andy,

you are right, the current implementation of testing the query result
does not work in case of Object[]. Michael W. is currently working on
adding new TCK classes testing the query result handling (JDO-164). He
ran into the same problem and changed the code checking the query result
already. I expect this code being checked in early next week.

Regards Michael

>The ImplicitParameters test has a test called "testResult" that puts a para
meter
>in the result.
>Let's leave aside why anyone would want to do this, other than insanity :-)
>Looking at the result of the test (with JPOX CVS) I now get
>
>    [java] expected: [[Ljava.lang.Object;@18e1286, [Ljava.l
ang.Object;@6231c0,
>[Ljava.lang.Object;@b0740c, [Ljava.lang.Object;@92c969, [Ljava.
lang.Object;@e54d6a]
>    [java] got:      [[Ljava.lang.Object;@3d96b7, [Ljava.la
ng.Object;@171fdd8,
>[Ljava.lang.Object;@d08216, [Ljava.lang.Object;@10c7af9, [Ljava
.lang.Object;@5da750]
>
>That is, JPOX returns a List of Object[], and the expected is a List of
 Object[].
>Scanning through the test I don't see evidence that the test is checking th
e
>results of each Object[], just comparing the object array objects which
 will
>clearly have different object array references. Can someone please review t
he
>test, and either correct it if it needs correcting, or get it to give more
>information on the actual error here - is the object returned wrong?, is th
e
>parameter returned wrong ?
>
>Thx
>--
>Andy
>
>


--
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66
Fax.:++49/30/2175 2012		D-10783 Berlin







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:07 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register