Testing with Fragment-Plugins [message #479637] |
Tue, 11 August 2009 19:36 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03516 seconds