@LocalDeploy

Hello. I am writing a unit test. I have a local deployment:
@LocalDeploy("x.y.z:OSGI-INF/foo.xml")
I'm using injection:
@Inject
protected RuntimeHarness runtimeHarness;
Then a test case:
@Test
public void testX() throws Exception {
...
runtimeHarness.undeployContrib("x.y.z", "OSGI-INF/foo.xml")
...
The call to undeployContrib fails because the component appears to be loaded into the org.nuxeo.osgi.app bundle. Not sure why. Am I doing something incorrect? (I could force load the bundle and the contribution in code - that's fine - it's mainly that I'm curious if the way I'm going about it is not supported, or, I'm just doing something incorrect.)
–Thanks

0 votes

0 answers

1284 views

ANSWER