Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2011-02-17 20:24:13 +0000
committerDJ Houghton2011-02-17 20:24:13 +0000
commit2acf0e29719307ac5afceea1e78e3a48a6b88eb2 (patch)
treeb016b1d5a8590dd6476b1ea32051d5a292f603ec /bundles/org.eclipse.equinox.p2.tests
parent85acf68849bfb0cdd01771a9afae401bc9126fb3 (diff)
downloadrt.equinox.p2-2acf0e29719307ac5afceea1e78e3a48a6b88eb2.tar.gz
rt.equinox.p2-2acf0e29719307ac5afceea1e78e3a48a6b88eb2.tar.xz
rt.equinox.p2-2acf0e29719307ac5afceea1e78e3a48a6b88eb2.zip
Bug 325095 - Make posible to tag/label a profile timestamp
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileRegistryTest.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileRegistryTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileRegistryTest.java
index a87f30227..838358ef7 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileRegistryTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileRegistryTest.java
@@ -830,14 +830,10 @@ public class ProfileRegistryTest extends AbstractProvisioningTest {
registry.removeProfile(PROFILE_NAME, states[0]);
assertEquals(1, registry.listProfileTimestamps(profile.getProfileId()).length);
- // Since state properties are still present, re-run first tests.
-
- result = registry.getProfileStateProperties(profile.getProfileId(), states[0]);
- assertEquals(3, result.size());
- assertEquals("two", result.get("one"));
- assertEquals("b", result.get("a"));
- assertEquals("y", result.get("z"));
+ // Ensure all properties for the first state were removed when we removed the state
+ assertTrue(registry.getProfileStateProperties(profile.getProfileId(), states[0]).isEmpty());
+ // Ensure we still have properties for the other state.
result = registry.getProfileStateProperties(profile.getProfileId(), states[1]);
assertEquals(3, result.size());
assertEquals("three", result.get("one"));

Back to the top