Re: [Ddtunit-users] DDTUnit define array fields
Brought to you by:
jg_hamburg,
kgellien
|
From: j.gellien <j.g...@bi...> - 2006-10-22 16:57:59
|
Hi Rafael, actually you found a bug in processing of primitive type conversion. I'll fix that tonight and keep you posted. Best regards Jörg ----- Original Message ----- From: "Rafael Luque" <raf...@or...> To: <jg_...@us...> Sent: Friday, October 20, 2006 1:12 PM Subject: DDTUnit define array fields > > Hi Jörg, > > I'am trying to use DDTUnit to code some data-driven tests. I have a > problem to define as an input object for my test a JavaBean object with > a field of type array of bytes. > > I use the following XML test resource to define the object's attribute > picture as an empty array with a size of 100 bytes: > > <ddtunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://ddtunit.sourceforge.net/ddtunit.xsd"> > <cluster id="usertest"> > <group id="testCreateUser"> > <test id="complexUser"> > <objs> > <obj id="user" type="com.orangesoft.disnet.model.User" > hint="bean"> > <id>myUsername</id> > <password>myPassword</password> > <picture hint="array" type="byte">100</picture> > </obj> > </objs> > . . . > > However the test run results in the following error: > > junitx.ddtunit.DDTException: junitx.ddtunit.DDTExceptionError executing > setter com.orangesoft.disnet.model.User.setPicture(...). Check if hint > and setter are correct (Do not provide set-prefix!). > > What is the correct way to define this kind of fields with DDTUnit? > > Thanks in advance, > Rafa > > -- > Rafael Luque Leiva > > Orange Soft - http://www.orange-soft.com > Creando software para las personas > |