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/director/IUListFormatterTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/director/IUListFormatterTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/director/IUListFormatterTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/director/IUListFormatterTest.java
index 357995cf3..333967bbd 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/director/IUListFormatterTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/director/IUListFormatterTest.java
@@ -69,8 +69,8 @@ public class IUListFormatterTest extends TestCase {
properties.put(IInstallableUnit.PROP_NAME, name);
properties.put(IInstallableUnit.PROP_DESCRIPTION, description);
expect(iu.getProperties()).andStubReturn(properties);
- expect(iu.getProperty((String) anyObject())).andStubAnswer(new MapAnswer(properties));
- expect(iu.getProperty((String) anyObject(), (String) anyObject())).andStubAnswer(new MapAnswer(properties));
+ expect(iu.getProperty((String) anyObject())).andStubAnswer(new MapAnswer<>(properties));
+ expect(iu.getProperty((String) anyObject(), (String) anyObject())).andStubAnswer(new MapAnswer<>(properties));
replay(iu);
return iu;
}
@@ -85,8 +85,8 @@ public class IUListFormatterTest extends TestCase {
properties.put("prop_" + i, "propValue_" + i);
}
expect(iu.getProperties()).andStubReturn(properties);
- expect(iu.getProperty((String) anyObject())).andStubAnswer(new MapAnswer(properties));
- expect(iu.getProperty((String) anyObject(), (String) anyObject())).andStubAnswer(new MapAnswer(properties));
+ expect(iu.getProperty((String) anyObject())).andStubAnswer(new MapAnswer<>(properties));
+ expect(iu.getProperty((String) anyObject(), (String) anyObject())).andStubAnswer(new MapAnswer<>(properties));
replay(iu);
return iu;
}

Back to the top