Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Testing with Fragment-Plugins
Testing with Fragment-Plugins [message #479637] Tue, 11 August 2009 19:36
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 92
Registered: July 2009
Hello Again.

I got my EclipseLink bundles running in a RCP consisting of several plugins. Now
I am about to test these plugins, for which I am using fragment-plugins in order
to have full access to the classes. So I have two projects with this structure

In order to use a test-database for the tests, I am not using spring so I cannot
inject another DB or something and since I want to keep it simple for now I
though I can just copy the persistence.xml to the test-fragment as well (which
just connects to another schema) and that this will overwrite the other
persistence.xml at runtime. Well, after a test I found out that this is
obviously not working, my testschema was still empty.

Is there a way to achieve something like this? Having a test-fragment using
another database (persistence.xml, overwriting settings).

Previous Topic:@NamedQuery "DELETE FROM"
Next Topic:jpa2.0 - TypesafeMetamodel, Criteria API
Goto Forum:

Current Time: Sat Apr 04 16:31:54 GMT 2020

Powered by FUDForum. Page generated in 0.02908 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top