use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestVersion_002 method checkWiringState_1.
// end of method
public void checkWiringState_1() {
ExportPackageDescription[] exports = bundle_1.getResolvedImports();
assertNotNull("export array is unexpectedly null", exports);
assertTrue("export array is unexpectedly empty", exports.length > 0);
for (int i = 0; i < exports.length; i++) {
ExportPackageDescription exp = exports[i];
String exportPackageName = exp.getName();
assertNotNull("package name is null", exportPackageName);
if (exportPackageName.equals("p")) {
assertNotNull("Package [p] is not wired when it should be ", exp.getExporter());
assertEquals("Package [p] is wired incorrectly ", exp.getExporter(), bundle_3);
}
}
// end for
}
use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestVersion_002 method checkWiringState_2.
// end method
public void checkWiringState_2() {
ExportPackageDescription[] exports = bundle_2.getResolvedImports();
assertNotNull("export array is unexpectedly null", exports);
assertTrue("export array is unexpectedly empty", exports.length > 0);
for (int i = 0; i < exports.length; i++) {
ExportPackageDescription exp = exports[i];
String exportPackageName = exp.getName();
assertNotNull("package name is null", exportPackageName);
if (exportPackageName.equals("r")) {
assertNotNull("Package [r] is not wired when it should be ", exp.getExporter());
assertEquals("Package [r] is wired incorrectly ", exp.getExporter(), bundle_3);
}
}
// end for
}
use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestGrouping_008 method checkWiringState_1.
// end of method
public void checkWiringState_1() {
BundleDescription[] requires = bundle_1.getResolvedRequires();
assertNotNull("requires array is unexpectedly null", requires);
assertTrue("requires array is unexpectedly empty", requires.length > 0);
for (int i = 0; i < requires.length; i++) {
BundleDescription bd = requires[i];
String requiresName = bd.getName();
assertNotNull("bundle name is null", requiresName);
if (requiresName.equals("B")) {
assertNotNull("Require [B] is not wired when it should be ", bd);
assertEquals("Require [B] is wired incorrectly ", bundle_2, bd);
}
}
// end for
ExportPackageDescription[] exports = bundle_1.getResolvedImports();
assertNotNull("export array is unexpectedly null", exports);
assertTrue("export array is unexpectedly empty", exports.length > 0);
for (int i = 0; i < exports.length; i++) {
ExportPackageDescription exp = exports[i];
String exportPackageName = exp.getName();
assertNotNull("package name is null", exportPackageName);
if (exportPackageName.equals("p")) {
assertNotNull("Package [p] is not wired when it should be ", exp.getExporter());
assertEquals("Package [p] is wired incorrectly ", bundle_3, exp.getExporter());
}
}
// end for
}
use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestOptional_002 method checkWiringState_1.
// end of method
public void checkWiringState_1() {
ExportPackageDescription[] exports = bundle_1.getResolvedImports();
assertNotNull("export array is unexpectedly null", exports);
assertTrue("export array is unexpectedly empty", exports.length > 0);
for (int i = 0; i < exports.length; i++) {
ExportPackageDescription exp = exports[i];
String exportPackageName = exp.getName();
assertNotNull("package name is null", exportPackageName);
if (exportPackageName.equals("q")) {
assertNotNull("Package [r] is not wired when it should be ", exp.getExporter());
assertEquals("Package [r] is wired incorrectly ", exp.getExporter(), bundle_2);
} else if (exportPackageName.equals("p")) {
assertNotNull("Package [p] is not wired when it should be ", exp.getExporter());
assertEquals("Package [p] is wired incorrectly ", exp.getExporter(), bundle_2);
} else if (exportPackageName.equals("q")) {
assertNull("Package [q] is wired when it should not be ", exp);
}
}
// end for
}
use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestPropagation_003 method checkWiringState_2.
// end method
public void checkWiringState_2() {
ExportPackageDescription[] exports = bundle_2.getResolvedImports();
assertNotNull("export array is unexpectedly null", exports);
assertTrue("export array is unexpectedly empty", exports.length > 0);
for (int i = 0; i < exports.length; i++) {
ExportPackageDescription exp = exports[i];
String exportPackageName = exp.getName();
assertNotNull("package name is null", exportPackageName);
if (exportPackageName.equals("p")) {
assertNotNull("Package [p] is not wired when it should be ", exp.getExporter());
assertEquals("Package [p] is wired incorrectly ", exp.getExporter(), bundle_4);
}
}
// end for
}
Aggregations