Last active
December 12, 2015 05:48
-
-
Save ldoguin/4724245 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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