[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Testing with Fragment-Plugins
|
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