[178605] Remove unused junit classes.
diff --git a/tests/org.eclipse.wst.ws.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.ws.tests/META-INF/MANIFEST.MF
index 620c2fd..f785a43 100644
--- a/tests/org.eclipse.wst.ws.tests/META-INF/MANIFEST.MF
+++ b/tests/org.eclipse.wst.ws.tests/META-INF/MANIFEST.MF
@@ -26,6 +26,5 @@
Eclipse-LazyStart: true
Export-Package: org.eclipse.wst.ws.tests.data,
org.eclipse.wst.ws.tests.plugin,
- org.eclipse.wst.ws.tests.unittest,
- org.eclipse.wst.ws.tests.util
+ org.eclipse.wst.ws.tests.unittest
Bundle-ClassPath: tests.jar
diff --git a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/unittest/ResourceUtilsTests.java b/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/unittest/ResourceUtilsTests.java
deleted file mode 100644
index 084d082..0000000
--- a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/unittest/ResourceUtilsTests.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.eclipse.wst.ws.tests.unittest;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * @author sengpl
- *
- */
-public class ResourceUtilsTests extends TestCase implements WSJUnitConstants{
-
-
- public static Test suite(){
- return new TestSuite(ResourceUtilsTests.class);
- }
-
-
-
-}
diff --git a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/AccumulateStatusHandler.java b/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/AccumulateStatusHandler.java
deleted file mode 100644
index 8f524fb..0000000
--- a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/AccumulateStatusHandler.java
+++ /dev/null
@@ -1,99 +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 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.ws.tests.util;
-
-import java.util.Vector;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.command.internal.env.core.common.StatusUtils;
-import org.eclipse.wst.common.environment.Choice;
-import org.eclipse.wst.common.environment.StatusException;
-import org.eclipse.wst.common.environment.IStatusHandler;
-
-public class AccumulateStatusHandler implements IStatusHandler {
- Vector statusList_;
-
- public AccumulateStatusHandler()
- {
- resetStatus();
- }
-
- /**
- * Resets the status so that it starts out empty again.
- *
- */
- public void resetStatus()
- {
- statusList_ = new Vector();
- }
-
- public IStatus getStatus()
- {
- IStatus worstStatus = Status.OK_STATUS;
-
- // Find the worst error status code
- for( int index = 0; index < statusList_.size(); index++ )
- {
- IStatus status = (IStatus)statusList_.elementAt( index );
-
- if( status.getSeverity() > worstStatus.getSeverity() )
- {
- worstStatus = status;
- }
- }
-
- return StatusUtils.multiStatus( worstStatus.getMessage(),
- (Status[])statusList_.toArray( new Status[0] ) );
- }
-
- /**
- * @see org.eclipse.env.common.IStatusHandler#report(org.eclipse.env.common.Status, org.eclipse.env.common.Choice[])
- */
- public Choice report(IStatus status, Choice[] choices)
- {
- Choice result = null;
-
- // Always take the first choice if available.
- if( choices != null && choices.length > 0 )
- {
- result = choices[0];
- }
-
- statusList_.add( status );
-
- return result;
- }
-
- /**
- * @see org.eclipse.env.common.IStatusHandler#report(org.eclipse.env.common.Status)
- */
- public void report(IStatus status) throws StatusException
- {
- statusList_.add( status );
- }
-
- /**
- * @see com.ibm.env.common.IStatusHandler#reportError(com.ibm.env.common.Status)
- */
- public void reportError(IStatus status)
- {
- statusList_.add( status );
- }
-
- /**
- * @see com.ibm.env.common.IStatusHandler#reportInfo(com.ibm.env.common.Status)
- */
- public void reportInfo(IStatus status)
- {
- statusList_.add( status );
- }
-
-}
diff --git a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/DynamicPopupJUnitWizard.java b/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/DynamicPopupJUnitWizard.java
deleted file mode 100644
index 2feea53..0000000
--- a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/DynamicPopupJUnitWizard.java
+++ /dev/null
@@ -1,43 +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 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.ws.tests.util;
-
-import org.eclipse.jface.operation.IRunnableContext;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.command.internal.env.context.PersistentResourceContext;
-import org.eclipse.wst.command.internal.env.core.data.DataFlowManager;
-import org.eclipse.wst.command.internal.env.core.data.DataMappingRegistryImpl;
-import org.eclipse.wst.command.internal.env.core.fragment.CommandFragment;
-import org.eclipse.wst.command.internal.env.eclipse.EclipseEnvironment;
-import org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager;
-import org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard;
-import org.eclipse.wst.common.environment.IStatusHandler;
-
-public class DynamicPopupJUnitWizard extends DynamicPopupWizard {
- private IStatusHandler handler_;
- public DynamicPopupJUnitWizard(IStatusHandler handler)
- {
- handler_ = handler;
- }
- public void runHeadLess(IStructuredSelection selection,IRunnableContext context) {
- CommandFragment rootFragment = getRootFragment( selection, null );
- PersistentResourceContext resourceContext = PersistentResourceContext.getInstance();
- EclipseEnvironment environment = new EclipseEnvironment( null, resourceContext, handler_ );
-
- DataMappingRegistryImpl dataRegistry_ = new DataMappingRegistryImpl();
- DataFlowManager dataManager = new DataFlowManager( dataRegistry_, environment );
- SimpleCommandEngineManager manager = new SimpleCommandEngineManager(environment, dataManager);
-
- commandWidgetBinding_.registerDataMappings( dataRegistry_ );
- manager.setRootFragment( rootFragment );
- manager.runForwardToNextStop( context );
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/JUnitUtils.java b/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/JUnitUtils.java
deleted file mode 100644
index e5dbe7b..0000000
--- a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/JUnitUtils.java
+++ /dev/null
@@ -1,67 +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 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.ws.tests.util;
-
-import java.util.Enumeration;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.command.internal.env.common.FileResourceUtils;
-import org.eclipse.wst.command.internal.env.common.WaitForAutoBuildCommand;
-import org.eclipse.wst.command.internal.env.core.context.TransientResourceContext;
-import org.eclipse.wst.common.environment.IEnvironment;
-import org.eclipse.wst.ws.tests.plugin.TestsPlugin;
-
-
-public class JUnitUtils {
-
- // Begin: General Eclipse Utilities
- public static void syncBuildProject(IProject project,IEnvironment env, IProgressMonitor monitor ) throws Exception
- {
- project.build(IncrementalProjectBuilder.FULL_BUILD,null);
- WaitForAutoBuildCommand cmd = new WaitForAutoBuildCommand();
- cmd.setEnvironment( env );
- cmd.execute( monitor, null );
- }
-
- private static void copyTestFiles(String pathString,int rootSegmentLength,IFolder destFolder,IEnvironment env, IProgressMonitor monitor ) throws Exception
- {
- Enumeration e = TestsPlugin.getDefault().getBundle().getEntryPaths(pathString);
- while (e.hasMoreElements())
- {
- String filePath = (String)e.nextElement();
- if (filePath.endsWith("/"))
- copyTestFiles(filePath,rootSegmentLength,destFolder,env, monitor );
- else
- {
- IPath fileIPath = new Path(filePath);
- FileResourceUtils.copyFile(new TransientResourceContext(),
- TestsPlugin.getDefault(),
- fileIPath.removeLastSegments(fileIPath.segmentCount()-rootSegmentLength), // /data/<subdir>
- (new Path(filePath)).removeFirstSegments(rootSegmentLength), // files after /data/<subdir>
- destFolder.getFullPath(),
- monitor,
- env.getStatusHandler());
- }
- }
- }
-
- public static void copyTestData(String dataSubdirectory,IFolder destFolder,IEnvironment env, IProgressMonitor monitor ) throws Exception
- {
- String pathString = "/data/"+dataSubdirectory;
- copyTestFiles(pathString,new Path(pathString).segmentCount(),destFolder,env, monitor );
-
- }
-
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/ScenarioConstants.java b/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/ScenarioConstants.java
deleted file mode 100644
index 3a894b6..0000000
--- a/tests/org.eclipse.wst.ws.tests/tests/org/eclipse/wst/ws/tests/util/ScenarioConstants.java
+++ /dev/null
@@ -1,45 +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 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.ws.tests.util;
-
-public class ScenarioConstants {
- // Bottom up Java or EJB to Web Service wizard ID.
- public static final String WIZARDID_BOTTOM_UP = "org.eclipse.jst.ws.creation.ui.wizard.serverwizard.java";
-
- // Top down WSDL to Skeleton Web Service wizard ID.
- public static final String WIZARDID_TOP_DOWN = "org.eclipse.jst.ws.creation.ui.wizard.serverwizard.skeleton";
-
- // Web Service client wizard ID.
- public static final String WIZARDID_CLIENT = "org.eclipse.jst.ws.internal.consumption.ui.wizard.client.clientwizard";
-
- // Object class for:
- // 1) Java source (bottom-up)
- // 2) WSDL or WSIL (top-down or client).
- public static final String OBJECT_CLASS_ID_IFILE = "org.eclipse.core.resources.IFile";
-
- // Object class for Java compilation units (i.e. Java classes selected in the Java perspective).
- public static final String OBJECT_CLASS_ID_COMPILATIONUNIT = "org.eclipse.jdt.internal.core.CompilationUnit";
-
- // Object class for a service selected in the J2EE perspective (top-down or client).
- public static final String OBJECT_CLASS_ID_SERVICEIMPL = "org.eclipse.wst.wsdl.Service";
-
- // Object class for a WSDLResourceImpl (top-down or client).
- public static final String OBJECT_CLASS_ID_WSDLSERVICEIMPL = "org.eclipse.wst.wsdl.internal.util.WSDLResourceImpl";
-
- // Object class for a ServiceRef (top-down or client).
- public static final String OBJECT_CLASS_ID_SERVICEREF = "org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef";
-
- // Object class for a ServiceImplBean (bottom-up).
- public static final String OBJECT_CLASS_ID_SERVICEIMPLBEAN = "org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean";
-
- // Object class for a BeanLink (bottom-up).
- public static final String OBJECT_CLASS_ID_BEANLINK = "org.eclipse.jst.j2ee.webservice.wsdd.BeanLink";
-}
\ No newline at end of file