"Bundle-SymbolicName: foo.bar\n" +
"Import-Package: foo.bar.baz, foo.bar.split" +
" _name;version=\"[1.0,1.0]\"\n";
public void testExportsPackage() {
BundleManifest bundleManifest = getManifest(Manifest1);
assertThat(bundleManifest.getBundleSymbolicName(), equalTo("foo.bar"));
assertThat(bundleManifest.isPackageExported("foo.bar.baz"), is(true));
assertThat(bundleManifest.isPackageExported("foo.bar.bam"), is(true));
assertThat(bundleManifest.isPackageExported("naff.blah"), is(false));
assertThat(bundleManifest.isPackageExported("foo.bar.baz;version=1.0.0"), is(true));
assertThat(bundleManifest.isPackageExported("foo.bar.baz;version=2.0.0"), is(false));
assertThat(bundleManifest.isPackageExported("foo.bar.baz;version=\"[1.0.0, 2.0.0)\""), is(true));
assertThat(bundleManifest.isPackageExported("foo.bar.baz;version=\"[1.1.0, 2.0.0)\""), is(false));
assertThat(bundleManifest.isPackageExported("foo.bar.baz.wtf"), is(false));
}