Re: [Ddtunit-users] DDTUnit define array fields
Brought to you by:
jg_hamburg,
kgellien
|
From: j.gellien <j.g...@bi...> - 2006-10-23 22:36:12
|
Hi Rafael, hopefully your example will work now. It is updated in cvs HEAD. If you like to have a jar for testing just call. Best regards Jörg ----- Original Message ----- From: "j.gellien" <j.g...@bi...> To: "Rafael Luque" <raf...@or...> Cc: <ddt...@li...> Sent: Sunday, October 22, 2006 6:57 PM Subject: Re: [Ddtunit-users] DDTUnit define array fields 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 > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Ddtunit-users mailing list Ddt...@li... https://lists.sourceforge.net/lists/listinfo/ddtunit-users |