[XQZone General] XQRunner JUnit errors
Ron Hitchens
ron.hitchens at marklogic.com
Fri Jul 15 15:51:16 PDT 2005
Howard,
The failed unit tests had to do with one change to
XQRunner and some minor changes in MarkLogic Server in
3.0-1. I've updated the unit tests, they should all
run cleanly now.
The main change was that XQRunner now returns BigInteger
rather than Integer objects for the XQuery xs:integer type.
Since xs:integer is not constrained to 32 bits, like the Java
int type is, an Integer object is not a big enough container
for xs:integer.
The other tests were failing due to some minor precision
adjustments in 3.0-1 to come into better compliance with
the XQuery spec.
I've updated the XQRunner release, now 0.7.2. You
can download it here: http://xqzone.marklogic.com/svn/xqrunner/releases/
On Jul 15, 2005, at 11:22 AM, Howard Katz wrote:
> I'm using the xdbc30.jar. I was getting several additional errors
> until I
> realized I should probably remove the non-3.0 xdbc and xdmp jars as
> I'm
> running against server 3.0. (Might be a good thing to mention in the
> documentation.)
>
> I'm getting three errors in TestHelper (testInteger, testFloat, and
> testObjects) and three in TestResultTypes (testGDay, testGMonth, and
> testGMonthDay). The only error I've stepped through is the first.
> There's a
> ClassCastException being thrown in executeInteger() by the statement
>
> return (((Integer) item.asObject()).intValue());
>
> The item that's being cast from is a BigInteger.
>
> I'm wondering if this is a Java 1.5/1.4 compatibility issue?? I'm
> currently
> running your code against JDK 1.4.2
>
> Howard
>
>
>> -----Original Message-----
>> From: general-bounces at xqzone.marklogic.com
>> [mailto:general-bounces at xqzone.marklogic.com] On Behalf Of
>> Ron Hitchens
>> Sent: Friday, July 15, 2005 10:46 AM
>> To: General XQZone Discussion
>> Subject: Re: [XQZone General] XQRunner JUnit errors
>>
>>
>> Yes, please report any problems you're having to me. In
>> general, you can report issues with code in the xqzone
>> library here on this mailing list. The appropriate person
>> (me, in the case of XQRunner) should be listening and will speak up.
>>
>> Specifically about XQRunner: What sort of junit errors
>> are you seeing? Which version of XDBC are you using with it?
>>
>> On Jul 15, 2005, at 9:56 AM, Howard Katz wrote:
>>
>>
>>>
>>> I'm just working my way thru XQRunner to get a better idea
>>>
>> of how the
>>
>>> XDBC stuff works and am getting some JUnit testing errors. Is that
>>> something I should formally report somewhere?
>>>
>>> Howard
>>>
>>> _______________________________________________
>>> General mailing list
>>> General at xqzone.marklogic.com
>>> http://xqzone.com/mailman/listinfo/general
>>>
>>>
>>
>> ---
>> Ron Hitchens {ron.hitchens at marklogic.com} 650-655-2351
>>
>>
>> _______________________________________________
>> General mailing list
>> General at xqzone.marklogic.com
>> http://xqzone.com/mailman/listinfo/general
>>
>>
>
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
---
Ron Hitchens {ron.hitchens at marklogic.com} 650-655-2351
More information about the General
mailing list