mavenBundle("org.ops4j.pax.exam.samples", "pax-exam-sample9-pde", Info.getPaxExamVersion()),
url(createFragmentBundle().toExternalForm()).noStart(), junitBundles(), cleanCaches());
}
private URL createFragmentBundle() {
TinyBundle bundle = TinyBundles.bundle()
.set(Constants.FRAGMENT_HOST, "org.ops4j.pax.exam.sample9.pde")
.set(Constants.BUNDLE_MANIFESTVERSION, "2")
.set(Constants.BUNDLE_SYMBOLICNAME, "org.ops4j.pax.exam.sample9.fragment")
.add("messages.properties", getClass().getResource("/messages.properties"));
try {
Store<InputStream> store = StoreFactory.anonymousStore();
Handle handle = store.store(bundle.build());
return store.getLocation(handle).toURL();
}
catch (IOException e) {
throw new TestContainerException(e);
}