Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] using the testbed
[CDO] using the testbed [message #1006702] Fri, 01 February 2013 08:48 Go to next message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
Hi,

I wonder how the testbed is configured in terms of the repo to use? Do I need a running repo?
I read here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=247817
that, there is a persitent flag, does it mean, nothing is really persisted when false?

thank you.
Christophe
Re: [CDO] using the testbed [message #1006705 is a reply to message #1006702] Fri, 01 February 2013 08:56 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 768
Registered: July 2009
Senior Member
Hi, Christophe,

The AbstractCDOTest automatically creates an in-memory repository for
your tests. Simply use the openSession() method to get a session, and
you're off to the races. Everything (session, repository, the lot) is
cleaned up automatically.

The test framework is truly wonderful -- so convenient.

There are a number of annotations that can be used to tweak the
requirements of your test case. See numerous examples in the CDO test
projects.

cW


On 2013-02-01 13:48:12 +0000, Christophe Bouhier said:

> Hi,
>
> I wonder how the testbed is configured in terms of the repo to use? Do
> I need a running repo? I read here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=247817
> that, there is a persitent flag, does it mean, nothing is really
> persisted when false?
>
> thank you. Christophe
Re: [CDO] using the testbed [message #1006708 is a reply to message #1006705] Fri, 01 February 2013 09:03 Go to previous message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
Thanks Christian! I can just hit myself, for not asking and using the TB earlier.
Previous Topic:[CDO] CDOAdapter vs CDOViewInvalidationEvent
Next Topic:[CDO] Problem with package on CDO M4, but not on M3
Goto Forum:
  


Current Time: Tue Jul 29 13:11:11 EDT 2014

Powered by FUDForum. Page generated in 0.01495 seconds