use of org.eclipse.osgi.service.resolver.BundleDescription in project rt.equinox.framework by eclipse.
the class TestRFC79_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", "org.foo.impl; version=1.0.0, javax.servlet; version=2.1.0");
dictionary_1.put("Import-Package", "javax.servlet; version=2.1.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 TestRFC79_002 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("Import-Package", "org.foo.impl; version=\"[1.0.0, 1.1.0]\"");
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 TestRFC79_002 method create_bundle_4.
// end of method
public BundleDescription create_bundle_4(StateObjectFactory sof) {
java.util.Dictionary dictionary_4 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_4.put("Bundle-ManifestVersion", "2");
dictionary_4.put("Bundle-SymbolicName", "D");
dictionary_4.put("Import-Package", "javax.servlet; version=2.1.0, org.foo.impl; version=\"[1.0.0, 1.0.0]\"");
try {
bundle = sof.createBundleDescription(dictionary_4, "bundle_4", 4);
} 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 TestRFC79_004 method create_bundle_2.
// end of method
public BundleDescription create_bundle_2(StateObjectFactory sof) {
java.util.Dictionary dictionary_2 = new java.util.Properties();
BundleDescription bundle = null;
dictionary_2.put("Bundle-ManifestVersion", "2");
dictionary_2.put("Bundle-SymbolicName", "B");
dictionary_2.put("Import-Package", "org.apache.commons.logging; version=2.0.0, org.apache.commons.io; version=\"[2.0.0, 2.0.0]\"");
try {
bundle = sof.createBundleDescription(dictionary_2, "bundle_2", 2);
} 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 TestRFC79_004 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("Import-Package", "org.apache.commons.logging; org.apache.commons.io; version=2.0.0");
try {
bundle = sof.createBundleDescription(dictionary_1, "bundle_1", 1);
} catch (BundleException be) {
fail(be.getMessage());
}
return bundle;
}
Aggregations