Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java
index fbfbdc07e..3a2277aa0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java
@@ -43,8 +43,8 @@ public class SetProgramPropertyActionTest extends AbstractProvisioningTest {
Map<String, Object> parameters = new HashMap<>();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
EclipseTouchpoint touchpoint = new EclipseTouchpoint();
- Properties profileProperties = new Properties();
- profileProperties.setProperty(IProfile.PROP_INSTALL_FOLDER, getTempFolder().toString());
+ Map<String, String> profileProperties = new HashMap<>();
+ profileProperties.put(IProfile.PROP_INSTALL_FOLDER, getTempFolder().toString());
IProfile profile = createProfile("test", profileProperties);
InstallableUnitOperand operand = new InstallableUnitOperand(null, createIU("test"));
touchpoint.initializePhase(null, profile, "test", parameters);
@@ -68,10 +68,10 @@ public class SetProgramPropertyActionTest extends AbstractProvisioningTest {
}
public void testExecuteUndoWithArtifact() throws Exception {
- Properties profileProperties = new Properties();
+ Map<String, String> profileProperties = new HashMap<>();
File installFolder = getTempFolder();
- profileProperties.setProperty(IProfile.PROP_INSTALL_FOLDER, installFolder.toString());
- profileProperties.setProperty(IProfile.PROP_CACHE, installFolder.toString());
+ profileProperties.put(IProfile.PROP_INSTALL_FOLDER, installFolder.toString());
+ profileProperties.put(IProfile.PROP_CACHE, installFolder.toString());
IProfile profile = createProfile("test", profileProperties);
IFileArtifactRepository bundlePool = Util.getBundlePoolRepository(getAgent(), profile);
@@ -125,10 +125,10 @@ public class SetProgramPropertyActionTest extends AbstractProvisioningTest {
}
public void testExecuteUndoWithArtifactLocation() throws Exception {
- Properties profileProperties = new Properties();
+ Map<String, String> profileProperties = new HashMap<>();
File installFolder = getTempFolder();
- profileProperties.setProperty(IProfile.PROP_INSTALL_FOLDER, installFolder.toString());
- profileProperties.setProperty(IProfile.PROP_CACHE, installFolder.toString());
+ profileProperties.put(IProfile.PROP_INSTALL_FOLDER, installFolder.toString());
+ profileProperties.put(IProfile.PROP_CACHE, installFolder.toString());
IProfile profile = createProfile("test", profileProperties);
IFileArtifactRepository bundlePool = Util.getBundlePoolRepository(getAgent(), profile);

Back to the top