Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.wst.wsdl.tests.performance/performance')
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/AllTests.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenEditorOAGISWSDLTestcase.java129
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLSetup.java82
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLTestCase.java88
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/PerformancePlugin.java83
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java54
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLEMFTestCase.java52
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLTestCase.java41
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSDLTestcase.java73
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSITestcase.java72
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSDLTestCase.java60
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSITestCase.java60
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateWSDLProjectTestCase.java127
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open100KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open10KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1MBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open200KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open500KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx100TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx10TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx1TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx25TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx50TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx75TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex100TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex10TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex1TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex25TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex50TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex75TestCase.java38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsCrossDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsNoDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsXSDDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsCrossDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsNoDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsXSDDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsCrossDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsNoDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsXSDDependsTestCase.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1MBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate200KBFileTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate500KBFileTestCase.java33
46 files changed, 0 insertions, 2354 deletions
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/AllTests.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/AllTests.java
deleted file mode 100644
index ffb64a02e..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/AllTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
-  *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class AllTests
-{
- public static Test suite()
- {
- TestSuite suite = new TestSuite("Test for org.eclipse.wst.wsdl.tests.performance");
- //$JUnit-BEGIN$
- suite.addTestSuite(ReadStockQuoteWSDLTestCase.class);
- suite.addTestSuite(ReadStockQuoteWSDLEMFTestCase.class);
- suite.addTestSuite(ValidateStockQuoteWSDLTestCase.class);
- suite.addTestSuite(ValidateStockQuoteWSITestCase.class);
- suite.addTestSuite(OpenStockQuoteWSDLSetup.class);
- suite.addTestSuite(OpenStockQuoteWSDLTestCase.class);
- //$JUnit-END$
- return suite;
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenEditorOAGISWSDLTestcase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenEditorOAGISWSDLTestcase.java
deleted file mode 100644
index 351fd3cfd..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenEditorOAGISWSDLTestcase.java
+++ /dev/null
@@ -1,129 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.net.MalformedURLException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import javax.wsdl.WSDLException;
-import junit.framework.Assert;
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResourceProxy;
-import org.eclipse.core.resources.IResourceProxyVisitor;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.FileEditorInput;
-
-public class OpenEditorOAGISWSDLTestcase extends PerformanceTestCase
-{
- private final String ID_WSDL_EDITOR = "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
-
- public void testReadWSDL() throws MalformedURLException, WSDLException, CoreException, FileNotFoundException
- {
- String oagis80Dir = System.getProperty("oagis80Dir");
- Assert.assertNotNull(oagis80Dir);
- if (!oagis80Dir.endsWith("/") && !oagis80Dir.endsWith("\\"))
- oagis80Dir = oagis80Dir + "/";
- File dir = new File(oagis80Dir + "OAGIS8.0");
- if (dir.exists() && dir.isDirectory())
- {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("sp");
- project.create(null);
- project.open(null);
- copy(dir, project);
- joinBackgroundJobs();
- final List wsdls = new ArrayList();
- project.accept
- (
- new IResourceProxyVisitor()
- {
- public boolean visit(IResourceProxy proxy) throws CoreException
- {
- if (proxy.getName().endsWith(".wsdl"))
- {
- wsdls.add(proxy.requestResource());
- }
- return true;
- }
- },
- IContainer.INCLUDE_PHANTOMS
- );
- tagAsSummary("Open OAGIS WSDL", new Dimension[] {Dimension.ELAPSED_PROCESS, Dimension.WORKING_SET});
- startMeasuring();
- for (Iterator it = wsdls.iterator(); it.hasNext();)
- openWSDL((IFile)it.next());
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
- else
- fail(dir.toString());
- }
-
- private void copy(File src, IContainer dest) throws CoreException, FileNotFoundException
- {
- File[] children = src.listFiles();
- for (int i = 0; i < children.length; i++)
- {
- String name = children[i].getName();
- if (children[i].isDirectory())
- {
- IFolder folder = dest.getFolder(new Path(name));
- folder.create(true, true, null);
- copy(children[i], folder);
- }
- else if (name.endsWith(".wsdl") || name.endsWith(".xsd"))
- {
- IFile file = dest.getFile(new Path(name));
- file.create(new FileInputStream(children[i]), true, null);
- }
- }
- }
-
- private void joinBackgroundJobs()
- {
- Display.getDefault().syncExec(new Runnable()
- {
- public void run()
- {
- try
- {
- Platform.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
- }
- catch (InterruptedException e)
- {
- }
- long start = System.currentTimeMillis();
- Display display = Display.getDefault();
- while (System.currentTimeMillis() - start < 5000)
- {
- if (!display.readAndDispatch())
- {
- display.sleep();
- }
- }
- }
- });
- }
-
- private void openWSDL(IFile file) throws PartInitException
- {
- IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- IEditorPart editor = workbenchWindow.getActivePage().openEditor(new FileEditorInput(file), ID_WSDL_EDITOR, true);
- workbenchWindow.getActivePage().closeEditor(editor, false);
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLSetup.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLSetup.java
deleted file mode 100644
index 5d5c4ceba..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLSetup.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.io.IOException;
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.intro.IIntroManager;
-import org.eclipse.ui.intro.IIntroPart;
-
-public class OpenStockQuoteWSDLSetup extends TestCase
-{
- public static String PROJECT_NAME = "Project";
-
- public static Test suite()
- {
- return new TestSuite(OpenStockQuoteWSDLSetup.class, "OpenStockQuoteWSDLSetup");
- }
-
- protected void closeIntro()
- {
- IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
- IIntroPart introPart = introManager.getIntro();
- if (introPart != null)
- introManager.closeIntro(introPart);
- }
-
- protected IProject createSimpleProject(String name) throws CoreException
- {
- IProject simpleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
- simpleProject.create(null);
- simpleProject.open(null);
- return simpleProject;
- }
-
- protected void copyFile(IProject project, String source, String dest) throws IOException, CoreException
- {
- IFile file = project.getFile(dest);
- file.create(PerformancePlugin.getDefault().getBundle().getEntry(source).openStream(), true, null);
- }
-
- protected void joinAutoBuild() throws CoreException
- {
- boolean interrupted = true;
- while (interrupted)
- {
- try
- {
- Platform.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
- interrupted = false;
- }
- catch (InterruptedException e)
- {
- interrupted = true;
- }
- }
- }
-
- public void testSetup() throws Exception
- {
- closeIntro();
- IProject project = createSimpleProject(PROJECT_NAME);
- copyFile(project, "data/StockQuote/StockQuote.wsdl", "StockQuote.wsdl");
- joinAutoBuild();
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLTestCase.java
deleted file mode 100644
index 5a7757532..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLTestCase.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.FileEditorInput;
-
-public class OpenStockQuoteWSDLTestCase extends PerformanceTestCase
-{
- private final String EDITOR_ID = "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
-
- public static Test suite()
- {
- return new TestSuite(OpenStockQuoteWSDLTestCase.class, "OpenStockQuoteWSDLTestCase");
- }
-
- protected IProject getProject(String projectName) throws CoreException
- {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
- assertTrue(project.exists());
- project.open(null);
- project.refreshLocal(IProject.DEPTH_INFINITE, null);
- joinAutoBuild();
- return project;
- }
-
- protected void joinAutoBuild() throws CoreException
- {
- boolean interrupted = true;
- while (interrupted)
- {
- try
- {
- Platform.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
- interrupted = false;
- }
- catch (InterruptedException e)
- {
- interrupted = true;
- }
- }
- }
-
- protected IEditorPart openEditor(IEditorInput editorInput, String editorid) throws PartInitException
- {
- IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- return workbenchWindow.getActivePage().openEditor(editorInput, editorid, true);
- }
-
- protected boolean closeEditor(IEditorPart editor)
- {
- IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- return workbenchWindow.getActivePage().closeEditor(editor, false);
- }
-
- public void testOpenStockQuoteWSDL() throws Exception
- {
- IProject project = getProject(OpenStockQuoteWSDLSetup.PROJECT_NAME);
- IEditorInput editorInput = new FileEditorInput((IFile)project.findMember("StockQuote.wsdl"));
- startMeasuring();
- IEditorPart editorPart = openEditor(editorInput, EDITOR_ID);
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- closeEditor(editorPart);
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/PerformancePlugin.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/PerformancePlugin.java
deleted file mode 100644
index 478f4ab6d..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/PerformancePlugin.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-import java.util.*;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class PerformancePlugin extends Plugin {
- //The shared instance.
- private static PerformancePlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public PerformancePlugin() {
- super();
- plugin = this;
- }
-
- /**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * This method is called when the plug-in is stopped
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- resourceBundle = null;
- }
-
- /**
- * Returns the shared instance.
- */
- public static PerformancePlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle = PerformancePlugin.getDefault().getResourceBundle();
- try {
- return (bundle != null) ? bundle.getString(key) : key;
- } catch (MissingResourceException e) {
- return key;
- }
- }
-
- /**
- * Returns the plugin's resource bundle,
- */
- public ResourceBundle getResourceBundle() {
- try {
- if (resourceBundle == null)
- resourceBundle = ResourceBundle.getBundle("org.eclipse.wst.wsdl.tests.performance.PerformancePluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- return resourceBundle;
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java
deleted file mode 100644
index 13d566ef9..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.io.File;
-import java.io.FileFilter;
-import java.net.MalformedURLException;
-import java.util.ArrayList;
-import java.util.List;
-import javax.wsdl.WSDLException;
-import junit.framework.Assert;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.wsdl.internal.impl.wsdl4j.WSDLReaderImpl;
-
-public class ReadOAGISWSDLTestcase extends PerformanceTestCase
-{
- private List defs = new ArrayList();
-
- public void testReadWSDL() throws MalformedURLException, WSDLException
- {
- String oagis80Dir = System.getProperty("oagis80Dir");
- Assert.assertNotNull(oagis80Dir);
- if (!oagis80Dir.endsWith("/") && !oagis80Dir.endsWith("\\"))
- oagis80Dir = oagis80Dir + "/";
- File dir = new File(oagis80Dir + "OAGIS8.0/ws/wsdl");
- if (dir.exists() && dir.isDirectory())
- {
- File[] wsdls = dir.listFiles
- (
- new FileFilter()
- {
- public boolean accept(File pathname)
- {
- return pathname.getName().endsWith(".wsdl");
- }
- }
- );
- tagAsSummary("Read OAGIS WSDL", new Dimension[] {Dimension.ELAPSED_PROCESS, Dimension.WORKING_SET});
- startMeasuring();
- for (int i = 0; i < wsdls.length; i++)
- readWSDL(wsdls[i].toURL().toString());
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
- else
- fail(dir.toString());
- }
-
- private void readWSDL(String location) throws WSDLException
- {
- WSDLReaderImpl reader = new WSDLReaderImpl();
- defs.add(reader.readWSDL(location));
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLEMFTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLEMFTestCase.java
deleted file mode 100644
index 5f7b53d65..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLEMFTestCase.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.net.URL;
-import java.util.Hashtable;
-
-import javax.wsdl.Definition;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.wsdl.util.WSDLResourceImpl;
-
-public class ReadStockQuoteWSDLEMFTestCase extends PerformanceTestCase
-{
- public static Test suite()
- {
- return new TestSuite(ReadStockQuoteWSDLEMFTestCase.class, "ReadStockQuoteWSDLEMFTestCase");
- }
-
- public void testReadStockQuoteWSDL_EMF() throws Exception
- {
- startMeasuring();
- URL wsdl = PerformancePlugin.getDefault().getBundle().getEntry("data/StockQuote/StockQuote.wsdl");
-
- ResourceSet resourceSet = new ResourceSetImpl();
- WSDLResourceImpl resource = (WSDLResourceImpl)resourceSet.createResource(URI.createURI("*.wsdl"));
- resource.setURI(URI.createURI(wsdl.toString()));
- java.util.Map map = new Hashtable();
- map.put(WSDLResourceImpl.CONTINUE_ON_LOAD_ERROR,Boolean.valueOf(true));
- map.put(WSDLResourceImpl.USE_EXTENSION_FACTORIES,Boolean.valueOf(true));
- resource.load(map);
- Definition definition = resource.getDefinition();
-
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLTestCase.java
deleted file mode 100644
index a78fc6bd4..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLTestCase.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.net.URL;
-import javax.wsdl.Definition;
-import javax.wsdl.xml.WSDLReader;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.wsdl.internal.impl.wsdl4j.WSDLFactoryImpl;
-import org.xml.sax.InputSource;
-
-public class ReadStockQuoteWSDLTestCase extends PerformanceTestCase
-{
- public static Test suite()
- {
- return new TestSuite(ReadStockQuoteWSDLTestCase.class, "ReadStockQuoteWSDLTestCase");
- }
-
- public void testReadStockQuoteWSDL() throws Exception
- {
- startMeasuring();
- URL wsdl = PerformancePlugin.getDefault().getBundle().getEntry("data/StockQuote/StockQuote.wsdl");
- WSDLFactoryImpl factory = new WSDLFactoryImpl();
- WSDLReader reader = factory.newWSDLReader();
- Definition definition = reader.readWSDL(wsdl.toString(), new InputSource(wsdl.openStream()));
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSDLTestcase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSDLTestcase.java
deleted file mode 100644
index a4adbb91e..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSDLTestcase.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.io.File;
-import java.io.FileFilter;
-import java.net.MalformedURLException;
-
-import javax.wsdl.WSDLException;
-
-import junit.framework.Assert;
-
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-import org.eclipse.wst.wsdl.validation.internal.IValidationReport;
-import org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLValidator;
-
-
-public class ValidateOAGISWSDLTestcase extends PerformanceTestCase
-{
- private WSDLValidator validator;
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- protected void setUp() throws Exception
- {
- super.setUp();
- // Set the WS-I preference to ignore so only WSDL errors will be tested.
- WSPlugin wsui = WSPlugin.getInstance();
- PersistentWSIContext wsicontext = wsui.getWSISSBPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- wsicontext = wsui.getWSIAPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- }
-
- public void testValidateWSDL() throws MalformedURLException, WSDLException
- {
- String oagis80Dir = System.getProperty("oagis80Dir");
- Assert.assertNotNull(oagis80Dir);
- if (!oagis80Dir.endsWith("/") && !oagis80Dir.endsWith("\\"))
- oagis80Dir = oagis80Dir + "/";
- File dir = new File(oagis80Dir + "OAGIS8.0/ws/wsdl");
- if (dir.exists() && dir.isDirectory())
- {
- File[] wsdls = dir.listFiles
- (
- new FileFilter()
- {
- public boolean accept(File pathname)
- {
- return pathname.getName().endsWith(".wsdl");
- }
- }
- );
- tagAsSummary("Validate OAGIS WSDL", new Dimension[] {Dimension.ELAPSED_PROCESS, Dimension.WORKING_SET});
- validator = WSDLValidator.getInstance();
- startMeasuring();
- for (int i = 0; i < wsdls.length; i++)
- validateWSDL(wsdls[i].toURL().toString());
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
- else
- fail(dir.toString());
- }
-
- private void validateWSDL(String location) throws WSDLException
- {
- IValidationReport valreport = validator.validate(location);
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSITestcase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSITestcase.java
deleted file mode 100644
index c6a379d5c..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSITestcase.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.io.File;
-import java.io.FileFilter;
-import java.net.MalformedURLException;
-
-import javax.wsdl.WSDLException;
-
-import junit.framework.Assert;
-
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-import org.eclipse.wst.wsdl.validation.internal.IValidationReport;
-import org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLValidator;
-
-public class ValidateOAGISWSITestcase extends PerformanceTestCase
-{
- private WSDLValidator validator;
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- protected void setUp() throws Exception
- {
- super.setUp();
- // Set the WS-I preference to ignore so only WSDL errors will be tested.
- WSPlugin wsui = WSPlugin.getInstance();
- PersistentWSIContext wsicontext = wsui.getWSISSBPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.STOP_NON_WSI);
- wsicontext = wsui.getWSIAPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.STOP_NON_WSI);
- }
-
- public void testValidateWSDL() throws MalformedURLException, WSDLException
- {
- String oagis80Dir = System.getProperty("oagis80Dir");
- Assert.assertNotNull(oagis80Dir);
- if (!oagis80Dir.endsWith("/") && !oagis80Dir.endsWith("\\"))
- oagis80Dir = oagis80Dir + "/";
- File dir = new File(oagis80Dir + "OAGIS8.0/ws/wsdl");
- if (dir.exists() && dir.isDirectory())
- {
- File[] wsdls = dir.listFiles
- (
- new FileFilter()
- {
- public boolean accept(File pathname)
- {
- return pathname.getName().endsWith(".wsdl");
- }
- }
- );
- tagAsSummary("Validate OAGIS WSDL with WS-I", new Dimension[] {Dimension.ELAPSED_PROCESS, Dimension.WORKING_SET});
- validator = WSDLValidator.getInstance();
- startMeasuring();
- for (int i = 0; i < wsdls.length; i++)
- validateWSDL(wsdls[i].toURL().toString());
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
- else
- fail(dir.toString());
- }
-
- private void validateWSDL(String location) throws WSDLException
- {
- IValidationReport valreport = validator.validate(location);
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSDLTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSDLTestCase.java
deleted file mode 100644
index e14f84586..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSDLTestCase.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-import org.eclipse.wst.wsdl.validation.internal.IValidationReport;
-import org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLValidator;
-
-public class ValidateStockQuoteWSDLTestCase extends PerformanceTestCase
-{
- private WSDLValidator validator;
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- protected void setUp() throws Exception
- {
- super.setUp();
- // Set the WS-I preference to ignore so only WSDL errors will be tested.
- WSPlugin wsui = WSPlugin.getInstance();
- PersistentWSIContext wsicontext = wsui.getWSISSBPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- wsicontext = wsui.getWSIAPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- }
-
- public static Test suite()
- {
- return new TestSuite(ValidateStockQuoteWSDLTestCase.class, "ValidateStockQuoteWSDLTestCase");
- }
-
- public void testValidateStockQuoteWSDL() throws Exception
- {
- validator = WSDLValidator.getInstance();
- URL wsdl = PerformancePlugin.getDefault().getBundle().getEntry("data/StockQuote/StockQuote.wsdl");
- String path = wsdl.toString();
-
- startMeasuring();
- IValidationReport valreport = validator.validate(path);
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSITestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSITestCase.java
deleted file mode 100644
index 01fed9cdb..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSITestCase.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-import org.eclipse.wst.wsdl.validation.internal.IValidationReport;
-import org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLValidator;
-
-public class ValidateStockQuoteWSITestCase extends PerformanceTestCase
-{
- private WSDLValidator validator;
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- protected void setUp() throws Exception
- {
- super.setUp();
- // Set the WS-I preference to ignore so only WSDL errors will be tested.
- WSPlugin wsui = WSPlugin.getInstance();
- PersistentWSIContext wsicontext = wsui.getWSISSBPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.STOP_NON_WSI);
- wsicontext = wsui.getWSIAPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.STOP_NON_WSI);
- }
-
- public static Test suite()
- {
- return new TestSuite(ValidateStockQuoteWSITestCase.class, "ValidateStockQuoteWSITestCase");
- }
-
- public void testValidateStockQuoteWSI() throws Exception
- {
- validator = WSDLValidator.getInstance();
- URL wsdl = PerformancePlugin.getDefault().getBundle().getEntry("data/StockQuote/StockQuote.wsdl");
- String path = wsdl.toString();
-
- startMeasuring();
- IValidationReport valreport = validator.validate(path);
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateWSDLProjectTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateWSDLProjectTestCase.java
deleted file mode 100644
index be5e66070..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateWSDLProjectTestCase.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-package org.eclipse.wst.wsdl.tests.performance;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.validation.internal.operations.OneValidatorOperation;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-/**
- * Test for validation of 50 WSDL files in the sample workspace.
- *
- * @author Kihup Boo, IBM
- */
-public class ValidateWSDLProjectTestCase extends PerformanceTestCase {
-
- public static Test suite() {
- return new TestSuite(ValidateWSDLProjectTestCase.class, "Test");
- }
-
- /*
- * (non-Javadoc)
- *
- * @see junit.framework.TestCase#setUp()
- */
- protected void setUp() throws Exception {
- super.setUp();
- // Set the WS-I preference to ignore so WS-I validation will not be run.
- WSPlugin wsui = WSPlugin.getInstance();
- PersistentWSIContext wsicontext = wsui.getWSISSBPContext();
- wsicontext.updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- }
-
- public void testWSDLProjectValidation() throws Exception {
- String projectDir = System.getProperty("projectDir");
- Assert.assertNotNull(projectDir);
- if (!projectDir.endsWith("/") && !projectDir.endsWith("\\"))
- projectDir = projectDir + "/";
- File dir = new File(projectDir);
- if (dir.exists() && dir.isDirectory()) {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("WSDLProject");
- project.create(null);
- project.open(null);
- copy(dir, project);
- joinBackgroundJobs();
-
- IWorkspaceRunnable myRunnable = new OneValidatorOperation(
- project,
- "org.eclipse.wst.wsdl.ui.internal.validation.Validator",
- true,
- false);
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
-
- tagAsSummary("Validate WSDL Project", new Dimension[] {Dimension.ELAPSED_PROCESS, Dimension.WORKING_SET });
- startMeasuring();
- workspace.run(myRunnable, null);
- // project.build(IncrementalProjectBuilder.CLEAN_BUILD,null);
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- } else
- fail(dir.toString());
- }
-
- private void copy(File src, IContainer dest) throws CoreException,
- FileNotFoundException {
- File[] children = src.listFiles();
- for (int i = 0; i < children.length; i++) {
- String name = children[i].getName();
- if (children[i].isDirectory()) {
- IFolder folder = dest.getFolder(new Path(name));
- folder.create(true, true, null);
- copy(children[i], folder);
- } else {
- IFile file = dest.getFile(new Path(name));
- file.create(new FileInputStream(children[i]), true, null);
- }
- }
- }
-
- private void joinBackgroundJobs() {
- Display.getDefault().syncExec(new Runnable() {
- public void run() {
- try {
- Platform.getJobManager().join(
- ResourcesPlugin.FAMILY_AUTO_BUILD, null);
- } catch (InterruptedException e) {
- }
- long start = System.currentTimeMillis();
- Display display = Display.getDefault();
- while (System.currentTimeMillis() - start < 5000) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- }
- });
- }
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open100KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open100KBFileTestCase.java
deleted file mode 100644
index cfa35de02..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open100KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.OpenEditorTestCase;
-
-public class Open100KBFileTestCase extends OpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testOpen100KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open10KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open10KBFileTestCase.java
deleted file mode 100644
index 623d8c0e3..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open10KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.OpenEditorTestCase;
-
-public class Open10KBFileTestCase extends OpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/10KB.wsdl";
- }
-
- public void testOpen10KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1KBFileTestCase.java
deleted file mode 100644
index 1f5a00b58..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.OpenEditorTestCase;
-
-public class Open1KBFileTestCase extends OpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/1KB.wsdl";
- }
-
- public void testOpen1KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1MBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1MBFileTestCase.java
deleted file mode 100644
index 20ac5cc60..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1MBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.OpenEditorTestCase;
-
-public class Open1MBFileTestCase extends OpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/1MB.wsdl";
- }
-
- public void testOpen1MBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open200KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open200KBFileTestCase.java
deleted file mode 100644
index c55b2442a..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open200KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.OpenEditorTestCase;
-
-public class Open200KBFileTestCase extends OpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/200KB.wsdl";
- }
-
- public void testOpen200KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open500KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open500KBFileTestCase.java
deleted file mode 100644
index 288a2aa4d..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open500KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.OpenEditorTestCase;
-
-public class Open500KBFileTestCase extends OpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/500KB.wsdl";
- }
-
- public void testOpen500KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx100TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx100TestCase.java
deleted file mode 100644
index 193a9a9a1..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx100TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatOpenEditorTestCase;
-
-public class RepeatOpenEditorx100TestCase extends RepeatOpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- protected int getRepeatCount()
- {
- return 100;
- }
-
- public void testOpenx100()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx10TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx10TestCase.java
deleted file mode 100644
index ec4f3d01d..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx10TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatOpenEditorTestCase;
-
-public class RepeatOpenEditorx10TestCase extends RepeatOpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- protected int getRepeatCount()
- {
- return 10;
- }
-
- public void testOpenx10()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx1TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx1TestCase.java
deleted file mode 100644
index d597270ae..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx1TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatOpenEditorTestCase;
-
-public class RepeatOpenEditorx1TestCase extends RepeatOpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- protected int getRepeatCount()
- {
- return 1;
- }
-
- public void testOpenx1()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx25TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx25TestCase.java
deleted file mode 100644
index 52db3be74..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx25TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatOpenEditorTestCase;
-
-public class RepeatOpenEditorx25TestCase extends RepeatOpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- protected int getRepeatCount()
- {
- return 25;
- }
-
- public void testOpenx25()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx50TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx50TestCase.java
deleted file mode 100644
index 58a0aa3ba..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx50TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatOpenEditorTestCase;
-
-public class RepeatOpenEditorx50TestCase extends RepeatOpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- protected int getRepeatCount()
- {
- return 50;
- }
-
- public void testOpenx50()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx75TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx75TestCase.java
deleted file mode 100644
index 730ff4c1f..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx75TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatOpenEditorTestCase;
-
-public class RepeatOpenEditorx75TestCase extends RepeatOpenEditorTestCase
-{
- protected String getEditorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.WSDLEditor";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- protected int getRepeatCount()
- {
- return 75;
- }
-
- public void testOpenx75()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex100TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex100TestCase.java
deleted file mode 100644
index 215de77c3..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex100TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatRunValidatorTestCase;
-
-public class RepeatValidatex100TestCase extends RepeatRunValidatorTestCase
-{
- protected int getRepeatCount()
- {
- return 100;
- }
-
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testValidatex100()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex10TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex10TestCase.java
deleted file mode 100644
index 33278baa4..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex10TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatRunValidatorTestCase;
-
-public class RepeatValidatex10TestCase extends RepeatRunValidatorTestCase
-{
- protected int getRepeatCount()
- {
- return 10;
- }
-
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testValidatex10()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex1TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex1TestCase.java
deleted file mode 100644
index 9128369bc..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex1TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatRunValidatorTestCase;
-
-public class RepeatValidatex1TestCase extends RepeatRunValidatorTestCase
-{
- protected int getRepeatCount()
- {
- return 1;
- }
-
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testValidatex1()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex25TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex25TestCase.java
deleted file mode 100644
index 85e2eb99a..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex25TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatRunValidatorTestCase;
-
-public class RepeatValidatex25TestCase extends RepeatRunValidatorTestCase
-{
- protected int getRepeatCount()
- {
- return 25;
- }
-
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testValidatex25()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex50TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex50TestCase.java
deleted file mode 100644
index bb47cc1e2..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex50TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatRunValidatorTestCase;
-
-public class RepeatValidatex50TestCase extends RepeatRunValidatorTestCase
-{
- protected int getRepeatCount()
- {
- return 50;
- }
-
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testValidatex50()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex75TestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex75TestCase.java
deleted file mode 100644
index 8170c5b0f..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex75TestCase.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RepeatRunValidatorTestCase;
-
-public class RepeatValidatex75TestCase extends RepeatRunValidatorTestCase
-{
- protected int getRepeatCount()
- {
- return 75;
- }
-
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testValidatex75()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsCrossDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsCrossDependsTestCase.java
deleted file mode 100644
index 2f920a73b..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsCrossDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate1000WSDLsCrossDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 1000; i++)
- {
- copyFile(bundleId, "data/1000WSDLsCrossDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/1000WSDLsCrossDepends/sample0.xsd";
- }
-
- public void testValidate1000WSDLsCrossDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsNoDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsNoDependsTestCase.java
deleted file mode 100644
index 9315110f3..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsNoDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate1000WSDLsNoDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 1000; i++)
- {
- copyFile(bundleId, "data/1000WSDLsNoDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/1000WSDLsNoDepends/sample0.xsd";
- }
-
- public void testValidate1000WSDLsNoDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsXSDDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsXSDDependsTestCase.java
deleted file mode 100644
index 148c2d18c..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsXSDDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate1000WSDLsXSDDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 1000; i++)
- {
- copyFile(bundleId, "data/1000WSDLsXSDDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/1000WSDLsXSDDepends/sample0.xsd";
- }
-
- public void testValidate1000WSDLsXSDDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100KBFileTestCase.java
deleted file mode 100644
index 7bfc5792c..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-
-public class Validate100KBFileTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/100KB.wsdl";
- }
-
- public void testOpen100KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsCrossDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsCrossDependsTestCase.java
deleted file mode 100644
index 9499c90ab..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsCrossDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate100WSDLsCrossDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 100; i++)
- {
- copyFile(bundleId, "data/100WSDLsCrossDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/100WSDLsCrossDepends/sample0.xsd";
- }
-
- public void testValidate100WSDLsCrossDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsNoDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsNoDependsTestCase.java
deleted file mode 100644
index e87030027..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsNoDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate100WSDLsNoDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 100; i++)
- {
- copyFile(bundleId, "data/100WSDLsNoDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/100WSDLsNoDepends/sample0.xsd";
- }
-
- public void testValidate100WSDLsNoDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsXSDDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsXSDDependsTestCase.java
deleted file mode 100644
index 774e8d6be..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsXSDDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate100WSDLsXSDDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 100; i++)
- {
- copyFile(bundleId, "data/100WSDLsXSDDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/100WSDLsXSDDepends/sample0.xsd";
- }
-
- public void testValidate100WSDLsXSDDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10KBFileTestCase.java
deleted file mode 100644
index 9c9fa8c1e..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-
-public class Validate10KBFileTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/10KB.wsdl";
- }
-
- public void testOpen10KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsCrossDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsCrossDependsTestCase.java
deleted file mode 100644
index 2de6161fb..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsCrossDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate10WSDLsCrossDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 10; i++)
- {
- copyFile(bundleId, "data/10WSDLsCrossDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/10WSDLsCrossDepends/sample0.xsd";
- }
-
- public void testValidate10WSDLsCrossDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsNoDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsNoDependsTestCase.java
deleted file mode 100644
index aa59979b2..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsNoDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate10WSDLsNoDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 10; i++)
- {
- copyFile(bundleId, "data/10WSDLsNoDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/10WSDLsNoDepends/sample0.xsd";
- }
-
- public void testValidate10WSDLsNoDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsXSDDependsTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsXSDDependsTestCase.java
deleted file mode 100644
index 1f754dd70..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsXSDDependsTestCase.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-import org.eclipse.wst.ws.internal.plugin.WSPlugin;
-import org.eclipse.wst.ws.internal.preferences.PersistentWSIContext;
-
-public class Validate10WSDLsXSDDependsTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected void setUp() throws Exception
- {
- WSPlugin.getDefault().getWSIAPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- WSPlugin.getDefault().getWSISSBPContext().updateWSICompliances(PersistentWSIContext.IGNORE_NON_WSI);
- IProject project = createProject("sp");
- String bundleId = getBundleId();
- for(int i = 1; i < 10; i++)
- {
- copyFile(bundleId, "data/10WSDLsXSDDepends/sample" + i +".wsdl", project);
- }
- super.setUp();
- }
-
- protected String getFilePath()
- {
- return "data/10WSDLsXSDDepends/sample0.xsd";
- }
-
- public void testValidate10WSDLsXSDDepends()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-
-}
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1KBFileTestCase.java
deleted file mode 100644
index 510cc93f2..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-
-public class Validate1KBFileTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/1KB.wsdl";
- }
-
- public void testOpen1KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1MBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1MBFileTestCase.java
deleted file mode 100644
index f9f0e0e0b..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1MBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-
-public class Validate1MBFileTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/1MB.wsdl";
- }
-
- public void testOpen1MBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate200KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate200KBFileTestCase.java
deleted file mode 100644
index 3f9f840f1..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate200KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-
-public class Validate200KBFileTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/200KB.wsdl";
- }
-
- public void testOpen200KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate500KBFileTestCase.java b/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate500KBFileTestCase.java
deleted file mode 100644
index fb28c9bae..000000000
--- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate500KBFileTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.wst.wsdl.tests.performance.scalability;
-
-import org.eclipse.wst.common.tests.performance.internal.scalability.RunValidatorTestCase;
-
-public class Validate500KBFileTestCase extends RunValidatorTestCase
-{
- protected String getValidatorId()
- {
- return "org.eclipse.wst.wsdl.ui.internal.validation.Validator";
- }
-
- protected String getBundleId()
- {
- return "org.eclipse.wst.wsdl.tests.performance";
- }
-
- protected String getFilePath()
- {
- return "data/500KB.wsdl";
- }
-
- public void testOpen500KBFile()
- {
- try
- {
- super.execute();
- }
- catch (Throwable t)
- {
- fail(t.getMessage());
- }
- }
-} \ No newline at end of file

Back to the top