use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestDynamic_004 method checkWiringState_2.
// end method
public void checkWiringState_2() {
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 [q] is not wired when it should be ", exp.getExporter());
assertEquals("Package [q] 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_001 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_2);
} else if (exportPackageName.equals("q")) {
assertNotNull("Package [q] is not wired when it should be ", exp.getExporter());
assertEquals("Package [q] is wired incorrectly ", exp.getExporter(), bundle_2);
}
}
// end for
}
use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestPropagation_001 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("x")) {
assertNotNull("Package [x] is not wired when it should be ", exp.getExporter());
assertEquals("Package [x] 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_003 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("r")) {
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("s")) {
assertNotNull("Package [s] is not wired when it should be ", exp.getExporter());
assertEquals("Package [s] is wired incorrectly ", exp.getExporter(), bundle_2);
}
}
// end for
}
use of org.eclipse.osgi.service.resolver.ExportPackageDescription in project rt.equinox.framework by eclipse.
the class TestGrouping_003 method checkWiringState_3.
// end method
public void checkWiringState_3() {
ExportPackageDescription[] exports = bundle_3.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);
} else if (exportPackageName.equals("q")) {
assertNotNull("Package [q] is not wired when it should be ", exp.getExporter());
assertEquals("Package [q] is wired incorrectly ", exp.getExporter(), bundle_4);
}
}
// end for
}
Aggregations