Skip to content

Instantly share code, notes, and snippets.

@ldoguin
Last active December 12, 2015 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldoguin/4724245 to your computer and use it in GitHub Desktop.
Save ldoguin/4724245 to your computer and use it in GitHub Desktop.
@RunWith(FeaturesRunner.class)
@Features({CoreFeature.class})
public class TestClass {
@Inject
protected RuntimeHarness harness.
@Test
public void myTest() throws Exception {
// deploy the complete bundle
harness.deployBundle("org.my.service");
// deploy a specific contribution
harness.deployContrib("org.my.service","OSGI-INF/my-test-contrib.xml");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment