use of org.eclipse.osgi.service.resolver.BundleDescription in project rt.equinox.framework by eclipse.
the class TestRFC79_007 method create_bundle_5.
// end of method
public BundleDescription create_bundle_5(StateObjectFactory sof) {
java.util.Dictionary dictionary_5 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_5.put("Bundle-ManifestVersion", "2");
dictionary_5.put("Bundle-SymbolicName", "E");
dictionary_5.put("Export-Package", "Q; version=2");
try {
bundle = sof.createBundleDescription(dictionary_5, "bundle_5", 5);
} catch (BundleException be) {
fail(be.getMessage());
}
return bundle;
}
use of org.eclipse.osgi.service.resolver.BundleDescription in project rt.equinox.framework by eclipse.
the class TestVersion_002 method create_bundle_1.
// end method
public BundleDescription create_bundle_1(StateObjectFactory sof) {
java.util.Dictionary dictionary_1 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_1.put("Bundle-ManifestVersion", "2");
dictionary_1.put("Bundle-SymbolicName", "A");
dictionary_1.put("Export-Package", "r; version=2.5");
dictionary_1.put("Import-Package", "p; version=\"[2.0, 3.0)\"");
try {
bundle = sof.createBundleDescription(dictionary_1, "bundle_1", 1);
} catch (BundleException be) {
fail(be.getMessage());
}
return bundle;
}
use of org.eclipse.osgi.service.resolver.BundleDescription in project rt.equinox.framework by eclipse.
the class TestVersion_002 method create_bundle_3.
// end of method
public BundleDescription create_bundle_3(StateObjectFactory sof) {
java.util.Dictionary dictionary_3 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_3.put("Bundle-ManifestVersion", "2");
dictionary_3.put("Bundle-SymbolicName", "C");
dictionary_3.put("Export-Package", "p; version=2.2, r; version=2.2");
try {
bundle = sof.createBundleDescription(dictionary_3, "bundle_3", 3);
} catch (BundleException be) {
fail(be.getMessage());
}
return bundle;
}
use of org.eclipse.osgi.service.resolver.BundleDescription in project rt.equinox.framework by eclipse.
the class TestGrouping_003 method create_bundle_5.
// end of method
public BundleDescription create_bundle_5(StateObjectFactory sof) {
java.util.Dictionary dictionary_5 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_5.put("Bundle-ManifestVersion", "2");
dictionary_5.put("Bundle-SymbolicName", "E");
dictionary_5.put("Export-Package", "p; q; version=2.1; uses:=\"p,q\"");
try {
bundle = sof.createBundleDescription(dictionary_5, "bundle_5", 5);
} catch (BundleException be) {
fail(be.getMessage());
}
return bundle;
}
use of org.eclipse.osgi.service.resolver.BundleDescription in project rt.equinox.framework by eclipse.
the class TestGrouping_003 method create_bundle_3.
// end of method
public BundleDescription create_bundle_3(StateObjectFactory sof) {
java.util.Dictionary dictionary_3 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_3.put("Bundle-ManifestVersion", "2");
dictionary_3.put("Bundle-SymbolicName", "C");
dictionary_3.put("Export-Package", "r; s; version=2.1; uses:=\"r,s\"");
dictionary_3.put("Import-Package", "p; version=2.0, q; version=\"[2.0, 2.0]\"");
try {
bundle = sof.createBundleDescription(dictionary_3, "bundle_3", 3);
} catch (BundleException be) {
fail(be.getMessage());
}
return bundle;
}
Aggregations