Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-09-19 12:47:45 +0000
committerAlexander Kurtakov2017-09-19 12:47:45 +0000
commit07de08ae780ef98f8f35b711c583cf6c193574d8 (patch)
tree2ed79481a04029adb33724d92fc2d3cf2a228e27 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
parentd82772338ce8da045203918c9b5e5a45f18ee73f (diff)
downloadrt.equinox.p2-07de08ae780ef98f8f35b711c583cf6c193574d8.tar.gz
rt.equinox.p2-07de08ae780ef98f8f35b711c583cf6c193574d8.tar.xz
rt.equinox.p2-07de08ae780ef98f8f35b711c583cf6c193574d8.zip
Bug 522466 - Fix generification warnings in p2.tests
Round 3 Change-Id: Iecb11d4317c6859b60b6470a629a112735767da5 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
index 91256a537..fdcec7a71 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
@@ -42,10 +42,10 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
}
public void testExecuteUndo() 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);
@@ -88,10 +88,10 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
}
public void testExecuteUndoWithMissingArtifact() 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);
@@ -137,10 +137,10 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
}
public void testExecuteOnFragmentBundleResultsInBundleNotBeingMarkedStarted() 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