Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.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/RemoveProgramArgumentActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java
index 6c4146e3d..4e8abc449 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java
@@ -43,8 +43,8 @@ public class RemoveProgramArgumentActionTest 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 RemoveProgramArgumentActionTest 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);
@@ -124,10 +124,10 @@ public class RemoveProgramArgumentActionTest 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