diff options
Diffstat (limited to 'tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java')
-rw-r--r-- | tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java | 68 |
1 files changed, 0 insertions, 68 deletions
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 0c6968260..000000000 --- a/tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 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; - -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 |