Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-09-12 17:27:19 -0400
committerJohn Arthorne2008-09-12 17:27:19 -0400
commit730428caf0f0cb5946419f200f6cf8553540ef58 (patch)
treee21eddf8661a24be771a4d2ee5c3bf59e0b6e819 /bundles/org.eclipse.equinox.p2.tests.optimizers
parent76680632e1992df9176852d7cf88e00894f68ed7 (diff)
downloadrt.equinox.p2-730428caf0f0cb5946419f200f6cf8553540ef58.tar.gz
rt.equinox.p2-730428caf0f0cb5946419f200f6cf8553540ef58.tar.xz
rt.equinox.p2-730428caf0f0cb5946419f200f6cf8553540ef58.zip
Bug 247203 Move active processor/optimizer tests to p2.tests
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.optimizers')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/META-INF/MANIFEST.MF1
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/plugin.xml17
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/AllTests.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/Pack200ProcessorTest.java67
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/ZipVerifierProcessorTest.java104
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Adder.java53
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/AllTests.java27
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ByteShifter.java73
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Counter.java84
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Multiplier.java53
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java211
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepTest.java108
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/optimizers/AutomatedTests.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.txt1
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.zipbin115 -> 0 bytes
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa.zipbin117 -> 0 bytes
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa2.zipbin117 -> 0 bytes
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.equinox.p2.updatechecker.source_1.0.0.v20080427-2136.jar.pack.gzbin6939 -> 0 bytes
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.mylyn.bugzilla.core_2.3.2.v20080402-2100.jar7
19 files changed, 0 insertions, 809 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.tests.optimizers/META-INF/MANIFEST.MF
index e16100c27..b9600237f 100644
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.tests.optimizers/META-INF/MANIFEST.MF
@@ -8,7 +8,6 @@ Require-Bundle: org.eclipse.equinox.common;bundle-version="3.4.0",
org.junit;bundle-version="3.8.2"
Export-Package: org.eclipse.equinox.p2.tests.artifact.optimizers,
org.eclipse.equinox.p2.tests.artifact.processors,
- org.eclipse.equinox.p2.tests.artifact.repository.processing,
org.eclipse.equinox.p2.tests.sar
Import-Package: ie.wombat.jbdiff,
org.eclipse.equinox.internal.p2.artifact.optimizers,
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/plugin.xml b/bundles/org.eclipse.equinox.p2.tests.optimizers/plugin.xml
index d9646386c..40a35562f 100644
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/plugin.xml
+++ b/bundles/org.eclipse.equinox.p2.tests.optimizers/plugin.xml
@@ -1,21 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
- <extension
- point="org.eclipse.equinox.p2.artifact.repository.processingSteps"
- id="org.eclipse.equinox.p2.processing.ByteShifter">
- <step class="org.eclipse.equinox.p2.tests.artifact.repository.processing.ByteShifter"/>
- </extension>
-
- <extension
- point="org.eclipse.equinox.p2.artifact.repository.processingSteps"
- id="org.eclipse.equinox.p2.processing.Adder">
- <step class="org.eclipse.equinox.p2.tests.artifact.repository.processing.Adder"/>
- </extension>
-
- <extension
- point="org.eclipse.equinox.p2.artifact.repository.processingSteps"
- id="org.eclipse.equinox.p2.processing.Multiplier">
- <step class="org.eclipse.equinox.p2.tests.artifact.repository.processing.Multiplier"/>
- </extension>
</plugin>
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/AllTests.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/AllTests.java
index d7d12981e..8b523d2c3 100644
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/AllTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/AllTests.java
@@ -22,8 +22,6 @@ public class AllTests extends TestCase {
suite.addTestSuite(JBPatchStepTest.class);
suite.addTestSuite(JBPatchZipStepTest.class);
suite.addTestSuite(JarDeltaProcessorTest.class);
- suite.addTestSuite(Pack200ProcessorTest.class);
- suite.addTestSuite(ZipVerifierProcessorTest.class);
return suite;
}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/Pack200ProcessorTest.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/Pack200ProcessorTest.java
deleted file mode 100644
index 7b7440e99..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/Pack200ProcessorTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.processors;
-
-import java.io.*;
-import java.util.Arrays;
-import junit.framework.TestCase;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.equinox.internal.p2.artifact.processors.pack200.Pack200ProcessorStep;
-import org.eclipse.equinox.internal.p2.core.helpers.FileUtils;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.p2.tests.optimizers.TestActivator;
-import org.osgi.framework.Bundle;
-
-public class Pack200ProcessorTest extends TestCase {
-
- public Pack200ProcessorTest(String name) {
- super(name);
- }
-
- public Pack200ProcessorTest() {
- super("");
- }
-
- public void testUnpack() throws IOException {
- // Setup the processor
- ProcessingStep step = new Pack200ProcessorStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data through the step
- Bundle bundle = TestActivator.getContext().getBundle();
- InputStream inputStream = bundle.getEntry("testData/optimizers/org.eclipse.equinox.app_1.0.100.v20071015.jar.pack.gz").openStream();
- FileUtils.copyStream(inputStream, true, step, true);
-
- // Get the test data
- inputStream = bundle.getEntry("testData/optimizers/org.eclipse.equinox.app_1.0.100.v20071015.jar").openStream();
- ByteArrayOutputStream expected = new ByteArrayOutputStream();
- FileUtils.copyStream(inputStream, true, expected, true);
-
- // Compare
- assertTrue(Arrays.equals(expected.toByteArray(), destination.toByteArray()));
- }
-
- public void testUnpackFailsBecauseOfZeroLengthPackedFile() throws IOException {
- // Setup the processor
- ProcessingStep step = new Pack200ProcessorStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data (zero length) through the step
- InputStream inputStream = new ByteArrayInputStream(new byte[0]);
- FileUtils.copyStream(inputStream, true, step, true);
-
- // This must fail, i.e. the status is not ok!
- assertFalse(step.getStatus().isOK());
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/ZipVerifierProcessorTest.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/ZipVerifierProcessorTest.java
deleted file mode 100644
index b8906dd07..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/processors/ZipVerifierProcessorTest.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.processors;
-
-import java.io.*;
-import junit.framework.TestCase;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.equinox.internal.p2.core.helpers.FileUtils;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ZipVerifierStep;
-import org.eclipse.equinox.p2.tests.optimizers.TestActivator;
-import org.osgi.framework.Bundle;
-
-public class ZipVerifierProcessorTest extends TestCase {
-
- public ZipVerifierProcessorTest(String name) {
- super(name);
- }
-
- public ZipVerifierProcessorTest() {
- super("");
- }
-
- public void testGoodZip() throws IOException {
- // Setup the processor
- ProcessingStep step = new ZipVerifierStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data through the step
- Bundle bundle = TestActivator.getContext().getBundle();
- InputStream inputStream = bundle.getEntry("testData/zipValidation/a.zip").openStream();
- FileUtils.copyStream(inputStream, true, step, true);
-
- assertEquals(step.getStatus().getSeverity(), IStatus.OK);
- }
-
- public void testBogusFile() throws IOException {
- // Setup the processor
- ProcessingStep step = new ZipVerifierStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data through the step
- Bundle bundle = TestActivator.getContext().getBundle();
- InputStream inputStream = bundle.getEntry("testData/zipValidation/a.txt").openStream();
- FileUtils.copyStream(inputStream, true, step, true);
-
- assertEquals(step.getStatus().getSeverity(), IStatus.ERROR);
- }
-
- public void testBogusFile2() throws IOException {
- // Setup the processor
- ProcessingStep step = new ZipVerifierStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data through the step
- Bundle bundle = TestActivator.getContext().getBundle();
- InputStream inputStream = bundle.getEntry("testData/zipValidation/org.eclipse.mylyn.bugzilla.core_2.3.2.v20080402-2100.jar").openStream();
- FileUtils.copyStream(inputStream, true, step, true);
-
- assertEquals(step.getStatus().getSeverity(), IStatus.ERROR);
- }
-
- public void testBogusFile3() throws IOException {
- // Setup the processor
- ProcessingStep step = new ZipVerifierStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data through the step
- Bundle bundle = TestActivator.getContext().getBundle();
- InputStream inputStream = bundle.getEntry("testData/zipValidation/bogusa.zip").openStream();
- FileUtils.copyStream(inputStream, true, step, true);
-
- assertEquals(step.getStatus().getSeverity(), IStatus.ERROR);
- }
-
- public void testPackGZFile() throws IOException {
-
- // Setup the processor
- ProcessingStep step = new ZipVerifierStep();
- ByteArrayOutputStream destination = new ByteArrayOutputStream();
- step.link(destination, new NullProgressMonitor());
-
- // drive the source data through the step
- Bundle bundle = TestActivator.getContext().getBundle();
- InputStream inputStream = bundle.getEntry("testData/zipValidation/org.eclipse.equinox.p2.updatechecker.source_1.0.0.v20080427-2136.jar.pack.gz").openStream();
- FileUtils.copyStream(inputStream, true, step, true);
-
- assertEquals(step.getStatus().getSeverity(), IStatus.ERROR);
-
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Adder.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Adder.java
deleted file mode 100644
index 50b7840c9..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Adder.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2007 compeople AG and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* compeople AG (Stefan Liebig) - initial API and implementation
-* IBM - continuing development
-*******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import java.io.IOException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.equinox.internal.p2.artifact.repository.Activator;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactDescriptor;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStepDescriptor;
-
-public class Adder extends ProcessingStep {
-
- protected int operand;
-
- public Adder() {
- // needed
- }
-
- public Adder(int operand) {
- super();
- this.operand = operand;
- }
-
- public void initialize(ProcessingStepDescriptor descriptor, IArtifactDescriptor context) {
- super.initialize(descriptor, context);
- try {
- operand = Integer.valueOf(descriptor.getData()).intValue();
- } catch (NumberFormatException e) {
- int code = descriptor.isRequired() ? IStatus.ERROR : IStatus.INFO;
- setStatus(new Status(code, Activator.ID, "Adder operand specification invalid", e));
- return;
- }
- }
-
- public void write(int b) throws IOException {
- getDestination().write(b + operand);
- }
-
- public void close() throws IOException {
- super.close();
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/AllTests.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/AllTests.java
deleted file mode 100644
index 0eb941c04..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/AllTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import junit.framework.*;
-
-/**
- * Performs all automated director tests.
- */
-public class AllTests extends TestCase {
-
- public static Test suite() {
- TestSuite suite = new TestSuite(AllTests.class.getName());
- suite.addTestSuite(ProcessingStepHandlerTest.class);
- suite.addTestSuite(ProcessingStepTest.class);
- return suite;
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ByteShifter.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ByteShifter.java
deleted file mode 100644
index ff6e04ee6..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ByteShifter.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2007 compeople AG and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* compeople AG (Stefan Liebig) - initial API and implementation
-* IBM - continuing development
-*******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import java.io.IOException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.equinox.internal.p2.artifact.repository.Activator;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactDescriptor;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStepDescriptor;
-
-public class ByteShifter extends ProcessingStep {
-
- protected int operand;
-
- public ByteShifter() {
- super();
- }
-
- public ByteShifter(int shiftLeft) {
- super();
- this.operand = shiftLeft;
- basicInitialize(null);
- }
-
- private void basicInitialize(ProcessingStepDescriptor descriptor) {
- // if the status is already set to something that not ok, we've already found a problem.
- if (!getStatus().isOK())
- return;
-
- int code;
- // if there is a descriptor, decide if the "bad case" is an error or info. If no
- // descriptor then default to error.
- if (descriptor != null)
- code = descriptor.isRequired() ? IStatus.ERROR : IStatus.INFO;
- else
- code = IStatus.ERROR;
-
- // finally, check the actual setup and set the status.
- if (operand <= 0)
- setStatus(new Status(code, Activator.ID, "ByteShifter operand invalid: " + operand));
- }
-
- public void initialize(ProcessingStepDescriptor descriptor, IArtifactDescriptor context) {
- super.initialize(descriptor, context);
- try {
- operand = Integer.valueOf(descriptor.getData()).intValue();
- } catch (NumberFormatException e) {
- int code = descriptor.isRequired() ? IStatus.ERROR : IStatus.INFO;
- setStatus(new Status(code, Activator.ID, "ByteShifter operand specification invalid", e));
- return;
- }
- basicInitialize(descriptor);
- }
-
- public void write(int b) throws IOException {
- getDestination().write(b == -1 ? b : b << operand);
- }
-
- public IStatus getStatus() {
- return Status.OK_STATUS;
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Counter.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Counter.java
deleted file mode 100644
index 008b05370..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Counter.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import java.io.IOException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.equinox.internal.p2.artifact.repository.Activator;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactDescriptor;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStepDescriptor;
-
-public class Counter extends ProcessingStep {
-
- protected long size = -1;
- long total = 0;
-
- public Counter() {
- // needed
- }
-
- public Counter(long size) {
- super();
- this.size = size;
- basicInitialize(null);
- }
-
- private void basicInitialize(ProcessingStepDescriptor descriptor) {
- // if the status is already set to something that not ok, we've already found a problem.
- if (!getStatus().isOK())
- return;
-
- int code;
- // if there is a descriptor, decide if the "bad case" is an error or info. If no
- // descriptor then default to error.
- if (descriptor != null)
- code = descriptor.isRequired() ? IStatus.ERROR : IStatus.INFO;
- else
- code = IStatus.ERROR;
-
- // finally, check the actual setup and set the status.
- if (size != -1)
- setStatus(new Status(code, Activator.ID, "Counter size not set"));
- }
-
- public void initialize(ProcessingStepDescriptor descriptor, IArtifactDescriptor context) {
- super.initialize(descriptor, context);
- String data = descriptor.getData();
- if (data == null)
- return;
- try {
- if (data.equals("download"))
- size = Long.parseLong(context.getProperty(IArtifactDescriptor.DOWNLOAD_SIZE));
- else if (data.equals("artifact"))
- size = Long.parseLong(context.getProperty(IArtifactDescriptor.ARTIFACT_SIZE));
- else
- size = Long.parseLong(data);
- } catch (NumberFormatException e) {
- int code = descriptor.isRequired() ? IStatus.ERROR : IStatus.INFO;
- setStatus(new Status(code, Activator.ID, "Counter size specification invalid", e));
- return;
- }
- basicInitialize(descriptor);
- }
-
- public void write(int b) throws IOException {
- total++;
- getDestination().write(b);
- }
-
- public void close() throws IOException {
- super.close();
- if (total != size)
- setStatus(new Status(IStatus.WARNING, "plugin id", "Size mismatch. Was " + total + " should have been " + size));
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Multiplier.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Multiplier.java
deleted file mode 100644
index 4dae1cc20..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/Multiplier.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2007 compeople AG and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* compeople AG (Stefan Liebig) - initial API and implementation
-* IBM - continuing development
-*******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import java.io.IOException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.equinox.internal.p2.artifact.repository.Activator;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactDescriptor;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStepDescriptor;
-
-public class Multiplier extends ProcessingStep {
-
- protected int operand;
-
- public Multiplier() {
- // needed
- }
-
- public Multiplier(int operand) {
- super();
- this.operand = operand;
- }
-
- public void initialize(ProcessingStepDescriptor descriptor, IArtifactDescriptor context) {
- super.initialize(descriptor, context);
- try {
- operand = Integer.valueOf(descriptor.getData()).intValue();
- } catch (NumberFormatException e) {
- int code = descriptor.isRequired() ? IStatus.ERROR : IStatus.INFO;
- setStatus(new Status(code, Activator.ID, "Multiplier operand specification invalid", e));
- return;
- }
- }
-
- public void write(int b) throws IOException {
- getDestination().write(b == -1 ? b : b * operand);
- }
-
- public void close() throws IOException {
- super.close();
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
deleted file mode 100644
index 14293a951..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepHandlerTest.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2007 compeople AG and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* compeople AG (Stefan Liebig) - initial API and implementation
-* IBM - continuing development
-*******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import java.io.*;
-import java.util.Arrays;
-import junit.framework.TestCase;
-import org.eclipse.core.runtime.*;
-import org.eclipse.equinox.internal.p2.artifact.processors.pack200.Pack200ProcessorStep;
-import org.eclipse.equinox.internal.p2.artifact.processors.verifier.MD5Verifier;
-import org.eclipse.equinox.internal.p2.core.helpers.FileUtils;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.*;
-import org.eclipse.equinox.p2.tests.optimizers.TestActivator;
-
-public class ProcessingStepHandlerTest extends TestCase {
-
- // private static final int BUFFER_SIZE = 8 * 1024;
-
- ProcessingStepHandler handler = new ProcessingStepHandler();
- IProgressMonitor monitor = new NullProgressMonitor();
-
- public void testExecuteNoPSs() throws IOException {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[0];
- OutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.createAndLink(descriptors, null, result, monitor);
- testStream.write("Test".getBytes());
- testStream.close();
- assertEquals("Test", result.toString());
- }
-
- public void testExecuteOneByteShifterPS() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new ByteShifter(1)};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {2}, result.toByteArray()));
- }
-
- public void testExecuteTwoByteShifterPSs() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new ByteShifter(1), new ByteShifter(2)};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {8}, result.toByteArray()));
- }
-
- public void testExecuteOneMD5VerifierPSOk() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new MD5Verifier("0cbc6611f5540bd0809a388dc95a615b")};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write("Test".getBytes());
- testStream.close();
- assertEquals("Test", result.toString());
- }
-
- public void testExecuteOneMD5VerifierPSFails() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new MD5Verifier("9cbc6611f5540bd0809a388dc95a615b")};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write("Test".getBytes());
- try {
- testStream.close();
- assertEquals("Test", result.toString());
- assertTrue((ProcessingStepHandler.checkStatus(testStream).getSeverity() == IStatus.ERROR));
- } catch (IOException e) {
- assertTrue(true);
- }
- }
-
- public void testExecuteOneByteShifterAndOneMD5VerifierPSOk() throws IOException {
- // Order of PSs is important!!
- ProcessingStep[] steps = new ProcessingStep[] {new ByteShifter(1), new MD5Verifier("ceeee507e8db83294600218b4e198897")};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {2, 4, 6, 8, 10}, result.toByteArray()));
- }
-
- public void testExecuteOneByteShifterAndOneMD5VerifierPSFailWrongOrder() throws IOException {
- // Order of PSs is important - here it wrong!!
- ProcessingStep[] steps = new ProcessingStep[] {new MD5Verifier("af476bbaf152a4c39ca4e5c498a88aa0"), new ByteShifter(1)};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- try {
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {2, 4, 6, 8, 10}, result.toByteArray()));
- assertTrue((ProcessingStepHandler.checkStatus(testStream).getSeverity() == IStatus.ERROR));
- } catch (IOException e) {
- assertTrue(true);
- }
- }
-
- public void testAssureOrderingOfPSs1() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new Adder(1), new Multiplier(2)};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {4, 6, 8, 10, 12}, result.toByteArray()));
- }
-
- public void testAssureOrderingOfPSs2() throws IOException {
- ProcessingStep[] steps = new ProcessingStep[] {new Multiplier(2), new Adder(1)};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {3, 5, 7, 9, 11}, result.toByteArray()));
- }
-
- public void testExecuteOnePack200UnpackerPS() throws IOException {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true)};
- ProcessingStep[] steps = handler.create(descriptors, null);
- ByteArrayOutputStream result = new ByteArrayOutputStream(100000);
- OutputStream testStream = handler.link(steps, result, monitor);
- IStatus status = ProcessingStepHandler.checkStatus(testStream);
- assertTrue("Step is not ready.", status.isOK());
- InputStream inputStream = TestActivator.getContext().getBundle().getEntry("testData/jarprocessor.jar.pack.gz").openStream();
- FileUtils.copyStream(inputStream, true, testStream, true);
- assertEquals(35062, result.size());
- }
-
- public void testCreateByteShifterPS() {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.ByteShifter", "1", true)};
- ProcessingStep[] steps = handler.create(descriptors, null);
- assertNotNull(steps);
- assertEquals(1, steps.length);
- assertEquals(ByteShifter.class, steps[0].getClass());
- }
-
- public void testCreateMD5VerifierPS() {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.MD5Verifier", "1", true)};
- ProcessingStep[] steps = handler.create(descriptors, null);
- assertNotNull(steps);
- assertEquals(1, steps.length);
- assertEquals(MD5Verifier.class, steps[0].getClass());
- }
-
- public void testCreateAdderPS() {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Adder", "1", true)};
- ProcessingStep[] steps = handler.create(descriptors, null);
- assertNotNull(steps);
- assertEquals(1, steps.length);
- assertEquals(Adder.class, steps[0].getClass());
- }
-
- public void testCreateMultiplierPS() {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Multiplier", "2", true)};
- ProcessingStep[] steps = handler.create(descriptors, null);
- assertNotNull(steps);
- assertEquals(1, steps.length);
- assertEquals(Multiplier.class, steps[0].getClass());
- }
-
- public void testCreatePack200UnpackerPS() {
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Pack200Unpacker", null, true)};
- ProcessingStep[] steps = handler.create(descriptors, null);
- assertNotNull(steps);
- assertEquals(1, steps.length);
- assertEquals(Pack200ProcessorStep.class, steps[0].getClass());
- }
-
- public void testCreatePSsAndAssureOrderingOfPSs1() throws IOException {
- ProcessingStepDescriptor adder = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Adder", "1", true);
- ProcessingStepDescriptor multiplier = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Multiplier", "2", true);
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {adder, multiplier};
- ProcessingStep[] steps = handler.create(descriptors, null);
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {4, 6, 8, 10, 12}, result.toByteArray()));
- }
-
- public void testCreatePSsAndAssureOrderingOfPSs2() throws IOException {
- ProcessingStepDescriptor adder = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Adder", "1", true);
- ProcessingStepDescriptor multiplier = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Multiplier", "2", true);
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {multiplier, adder};
- ProcessingStep[] steps = handler.create(descriptors, null);
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.link(steps, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {3, 5, 7, 9, 11}, result.toByteArray()));
- }
-
- public void testLinkPSs() throws IOException {
- ProcessingStepDescriptor adder = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Adder", "1", true);
- ProcessingStepDescriptor multiplier = new ProcessingStepDescriptor("org.eclipse.equinox.p2.processing.Multiplier", "2", true);
- ProcessingStepDescriptor[] descriptors = new ProcessingStepDescriptor[] {adder, multiplier};
- ByteArrayOutputStream result = new ByteArrayOutputStream(10);
- OutputStream testStream = handler.createAndLink(descriptors, null, result, monitor);
- testStream.write(new byte[] {1, 2, 3, 4, 5});
- testStream.close();
- assertTrue(Arrays.equals(new byte[] {4, 6, 8, 10, 12}, result.toByteArray()));
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepTest.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepTest.java
deleted file mode 100644
index c77e074fc..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/artifact/repository/processing/ProcessingStepTest.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 compeople AG and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * compeople AG (Stefan Liebig) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.p2.tests.artifact.repository.processing;
-
-import java.io.IOException;
-import java.io.OutputStream;
-import junit.framework.TestCase;
-import org.eclipse.core.runtime.*;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStep;
-import org.eclipse.equinox.internal.provisional.p2.artifact.repository.processing.ProcessingStepHandler;
-
-public class ProcessingStepTest extends TestCase {
-
- private ProcessingStep ps;
- private boolean flushed;
- private boolean closed;
-
- protected void setUp() throws Exception {
- super.setUp();
- ps = new ProcessingStep() {};
- flushed = false;
- closed = false;
- }
-
- public void testDefaultStatus() {
- assertNotNull(ps.getStatus());
- assertTrue(ps.getStatus().isOK());
- assertTrue(ps.getStatus(false).isOK());
- assertTrue(ps.getStatus(true).isOK());
- assertTrue(ProcessingStepHandler.checkStatus(ps).isOK());
- }
-
- public void testGetDeepStatus() {
- ProcessingStep ps2 = new ProcessingStep() {};
- ps.link(ps2, new NullProgressMonitor());
- assertTrue(ps.getStatus(true).isOK());
-
- ps2.setStatus(new Status(IStatus.ERROR, "plugin id", "message"));
- assertFalse(ps.getStatus(true).isOK());
- assertTrue(ps.getStatus(true).isMultiStatus());
- assertEquals(IStatus.ERROR, ps.getStatus(true).getSeverity());
- MultiStatus multi = (MultiStatus) ps.getStatus(true);
- assertEquals(2, multi.getChildren().length);
-
- ProcessingStep ps3 = new ProcessingStep() {};
- ps2.link(ps3, new NullProgressMonitor());
- assertFalse(ps.getStatus(true).isOK());
- assertTrue(ps.getStatus(true).isMultiStatus());
- assertEquals(IStatus.ERROR, ps.getStatus(true).getSeverity());
- multi = (MultiStatus) ps.getStatus(true);
- assertEquals(3, multi.getChildren().length);
-
- ps3.setStatus(Status.CANCEL_STATUS);
- assertFalse(ps.getStatus(true).isOK());
- assertTrue(ps.getStatus(true).isMultiStatus());
- assertEquals(IStatus.CANCEL, ps.getStatus(true).getSeverity());
- }
-
- public void testFlush() throws IOException {
- OutputStream destination = new OutputStream() {
-
- public void write(int b) throws IOException {
- }
-
- public void flush() {
- flushed = true;
- }
- };
- ps.link(destination, new NullProgressMonitor());
- ps.flush();
- assertTrue(flushed);
- }
-
- public void testCloseSimpleOutputStreamAsDestination() throws IOException {
- OutputStream destination = new OutputStream() {
-
- public void write(int b) throws IOException {
- }
-
- public void close() {
- closed = true;
- }
- };
- ps.link(destination, new NullProgressMonitor());
- ps.close();
- assertFalse(closed);
- }
-
- public void testCloseProcessingStepAsDestination() throws IOException {
- OutputStream destination = new ProcessingStep() {
- public void close() {
- closed = true;
- }
- };
- ps.link(destination, new NullProgressMonitor());
- ps.close();
- assertTrue(closed);
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/optimizers/AutomatedTests.java b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/optimizers/AutomatedTests.java
index 96b52a872..54771de98 100644
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/optimizers/AutomatedTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests.optimizers/src/org/eclipse/equinox/p2/tests/optimizers/AutomatedTests.java
@@ -21,7 +21,6 @@ public class AutomatedTests extends TestCase {
TestSuite suite = new TestSuite(AutomatedTests.class.getName());
suite.addTest(org.eclipse.equinox.p2.tests.artifact.optimizers.AllTests.suite());
suite.addTest(org.eclipse.equinox.p2.tests.artifact.processors.AllTests.suite());
- suite.addTest(org.eclipse.equinox.p2.tests.artifact.repository.processing.AllTests.suite());
suite.addTest(org.eclipse.equinox.p2.tests.sar.AllTests.suite());
return suite;
}
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.txt b/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.txt
deleted file mode 100644
index 97896a0bc..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.txt
+++ /dev/null
@@ -1 +0,0 @@
-nothing \ No newline at end of file
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.zip b/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.zip
deleted file mode 100644
index 09292688e..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/a.zip
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa.zip b/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa.zip
deleted file mode 100644
index 3eae9a358..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa.zip
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa2.zip b/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa2.zip
deleted file mode 100644
index ccf133040..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/bogusa2.zip
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.equinox.p2.updatechecker.source_1.0.0.v20080427-2136.jar.pack.gz b/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.equinox.p2.updatechecker.source_1.0.0.v20080427-2136.jar.pack.gz
deleted file mode 100644
index 034ae0cf1..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.equinox.p2.updatechecker.source_1.0.0.v20080427-2136.jar.pack.gz
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.mylyn.bugzilla.core_2.3.2.v20080402-2100.jar b/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.mylyn.bugzilla.core_2.3.2.v20080402-2100.jar
deleted file mode 100644
index fbf83f243..000000000
--- a/bundles/org.eclipse.equinox.p2.tests.optimizers/testData/zipValidation/org.eclipse.mylyn.bugzilla.core_2.3.2.v20080402-2100.jar
+++ /dev/null
@@ -1,7 +0,0 @@
-<HTML><HEAD><TITLE>Authentication Proxy Login Page</TITLE><script language="JavaScript"><!-- Begin
-var pxypromptwindow1;var pxysubmitted = false;function doreload() {if(pxypromptwindow1.closed) {window.location.reload(true);} else {reloadtimeout=setTimeout("doreload()", 500);}}function submitreload() {if(pxysubmitted == false) {pxypromptwindow1=window.open('', 'pxywindow1','resizable=no,width=300,height=300,scrollbars=yes');reloadtimeout=setTimeout("doreload()", 1000);pxysubmitted = true;return true;} else {alert("This page can not be submitted twice.");return false;}}// -->
-</script>
-</HEAD>
-<BODY onLoad="document.AuthenForm.uname.focus()" BGCOLOR="#FFFFFF" LINK="#ffcc00" ALINK="#ffffff" VLINK="#ffcc00" ><H1>SWG RTP B500 BSO: Enter your IBM intranet credentials <BR><BR> HTTPS Authentication<BR><BR><p><FORM name="AuthenForm" method=post action="https://9.42.96.226:443" target="pxywindow1"><input type=hidden name=au_pxytimetag value="281014010">Username: <input type=text name=uname><BR><BR>Password: <input type=password name=pwd><BR><BR><input type=submit name=ok value=OK onClick="return submitreload()"></H1></FORM></script></BODY></HTML>
-
-

Back to the top