ddtunit-users Mailing List for DDTUnit
Brought to you by:
jg_hamburg,
kgellien
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <jg_...@us...> - 2009-08-09 01:21:51
|
Hi Peter, caught me during vacation time ... You can find the actual snapshot 0.8.8-SNAPSHOT under http://ddtunit.sourceforge.net/m2-repo/junitx/ddtunit/ddtunit/0.8.8-SNAPSHOT/ I am trying to catch up on a new sourceforge deployment later. Will there be continuous development? - For about a year I am doing bugfixes on request of users. The featureset is rather stable and I got no special extension requests so far. If there are good ideas for extension or improvement I will surely continue development. Version 1.0? - Because the featureset is stable for so long you might call this state 1.0 I am lacking a little bit of time to do a proper roundup. If you got ideas, questions or other comments on the framework you are highly welcome. Best regards Jörg Am 15.07.2009 um 07:33 schrieb Peter Meier: Hi Joerg, thanks that would be really great! Will there be continuous development of DDTUnit? I\'ve seen that the last commit was on March 30th. Also is there an official 1.0 release planned in near future? Best regards, Peter Gesendet von freenetMail- Mehr als nur eine E-Mail-Adresse http://email.freenet.de/dienste/emailoffice/produktuebersicht/basic/mail/index.html?pid=6828 |
|
From: Peter M. <bla...@gm...> - 2009-07-09 05:48:54
|
Hi, I am wondering whether I can download ddtunit 0.8.8 (with JUnit 4 support) somewhere? I couldn't find it on your project page anywhere? It would be great if you could provide me a download possibility for ddtunit 0.8.8. Thanks a lot! Best regards, Peter -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 |
|
From: <jg_...@us...> - 2007-10-08 15:07:55
|
Hi Barun,indeed I am using Xerces 2.x for xml schema validation.- Which Cas= tor version are you using? - Is it possible to switch to Xerces 2.x?Best re= gardsJoerg-------------- Hi,Which XML parser is used to load the Test XML f= ile. I am getting the following error when I use Castor jar.Castor uses xer= ces 1.4.0 and that probably is causing the problem.If I don't use Castor th= en it works fine. Does this put a priority over Parsers to be used, incase = there are multiple parsers in the classpath.I am using maven as the build t= ool and dependency for Castor cause this problem.Any suggestions ThanksBaru= n=0A=0A=0A=0A=0A=0A=0A=0A=0A |
|
From: <jg_...@us...> - 2007-10-08 15:07:54
|
Hi Barun,indeed I am using Xerces 2.x for xml schema validation.- Which Cas= tor version are you using? - Is it possible to switch to Xerces 2.x?Best re= gardsJoerg-------------- Hi,Which XML parser is used to load the Test XML f= ile. I am getting the following error when I use Castor jar.Castor uses xer= ces 1.4.0 and that probably is causing the problem.If I don't use Castor th= en it works fine. Does this put a priority over Parsers to be used, incase = there are multiple parsers in the classpath.I am using maven as the build t= ool and dependency for Castor cause this problem.Any suggestions ThanksBaru= n=0A=0A=0A=0A=0A |
|
From: <jg_...@us...> - 2007-10-08 15:03:13
|
Hi Barun,indeed I am using Xerces 2.x for xml schema validation.- Which Cas= tor version are you using? - Is it possible to switch to Xerces 2.x?Best re= gardsJoerg-------------- Hi,Which XML parser is used to load the Test XML f= ile. I am getting the following error when I use Castor jar.Castor uses xer= ces 1.4.0 and that probably is causing the problem.If I don't use Castor th= en it works fine. Does this put a priority over Parsers to be used, incase = there are multiple parsers in the classpath.I am using maven as the build t= ool and dependency for Castor cause this problem.Any suggestions ThanksBaru= n=0A"Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken"=0A= http://produkte.shopping.freenet.de/handy_voip_isdn/klarmobil/index.html?pi= d=3D730025=0A |
|
From: <j.g...@fr...> - 2007-08-12 17:08:38
|
Hi J=FCrgen, thanks for the good feedback. As soon as there is a little more time I will incorporate the fixes =20 to the framework. As for the use of Spring and data driven testing have a look on =20 springunit.sourceforge.net from Ted Velkoff. Based on the experience =20 with DDTUnit he transfered the ideas directly to Spring. Because I am no expert of Spring usage perhaps you are interested to =20 contribute your ideas and implementation to DDTUnit project? - You =20 are welcome to do so! On the jdk issue: would it be helpful to provide a 1.4 compilation of =20= the jar? best regards J=F6rg P.S.: I am experimenting on xml stax support to integrate dbUnit =20 (dbunit.sourceforge.net) support into DDTUnit. Might this be =20 interesting for your work? Am 10.08.2007 um 11:52 schrieb J=FCrgen Su=DFner: > Hi, > > I am using ddtunit to test complex objects in a spring based core =20 > library of a webapplication. During my tests i discovered some =20 > strange behavior in ddtunit. So i modified the sourcecode to fix =20 > this behaviors. With this mail i want to inform you about the =20 > changes i made. Perhaps they will be included in ddtunit. > > -------------------------------------------------------------------- > Content: > > 1. cant use JDK 5 > 2. Nullpointer when creating Collections > 3. class implements list but is no Collection > 4. DDTUnit and Spring > 5. Conclusion > > -------------------------------------------------------------------- > > 1. My Webapplication and therefor its core library must run under =20 > WAS 5.1 therfor i dont have support fo JDK 5. > > The first sollution was to use retroweaver to create 1.4 compatible =20= > classes from the 1.5 binarries. this works fine bur the drawback =20 > ist that i could not wave the sources and i have to user retrowaver =20= > runtime. > > The second idea was to disable all generics and foraech loops to =20 > get a real 1.4 compatible source. > > this works fine for me. So all my modifications i'd like to show =20 > you are based on the 1.4 Source without generics. > > -------------------------------------------------------------------- > > > 2. There is a NullPointer excecption when using a collection within =20= > a collection within a assert tag. > > The following xml fragment shoud demonstrate this > > <test id=3D"2"> > <objs> > <obj id=3D"object1" type=3D"arraylist" = hint=3D"collection"> > <item type=3D"de.dummy.test.Container" = hint=3D"collection"> > <item type=3D"de.dummy.test.Container" = hint=3D"collection"/> > <item type=3D"de.dummy.test.Container" = hint=3D"collection"/> > </item> =09 > </obj> =09 > </objs> =09 > <asserts> > <assert id=3D"result" type=3D"arraylist" = action=3D"isEqual" =20 > hint=3D"collection"> > <item type=3D"de.dummy.test.Container" = hint=3D"collection"> > <item type=3D"de.dummy.test.Container" = hint=3D"collection"/> > <item type=3D"de.dummy.test.Container" = hint=3D"collection"/> > </item> =09 > </assert> > </asserts> > </test> =09 > > used with this UnitTest: > > public void testDoTest() { > > Object container =3D getObject("object1"); > > addObjectToAssert("result", container); > > } > > becaus the assert and the object are equal the test should succeed. =20= > But when using 0.8.5 a NuppPointerException arrouses. > > My Fix to this Problem is: > > CollectionCreatorAction.process contains the following Code > > // do not forget to process the actual root element > if (rootAction.getPrevious() !=3D null) { > rootAction =3D rootAction.process(); > } > > changing to > > // do not forget to process the actual root element > if (rootAction.getPrevious() !=3D null) { > if (!(rootAction.getPrevious() instanceof = CollectionCreatorAction)) { > rootAction =3D rootAction.process(); > } > } > > and the obove Test works... > > I don't know if this is the correct sollution but it works for me. > > -------------------------------------------------------------------- > > 3. CollectionCreaterAction.inject does not recognize classes =20 > implemention only the List interface or the Collection interface > > > This Test will only recognize classes that are subclasses of =20 > AbstractCollection because Collecion is an interface and can never =20 > be a super class. > > if ("java.util.Collection".equals(superclazz.getName()) > || "java.util.AbstractCollection".equals(superclazz > .getName())) { > found =3D true; > } > > in addition to check the superClass relationship you should test =20 > also Class[] superclazz.getInterfaces() and theire superclass =20 > relationships. That will help to accep classes implemention only =20 > the collection interface. Till now i have not implementet this so i =20= > can not provide source code... > > -------------------------------------------------------------------- > > 4. Think about providing a spring connector. > > Becaus i am working with spring i dont want to loose all the power =20 > the AbstractDependencyInjectionSpringContextTest gave me. e.G. =20 > Autowiring or autoTransactionManagement. Maybe it would be an idea =20 > to provie a DDTTestCase that inherits from springs =20 > AbstractDependencyInjectionSpringContextTest or even better another =20= > BaseTestClass than inherrits form springs =20 > AbstractTransactionSpringContextTestCase. So spring users are able =20 > to use DDTUnit in a real comfortable way and combining the power of =20= > DDTUnit with the flexibillity of spring. > > In my case i made a copy of DDTTestCase as DDTSpringTestCase and =20 > combined these classes in a common Interface. Now my =20 > DDTSpringTestCase inherrits from =20 > AbstractTransactionSpringContextTestCase. So i have DDTUnit =20 > Support, autowiring and autoTransactionManagement. > > -------------------------------------------------------------------- > > 5. Ok, thats all for now. > > I think DDTUnit is till now one of the best UnitTestFrameworks. I =20 > hope this ideas might help you to improve DDTUnit quality. If you =20 > have any questions feel free to contact me. > > Regards > Juergen Su=DFner (DDTUnit user) > > > > > > _____________________________________________________________________ > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000066 > > |
|
From: <j.g...@fr...> - 2007-07-17 21:14:01
|
Hi David, now you can find the xsd as expected by the referenced url. Actually during xml parsing this xsd file is accessed with XML EntityResolver from ddtunit.jar file. So no internet access is required during scchema validation. Best regards. Joerg Am 16.07.2007 um 21:51 schrieb <Duc...@hy...>: > The file seem unavailable. > > It should be accessible via a web browser? Isn't it? > > Thanks, > > David D. > |
|
From: <j.g...@bi...> - 2007-05-30 17:12:42
|
Hi Carlos, second part is a little bit easier to answer. - Check =20 DDTTestCase.assertObject(...) for details. http://=20 ddtunit.sourceforge.net/apidocs/junitx/ddtunit/DDTTestCase.html With this methods it is possible to evaluate assertions during =20 testmethod execution and not at the end of testmethod. Back to the first issue of execution order. The order of execution is =20= specified by the TestRunner used. The standard model is implemented =20 by selecting all methods starting with 'test' using reflection. So no =20= specific order for now. Inside of a testgroup the tests are executed =20 by order of <test> tags - just a choice of implementation no fixed =20 design in mind. I have a look into this issues and be back on you. Best regards J=F6rg Gellien Am 30.05.2007 um 16:59 schrieb Carlos Alves: > Hello Again, > > I'm thinking about using the XML files as data source for =20 > now, but I have some doubts ... > I'm working on a scenario that a given <test id> depends on a =20= > previous one, so I need the tests to be executed on the same order =20 > that they are on the XML file, is that possible? > In regards to Asserts I have some pretty custom test asserts =20 > that depends on the data that comes from the XML and data from my =20 > database and some business generated information, is there any =20 > getAssert in the same way that I have the getObject? > > Thanks in advance, > Carlos Alves > > On 5/19/07, J=F6rg Gellien <j.g...@bi...> wrote: > Hallo Rafael, > > for now there is no generic interface to extend data resource support. > If you can provide a sample of Excel spreadsheet with data as you > like to process I will provide a first draft for the integration. > > To get an idea how DDTUnit processes data details you should start in > package junitx.ddtunit.data with class DDTDataRepository. > The hirachical structure of cluster/group/test is mapped on the =20 > classes > TestClusterDataSet - TestGroupDataSet - TestDataSet > > Looking forward for more details on your planes to use DDTUnit. > > Best regards > > J=F6rg > > Am 16.05.2007 um 23:26 schrieb Carlos Alves: > > > Hi, > > > > I'm planning to start using DDTUnit to run my unit tests > > but I would like to know if would be easy to make DDTUnit read the > > data source information from someplace else, like an Excel / > > OpenOffice spreadsheet. Is there any kind of interface that I would > > have to implement in order to implement such thing? > > > > Thanks in advance, > > Rafael > > |
|
From: <j.g...@bi...> - 2007-05-19 12:52:34
|
Hallo Rafael, for now there is no generic interface to extend data resource support. If you can provide a sample of Excel spreadsheet with data as you =20 like to process I will provide a first draft for the integration. To get an idea how DDTUnit processes data details you should start in =20= package junitx.ddtunit.data with class DDTDataRepository. The hirachical structure of cluster/group/test is mapped on the classes TestClusterDataSet - TestGroupDataSet - TestDataSet Looking forward for more details on your planes to use DDTUnit. Best regards J=F6rg Am 16.05.2007 um 23:26 schrieb Carlos Alves: > Hi, > > I'm planning to start using DDTUnit to run my unit tests =20 > but I would like to know if would be easy to make DDTUnit read the =20 > data source information from someplace else, like an Excel / =20 > OpenOffice spreadsheet. Is there any kind of interface that I would =20= > have to implement in order to implement such thing? > > Thanks in advance, > Rafael |
|
From: <j.g...@bi...> - 2007-01-19 17:39:12
|
Hi Jan, just had some time to look into your requests. First of all you found a bug: unitx.ddtunit.DDTExceptionContainer class 'java.util.Hashtable' =20 does not implement java.util.Map. This will be fixed as soon as possible. Second: Please attach the source of antlrparser.EntityType for =20 example.It is much easier to reproduce the actual problems. Back to your xml resource. To give an idea of how to specify data in =20 xml resource I translated the resource back to Java code and provide =20 this as attachment. If you could provide more details of what you like to achieve I will =20 try to assist. - Can you provide examples perhaps in standard JUnit =20 testcases and I translate these into DDTUnit testcases? On the topic of field definitions of ancestor classes I come back to =20 you later. Must check myself first. Best regards J=F6rg |
|
From: <j.g...@bi...> - 2007-01-09 21:56:01
|
Hi Jan, sorry for delay of answer. - I had to catch up with work after vacation. Now to your question. I am not quite sure about it so I will try to =20 describe the functionallity of DDTUnit a bit. And perhaps you can =20 phrase your question more specifically after this. As stated DDTUnit is a direct extension of JUnit 3.8. That means =20 there exists a base class >DDTTestCase extends TestCase (of JUnit) To provide a mapping from xml resource to test method DDTUnit uses a =20 <cluster>#id, which can be mapped directly to the name of the test =20 class. -> This is provided by DDTTestCase.initContext(). <group#id> is directly mapped to existing method name of the testclass. To provide the notion of a testdata set that can be used during one =20 execution of a testmethod (like one call in JUnit) <test id=3D""> was =20= introduced. The details of an implicite loop over these testdata sets is =20 implemented in DDTTestCase class. If you now add a new dataset <test> under <group> tag the method =20 associated to the groupid will be executed the number of times there =20 are <test> provided - including the execution of setUp() and tearDown=20= () every time. So the behavior of a DDTTestCase method with one <test> dataset is =20 equal to the execution of one testmethod under TestCase of JUnit. Only if you want to define more than one testdataset per testmethod =20 you will see the benefit of using DDTUnit against JUnit. I hope this will clarify the usage a little bit. Best regards J=F6rg Am 30.12.2006 um 23:49 schrieb Jan Vlegels: > Hello, > > I'm Jan Vlegels, and i study informatics at the University Of =20 > Antwerp (Belgium). I'd like to use DDTUnit to test a tool that I'm =20= > developing. But there is one thing that I don't understand very well. > > When you want to test a method of a class with several testdata =20 > sets (i mean different sets of input parameters and expected result =20= > parameter) the docs say that you can add several <test> to the =20 > XMLResource. But how do you handle these <test> in your java =20 > testing code? Of course I want to create new tests for each =20 > testdata set. > > Can you help me? > > Thanks, > > Jan Vlegels > > _________________________________________________________________ > Meer ruimte nodig? Maak nu je eigen Space http://spaces.msn.nl/ > > |
|
From: Rafael L. <raf...@or...> - 2006-10-24 07:39:36
|
Jörg, My examle works now using CVS HEAD. Thank you very much for your quick fix. Best regards, Rafa j.gellien wrote: > 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 > > > -- Rafael Luque Leiva Orange Soft - http://www.orange-soft.com Creando software para las personas Urbanización Las Castañeras Arroyo de los Combos, 26 bis Arroyomolinos, E28939 Madrid Tel: +34 692 613 639 Fax: +34 916 091 075 GnuPG Key ID: 0x4B9238A2 |
|
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 |
|
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 > |
|
From: j.gellien <j.g...@bi...> - 2006-08-25 21:12:48
|
----- Original Message -----=20
From: j.gellien=20
To: Warwick Baker=20
Sent: Friday, August 25, 2006 10:00 PM
Subject: Re: isEquals or isSame?
Hi Warwick,
the DDTUnit code uses the Collection.contains(Object obj) contract as =
stated by Java definition:(taken from JavaDoc jdk 1.4)
* Returns <tt>true</tt> if this collection contains the specified
* element. More formally, returns <tt>true</tt> if and only if =
this
* collection contains at least one element <tt>e</tt> such that
* <tt>(o=3D=3Dnull ? e=3D=3Dnull : o.equals(e))</tt>.
If you have an example that states otherwise please share this with me. =
I like to investigate it.
Any hints, ideas or comments on usage or other are welcome!
Best regards
J=F6rg
----- Original Message -----=20
From: Warwick Baker=20
To: jg_...@us...=20
Sent: Monday, August 21, 2006 5:34 AM
Subject: isEquals or isSame?
Hi there,
Tried using DDTUnit to test a DAO hibernate layer, particularly finder =
methods that return lists of objects.
Does the 'isContainedIn' test perform an isEquals or isSame check =
behond the scenes?
I also tried an isEquals on a finder that returns a unique object =
(which has overidden the equals method). It always fails with a message =
like ...
looking for object blah@012345, found object blah@654321
to me this looks like it is still doing an isSame.
Any ideas?
Regards,
Warwick Baker.
**********************************************************
This electronic mail message and any attachments are =
confidential. If you are not the intended recipient please do not use =
the information, advise us immediately and destroy this message. =
Opinions and information in this message are those of the sender and not =
necessarily those of CAL. Unless expressly permitted by the sender, you =
may not copy, disclose or use the contents in any way.
If this e-mail contains a marketing message and you do not want =
to receive such messages from CAL in the future please e-mail =
'in...@co...' including 'remove' in the subject line of the =
reply message.
**********************************************************
=20
|