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/planner/NegationTesting.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java
index 6862f1216..c25a4f136 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/NegationTesting.java
@@ -94,7 +94,7 @@ public class NegationTesting extends AbstractProvisioningTest {
IMetadataRepository repo = createTestMetdataRepository(new IInstallableUnit[] {iu1, iu2, iu3});
// Verify that the slice includes iu3 because the requirement from iu1 is a range including the provided capability of iu3.
- Slicer slicer = new Slicer(repo, Collections.<String, String> emptyMap(), false);
+ Slicer slicer = new Slicer(repo, Collections.emptyMap(), false);
IQueryable<IInstallableUnit> slice = slicer.slice(new IInstallableUnit[] {iu1}, new NullProgressMonitor());
assertEquals(3, queryResultSize(slice.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor())));
@@ -152,7 +152,7 @@ public class NegationTesting extends AbstractProvisioningTest {
IMetadataRepository repo = createTestMetdataRepository(new IInstallableUnit[] {iu1, iu2, iu3});
//Test the slicer. The slice will not contain iu3 because none of the range of iu1 cause it to be brought in.
- Slicer slicer = new Slicer(repo, Collections.<String, String> emptyMap(), false);
+ Slicer slicer = new Slicer(repo, Collections.emptyMap(), false);
IQueryable<IInstallableUnit> slice = slicer.slice(new IInstallableUnit[] {iu1}, new NullProgressMonitor());
assertEquals(0, queryResultSize(slice.query(QueryUtil.createIUQuery("ProviderOf1_1_1"), new NullProgressMonitor())));
assertEquals(2, queryResultSize(slice.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor())));
@@ -184,7 +184,7 @@ public class NegationTesting extends AbstractProvisioningTest {
IMetadataRepository repo = createTestMetdataRepository(new IInstallableUnit[] {iu1, iu2});
//Test the slicer. The slice will not contain iu3 because none of the range of iu1 cause it to be brought in.
- Slicer slicer = new Slicer(repo, Collections.<String, String> emptyMap(), false);
+ Slicer slicer = new Slicer(repo, Collections.emptyMap(), false);
IQueryable<IInstallableUnit> slice = slicer.slice(new IInstallableUnit[] {iu1}, new NullProgressMonitor());
assertEquals(0, queryResultSize(slice.query(QueryUtil.createIUQuery("ProviderOf1_1_1"), new NullProgressMonitor())));
assertEquals(2, queryResultSize(slice.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor())));
@@ -238,7 +238,7 @@ public class NegationTesting extends AbstractProvisioningTest {
IMetadataRepository repo = createTestMetdataRepository(new IInstallableUnit[] {iu1, iu2, iu3});
// Verify that the slice includes iu3 because the requirement from iu1 is a range including the provided capability of iu3.
- Slicer slicer = new Slicer(repo, Collections.<String, String> emptyMap(), false);
+ Slicer slicer = new Slicer(repo, Collections.emptyMap(), false);
IQueryable<IInstallableUnit> slice = slicer.slice(new IInstallableUnit[] {iu1}, new NullProgressMonitor());
assertEquals(3, queryResultSize(slice.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor())));
@@ -307,12 +307,12 @@ public class NegationTesting extends AbstractProvisioningTest {
IMetadataRepository repo = createTestMetdataRepository(new IInstallableUnit[] {iu1, iu2, iu3, iu4});
// Verify that the slice includes iu3
- Slicer slicer = new Slicer(repo, Collections.<String, String> emptyMap(), false);
+ Slicer slicer = new Slicer(repo, Collections.emptyMap(), false);
IQueryable<IInstallableUnit> slice = slicer.slice(new IInstallableUnit[] {iu1, iu4}, new NullProgressMonitor());
assertEquals(4, queryResultSize(slice.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor())));
// Verify that the slice includes iu3
- Slicer slicer2 = new Slicer(repo, Collections.<String, String> emptyMap(), false);
+ Slicer slicer2 = new Slicer(repo, Collections.emptyMap(), false);
IQueryable<IInstallableUnit> slice2 = slicer2.slice(new IInstallableUnit[] {iu4}, new NullProgressMonitor());
assertEquals(2, queryResultSize(slice2.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor())));

Back to the top