cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emeka okafor <>
Subject Re: testing with cayenne
Date Fri, 09 Nov 2012 23:34:53 GMT
Let's say, I would like to test some complex relationships of my objects, all the validations
and the little things that cayenne does for you automatically. But i do not want to start
a database, create table, populate them and stop a database for each test. Is there anything
like a mockdatacontext? 

 From: Robert Zeigler <>
Sent: Saturday, November 10, 2012 12:19 AM
Subject: Re: testing with cayenne
I've done both. But using an actual database is trending toward an integration test rather
than a unit test.


On Nov 9, 2012, at 11/95:04 PM , emeka okafor wrote:

> New cayenne user here. I am trying to use cayenne as the orm for an application and I
was wondering how you guys write your unit test? do you test with a real database or do you
have predefined mock objectcontext and son on to be able to write performant test?
> Thank you.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message