Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2009-12-21 18:06:42 +0000
committerJohn Arthorne2009-12-21 18:06:42 +0000
commitbae070174cc1a89dae7cf27dbbd44242d5e6392d (patch)
tree2b80edb52c195e8826ca0bd5e5a0fd69592caca6
parent15e3ce986978bc652bef61d34b54db2e262847f9 (diff)
downloadrt.equinox.p2-bae070174cc1a89dae7cf27dbbd44242d5e6392d.tar.gz
rt.equinox.p2-bae070174cc1a89dae7cf27dbbd44242d5e6392d.tar.xz
rt.equinox.p2-bae070174cc1a89dae7cf27dbbd44242d5e6392d.zip
Fixed test failure due to Bug 298023
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/SimpleArtifactRepositoryTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/SimpleArtifactRepositoryTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/SimpleArtifactRepositoryTest.java
index 87032c610..f36b579b0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/SimpleArtifactRepositoryTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/SimpleArtifactRepositoryTest.java
@@ -373,7 +373,8 @@ public class SimpleArtifactRepositoryTest extends AbstractProvisioningTest {
result = repo.query(new ArtifactDescriptorQuery(null, null, IArtifactDescriptor.FORMAT_PACKED), null);
assertEquals(1, queryResultSize(result));
- assertContains(result, d3);
+ IArtifactDescriptor resultDescriptor = (IArtifactDescriptor) result.iterator().next();
+ assertEquals(d3.getArtifactKey(), resultDescriptor.getArtifactKey());
}
public void testArtifactIterator() throws Exception {

Back to the top