Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2007-10-17 14:55:53 +0000
committerJohn Arthorne2007-10-17 14:55:53 +0000
commit9830575a0bbec29082bde736d7a2b856abce08c7 (patch)
treec683f38837b046554032697cac4296b397591e88 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
parent6f6b2ee95fe9c08393595d5b16c36583e9ae9b15 (diff)
downloadrt.equinox.p2-9830575a0bbec29082bde736d7a2b856abce08c7.tar.gz
rt.equinox.p2-9830575a0bbec29082bde736d7a2b856abce08c7.tar.xz
rt.equinox.p2-9830575a0bbec29082bde736d7a2b856abce08c7.zip
Bug 206424 [prov] ProcessingStepHandlerTest.testCreatePack200UnpackerPS() fails
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
index 4f7e2eea4..d6cbf5cdb 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
@@ -15,6 +15,7 @@ import java.io.*;
import java.util.Arrays;
import junit.framework.TestCase;
import org.eclipse.core.runtime.*;
+import org.eclipse.equinox.internal.p2.artifact.repository.Unpack200Step;
import org.eclipse.equinox.p2.artifact.repository.processing.*;
import org.eclipse.equinox.p2.core.helpers.FileUtils;
import org.eclipse.equinox.p2.tests.TestActivator;
@@ -120,7 +121,8 @@ public class ProcessingStepHandlerTest extends TestCase {
}
public void testExecuteOnePack200UnpackerPS() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new Pack200Unpacker()};
+ ProcessingStepDescriptor descriptor = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true);
+ ProcessingStep[] steps = new ProcessingStep[] {handler.create(descriptor, null)};
ByteArrayOutputStream result = new ByteArrayOutputStream(100000);
OutputStream testStream = handler.link(steps, result, monitor);
InputStream inputStream = TestActivator.getContext().getBundle().getEntry("testData/jarprocessor.jar.pack.gz").openStream();
@@ -160,7 +162,7 @@ public class ProcessingStepHandlerTest extends TestCase {
ProcessingStepDescriptor descriptor = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true);
ProcessingStep step = handler.create(descriptor, null);
assertNotNull(step);
- assertEquals(Pack200Unpacker.class, step.getClass());
+ assertEquals(Unpack200Step.class, step.getClass());
}
public void testCreatePSsAndAssureOrderingOfPSs1() throws IOException {

Back to the top