Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-05-18 02:30:34 +0000
committerPascal Rapicault2010-05-18 02:30:34 +0000
commit8dbef9e04af7e7fc322ccfa8ba2d11c40b18da82 (patch)
tree45559997a9160afd5ca3f43d1d8d5cdb9c9b5419
parent5c0b10c468c97307a4f7d37db58b7bc8246d82ea (diff)
downloadrt.equinox.p2-8dbef9e04af7e7fc322ccfa8ba2d11c40b18da82.tar.gz
rt.equinox.p2-8dbef9e04af7e7fc322ccfa8ba2d11c40b18da82.tar.xz
rt.equinox.p2-8dbef9e04af7e7fc322ccfa8ba2d11c40b18da82.zip
assert the size of the profile
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/ProfileSynchronizerTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/ProfileSynchronizerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/ProfileSynchronizerTest.java
index 649025d47..4b23a4c49 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/ProfileSynchronizerTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/ProfileSynchronizerTest.java
@@ -56,12 +56,14 @@ public class ProfileSynchronizerTest extends AbstractProvisioningTest {
Set<IInstallableUnit> oldRoots = sdkProfile.query(new IUProfilePropertyQuery("org.eclipse.equinox.p2.type.root", Boolean.TRUE.toString()), null).toUnmodifiableSet();
assertFalse(sdkProfile.query(QueryUtil.createIUQuery("aniefer.junit.headless"), null).isEmpty());
+ int originalSize = sdkProfile.query(QueryUtil.ALL_UNITS, null).toUnmodifiableSet().size();
ProfileSynchronizer sync = new ProfileSynchronizer(agent, sdkProfile, new ArrayList<IMetadataRepository>());
sync.synchronize(null);
Set<IInstallableUnit> newRoots = registry.getProfile("SDKProfile").query(new IUProfilePropertyQuery("org.eclipse.equinox.p2.type.root", Boolean.TRUE.toString()), null).toSet();
newRoots.removeAll(oldRoots);
assertEquals(0, newRoots.size());
assertTrue(registry.getProfile("SDKProfile").query(QueryUtil.createIUQuery("aniefer.junit.headless"), null).isEmpty());
+ assertEquals(originalSize - 1, registry.getProfile("SDKProfile").query(QueryUtil.ALL_UNITS, null).toUnmodifiableSet().size());
}
private void initializeReconciler() throws IllegalAccessException {

Back to the top