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 Schlegel
Messages: 92
Registered: July 2009
Member
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

rcp.mvp.data
SRC
META-INF
-persistence.xml
-manifest.mf

rcp.mvp.data.test
TESTS
META-INF
-manifest.mf

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).

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


Current Time: Mon Sep 22 12:22:46 GMT 2014

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

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