return reader;
}
private void assertSharedSubProduct(SubProductZipReader reader, String targetVersion) {
assertEquals("com.instantiations.eclipse.shared", reader.getId());
Version fullVersion = new Version(reader.getFullVersion());
if (fullVersion.compareTo(new Version(5, 5, 0)) < 0)
fail("Expected version >= 5.5.0, but found " + fullVersion.toStringBase());
if (fullVersion.getQualifier().compareTo("200901010000") < 0)
fail("Expected version build number > 200901010000, but found " + fullVersion.getQualifier());
assertEquals(1, reader.getIncludedFeatures().size());
if (!reader.getIncludedFeatures().contains("com.instantiations.eclipse.shared"))
fail("Expected included features to contain com.instantiations.eclipse.shared");
assertEquals(targetVersion.equals("2.1") ? 6 : 7, reader.getIncludedPlugins().size());
if (!reader.getIncludedPlugins().contains("com.instantiations.common.help"))