Skip to main content
summaryrefslogtreecommitdiffstats
blob: c6631d4d474b382045efa34f0ba29c7c63843bcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*******************************************************************************
 * Copyright (c) 2005 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.internal.provisional.wsrt;

import org.eclipse.wst.command.env.core.common.Environment;
import org.eclipse.wst.command.internal.provisional.ICommandFactory;

public interface IWebServiceTester {

	public ICommandFactory generate(Environment env, IContext ctx, ISelection sel, String module, String ear);
	public ICommandFactory launch(Environment env, IContext ctx, ISelection sel, String module, String ear);
}

Back to the top

les/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/command/GeronimoAxisDeployCommand.java?h=v200705292211'>bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/command/GeronimoAxisDeployCommand.java279
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/command/Java2WSDLCommand.java258
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/command/WSDL2JavaCommand.java424
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/common/JavaWSDLParamModifier.java150
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/common/JavaWSDLParameter.java472
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/common/NameMappingUtils.java73
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterContext.java181
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/AxisEmitterDefaults.java91
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/context/PersistentAxisEmitterContext.java114
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/locator/AxisServicesSaxHandler.java46
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/locator/AxisServletSaxHandler.java48
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/locator/AxisWebServiceLocator.java394
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/locator/ServerConfigWSDDVisitor.java42
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.core/src/org/eclipse/jst/ws/internal/axis/consumption/core/plugin/WebServiceAxisConsumptionCorePlugin.java118
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/META-INF/MANIFEST.MF48
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/build.properties6
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/plugin.properties25
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/plugin.xml39
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/AxisConsumptionUI.properties106
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/AxisConsumptionUIMessages.java81
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientDefaultingCommand.java263
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientInputCommand.java69
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/AxisClientOutputCommand.java58
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/CopyClientWSDLCommand.java178
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/command/DefaultsForClientJavaWSDLCommand.java183
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/plugin/WebServiceAxisConsumptionUIPlugin.java105
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/preferences/AxisEmitterPreferencePage.java329
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/ClientCodeGenOperation.java158
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/CopyAxisJarCommand.java437
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/DefaultsForHTTPBasicAuthCommand.java130
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/RefreshProjectCommand.java63
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/Stub2BeanCommand.java283
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/Stub2BeanInfo.java622
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/task/ValidateWSDLCommand.java74
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/util/ClasspathUtils.java297
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/util/FileUtil.java120
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/util/PlatformUtils.java176
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/util/WSDLUtils.java514
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/widgets/AxisMappingsFragment.java39
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/widgets/AxisMappingsWidget.java127
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/widgets/AxisProxyWidget.java140
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/wizard/client/WebServiceClientAxisType.java119
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/wsrt/AxisClientConfigWidgetFactory.java51
-rw-r--r--bundles/org.eclipse.jst.ws.axis.consumption.ui/src/org/eclipse/jst/ws/internal/axis/consumption/ui/wsrt/AxisWebServiceClient.java159
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/META-INF/MANIFEST.MF50
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/build.properties7
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/deploy.xsl26
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/plugin.properties29
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/plugin.xml160
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/AxisCreationUI.properties105
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/AxisCreationUIMessages.java67
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/AxisCheckCompilerLevelCommand.java92
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/AxisOutputCommand.java65
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/AxisRunInputCommand.java74
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/AxisServerDefaulter.java29
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/BUAxisInputCommand.java129
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/BUCodeGenOperation.java178
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/CopyDeploymentFileCommand.java157
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/JavaToWSDLMethodCommand.java213
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/ModifyWSDLEndpointAddressCommand.java187
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/TDAxisInputCommand.java106
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/TDCodeGenOperation.java234
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/UpdateWEBXMLCommand.java218
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/command/ValidateWSIComplianceCommand.java99
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/plugin/WebServiceAxisCreationUIPlugin.java133
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/task/BUConfigCommand.java34
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/task/BackupSkelImplCommand.java208
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/task/DefaultsForServerJavaWSDLCommand.java261
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/task/Skeleton2WSDLCommand.java294
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/task/TDConfigCommand.java35
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/task/UpdateAxisWSDDFileTask.java187
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/widgets/bean/BUAxisDefaultingCommand.java187
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/widgets/bean/BeanConfigWidget.java301
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/widgets/bean/ValidateObjectSelectionCommand.java172
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/widgets/skeleton/AxisSkeletonDefaultingCommand.java128
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/widgets/skeleton/SkeletonConfigWidget.java174
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/widgets/skeleton/SkeletonConfigWidgetDefaultingCommand.java118
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wizard/beans/WSBeanAxisType.java227
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wizard/wsdl/WSWSDLAxisType.java216
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wsrt/AxisBeanConfigWidgetFactory.java51
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wsrt/AxisSkeletonConfigWidgetFactory.java51
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wsrt/AxisWebService.java335
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wsrt/AxisWebServiceInfo.java28
-rw-r--r--bundles/org.eclipse.jst.ws.axis.creation.ui/src/org/eclipse/jst/ws/internal/axis/creation/ui/wsrt/AxisWebServiceRuntime.java34
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/META-INF/MANIFEST.MF78
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/build.properties8
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_assemble.jpgbin15821 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_deploy.jpgbin15755 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_develop.jpgbin15539 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_install.jpgbin15774 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_none.jpgbin15108 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_run.jpgbin15860 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/client_test.jpgbin15751 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/ctool16/configure_handlers.gifbin356 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/ctool16/generated_sample.gifbin591 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/ctool16/newclient_webserv_wiz.gifbin587 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/dtool/configure_handlers.gifbin231 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/dtool/generated_sample.gifbin356 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/wizban/config_handler_wiz.pngbin4919 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/wizban/gen_sample_wiz.pngbin5334 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/wizban/import-wsil_wiz.pngbin5446 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/wizban/import_ws_wiz.pngbin6375 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/full/wizban/webservicesclient_wiz.pngbin4394 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/import_ws.gifbin574 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/registry.gifbin353 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale0_bground.jpgbin22670 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale1_bground.jpgbin22445 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale2_bground.jpgbin22235 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale3_bground.jpgbin21677 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale4_bground.jpgbin21536 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale5_bground.jpgbin21555 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/scale6_bground.jpgbin20246 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/servers/existing_server_obj.gifbin565 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/servers/servers_obj.gifbin565 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/wsil/html.gifbin364 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/wsil/import_wsil.gifbin565 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/wsil/wsdl.gifbin563 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/icons/wsil/wsil.gifbin606 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/plugin.properties133
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/plugin.xml785
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/schema/clientProjectType.exsd124
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/schema/objectSelectionWidget.exsd129
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/schema/webServiceClientType.exsd257
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/schema/webServiceServerRuntimeType.exsd325
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/schema/webServiceTest.exsd138
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/ConsumptionUI.properties636
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/ConsumptionUIMessages.java395
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/action/LaunchWSEAction.java60
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/ant/AntClientRootCommandFragment.java224
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/AntDefaultingOperation.java79
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/AntRestoringCommand.java39
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/AntWorkspaceSaveCommand.java37
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/CheckForServiceProjectCommand.java94
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/GenerateHandlerSkeletonCommand.java304
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/ListOptionsCommand.java122
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/OpenJavaEditorCommand.java110
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/StartServerCommand.java210
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/WSINonCompliantRuntimeCommand.java87
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/data/EclipseIPath2URLStringTransformer.java40
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/data/ProjectName2IProjectTransformer.java40
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/data/ServerInstToIServerTransformer.java38
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/command/data/ServerName2IServerTransformer.java36
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/DefaultingUtils.java83
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/FinishFragment.java35
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/HandlerDescriptionHelper.java67
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/HandlerDescriptionHolder.java137
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/HandlerServiceRefHelper.java72
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/HandlerServiceRefHolder.java118
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/ScenarioCleanupCommand.java52
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/ServerSelectionUtils.java133
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/common/ValidationUtils.java1043
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/extension/ClientRootFragment.java117
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/extension/PreClientAssembleCommand.java115
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/extension/PreClientDeployCommand.java44
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/extension/PreClientDevelopCommand.java285
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/extension/PreClientInstallCommand.java116
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/extension/PreClientRunCommand.java63
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/plugin/WebServiceConsumptionUIPlugin.java108
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/PersistentProjectTopologyContext.java137
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/PersistentServerRuntimeContext.java101
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/ProjectTopologyContext.java42
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/ProjectTopologyDefaults.java36
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/ProjectTopologyPreferencePage.java406
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/ServerRuntimePreferencePage.java358
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/preferences/TransientProjectTopologyContext.java90
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/selection/SelectionTransformer.java32
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/server/StartClientWidgetContributor.java54
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/server/StartClientWidgetFactory.java68
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/server/StartServerWidget.java446
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/AbstractHandlersWidgetDefaultingCmd.java121
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/AbstractObjectSelectionLaunchable.java53
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/AddHandlerDialog.java265
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/CheckWSDLValidationCommand.java106
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ClientHandlersWidgetDefaultingCommand.java329
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ClientHandlersWidgetOutputCommand.java207
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ClientWizardWidget.java524
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ClientWizardWidgetDefaultingCommand.java162
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ClientWizardWidgetOutputCommand.java180
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ConfigClientHandlersTableWidget.java637
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ConfigServiceHandlersTableWidget.java685
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/HandlersDefaultingCommand.java78
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/IObjectSelectionLaunchable.java93
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/IPackable.java26
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ImportWSILWidget.java223
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/JavaBeanSelectionLaunchable.java202
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/PreferencesSelectionWidget.java81
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ProjectSelectionDialog.java122
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/PublishToPrivateUDDICommandFragment.java101
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/PublishWSWidget.java201
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ServiceHandlersWidgetDefaultingCommand.java376
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/ServiceHandlersWidgetOutputCommand.java244
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/TableViewerWidget.java630
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/TimedWSDLSelectionConditionCommand.java93
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WSDLSelectionConditionCommand.java135
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WSDLSelectionDialog.java97
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WSDLSelectionOutputCommand.java138
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WSDLSelectionTreeWidget.java291
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WSDLSelectionWidgetDefaultingCommand.java186
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WSDLSelectionWidgetWrapper.java144
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/WebServiceClientTypeWidget.java1052
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/ClientWidgetBinding.java468
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/ConfigClientHandlersWidgetBinding.java140
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/ConfigServiceHandlersWidgetBinding.java139
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/ConfigureHandlersWidgetBinding.java256
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/GenSampleWidgetBinding.java412
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/ImportWSILWidgetBinding.java88
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/binding/ImportWSWidgetBinding.java103
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/extensions/ClientExtensionDefaultingCommand.java619
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/extensions/ClientExtensionFragment.java40
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/extensions/ClientExtensionOutputCommand.java79
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/extensions/ServerExtensionDefaultingCommand.java407
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/extensions/ServerExtensionFragment.java41
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/extensions/ServerExtensionOutputCommand.java115
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/AbstractObjectSelectionWidget.java67
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/EJBSelectionTransformer.java65
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/EJBSelectionWidget.java377
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/EJBTableViewer.java122
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/HandlerTableItem.java114
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/IObjectSelectionWidget.java94
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/JavaBeanSelectionTransformer.java87
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/JavaBeanSelectionWidget.java281
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/ObjectSelectionFragment.java92
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/ObjectSelectionOutputCommand.java296
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/ObjectSelectionRegistry.java157
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/ObjectSelectionWidget.java258
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/Timer.java75
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/ValidateWSDLJob.java88
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/ValidationMessageViewerWidget.java244
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/WSDLSelectionTransformer.java118
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/WSDLSelectionWidget.java721
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/object/WSDLSelectionWrapper.java32
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/runtime/ClientRuntimeSelectionWidgetDefaultingCommand.java1589
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/runtime/ProjectSelectionWidget.java614
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/ClientTestDelegateCommand.java355
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/ClientTestFragment.java85
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/ClientTestWidget.java480
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/CopyWebServiceUtilsJarCommand.java137
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/FinishDefaultCommand.java73
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/FinishJavaTestFragment.java64
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/FinishTestFragment.java109
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/TestClientDepartureInitCommand.java52
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/TestDefaultingFragment.java135
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/TestWebServiceClient.java54
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/WSDLFinishFragment.java30
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/WSDLTestLaunchCommand.java189
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/WebServiceClientTestArrivalCommand.java276
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/WebServiceTestClientDepartureFragment.java50
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/explorer/ExplorerServiceTestCommand.java97
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/explorer/WSEGenerateCommand.java60
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/explorer/WSEWebServiceTester.java34
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/explorer/WebServiceExplorerExecutable.java35
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/AddModuleDependenciesCommand.java292
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/GSTCGenerateCommand.java172
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/GSTCLaunchCommand.java191
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/GSTCWebServiceTester.java41
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/WSSampleFinishCommand.java322
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/WebServiceWSSampleExecutable.java33
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/PrivateUDDIRegistryTypeRegistry.java59
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/PublicUDDIRegistryTypeRegistry.java96
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/RuntimeServerSelectionDialog.java751
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/TypeSelectionFilter2.java214
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/TypeSelectionMetadata.java84
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/WebServiceInfo.java26
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/uddi/PublicUDDIRegistryNTTComm.java41
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/uddi/PublicUDDIRegistrySAP.java41
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/uddi/PublicUDDIRegistrySAPTest.java41
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/uddi/PublicUDDIRegistryType.java25
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wizard/uddi/PublicUDDIRegistryXMethods.java43
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsil/AddWSDLToWSILWrapperCommand.java65
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsil/Arguments.java75
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsil/DialogWWWAuthentication.java153
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsil/TableViewerEditor.java525
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsil/Utils.java52
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/ClientRuntimeDescriptor.java147
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/ClientType.java120
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/Context.java143
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/FacetMatchCache.java495
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/RuntimeDescriptor.java74
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/Selection.java30
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/ServiceRuntimeDescriptor.java171
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/ServiceType.java201
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/WebServiceClientImpl.java45
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/WebServiceImpl.java120
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/WebServiceRuntimeExtensionRegistry.java216
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/WebServiceRuntimeExtensionRegistry2.java225
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/WebServiceRuntimeExtensionUtils2.java1952
-rw-r--r--bundles/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/wsrt/WebServiceRuntimeInfo.java210
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/.classpath8
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/.cvsignore9
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/META-INF/MANIFEST.MF61
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/build.properties24
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/plugin.properties19
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/plugin.xml52
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/Consumption.properties195
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/ConsumptionMessages.java119
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/Generator.java245
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/RelVisitor.java88
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/Visitor.java30
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/VisitorAction.java31
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/bean/AttributeVisitor.java77
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/bean/FieldVisitor.java71
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/bean/MethodVisitor.java40
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/bean/ParameterVisitor.java40
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/bean/ReturnParameterVisitor.java40
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/bean/TypeVisitor.java38
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/DetectNonJavaCharsBeanVisitorAction.java91
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/DetectNonJavaCharsMethodVisitorAction.java116
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/DetectNonJavaCharsParameterVisitorAction.java86
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/JavaMofAttributeVisitorAction.java129
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/JavaMofBeanVisitorAction.java423
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/JavaMofFieldVisitorAction.java98
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/JavaMofMethodVisitorAction.java219
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/JavaMofParameterVisitorAction.java80
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/JavaMofTypeVisitorAction.java156
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitoractions/VisitorActionImpl.java94
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitors/JavaMofAttributeVisitor.java217
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitors/JavaMofBeanVisitor.java45
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitors/JavaMofFieldVisitor.java139
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitors/JavaMofMethodVisitor.java84
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitors/JavaMofParameterVisitor.java108
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/codegen/javamofvisitors/JavaMofTypeVisitor.java112
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/AbstractStartServer.java139
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/AddModuleToServerCommand.java147
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/AssociateModuleWithEARCommand.java89
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/BuildProjectCommand.java98
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CheckProjectOKCommand.java76
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/ComputeEndpointCommand.java137
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/ComputeProxyEndpointCommand.java119
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CopyWSDLCommand.java362
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CopyWSDLTreeCommand.java115
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CreateFacetedProjectCommand.java358
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CreateJavaProjectCommand.java82
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CreateModuleCommand.java680
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CreateMonitorCommand.java137
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/CreateServerCommand.java123
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/DisableBuildCommand.java68
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/DisableValidationCommand.java63
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/GetMonitorCommand.java233
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/JavaMofReflectionCommand.java114
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/ManageServerStartUpCommand.java139
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/RestoreBuildStateCommand.java56
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/RestoreValidationStateCommand.java58
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/command/common/StartProjectCommand.java156
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/FacetMatcher.java61
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/FacetSetsByTemplateCache.java154
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/FacetUtils.java1409
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/FolderResourceFilter.java92
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/IServerDefaulter.java36
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/JavaMerger.java203
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/JavaResourceFilter.java167
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/MappingUtils.java84
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/PropertiesResourceFilter.java122
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/RequiredFacetVersion.java74
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/ServerInfo.java54
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/WSDLParserFactory.java49
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/WSDLResourceFilter.java117
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/common/WebServiceStartServerRegistry.java100
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/ArrayElement.java99
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/ArrayType.java62
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/AttributeElement.java95
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/AttributeElementType.java39
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/BeanElement.java147
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/BeanModelElementsFactory.java168
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/BigDecimalType.java56
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/BigIntegerType.java56
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/DataType.java90
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/DateType.java125
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/DomElementType.java123
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/FieldElement.java92
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/GregorianCalendarType.java127
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/HashtableType.java37
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/MapType.java37
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/MethodElement.java129
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/ObjectType.java63
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/ParameterElement.java83
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveArrayType.java65
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveBooleanType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveByteType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveCharType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveDoubleType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveFloatType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveIntType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveJavaTypes.java56
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveLongType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveShortType.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/PrimitiveType.java47
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/RecognizedReturnType.java108
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/SOAPElementType.java123
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/SimpleElement.java62
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/SimpleType.java140
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/StateLessBeanType.java38
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/StringType.java57
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/TypeElement.java195
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/TypeFactory.java263
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/URLType.java57
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/VectorType.java37
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/beanmodel/VoidType.java56
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/validate/ValidationManager.java112
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/BindingElement.java54
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/DefinitionElement.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/MessageElement.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/OperationElement.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PartElement.java39
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortElement.java44
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/PortTypeElement.java39
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/ServiceElement.java48
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/StubbedWSDLModel.java69
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/datamodel/wsdlmodel/WSDLElement.java53
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ClientPreAssemblyFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ClientPreDeployFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ClientPreDevelopFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ClientPreInstallFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ServicePreAssemblyFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ServicePreDeployFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ServicePreDevelopFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/fragments/ServicePreInstallFragment.java17
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/plugin/WebServiceConsumptionPlugin.java57
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/InputFileAttributeGenerator.java76
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/InputFileGenerator.java138
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/InputFileHelp1Generator.java93
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/InputFileHelp2Generator.java102
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/InputFileTypeGenerator.java304
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/LevelsDeepVisitorAction.java119
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/MethodFileGenerator.java77
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/MethodFileHelpGenerator.java56
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/ResultFileAttributeGenerator.java92
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/ResultFileGenerator.java143
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/ResultFileHelp1Generator.java148
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/ResultFileHelp2Generator.java100
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/ResultFileTypeGenerator.java119
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/codegen/TestClientFileGenerator.java88
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/command/GeneratePageCommand.java104
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/command/JavaToModelCommand.java227
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/sampleapp/common/SamplePropertyDescriptor.java115
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/wsfinder/IWSFinder.java28
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/wsfinder/LiveWSDLFilter.java99
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/src/org/eclipse/jst/ws/internal/consumption/wsfinder/WSFinderRegistry.java86
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/webserviceutils/org/eclipse/jst/ws/util/DomElementHelper.java137
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/webserviceutils/org/eclipse/jst/ws/util/JspUtils.java50
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/webserviceutils/org/eclipse/jst/ws/util/SoapElementHelper.java69
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/webserviceutils/org/eclipse/jst/ws/util/SoapElementRuntimeException.java33
-rw-r--r--bundles/org.eclipse.jst.ws.consumption/webserviceutils/org/eclipse/jst/ws/util/SoapElementSaxHandler.java142
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/.cvsignore1
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/.project22
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/META-INF/MANIFEST.MF9
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/build.properties4
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/plugin.properties28
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ejb.ui/plugin.xml64
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/META-INF/MANIFEST.MF49
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/build.properties7
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/export_ws.gifbin570 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/full/ctool16/new_webserv_wiz.gifbin577 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/full/wizban/export_ws_wiz.pngbin6489 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/full/wizban/webservices_wiz.pngbin6018 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/service_assemble.jpgbin16187 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/service_deploy.jpgbin16150 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/service_develop.jpgbin16010 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/service_install.jpgbin16036 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/service_run.jpgbin16218 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/icons/service_test.jpgbin16243 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/plugin.properties62
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/plugin.xml396
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/CreationUI.properties19
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/CreationUIMessages.java29
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/ant/AntServiceRootCommandFragment.java156
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/extension/PreServiceAssembleCommand.java141
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/extension/PreServiceDeployCommand.java42
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/extension/PreServiceDevelopCommand.java292
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/extension/PreServiceInstallCommand.java116
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/extension/PreServiceRunCommand.java59
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/extension/ServiceRootFragment.java120
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/plugin/WebServiceCreationUIPlugin.java84
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/preferences/ScenarioDefaultsPreferencePage.java155
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/server/StartServerWidgetContributor.java55
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/server/StartServerWidgetFactory.java73
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/ServerWizardWidget.java1669
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/ServerWizardWidgetDefaultingCommand.java197
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/ServerWizardWidgetOutputCommand.java181
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/ServiceImplSelectionDialog.java105
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/binding/ExportWSWidgetBinding.java103
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/binding/PublishWSDLWidgetBinding.java62
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/binding/ServerWidgetBinding.java640
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/runtime/ServerRuntimeSelectionWidgetDefaultingCommand.java622
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/test/LaunchFragment.java49
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/test/ServiceTestFragment.java78
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/test/ServiceTestWidget.java170
-rw-r--r--bundles/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/test/WebServiceTestDefaultingCommand.java93
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/META-INF/MANIFEST.MF22
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/build.properties7
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/icons/registry.gifbin353 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/icons/wizban/uddiprivateconfig_wiz.pngbin6484 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/plugin.properties24
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/plugin.xml57
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/UDDIRegistry.properties55
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/UDDIRegistryMessages.java39
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/plugin/WebServiceUDDIRegistryPlugin.java101
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/widgets/PrivateUDDISelectionCommand.java88
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/widgets/PrivateUDDISelectionCommandFragment.java98
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/widgets/PrivateUDDISelectionWidget.java210
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/widgets/PrivateUDDISelectionWidgetConditionCommand.java46
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/widgets/binding/PrivateUDDIWidgetBinding.java111
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/wizard/PrivateUDDIRegistryType.java33
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/wizard/PrivateUDDIRegistryTypeImpl.java80
-rw-r--r--bundles/org.eclipse.jst.ws.uddiregistry/src/org/eclipse/jst/ws/internal/uddiregistry/wizard/PrivateUDDIRegistryTypeRegistry.java133
-rw-r--r--bundles/org.eclipse.jst.ws.ui/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws.ui/.project28
-rw-r--r--bundles/org.eclipse.jst.ws.ui/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws.ui/META-INF/MANIFEST.MF35
-rw-r--r--bundles/org.eclipse.jst.ws.ui/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws.ui/build.properties7
-rw-r--r--bundles/org.eclipse.jst.ws.ui/icons/jar_obj.gifbin568 -> 0 bytes-rw-r--r--bundles/org.eclipse.jst.ws.ui/plugin.properties48
-rw-r--r--bundles/org.eclipse.jst.ws.ui/plugin.xml79
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/WSUIPlugin.properties116
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/WSUIPluginMessages.java80
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/action/LaunchImportWizardAction.java64
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/action/WebServiceDeploy.java18
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/action/WebServiceDeployAction.java83
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/action/WindowActionDelegate.java86
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/common/DialogResourceBrowser.java343
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/common/FileExtensionFilter.java70
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/common/IFilter.java43
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/common/UIUtils.java244
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/dialog/DialogUtils.java244
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/dialog/ResourceSelectionDialog.java319
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/plugin/WebServiceUIPlugin.java74
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/popup/PopupTestService.java72
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/preferences/ResourceManagmentPreferencePage.java172
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/preferences/TestFacilityDefaultsPreferencePage.java324
-rw-r--r--bundles/org.eclipse.jst.ws.ui/src/org/eclipse/jst/ws/internal/ui/uddi/PrivateUDDIRegistryType.java21
-rw-r--r--bundles/org.eclipse.jst.ws/.classpath7
-rw-r--r--bundles/org.eclipse.jst.ws/.cvsignore7
-rw-r--r--bundles/org.eclipse.jst.ws/.project28
-rw-r--r--bundles/org.eclipse.jst.ws/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.jst.ws/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.jst.ws/META-INF/MANIFEST.MF46
-rw-r--r--bundles/org.eclipse.jst.ws/about.html34
-rw-r--r--bundles/org.eclipse.jst.ws/build.properties16
-rw-r--r--bundles/org.eclipse.jst.ws/component.xml15
-rw-r--r--bundles/org.eclipse.jst.ws/plugin.properties16
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/WSPlugin.properties31
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/WSPluginMessages.java48
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/command/NullStatusMonitor.java61
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/command/StatusMonitor.java37
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/command/StatusRenderer.java32
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/AnyFilter.java82
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/Filter.java86
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/IProjectToStringTransformer.java28
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEActionAdapterFactory.java122
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java1407
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/JavaMOFUtils.java248
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ResourceUtils.java1890
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/SelectionToResource.java69
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ServerUtils.java809
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/StatusObjectHandler.java140
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2PathTransformer.java32
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2SelectionTransformer.java100
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2TestFacilityListTransformer.java40
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/String2TypeRuntimeServerModifier.java93
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/StringToIProjectTransformer.java41
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/StringUtils.java288
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/IJavaBeanProperty.java96
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/IJavaWebServiceRule.java129
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/IJavaWebServiceRuleEngine.java56
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/JAXRPCWebServiceAnalyzer.java214
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/JAXRPCWebServiceRuleEngine.java278
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/JDTResolver.java883
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/JavaBeanProperty.java147
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/JavaWebServiceRule.java143
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/JavaWebServiceRuleSet.java285
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/rules/JAXRPCRule0001.java68
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/rules/JAXRPCRule0002.java82
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/rules/JAXRPCRule0003.java151
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/rules/JAXRPCRule0005.java121
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/rules/JAXRPCRule0006.java164
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/conformance/rules/JAXRPCRuleSetFactory.java44
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/PersistentScenarioContext.java393
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/PersistentUDDIPreferenceContext.java49
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/ScenarioContext.java110
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/ScenarioDefaults.java119
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/TransientScenarioContext.java306
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/UDDIPreferenceContext.java31
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/context/UDDIPreferenceDefaults.java24
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/data/LabelsAndIds.java48
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/data/TypeRuntimeServer.java114
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/dialog/IStatusDialogConstants.java40
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExecutable.java31
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtension.java46
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionImpl.java100
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistry.java42
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/WebServiceExtensionRegistryImpl.java118
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/JavaProxyTestCommand.java39
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WSDLTestFinishCommand.java19
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestExtension.java188
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestFinishCommand.java39
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/ext/test/WebServiceTestRegistry.java181
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/plugin/WebServicePlugin.java97
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/wsrt/WebServiceJavaClientInfo.java48
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/wsrt/WebServiceJavaInfo.java48
-rw-r--r--bundles/org.eclipse.wst.command.env.core/.classpath7
-rw-r--r--bundles/org.eclipse.wst.command.env.core/.cvsignore8
-rw-r--r--bundles/org.eclipse.wst.command.env.core/.project28
-rw-r--r--bundles/org.eclipse.wst.command.env.core/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.wst.command.env.core/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.wst.command.env.core/META-INF/MANIFEST.MF20
-rw-r--r--bundles/org.eclipse.wst.command.env.core/about.html34
-rw-r--r--bundles/org.eclipse.wst.command.env.core/build.properties19
-rw-r--r--bundles/org.eclipse.wst.command.env.core/component.xml8
-rw-r--r--bundles/org.eclipse.wst.command.env.core/plugin.properties16
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/CommandFactory.java26
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/CommandManager.java33
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCore.properties22
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/EnvironmentCoreMessages.java31
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/ICommandFactory.java30
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/SimpleCommandFactory.java49
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/Condition.java22
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/Evaluate.java22
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/MessageUtils.java88
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/ProgressUtils.java22
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/Range.java62
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/RangeVector.java30
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/common/StatusUtils.java58
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/context/Context.java87
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/context/ResourceContext.java74
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/context/ResourceDefaults.java45
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/context/TransientResourceContext.java82
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/BeanModifier.java22
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/ClassEntry.java77
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/DataFlowManager.java293
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/DataMappingRegistry.java47
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/DataMappingRegistryImpl.java117
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/RuleEntry.java32
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/data/Transformer.java23
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/AbstractCommandFragment.java102
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/BooleanFragment.java154
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/ChoiceFragment.java143
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFactoryFragment.java160
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragment.java71
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentEngine.java471
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentFactory.java24
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/CommandFragmentFactoryFactory.java22
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/ExtensionFragment.java99
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/FragmentListener.java25
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/LoopCondition.java27
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/LoopFragment.java135
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/SequenceFragment.java133
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/fragment/SimpleFragment.java81
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/registry/CommandRegistry.java29
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/selection/BooleanSelection.java45
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/selection/ChoicesToString.java47
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/selection/DynamicList.java92
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/selection/SelectionList.java96
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/selection/SelectionListChoices.java121
-rw-r--r--bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/env/core/uri/NativeFileCommand.java117
-rw-r--r--bundles/org.eclipse.wst.command.env/.classpath8
-rw-r--r--bundles/org.eclipse.wst.command.env/.cvsignore10
-rw-r--r--bundles/org.eclipse.wst.command.env/.externalToolBuilders/build-anttasks.launch20
-rw-r--r--bundles/org.eclipse.wst.command.env/.project38
-rw-r--r--bundles/org.eclipse.wst.command.env/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--bundles/org.eclipse.wst.command.env/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.wst.command.env/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.command.env/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.wst.command.env/META-INF/MANIFEST.MF27
-rw-r--r--bundles/org.eclipse.wst.command.env/about.html34
-rw-r--r--bundles/org.eclipse.wst.command.env/ant-lib/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.command.env/ant-src/ws/ant/task/WebServiceGenerationAntTask.java40
-rw-r--r--bundles/org.eclipse.wst.command.env/ant/axisclient.properties60
-rw-r--r--bundles/org.eclipse.wst.command.env/ant/axisservice.properties71
-rw-r--r--bundles/org.eclipse.wst.command.env/ant/wsant.bat38
-rw-r--r--bundles/org.eclipse.wst.command.env/ant/wsant.sh43
-rw-r--r--bundles/org.eclipse.wst.command.env/ant/wsgen.xml13
-rw-r--r--bundles/org.eclipse.wst.command.env/build-anttasks.xml52
-rw-r--r--bundles/org.eclipse.wst.command.env/build.properties14
-rw-r--r--bundles/org.eclipse.wst.command.env/plugin.properties22
-rw-r--r--bundles/org.eclipse.wst.command.env/plugin.xml35
-rw-r--r--bundles/org.eclipse.wst.command.env/schema/antScenario.exsd110
-rw-r--r--bundles/org.eclipse.wst.command.env/schema/antdatamapping.exsd131
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/Environment.properties42
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/EnvironmentMessages.java48
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/ant/AntController.java216
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/ant/AntEnvironment.java588
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/ant/AntOperationManager.java63
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/ant/AntStatusHandler.java49
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/ant/PropertyDataHolder.java33
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/ant/String2BooleanTransformer.java28
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/commandline/CommandLine.java855
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/commandline/FlagMessages.java73
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/commandline/commandline.properties34
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/common/ClassPath.java90
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/common/FileResourceOutputStream.java153
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/common/FileResourceUtils.java778
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/common/StringUtils.java296
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/common/WaitForAutoBuildCommand.java40
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/context/ActionDialogPreferenceTypeRegistry.java117
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/context/PersistentActionDialogsContext.java110
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/context/PersistentContext.java192
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/context/PersistentResourceContext.java86
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/eclipse/AccumulateStatusHandler.java148
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/eclipse/BaseEclipseEnvironment.java27
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/eclipse/BaseStatusHandler.java63
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/eclipse/EclipseEnvironment.java111
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/eclipse/EnvironmentManager.java31
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/eclipse/IEclipseStatusHandler.java32
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/plugin/EnvPlugin.java43
-rw-r--r--bundles/org.eclipse.wst.command.env/src/org/eclipse/wst/command/internal/env/preferences/ActionDialogPreferenceType.java222
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/.classpath9
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/.cvsignore9
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/.project28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/.settings/org.eclipse.jdt.core.prefs67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/META-INF/MANIFEST.MF40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/about.html34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/build-war-pde.xml108
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/build-war.xml66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/build.properties32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/plugin.properties46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/plugin.xml56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/properties/favorites_default.wsil32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/schema/wseTransportProvider.exsd145
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/servletapi/org.eclipse.equinox.servlet.api_1.0.0.v20060206.jarbin80449 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/CatalinaRunnable.java59
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/LaunchOption.java51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/LaunchOptions.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/LaunchWizardRunnable.java52
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/LaunchWizardTask.java65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/WSExplorer.java284
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/WSExplorerContext.java15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/WSExplorerLauncherCommand.java85
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeDefault.java75
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeWSE.java76
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/util/URLUtils.java101
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/util/XMLUtils.java148
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/ChunkedInputStream.java192
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/HTTPResponse.java91
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/HTTPTransport.java640
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/SOAPMessageProcessor.java497
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/SOAPTransport.java146
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transport/SOAPTransportProvider.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/util/SoapHelper.java143
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/plugin/ExplorerPlugin.java188
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/popup/PopupTestWSDL.java150
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/HTTPTransportException.java65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/IDeserializer.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/ISOAPMessage.java220
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/ISOAPTransport.java59
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/ISOAPTransportProvider.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/ISerializer.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/MessageContext.java107
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/SOAPMessage.java339
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/transport/TransportException.java51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-properties/explorer.properties183
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-properties/favorites.properties164
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-properties/uddi.properties496
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-properties/wsdl.properties172
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-properties/wsil.properties163
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/Action.java134
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/CheckWorkbenchFileReadOnlyAction.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ClearNodeAction.java98
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ClearViewElementAction.java81
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/FormAction.java72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/FormInputException.java26
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ImportToFileSystemAction.java127
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ImportToWorkbenchAction.java220
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/LaunchWebServiceWizardAction.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/LinkAction.java80
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/NodeAction.java132
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/OpenCalendarBrowserAction.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/OpenWSDLBrowserAction.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ProxyLoadPageAction.java44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ResizeFramesAction.java55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/RetrieveHistoryAction.java74
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/SelectNodeAction.java73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/SelectNodeToolAction.java163
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ShowPerspectiveAction.java77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ToggleNodeAction.java88
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/ValidateEditAction.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/WSDLFileNameHelper.java37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/actions/WriteWSDLToWorkbenchAction.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/constants/ActionInputs.java105
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/constants/FrameNames.java28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/constants/ModelConstants.java19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/constants/ToolTypes.java19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/datamodel/ListElement.java74
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/datamodel/ListManager.java122
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/datamodel/TreeElement.java43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/ActionDataParser.java229
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/ActionEngine.java233
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/constants/ActionDataConstants.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/data/ActionDescriptor.java92
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/data/ScenarioDescriptor.java26
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/data/TransactionDescriptor.java26
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/CurrentNodeSelectionTransformer.java46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/ITransformer.java19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/MassNodeIdTransformer.java104
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/MultipartFormDataParserTransformer.java76
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/NodeIdTransformer.java134
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/NodeSelectionTransformer.java163
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/engine/transformer/ViewSelectionTransformer.java121
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddBusinessToUDDIPerspectiveAction.java60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddRegistryToUDDIPerspectiveAction.java45
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddServiceInterfaceToUDDIPerspectiveAction.java60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddServiceToUDDIPerspectiveAction.java60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddToUDDIPerspectiveAction.java250
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddUserDefRegistryToUDDIPerspectiveAction.java49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/AddWSILToWSILPerspectiveAction.java77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/FavoritesAddToWSDLPerspectiveAction.java73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/FavoritesImportToFileSystemAction.java87
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/FavoritesImportToWorkbenchAction.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/FavoritesLaunchWebServiceWizardAction.java58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/FavoritesRestoreDefaultFavoritesAction.java73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/FavoritesToggleNodeAction.java78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/MultipleLinkAction.java109
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/RemoveFavoritesAction.java135
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/ResizeFavoritesFramesAction.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/SelectFavoritesNodeAction.java73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/SelectFavoritesToolAction.java92
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/SelectFavoritesUserDefUDDIRegistryNodeAction.java46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/actions/SwitchPerspectiveFromFavoritesAction.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/constants/FavoritesActionInputs.java23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/constants/FavoritesFrameNames.java26
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/constants/FavoritesModelConstants.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesElement.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesFolderElement.java49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesMainElement.java137
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIBusinessElement.java47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIBusinessFolderElement.java117
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIRegistryElement.java58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIRegistryFolderElement.java192
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIServiceElement.java47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIServiceFolderElement.java118
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIServiceInterfaceElement.java47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUDDIServiceInterfaceFolderElement.java118
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUserDefUDDIRegistryElement.java192
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesUserDefUDDIRegistryFolderElement.java117
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesWSDLServiceElement.java39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesWSDLServiceFolderElement.java110
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesWSILElement.java39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/datamodel/FavoritesWSILFolderElement.java109
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddToUDDIPerspectiveTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/AddWSILToWSILPerspectiveTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesAddToWSDLPerspectiveTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToFileSystemTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesImportToWorkbenchTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesLaunchWebServiceWizardTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesMainNode.java99
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorFolderNode.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesNavigatorNode.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesPerspective.java161
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesRestoreDefaultFavoritesTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesSetDefaultViewTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessDetailsTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessFolderNode.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIBusinessNode.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryDetailsTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryFolderNode.java62
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIRegistryNode.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceDetailsTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceFolderNode.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceDetailsTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceFolderNode.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceInterfaceNode.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUDDIServiceNode.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryDetailsTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryFolderNode.java68
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesUserDefUDDIRegistryNode.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLDetailsTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceFolderNode.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSDLServiceNode.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILDetailsTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILFolderNode.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/FavoritesWSILNode.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIBusinessTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIRegistryTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceInterfaceTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUDDIServiceTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteUserDefUDDIRegistryTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSDLServiceTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/ListFavoriteWSILTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/favorites/perspective/RemoveFavoritesTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/ActionTool.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/AddToWSDLPerspectiveTool.java20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/BreadCrumb.java55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/Controller.java224
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/FolderNode.java27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/FormTool.java102
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/FormToolProperties.java109
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/FormToolPropertiesInterface.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/History.java94
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/ImportToFileSystemTool.java19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/ImportToWorkbenchTool.java23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/LaunchOptionsManager.java93
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/LaunchWebServiceWizardTool.java23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/MessageBundle.java126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/MessageProvider.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/MessageQueue.java49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/Node.java450
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/NodeManager.java253
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/Perspective.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/SectionHeaderInfo.java61
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/SetDefaultViewTool.java20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/Tool.java113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/ToolManager.java75
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/TransportProviderRegistry.java183
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/perspective/ViewTool.java54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/AddItemsToFavoritesAction.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/AddPublisherAssertionsAction.java242
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/AddToFavoritesAction.java242
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/BusPublishServiceAdvancedAction.java53
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/BusPublishServiceSimpleAction.java54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/BusinessGetServicesAction.java81
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ClearNavigatorFolderNodeAction.java46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ClearNavigatorNodeAction.java63
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ClearNavigatorNodesAction.java53
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/CommonPublisherAssertionsAction.java103
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/CompletePublisherAssertionsAction.java217
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/FindAction.java266
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/LoginAdvancedAction.java222
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/LogoutAdvancedAction.java72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ManageReferencedServicesAction.java383
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/OpenCategoryBrowserAction.java59
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/OpenRegistryAction.java250
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/PublishAction.java238
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RefreshUDDINodeAction.java254
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RefreshUDDINodesAction.java72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindBusinessUUIDAction.java112
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindBusinessesAdvancedAction.java315
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindBusinessesSimpleAction.java119
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindServiceInterfaceUUIDAction.java112
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindServiceInterfacesAdvancedAction.java378
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindServiceInterfacesSimpleAction.java119
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindServiceUUIDAction.java112
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindServicesAdvancedAction.java392
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegFindServicesSimpleAction.java121
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegPublishBusinessAdvancedAction.java269
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegPublishBusinessSimpleAction.java113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegPublishServiceAdvancedAction.java377
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegPublishServiceInterfaceAdvancedAction.java246
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegPublishServiceInterfaceSimpleAction.java163
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RegPublishServiceSimpleAction.java221
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RemovePublisherAssertionsAction.java228
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/RemoveSubQueryItemAction.java78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ResizeUDDIFramesAction.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/SelectCategoryNodeAction.java71
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/SelectFindToolAction.java83
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/SelectNavigatorNodeAction.java76
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/SelectPropertiesToolAction.java83
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/SelectSubQueryItemAction.java229
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ServiceGetBusinessAction.java73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ServiceGetServiceInterfacesAction.java78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ServiceInterfaceGetBusinessesAction.java85
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ServiceInterfaceGetServicesAction.java85
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ShowPublisherAssertionsAction.java425
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/SwitchPerspectiveFromUDDIAction.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ToggleCategoryNodeAction.java79
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/ToggleNavigatorNodeAction.java77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/TransferSubQueryResultsAction.java148
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/TransferToAddCategoryDataAction.java42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDIAddToWSDLPerspectiveAction.java133
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDIExceptionHandler.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDIImportWSDLToFileSystemAction.java115
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDIImportWSDLToWorkbenchAction.java59
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDILaunchWebServiceWizardAction.java93
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDINodeAction.java40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UDDIPropertiesFormAction.java51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UnpublishAction.java171
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UpdateAction.java185
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UpdateBusinessAction.java416
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UpdateRegistryAction.java127
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UpdateServiceAction.java497
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/actions/UpdateServiceInterfaceAction.java343
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/constants/UDDIActionInputs.java209
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/constants/UDDIFrameNames.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/constants/UDDIModelConstants.java48
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/AbstractUDDIElement.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/BusinessElement.java50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/CategoryElement.java56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/CategoryModel.java569
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/PublishedItemsElement.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/PublisherAssertionElement.java111
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/QueryElement.java61
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/QueryParentElement.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/RegistryElement.java308
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/ServiceElement.java31
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/ServiceInterfaceElement.java31
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/datamodel/UDDIMainElement.java47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/AddToFavoritesTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/BusPublishServiceTool.java110
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/BusinessDetailsTool.java71
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/BusinessNode.java54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/CategoryNode.java76
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/DetailsTool.java78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/GetBusinessesTool.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/GetServiceInterfacesTool.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/GetServicesTool.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ItemsSummaryTool.java49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/LoginTool.java73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ManagePublisherAssertionsTool.java104
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ManageReferencedServicesTool.java103
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/MultipleFormToolPropertiesInterface.java19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/OpenRegistryTool.java65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/PublishedItemsNode.java124
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/QueryNode.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/QueryParentNode.java82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/RefreshTool.java37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/RegFindTool.java140
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/RegPublishTool.java126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/RegistryDetailsTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/RegistryNode.java249
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ResultsTool.java44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/RootCategoryNode.java59
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ServiceDetailsTool.java74
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ServiceInterfaceDetailsTool.java82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ServiceInterfaceNode.java60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/ServiceNode.java61
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/SubQueryKeyProperty.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/SubQueryTransferTarget.java93
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDIAddToWSDLPerspectiveTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDIImportWSDLToFileSystemTool.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDIImportWSDLToWorkbenchTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDILaunchWebServiceWizardTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDIMainNode.java116
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDINavigatorFolderNode.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDINavigatorNode.java43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UDDIPerspective.java499
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/perspective/UnpublishTool.java56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/uddi/util/Uddi4jHelper.java423
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/BrowserDetect.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/CharArrayWrapper.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/DirUtils.java69
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/HTMLUtils.java207
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/MultipartFormDataException.java25
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/MultipartFormDataParser.java247
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/QuickSort.java85
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/TrimFilter.java60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/util/Validator.java41
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/ClearWSDLAction.java96
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/CreateInstanceAction.java89
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpGetOperationFormAction.java55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpOperationFormAction.java113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLHttpPostOperationFormAction.java67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLSOAPOperationAction.java195
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLSOAPOperationFormAction.java88
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/InvokeWSDLSOAPOperationSourceAction.java167
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/OpenWSDLAction.java100
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/OpenXSDInfoDialogAction.java43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/RefreshWSDLAction.java135
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/ResizeWSDLFramesAction.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/SelectWSDLNavigatorNodeAction.java70
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/SelectWSDLPropertiesToolAction.java90
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/SwitchPerspectiveFromWSDLAction.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/SynchronizeFragmentViewsAction.java198
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/ToggleWSDLNavigatorNodeAction.java77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/UpdateWSDLBindingAction.java93
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/WSDLAddToFavoritesAction.java92
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/WSDLImportWSDLToFileSystemAction.java71
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/WSDLImportWSDLToWorkbenchAction.java51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/WSDLLaunchWebServiceWizardAction.java48
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/actions/WSDLPropertiesFormAction.java56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/constants/BindingTypes.java23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/constants/FragmentConstants.java97
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/constants/WSDLActionInputs.java42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/constants/WSDLFrameNames.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/constants/WSDLModelConstants.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/datamodel/Endpoint.java67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/datamodel/WSDLBindingElement.java233
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/datamodel/WSDLCommonElement.java55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/datamodel/WSDLElement.java424
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/datamodel/WSDLOperationElement.java393
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/datamodel/WSDLServiceElement.java113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IFragment.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/ISOAPEncArrayFragment.java15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/ISOAPEncodingWrapperFragment.java18
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDAttributeFragment.java20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDComplexFragment.java16
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDDelegationFragment.java16
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDElementFragment.java24
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDFragment.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDGroupAllFragment.java15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDGroupChoiceFragment.java20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDGroupFragment.java22
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDGroupSeqFragment.java15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDMapFragment.java23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDSimpleAtomicFragment.java14
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDSimpleListFragment.java15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/IXSDSimpleUnionFragment.java18
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDAttributeUseToFragmentMapper.java75
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDComplexTypeToFragmentMapper.java56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDElementDeclarationToFragmentMapper.java105
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDLiteralXMLEncodingToFragmentMapper.java88
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDParticleToFragmentMapper.java104
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDSOAPEncodingToFragmentMapper.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDSimpleTypeToFragmentMapper.java174
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDToFragmentConfiguration.java90
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDToFragmentController.java87
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/XSDToFragmentMapper.java78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/Fragment.java102
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/SOAPEncArrayFixFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/SOAPEncArrayFragment.java188
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/SOAPEncArrayRangeFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/SOAPEncodingWrapperFragment.java189
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/SOAPHeaderWrapperFragment.java287
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDAttributeFragment.java183
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDComplexFixFragment.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDComplexFragment.java338
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDComplexRangeFragment.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDComplexSimpleContentFixFragment.java184
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDComplexSimpleContentRangeFragment.java182
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDDefaultFragment.java120
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDDelegationFragment.java113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDElementFragment.java297
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDEmptyFragment.java119
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDFragment.java337
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupAllFragment.java167
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupChoiceFixFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupChoiceFragment.java168
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupChoiceRangeFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupFragment.java265
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupSeqFixFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupSeqFragment.java30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDGroupSeqRangeFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDMapFragment.java289
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicDateTimeFixFragment.java28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicDateTimeRangeFragment.java28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicEnumFixFragment.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicEnumFragment.java42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicEnumRangeFragment.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicFixFragment.java31
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicFragment.java29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleAtomicRangeFragment.java31
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleListFixFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleListFragment.java152
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleListRangeFragment.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleUnionFixFragment.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleUnionFragment.java119
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/impl/XSDSimpleUnionRangeFragment.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/util/HTTPUtil.java103
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/util/OptionVector.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/fragment/util/XSDTypeDefinitionUtil.java114
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/DetailsTool.java39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/InvokeWSDLOperationTool.java96
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/OpenWSDLTool.java37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/SOAPMessageQueue.java47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLAddToFavoritesTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingDetailsTool.java21
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLBindingNode.java61
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLDetailsTool.java43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToFileSystemTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLImportWSDLToWorkbenchTool.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLLaunchWebServiceWizardTool.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLMainNode.java60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNavigatorNode.java38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLNode.java64
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLOperationNode.java46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLPerspective.java370
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceDetailsTool.java21
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/perspective/WSDLServiceNode.java61
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/transformer/FragmentTransformer.java98
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/util/SOAPMessageUtils.java202
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsdl/xsd/WSDLPartsToXSDTypeMapper.java143
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddBusinessToFavoritesAction.java95
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddBusinessToUDDIPerspectiveAction.java91
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddServiceToFavoritesAction.java95
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddServiceToUDDIPerspectiveAction.java91
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddToFavoritesAction.java96
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddToUDDIPerspectiveAction.java128
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddWSDLServiceToFavoritesAction.java83
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/AddWSILToFavoritesAction.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/ClearWSILAction.java58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/ImportWSDLToFileSystemAction.java155
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/ImportWSILToFileSystemAction.java77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/MultipleLinkAction.java104
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/NullAction.java32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/OpenWSILAction.java183
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/OpenWSILLinkAction.java90
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/RefreshAction.java93
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/RefreshUDDIBusinessAction.java94
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/RefreshUDDIServiceAction.java94
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/RefreshWSILAction.java46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/ResizeWSILFramesAction.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/SelectWSILNodeAction.java71
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/SelectWSILToolAction.java130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/SwitchPerspectiveFromWSILAction.java66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/WSILImportWSILToWorkbenchAction.java57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/WsilAddToWSDLPerspectiveAction.java86
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/WsilImportWSDLToWorkbenchAction.java58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/WsilLaunchWebServiceWizardAction.java75
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/actions/WsilToggleNodeAction.java78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/constants/WsilActionInputs.java31
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/constants/WsilFrameNames.java26
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/constants/WsilModelConstants.java24
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilCommonElement.java56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilElement.java460
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilLinkElement.java53
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilServiceElement.java67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilUddiBusinessElement.java96
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilUddiServiceElement.java105
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilWsdlServiceElement.java86
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/datamodel/WsilWsilLinkElement.java41
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/AddBusinessToFavoritesTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/AddBusinessToUDDIPerspectiveTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/AddServiceToFavoritesTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/AddServiceToUDDIPerspectiveTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/AddWSDLServiceToFavoritesTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/AddWSILToFavoritesTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ClearWSILTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ImportWSDLToFileSystemTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ImportWSILToFileSystemTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ListUDDIBusinessTool.java44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ListUDDIServicesTool.java51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ListWSDLServicesTool.java48
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/ListWSILLinksTool.java41
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/OpenWSILLinkTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/OpenWSILTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/RefreshUDDIBusinessTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/RefreshUDDIServiceTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/RefreshWSILTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/UddiBusinessDetailsTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/UddiServiceDetailsTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILImportWSILToWorkbenchTool.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WSILPerspective.java153
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsdlServiceDetailsTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilAddToWSDLPerspectiveTool.java35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilDetailsTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilImportWSDLToWorkbenchTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilLaunchWebServiceWizardTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilLinkDetailsTool.java33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilMainNode.java51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilNavigatorNode.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilNode.java36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/perspective/WsilSetDefaultViewTool.java34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer-src/org/eclipse/wst/ws/internal/explorer/platform/wsil/transformer/WSILViewSelectionTransformer.java139
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/favorites/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/favorites/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/favorites/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/favorites/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/favorites/views/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/uddi/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/uddi/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/uddi/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/uddi/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsdl/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsdl/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsdl/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsdl/fragment/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsdl/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsil/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsil/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsil/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsil/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/classes/wsil/views/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/lib/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/WEB-INF/web.xml9
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actionengine.jsp91
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actionengine_container.jsp137
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/CheckWorkbenchFileReadOnlyActionJSP.jsp55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ClearNodeAction.inc59
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ClearViewElementAction.inc45
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ImportToFileSystemAction.inc57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ImportToWorkbenchAction.inc66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/LaunchWebServiceWizardAction.inc45
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/RetrieveHistoryActionJSP.jsp58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/SaveActionEngineScenario.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/SelectNodeAction.inc108
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/SelectNodeToolAction.inc182
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ShowPerspectiveActionJSP.jsp70
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ToggleNodeAction.inc77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/ValidateEditActionJSP.jsp48
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/actions/WriteWSDLToWorkbenchActionJSP.jsp41
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/calendar_browser.jsp44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/calendar_content.jsp626
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/calendar_toolbar.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/css/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/css/calendar.css2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/css/toolbar.css20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/css/treeview.css5
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/css/windows.css49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/AddWSILToWSILPerspectiveActionJSP.jsp60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/FavoritesAddToUDDIPerspectiveActionJSP.jsp61
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/FavoritesAddToWSDLPerspectiveActionJSP.jsp62
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/FavoritesImportToFileSystemActionJSP.jsp24
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/FavoritesImportToWorkbenchActionJSP.jsp22
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/FavoritesLaunchWebServiceWizardActionJSP.jsp19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/FavoritesToggleNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/RemoveFavoritesActionJSP.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/RemoveFavoritesConfirmJSP.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/ResizeFavoritesFramesActionJSP.jsp53
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/RestoreDefaultFavoritesActionJSP.jsp51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/RestoreDefaultFavoritesConfirmJSP.jsp27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/SelectFavoritesNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/SelectFavoritesToolActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/SelectFavoritesUserDefUDDIRegistryNodeActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/actions/SwitchPerspectiveFromFavoritesActionJSP.jsp30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_actions_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_navigator_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_navigator_content.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_navigator_toolbar.jsp66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_perspective_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_properties_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_properties_content.jsp73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_properties_toolbar.jsp82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_status_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_status_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/fav_status_toolbar.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesImportToWorkbenchForm.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesLaunchWebServiceWizardForm.jsp20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesUDDIBusinessDetailsPage.jsp100
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesUDDIRegistryDetailsPage.jsp154
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesUDDIServiceDetailsPage.jsp100
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesUDDIServiceIntDetailsPage.jsp100
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesUserDefUDDIRegistryDetailsPage.jsp311
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesWSDLDetailsPage.jsp71
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/FavoritesWSILDetailsPage.jsp72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/forms/ProcessFavoritesFramesetsForm.jsp27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/add_to_uddi_perspective_enabled.gifbin583 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/add_to_uddi_perspective_highlighted.gifbin583 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/add_to_wsil_perspective_enabled.gifbin623 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/add_to_wsil_perspective_highlighted.gifbin623 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_WSIL_enabled.gifbin597 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_WSIL_highlighted.gifbin597 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_business_enabled.gifbin591 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_business_highlighted.gifbin591 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_registry_enabled.gifbin574 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_registry_highlighted.gifbin574 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_service_enabled.gifbin564 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_service_highlighted.gifbin564 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_service_interface_enabled.gifbin605 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_service_interface_highlighted.gifbin605 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_wsdl_enabled.gifbin587 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/list_wsdl_highlighted.gifbin587 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/uddi_business_node.gifbin358 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/uddi_registry_cat_node.gifbin373 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/uddi_registry_node.gifbin353 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/uddi_service_interface_node.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/uddi_service_node.gifbin541 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/wsdl_service_node.gifbin563 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/images/wsil_node.gifbin606 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/scripts/favoritesFormSubmit.jsp43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/scripts/favoritesPanes.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/scripts/favoritesTable.jsp62
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/scripts/favoritesframesets.jsp32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteUDDIBusinessView.jsp126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteUDDIRegistryView.jsp126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteUDDIServiceInterfaceView.jsp126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteUDDIServiceView.jsp126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteUserDefUDDIRegistryView.jsp123
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteWSDLServiceView.jsp126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/favorites/views/ListFavoriteWSILView.jsp128
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/ImportToWorkbenchForm.jsp103
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/ImportWSDLAndWSILToWorkbenchForm.jsp160
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/LaunchWebServiceWizardForm.jsp57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/ProxyLoadContent.jsp73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/ProxyLoadPage.jsp36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/copyright.inc12
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/formheader.inc23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/otherActions.jsp55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/forms/simpleCommon_table.jsp26
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/actions.gifbin365 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/add_to_wsdl_perspective_enabled.gifbin1023 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/add_to_wsdl_perspective_highlighted.gifbin1023 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/back_enabled.gifbin327 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/back_highlighted.gifbin327 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/calendar.gifbin359 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/clear_enabled.gifbin545 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/clear_highlighted.gifbin545 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/details_enabled.gifbin1008 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/details_highlighted.gifbin1008 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/dlcl16/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/dlcl16/actionengine_play.gifbin145 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/dlcl16/actionengine_record.gifbin210 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/dlcl16/actionengine_save.gifbin229 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/dlcl16/actionengine_stop.gifbin149 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/elcl16/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/elcl16/actionengine_play.gifbin318 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/elcl16/actionengine_record.gifbin211 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/elcl16/actionengine_save.gifbin571 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/elcl16/actionengine_stop.gifbin154 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/eview16/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/eview16/actionengine.gifbin580 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/favorites_enabled.gifbin144 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/favorites_highlighted.gifbin144 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/favorites_perspective_enabled.gifbin145 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/favorites_perspective_highlighted.gifbin145 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/folder_closed.gifbin219 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/folder_open.gifbin324 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/forward_enabled.gifbin327 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/forward_highlighted.gifbin327 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/import_fs_enabled.gifbin330 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/import_fs_highlighted.gifbin330 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/import_to_workbench_enabled.gifbin327 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/import_to_workbench_highlighted.gifbin327 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/keyline.gifbin96 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/launch_wswizard_enabled.gifbin590 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/launch_wswizard_highlighted.gifbin590 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/line.gifbin70 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/line_last.gifbin62 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/line_notlast.gifbin92 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/minus_last.gifbin82 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/minus_notlast.gifbin82 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/navigator.gifbin139 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/plus_last.gifbin84 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/plus_notlast.gifbin85 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/refresh_enabled.gifbin216 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/refresh_highlighted.gifbin216 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/root_main.gifbin342 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/space.gifbin50 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/status.gifbin121 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/top_enabled.gifbin323 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/top_highlighted.gifbin323 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/twistclosed.gifbin81 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/twistopened.gifbin78 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/uddi_perspective_enabled.gifbin347 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/uddi_perspective_highlighted.gifbin347 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/wsdl.gifbin563 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/wsdl_perspective_enabled.gifbin1008 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/wsdl_perspective_highlighted.gifbin1008 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/wsil_perspective_enabled.gifbin599 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/images/wsil_perspective_highlighted.gifbin599 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/launch_options_registry.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/perspective_content.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/perspective_toolbar.jsp77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/browserdetect.js15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/calendarbrowser.jsp69
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formsubmit.jsp34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formutils.jsp41
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/panes.jsp39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/resumeproxyloadpage.js17
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/switchperspective.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/tables.jsp159
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/toolbar.js30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/treeview.js50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/wsdlbrowser.jsp48
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddItemsToFavoritesActionJSP.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddPublisherAssertionsActionJSP.jsp46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/AddToFavoritesActionJSP.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceAdvancedActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusPublishServiceSimpleActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/BusinessGetServicesActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CheckFavoriteExistsActionJSP.jsp65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodeActionJSP.jsp35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ClearNavigatorNodesActionJSP.jsp35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/CompletePublisherAssertionsActionJSP.jsp46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/LaunchSubQueryAction.inc56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/LoginAdvancedActionJSP.jsp54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/LogoutAdvancedActionJSP.jsp43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ManageReferencedServicesActionJSP.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/NewNodeAction.inc55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/OpenRegistryActionJSP.jsp36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodeActionJSP.jsp90
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RefreshUDDINodesActionJSP.jsp65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessUUIDActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesAdvancedActionJSP.jsp51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindBusinessesSimpleActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfaceUUIDActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesAdvancedActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceInterfacesSimpleActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServiceUUIDActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesAdvancedActionJSP.jsp51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegFindServicesSimpleActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessAdvancedActionJSP.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishBusinessSimpleActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceAdvancedActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceAdvancedActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceInterfaceSimpleActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RegPublishServiceSimpleActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemovePublisherAssertionsActionJSP.jsp46
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/RemoveSubQueryItemActionJSP.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ResizeUDDIFramesActionJSP.jsp54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectCategoryNodeActionJSP.jsp77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectFindToolActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectNavigatorNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectPropertiesToolActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SelectSubQueryItemActionJSP.jsp51
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetBusinessActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceGetServiceInterfacesActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetBusinessesActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ServiceInterfaceGetServicesActionJSP.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ShowPublisherAssertionsActionJSP.jsp57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/SwitchPerspectiveFromUDDIActionJSP.jsp30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleCategoryNodeActionJSP.jsp58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/ToggleNavigatorNodeActionJSP.jsp21
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferSubQueryResultsActionJSP.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/TransferToAddCategoryDataActionJSP.jsp44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIAddToWSDLPerspectiveActionJSP.jsp54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToFileSystemActionJSP.jsp24
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDIImportWSDLToWorkbenchActionJSP.jsp22
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UDDILaunchWebServiceWizardActionJSP.jsp19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UnpublishActionJSP.jsp36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateAction.inc47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateBusinessActionJSP.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateNewPublishActionJSP.jsp32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateRegistryActionJSP.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceActionJSP.jsp86
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceInterfaceActionJSP.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions/UpdateServiceNewPublishBusinessActionJSP.jsp36
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/actions_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/category_browser.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/category_content.jsp114
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/category_toolbar.jsp44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/data/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/data/geo-data.txt1383
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/data/naics-data.txt1814
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/data/unspsc-data.txt17054
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/BusPublishServiceAdvancedForm.jsp114
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/BusPublishServiceForm.jsp259
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/BusPublishServiceSimpleForm.jsp95
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/BusinessDetailsForm.jsp293
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/GetForm.jsp217
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ItemsSummaryForm.jsp210
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/LoginUddiForm.jsp87
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ManagePublisherAssertionsForm.jsp408
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ManageReferencedServicesForm.jsp231
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/OpenRegistryForm.jsp178
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ProcessUDDIFramesetsForm.jsp27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegDetailsForm.jsp267
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindBusinessesAdvancedForm.jsp93
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindBusinessesForm.jsp47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindBusinessesSimpleForm.jsp58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindForm.jsp708
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindServiceInterfacesAdvancedForm.jsp114
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindServiceInterfacesForm.jsp45
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindServiceInterfacesSimpleForm.jsp58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindServicesAdvancedForm.jsp85
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindServicesForm.jsp47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindServicesSimpleForm.jsp58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegFindUUIDForm.jsp65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishBusinessAdvancedForm.jsp74
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishBusinessForm.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishBusinessSimpleForm.jsp71
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishForm.jsp583
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishServiceAdvancedForm.jsp107
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishServiceForm.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishServiceInterfaceAdvancedForm.jsp101
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishServiceInterfaceForm.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishServiceInterfaceSimpleForm.jsp92
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/RegPublishServiceSimpleForm.jsp103
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ResultsForm.jsp176
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ServiceDetailsForm.jsp278
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ServiceInterfaceDetailsForm.jsp292
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/UDDIImportWSDLToWorkbenchForm.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/UDDILaunchWebServiceWizardForm.jsp20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/UnpublishForm.jsp90
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/advancedCommon_table.jsp63
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/authentication_table.jsp88
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/categories_table.jsp77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/detailsCategories_table.jsp60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/detailsDiscoveryURLs_table.jsp68
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/detailsIdentifiers_table.jsp60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/detailsLanguageInput_table.jsp82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/detailsSingleItem_table.jsp34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/discoveryURLs_table.jsp62
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/findQualifiers_table.jsp65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/findformheader.inc53
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/identifiers_table.jsp54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/languageInput_table.jsp86
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/login_authentication_table.jsp79
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/names_findQualifiers_table.jsp31
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/results_table.jsp52
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/resultsformheader.inc50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/ud_categories_table.jsp62
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/uddiObjectsPublisherAssertions_table.jsp84
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/forms/uddiObjects_table.jsp80
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/business_enabled.gifbin358 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/business_highlighted.gifbin358 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/businesses_closed_enabled.gifbin372 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/businesses_closed_highlighted.gifbin372 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/businesses_open_highlighted.gifbin369 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/category.gifbin363 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/find_enabled.gifbin347 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/find_highlighted.gifbin347 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/open_registry_enabled.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/open_registry_highlighted.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/publish_enabled.gifbin595 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/publish_highlighted.gifbin595 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/publish_service_enabled.gifbin569 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/publish_service_highlighted.gifbin569 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/publisher_assertions_enabled.gifbin362 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/publisher_assertions_highlighted.gifbin362 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/queries_closed_enabled.gifbin339 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/queries_closed_highlighted.gifbin339 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/queries_open_highlighted.gifbin339 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/query.gifbin564 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/referenced_services_enabled.gifbin612 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/referenced_services_highlighted.gifbin612 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/registry.gifbin353 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/regstrycat_obj.gifbin373 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/service_highlighted.gifbin541 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/service_interface_highlighted.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/service_interfaces_closed_enabled.gifbin594 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/service_interfaces_closed_highlighted.gifbin594 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/service_interfaces_open_highlighted.gifbin603 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/services_closed_enabled.gifbin594 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/services_closed_highlighted.gifbin594 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/services_open_enabled.gifbin594 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/services_open_highlighted.gifbin594 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish.gifbin351 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish_bus_enabled.gifbin568 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish_bus_highlighted.gifbin568 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish_service_enabled.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish_service_highlighted.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish_service_interface_enabled.gifbin599 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/images/unpublish_service_interface_highlighted.gifbin599 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/navigator_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/navigator_content.jsp50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/navigator_toolbar.jsp66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/properties_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/properties_content.jsp76
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/properties_toolbar.jsp84
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/cbpanes.jsp20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/detailstables.jsp1550
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/results.jsp135
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/uddiframesets.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/uddipanes.jsp35
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/scripts/udditables.jsp894
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/status_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/status_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/status_toolbar.jsp66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/uddi/uddi_perspective_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ClearWSDLActionJSP.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/CreateInstanceActionJSP.jsp34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpGetOperationFormActionJSP.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLHttpPostOperationFormActionJSP.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationFormActionJSP.jsp141
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/InvokeWSDLSOAPOperationSourceActionJSP.jsp175
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/OpenWSDLActionJSP.jsp58
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/RefreshWSDLActionJSP.jsp73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ResizeWSDLFramesActionJSP.jsp54
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLNavigatorNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SelectWSDLPropertiesToolActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchPerspectiveFromWSDLActionJSP.jsp30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchReadOnlyFragmentViewsActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SwitchWSDLDetailsViewsActionJSP.jsp37
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionAbortJSP.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/SynchronizeFragmentViewsActionJSP.jsp56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/ToggleWSDLNavigatorNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/UpdateWSDLBindingActionJSP.jsp34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLAddToFavoritesActionJSP.jsp40
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLCheckFavoriteExistsActionJSP.jsp65
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToFileSystemActionJSP.jsp23
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLImportWSDLToWorkbenchActionJSP.jsp22
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/actions/WSDLLaunchWebServiceWizardActionJSP.jsp19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsFormView.jsp108
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/FragmentsSoapView.jsp376
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/InvokeWSDLOperationForm.jsp208
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/OpenWSDLForm.jsp84
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ProcessWSDLFramesetsForm.jsp27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsFormView.jsp229
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/ReadOnlyFragmentsSoapView.jsp119
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLBindingDetailsForm.jsp111
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsForm.jsp104
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsFormView.jsp106
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLDetailsSourceView.jsp45
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLImportWSDLToWorkbenchForm.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLLaunchWebServiceWizardForm.jsp20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/WSDLServiceDetailsForm.jsp78
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/bindings_table.jsp72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/endpoint_table.jsp139
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/operations_table.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/forms/services_table.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayFixWFragmentJSP.jsp55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRFragmentJSP.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPEncArrayRangeWFragmentJSP.jsp89
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/SOAPHeaderWrapperWFragmentJSP.jsp86
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexFixWFragmentJSP.jsp123
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRFragmentJSP.jsp91
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexRangeWFragmentJSP.jsp132
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexSimpleContentFixWFragmentJSP.jsp129
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexSimpleContentRFragmentJSP.jsp95
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDComplexSimpleContentRangeWFragmentJSP.jsp137
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultInfoFragmentJSP.jsp201
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentJSP.jsp76
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultRFragmentXML.jsp113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDefaultWFragmentJSP.jsp74
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationRFragmentJSP.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDDelegationWFragmentJSP.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDElementRFragmentJSP.jsp50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDElementWFragmentJSP.jsp50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyRFragmentJSP.jsp17
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDEmptyWFragmentJSP.jsp77
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupAllWFragmentJSP.jsp190
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceFixWFragmentJSP.jsp119
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRFragmentJSP.jsp79
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupChoiceRangeWFragmentJSP.jsp152
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupRFragmentJSP.jsp89
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqFixWFragmentJSP.jsp55
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDGroupSeqRangeWFragmentJSP.jsp101
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfoDialog.jsp52
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_content.jsp47
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDInfo_toolbar.jsp50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeFixWFragmentJSP.jsp97
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicDateTimeRangeWFragmentJSP.jsp113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumFixWFragmentJSP.jsp109
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicEnumRangeWFragmentJSP.jsp165
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicFixWFragmentJSP.jsp95
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicInfoFragmentJSP.jsp323
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRFragmentJSP.jsp60
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleAtomicRangeWFragmentJSP.jsp140
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListFixWFragmentJSP.jsp57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRFragmentJSP.jsp45
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleListRangeWFragmentJSP.jsp103
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionFixWFragmentJSP.jsp144
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRFragmentJSP.jsp44
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/fragment/XSDSimpleUnionRangeWFragmentJSP.jsp157
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_enabled.gifbin590 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/invoke_wsdl_operation_highlighted.gifbin590 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_enabled.gifbin579 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/open_wsdl_highlighted.gifbin579 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_binding_node.gifbin615 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_operation_node.gifbin359 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/images/wsdl_service_node.gifbin585 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/fragmenttables.jsp202
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlframesets.jsp32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/scripts/wsdlpanes.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/soap_envelope_xml.jsp34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_actions_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_container.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_content.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_navigator_toolbar.jsp66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_perspective_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_content.jsp73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_properties_toolbar.jsp81
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_result_content.jsp72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_container.jsp39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_content.jsp43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl/wsdl_status_toolbar.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl_browser.jsp57
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl_content.jsp404
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsdl_toolbar.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsexplorer.jsp88
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/ClearNodeConfirmJSP.jsp38
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/ClearWSILActionJSP.jsp18
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/ImportWSDLToFileSystemActionJSP.jsp24
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/ImportWSILToFileSystemActionJSP.jsp24
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/OpenWSILActionJSP.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/OpenWSILLinkActionJSP.jsp67
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/RefreshActionJSP.jsp63
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/ResizeWSILFramesActionJSP.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/SelectWSILNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/SelectWSILToolActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/SwitchPerspectiveFromWSILActionJSP.jsp30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WSILImportWSILToWorkbenchActionJSP.jsp22
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilAddToFavoritesActionJSP.jsp39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilAddToUDDIPerspectiveActionJSP.jsp56
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilAddToWSDLPerspectiveActionJSP.jsp53
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilCheckFavoriteExistsActionJSP.jsp72
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilImportWSDLToWorkbenchActionJSP.jsp22
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilLaunchWebServiceWizardActionJSP.jsp19
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/actions/WsilToggleNodeActionJSP.jsp33
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/OpenWSILForm.jsp101
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/ProcessWSILFramesetsForm.jsp27
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/UddiBusinessDetailsPage.jsp126
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/UddiServiceDetailsPage.jsp132
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/WSILImportWSILToWorkbenchForm.jsp113
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/WsdlServiceDetailsPage.jsp148
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/WsilDetailsPage.jsp88
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/WsilImportWSDLToWorkbenchForm.jsp50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/WsilLaunchWebServiceWizardForm.jsp20
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/forms/WsilLinkDetailsPage.jsp84
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/add_to_UDDI_perspective_enabled.gifbin583 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/add_to_UDDI_perspective_highlighted.gifbin583 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_UDDI_service_enabled.gifbin564 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_UDDI_service_highlighted.gifbin564 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_WSDL_service_enabled.gifbin587 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_WSDL_service_highlighted.gifbin587 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_WSIL_enabled.gifbin597 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_WSIL_highlighted.gifbin586 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_business_enabled.gifbin591 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/list_business_highlighted.gifbin591 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/open_wsil_enabled.gifbin596 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/open_wsil_highlighted.gifbin596 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/images/wsil_node.gifbin606 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/wsilAbstractTable.jsp82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/wsilFormSubmit.jsp43
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/wsilNameTable.jsp82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/wsilPanes.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/wsilTable.jsp82
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/scripts/wsilframesets.jsp32
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/views/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/views/UddiBusinessView.jsp157
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/views/UddiServicesView.jsp158
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/views/WsdlServicesView.jsp134
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/views/WsilLinksView.jsp130
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_actions_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_navigator_container.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_navigator_content.jsp49
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_navigator_toolbar.jsp66
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_perspective_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_properties_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_properties_content.jsp73
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_properties_toolbar.jsp81
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_status_container.jsp29
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_status_content.jsp42
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/wsil/wsil_status_toolbar.jsp66
-rw-r--r--bundles/org.eclipse.wst.ws.parser/.classpath7
-rw-r--r--bundles/org.eclipse.wst.ws.parser/.cvsignore8
-rw-r--r--bundles/org.eclipse.wst.ws.parser/.project28
-rw-r--r--bundles/org.eclipse.wst.ws.parser/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.wst.ws.parser/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.wst.ws.parser/META-INF/MANIFEST.MF22
-rw-r--r--bundles/org.eclipse.wst.ws.parser/about.html34
-rw-r--r--bundles/org.eclipse.wst.ws.parser/build.properties16
-rw-r--r--bundles/org.eclipse.wst.ws.parser/plugin.properties16
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/disco/DISCOContractReference.java28
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/disco/DISCOParser.java123
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/disco/DISCOReference.java27
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/discovery/NetUtils.java93
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/discovery/WebServicesParserExt.java32
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesConstants.java22
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesLink.java34
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesRegistryTypeAbstract.java429
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesService.java34
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesUDDIBusiness.java49
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesUDDIRegistry.java88
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesUDDIService.java51
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesUDDIServiceInterface.java51
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesWSDL.java38
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/FavoritesWSIL.java39
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesRegistryType.java36
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesUDDIBusiness.java23
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesUDDIRegistry.java25
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesUDDIService.java23
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesUDDIServiceInterface.java23
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesWSDL.java21
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/favorites/IFavoritesWSIL.java21
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/plugin/ParserPlugin.java111
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/HTMLHeadHandler.java296
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/IllegalArgumentsException.java22
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/UDDIURIHelper.java63
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/WSILMessages.java22
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/WWWAuthenticationException.java46
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/WWWAuthenticationHandler.java19
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/WebServiceEntity.java148
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/WebServicesParser.java628
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/internal/parser/wsil/wsil.properties22
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/parser/PluginMessages.java28
-rw-r--r--bundles/org.eclipse.wst.ws.parser/src/org/eclipse/wst/ws/parser/plugin.properties18
-rw-r--r--bundles/org.eclipse.wst.ws.ui/.classpath7
-rw-r--r--bundles/org.eclipse.wst.ws.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.wst.ws.ui/.project28
-rw-r--r--bundles/org.eclipse.wst.ws.ui/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.wst.ws.ui/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.wst.ws.ui/META-INF/MANIFEST.MF25
-rw-r--r--bundles/org.eclipse.wst.ws.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.ws.ui/build.properties7
-rw-r--r--bundles/org.eclipse.wst.ws.ui/plugin.properties19
-rw-r--r--bundles/org.eclipse.wst.ws.ui/plugin.xml35
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/WstWSUIPlugin.properties66
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/WstWSUIPluginMessages.java60
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/command/OpenEditorCommand.java122
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/plugin/WSUIPlugin.java72
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/preferences/WebServicesPreferencePage.java59
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/utils/AdapterUtils.java62
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/wsi/preferences/WSICompliancePreferencePage.java362
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/wsi/properties/WSICompliancePropertyPage.java242
-rw-r--r--bundles/org.eclipse.wst.ws.ui/src/org/eclipse/wst/ws/internal/ui/wsrt/IObjectSelector.java28
-rw-r--r--bundles/org.eclipse.wst.ws/.classpath7
-rw-r--r--bundles/org.eclipse.wst.ws/.cvsignore7
-rw-r--r--bundles/org.eclipse.wst.ws/.project28
-rw-r--r--bundles/org.eclipse.wst.ws/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.wst.ws/.settings/org.eclipse.pde.prefs12
-rw-r--r--bundles/org.eclipse.wst.ws/META-INF/MANIFEST.MF54
-rw-r--r--bundles/org.eclipse.wst.ws/RT.genmodel117
-rw-r--r--bundles/org.eclipse.wst.ws/RT.xsd2ecore120
-rw-r--r--bundles/org.eclipse.wst.ws/about.html34
-rw-r--r--bundles/org.eclipse.wst.ws/build.properties19
-rw-r--r--bundles/org.eclipse.wst.ws/component.xml12
-rw-r--r--bundles/org.eclipse.wst.ws/jmerger/merge.xml11
-rw-r--r--bundles/org.eclipse.wst.ws/model/Index.xsd52
-rw-r--r--bundles/org.eclipse.wst.ws/model/Registry.xsd43
-rw-r--r--bundles/org.eclipse.wst.ws/model/Taxonomy.xsd46
-rw-r--r--bundles/org.eclipse.wst.ws/model/UDDIRegistry.xsd48
-rw-r--r--bundles/org.eclipse.wst.ws/org.eclipse.wst.ws.internal.model.v10.registry.ecore141
-rw-r--r--bundles/org.eclipse.wst.ws/org.eclipse.wst.ws.internal.model.v10.rtindex.ecore140
-rw-r--r--bundles/org.eclipse.wst.ws/org.eclipse.wst.ws.internal.model.v10.taxonomy.ecore167
-rw-r--r--bundles/org.eclipse.wst.ws/org.eclipse.wst.ws.internal.model.v10.uddiregistry.ecore133
-rw-r--r--bundles/org.eclipse.wst.ws/plugin.properties30
-rw-r--r--bundles/org.eclipse.wst.ws/plugin.xml44
-rw-r--r--bundles/org.eclipse.wst.ws/schema/webServiceLocator.exsd197
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/WstWSPlugin.properties53
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/WstWSPluginMessages.java50
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/common/BundleUtils.java74
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/common/HTTPUtility.java70
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/common/LiveWSDLFilter.java102
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/common/WSDLUtility.java172
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/data/LabelsAndIds.java48
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/BasicConnection.java63
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/BasicElement.java344
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/BasicModel.java149
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/BasicProperty.java70
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/BasicRel.java100
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/Connection.java57
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/Element.java265
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/ElementAdapter.java62
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/ElementListener.java56
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/Model.java135
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/Property.java70
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/PropertyAddEvent.java66
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/PropertyChangeEvent.java81
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/PropertyRemoveEvent.java64
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/Rel.java86
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/RelAddEvent.java110
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/datamodel/RelRemoveEvent.java122
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/ext/WebServiceExecutable.java29
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/ext/WebServiceExtension.java46
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/ext/WebServiceExtensionImpl.java100
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/ext/WebServiceExtensionRegistry.java42
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/ext/WebServiceExtensionRegistryImpl.java115
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/AbstractClientFragment.java86
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/AbstractServiceFragment.java86
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/AssembleClientFragment.java53
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/AssembleServiceFragment.java53
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/DeployClientFragment.java54
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/DeployServiceFragment.java54
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/DevelopClientFragment.java53
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/DevelopServiceFragment.java53
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/InstallClientFragment.java61
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/InstallServiceFragment.java62
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/RunClientFragment.java61
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/extensions/RunServiceFragment.java62
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/Description.java81
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/DocumentRoot.java165
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/Name.java81
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/Registry.java144
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryFactory.java73
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryPackage.java570
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DescriptionImpl.java216
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DocumentRootImpl.java367
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/impl/NameImpl.java216
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryFactoryImpl.java108
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryImpl.java368
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryPackageImpl.java586
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryAdapterFactory.java171
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceFactoryImpl.java63
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceImpl.java32
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistrySwitch.java193
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/Description.java81
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/DocumentRoot.java165
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/Index.java97
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/Name.java81
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexFactory.java73
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexPackage.java550
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DescriptionImpl.java216
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DocumentRootImpl.java367
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/IndexImpl.java267
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/NameImpl.java216
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexFactoryImpl.java108
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexPackageImpl.java573
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexAdapterFactory.java171
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceFactoryImpl.java63
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceImpl.java32
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexSwitch.java193
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Category.java117
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/DocumentRoot.java165
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Name.java81
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Taxonomy.java198
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyFactory.java73
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyPackage.java650
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/CategoryImpl.java313
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/DocumentRootImpl.java367
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/NameImpl.java216
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyFactoryImpl.java108
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyImpl.java476
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyPackageImpl.java658
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyAdapterFactory.java171
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceFactoryImpl.java63
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceImpl.java32
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomySwitch.java193
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/DocumentRoot.java138
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/Taxonomies.java46
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistry.java243
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryFactory.java64
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryPackage.java568
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/DocumentRootImpl.java326
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/TaxonomiesImpl.java155
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryFactoryImpl.java97
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryImpl.java631
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryPackageImpl.java542
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryAdapterFactory.java173
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceFactoryImpl.java63
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceImpl.java32
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistrySwitch.java190
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/monitor/GetMonitorCommand.java179
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/plugin/WSPlugin.java160
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/MergeDefaults.java28
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/PersistentMergeContext.java61
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/PersistentWSDLValidationContext.java77
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/PersistentWSIAPContext.java44
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/PersistentWSIContext.java164
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/PersistentWSISSBPContext.java33
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/PersistentWaitForWSDLValidationContext.java55
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/preferences/WSIComplianceUtils.java84
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/GenericResourceFactory.java57
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/IRegistryManager.java273
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/ITaxonomyFinder.java35
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/RegistryManager.java531
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/RegistryService.java467
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/UDDIRegistryService.java230
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/registry/UDDITaxonomyFinder.java39
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/util/UniversalPathTransformer.java187
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/util/WSDLCopier.java509
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/AbstractWebServiceLocator.java97
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/IWebServiceLocator.java77
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/WebServiceCategory.java114
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/WebServiceFinder.java393
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/WebServiceLocatorExtension.java33
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/WebServiceLocatorRegistry.java78
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsfinder/WorkspaceWSDLLocator.java149
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsil/AddWSDLToWSILCommand.java518
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/AbstractWebService.java49
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/AbstractWebServiceClient.java50
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/AbstractWebServiceRuntime.java29
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IContext.java40
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IMerger.java46
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/ISelection.java18
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IWebService.java29
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IWebServiceClient.java28
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IWebServicePublisher.java20
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IWebServiceRuntime.java28
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/IWebServiceTester.java18
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/Merger.java35
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/SimpleContext.java129
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/TestInfo.java277
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/WebServiceClientInfo.java69
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/WebServiceInfo.java119
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/WebServiceScenario.java83
-rw-r--r--bundles/org.eclipse.wst.ws/src/org/eclipse/wst/ws/internal/wsrt/WebServiceState.java91
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/.classpath15
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/.cvsignore8
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/.project28
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/.settings/org.eclipse.jdt.core.prefs54
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/META-INF/MANIFEST.MF87
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/build.properties23
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/dlcl16/showproperties_obj.gifbin577 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/dtool16/capturescreen.gifbin384 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/elcl16/showproperties_obj.gifbin577 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/etool16/capturescreen.gifbin613 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/reloadgrammar.gifbin367 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/validate.gifbin558 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/icons/wsdl_file_obj.gifbin572 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/plugin.properties34
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/plugin.xml521
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/schema/extensibilityElementFilter.exsd115
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/schema/extensibilityItemTreeProviders.exsd115
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/schema/internalEditorExtensions.exsd107
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/schema/propertyDescriptorProvider.exsd115
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/DefaultEditorMode.java47
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/IDesignViewerActionBarContributor.java18
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/ISelectionMapper.java17
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/InternalWSDLMultiPageEditor.java575
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/Messages.java155
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/ReloadDependenciesActionDelegate.java41
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/SourceEditorActionBarContributor.java207
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/SourcePageActionContributor.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/StructuredTextViewerConfigurationWSDL.java24
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLActionBarContributor.java208
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java457
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLEditorResourceChangeHandler.java317
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLPreferencePage.java94
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLSelectionMapper.java39
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/AddElementAction.java330
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/AddElementDeclarationAction.java54
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/AddImportAction.java78
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/AddWSISchemaImportAction.java202
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/BaseNodeAction.java39
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/EditNamespacesAction.java125
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/IWSDLToolbarAction.java18
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/OpenInNewEditor.java64
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/RenameAction.java142
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/actions/SmartRenameAction.java594
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/WSDLAdapterFactory.java173
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/WSDLBaseAdapter.java217
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11AddPartAction.java109
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11OpenImportAction.java60
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11SetExistingElementAction.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11SetExistingMessageAction.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11SetExistingTypeAction.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11SetNewElementAction.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11SetNewMessageAction.java59
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/actions/W11SetNewTypeAction.java82
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Binding.java289
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11BindingMessageReference.java135
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11BindingOperation.java106
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11CategoryAdapter.java144
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Description.java354
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11EndPoint.java257
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Import.java76
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Interface.java85
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Message.java105
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11MessageReference.java465
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Operation.java202
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11ParameterForAttribute.java128
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11ParameterForElement.java145
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11ParameterForPart.java244
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Service.java105
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11Type.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/basic/W11TypesCategoryAdapter.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddBindingCommand.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddEndPointCommand.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddFaultParameterCommand.java67
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddImportCommand.java45
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddInputParameterCommand.java70
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddInterfaceCommand.java66
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddMessageCommand.java57
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddOperationCommand.java117
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddOutputParameterCommand.java80
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddPartCommand.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddSchemaCommand.java69
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11AddServiceCommand.java53
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11DeleteCommand.java124
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11DeleteParameterCommand.java113
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11EditNamespacesCommand.java178
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11GenerateBindingCommand.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11RenameCommand.java256
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11ReorderMessageReferencesCommand.java122
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11ReorderParametersCommand.java171
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11SetAddressCommand.java208
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11SetBindingCommand.java117
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11SetElementCommand.java116
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11SetInterfaceCommand.java36
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11SetTypeCommand.java128
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/commands/W11TopLevelElementCommand.java186
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/specialized/W11AddressExtensibilityElementAdapter.java47
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/specialized/W11ExtensibilityElementAdapter.java18
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/visitor/W11FindInnerElementVisitor.java48
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/visitor/W11XSDVisitor.java212
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/adapters/visitor/W11XSDVisitorForFields.java109
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBaseParameterCommand.java558
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingCommand.java47
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingFaultCommand.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingInputCommand.java42
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOperationCommand.java104
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddBindingOutputCommand.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddExtensionElementCommand.java79
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddFaultCommand.java79
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddFaultParameterCommand.java167
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddImportCommand.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddInputCommand.java83
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddInputParameterCommand.java280
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddMessageCommand.java109
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddMessageReferenceCommand.java71
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOperationCommand.java145
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputCommand.java82
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddOutputParameterCommand.java90
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddPartCommand.java209
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddPortCommand.java49
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddPortTypeCommand.java75
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddServiceCommand.java72
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddTypesCommand.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddUnknownExtensibilityElementCommand.java80
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddXSDElementDeclarationCommand.java147
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddXSDSchemaCommand.java84
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/AddXSDTypeDefinitionCommand.java162
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/WSDLElementCommand.java19
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/dialogs/EditNamespacesDialog.java126
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/dialogs/GenerateBindingOnSaveDialog.java99
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/dialogs/NewComponentDialog.java189
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/dialogs/ProtocolComponentControl.java346
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/dialogs/W11BrowseComponentDialog.java137
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/dialogs/W11NewComponentDialog.java135
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/W11BindingReferenceEditManager.java115
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/W11InterfaceReferenceEditManager.java112
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/W11MessageReferenceEditManager.java128
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLBaseSearchListProvider.java110
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLBindingSearchListProvider.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLComponentDescriptionProvider.java178
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLComponentFinder.java89
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLInterfaceSearchListProvider.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLMessageSearchListProvider.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLXSDElementReferenceEditManager.java99
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/edit/WSDLXSDTypeReferenceEditManager.java111
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/ExtensibilityItemTreeProviderRegistry.java33
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/ExtensibleTypeSystemProvider.java85
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/INodeAssociationProvider.java20
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/INodeReconciler.java21
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/ITreeChildProvider.java23
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/ITypeSystemProvider.java30
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/NSKeyedExtensionRegistry.java142
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/WSDLEditorConfiguration.java185
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/WSDLEditorExtension.java36
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/WSDLEditorExtensionProperties.java69
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/extensions/WSDLNodeAssociationProvider.java80
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/ExtensiblityElementFilter.java18
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/HttpExtensiblityElementFilter.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/MimeExtensiblityElementFilter.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/SoapExtensiblityElementFilter.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/filter/XSDExtensiblityElementFilter.java31
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/back.gifbin873 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/bind_asct_val_not_obj.gifbin222 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/bind_asct_val_obj.gifbin128 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/binding_obj.gifbin610 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/bindingheader_obj.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/browsebutton.gifbin53 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/complextype_obj.gifbin155 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/delete_obj.gifbin351 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/element_obj.gifbin351 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/error_co.gifbin82 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/fault_obj.gifbin360 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/file_obj.gifbin349 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/fldr_el.gifbin366 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/forward.gifbin874 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/hidebinding.gifbin315 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/httpaddress_obj.gifbin556 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/httpbinding_obj.gifbin376 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/httpoperation_obj.gifbin598 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/httpurlencoded_obj.gifbin596 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/httpurlreplacement_obj.gifbin232 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/import_obj.gifbin114 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/importheader_obj.gifbin336 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/input_obj.gifbin338 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/message_obj.gifbin577 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/messageheader_obj.gifbin581 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/namespace_obj.gifbin207 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/namespacedecl_obj.gifbin211 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/new_wsdl_wiz.pngbin5955 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/operation_obj.gifbin150 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/operationbinding_obj.gifbin615 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/output_no.gifbin148 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/output_obj.gifbin347 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/output_yes.gifbin343 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/page_banner.gifbin5600 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/part_obj.gifbin200 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/port_obj.gifbin220 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/porttype_obj.gifbin576 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/porttypeheader_obj.gifbin603 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/prtcmplxpltyp_obj.gifbin351 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/prtelemt_obj.gifbin599 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/prtsmpltyp_obj.gifbin350 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/quickassist.gifbin225 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/service_obj.gifbin542 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/serviceheader_obj.gifbin580 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/simpletype_obj.gifbin150 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soap_obj.gifbin589 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapaddress_obj.gifbin577 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapatt_obj.gifbin583 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapbinding_obj.gifbin637 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapbody_obj.gifbin585 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapfault_obj.gifbin605 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapheader_obj.gifbin587 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapheaderfault_obj.gifbin598 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/soapoperation_obj.gifbin598 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/types_obj.gifbin592 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/validate.gifbin558 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/wsdl_file_obj.gifbin572 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/xsd_file_obj.gifbin574 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/icons/xsd_obj.gifbin574 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/HTTPLabelProvider.java52
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/label/providers/SOAPLabelProvider.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/messages.properties125
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/properties/sections/EditorModeSectionFilter.java16
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/properties/sections/W11ExtensionsSection.java265
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/properties/sections/W11MessageReferenceSection.java234
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/properties/sections/W11MessageReferenceSectionFilter.java28
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/properties/sections/W11ParameterSection.java219
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/properties/sections/W11ParameterSectionFilter.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/reconciler/DelegatingSourceValidatorForWSDL.java67
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/text/WSDLHyperlink.java117
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/text/WSDLHyperlinkDetector.java105
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/text/WSDLModelAdapter.java187
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/text/WSDLModelLocatorAdapterFactory.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/text/WSDLModelQueryExtension.java237
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/text/WSDLModelReconcileAdapter.java154
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/ComponentReferenceUtil.java959
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/CreateWSDLElementHelper.java368
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/NameUtil.java581
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/NodeAssociationManager.java146
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/OpenOnSelectionHelper.java326
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/ReferenceEditManagerHelper.java123
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/ValidateHelper.java405
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/W11OpenExternalEditorHelper.java172
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/WSDLAdapterFactoryHelper.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/WSDLEditorUtil.java294
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/WSDLResourceUtil.java145
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/WSDLSetComponentHelper.java244
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/XSDComponentHelper.java282
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/util/XSDTypeSystemProvider.java212
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/visitor/BaseRenamer.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/visitor/BindingRenamer.java42
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/visitor/MessageRenamer.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/visitor/PortTypeRenamer.java42
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/visitor/WSDLVisitor.java197
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/visitor/WSDLVisitorForParameters.java97
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/BindingWizard.java302
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/ContentGeneratorOptionsPage.java26
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/HttpBindingOptionsPage.java143
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/NamespaceTable.java702
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/NewWSDLWizard.java443
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/PortWizard.java162
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/SoapBindingOptionsPage.java189
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/WSDLNewFileOptionsPage.java690
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/wizards/WSDLNewFilePage.java133
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/xsd/XSDNodeAssociationProvider.java77
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/ASDEditorCSHelpIds.java191
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/ASDEditorPlugin.java68
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/ASDLabelProvider.java91
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/ASDMultiPageEditor.java321
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/ASDSelectionManager.java100
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/Messages.java80
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddBindingAction.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddEndPointAction.java55
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddFaultAction.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddImportAction.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddInputAction.java59
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddInterfaceAction.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddMessageAction.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddOperationAction.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddOutputAction.java59
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddParameterAction.java57
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddSchemaAction.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDAddServiceAction.java59
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDCaptureScreenAction.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDDeleteAction.java57
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDDirectEditAction.java84
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDDragAction.java50
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDDragReorderAction.java284
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDEditNamespacesAction.java74
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDGenerateBindingAction.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDOpenSchemaAction.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDSetExistingBindingAction.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDSetExistingInterfaceAction.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDSetNewBindingAction.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ASDSetNewInterfaceAction.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/BaseSelectionAction.java157
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/IASDAddCommand.java15
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/actions/ShowPropertiesViewAction.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/DesignViewContextMenuProvider.java170
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/DesignViewGraphicalViewer.java151
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/DesignViewGraphicsConstants.java49
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/KeyboardDragImpl.java78
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/connections/CenteredConnectionAnchor.java88
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/connections/TopLeftConnectionAnchor.java35
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/ASDCCombo.java1511
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/ASDComboBoxCellEditor.java302
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/ComboBoxCellEditorManager.java204
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/DirectEditSelectionTool.java60
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/LabelCellEditorLocator.java70
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/LabelEditManager.java140
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/directedit/TypeReferenceDirectEditManager.java178
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/ASDEditPartFactory.java97
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/ASDRootEditPart.java32
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/AbstractBoxtEditPart.java125
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/BaseEditPart.java166
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/BindingColumnEditPart.java64
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/BindingContentEditPart.java94
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/BindingEditPart.java307
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/ColumnEditPart.java66
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/DefinitionsEditPart.java159
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/EditPartNavigationHandlerUtil.java195
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/EndPointEditPart.java385
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/IFeedbackHandler.java16
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/INamedEditPart.java19
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/InterfaceEditPart.java169
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/MessageReferenceEditPart.java268
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/OperationEditPart.java157
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/ParameterEditPart.java232
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/ParameterTypeEditPart.java403
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/ServiceEditPart.java165
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/model/AbstractModelCollection.java86
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/model/BindingColumn.java76
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/model/BindingContentPlaceHolder.java23
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/model/IActionProvider.java16
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/model/InterfaceColumn.java64
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editparts/model/ServiceColumn.java81
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editpolicies/ASDDragAndDropCommand.java135
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editpolicies/ASDDragAndDropEditPolicy.java38
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editpolicies/ASDGraphNodeDragTracker.java30
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editpolicies/ASDLabelDirectEditPolicy.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/editpolicies/ASDSelectionEditPolicy.java89
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/BaseLinkIconFigure.java216
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/BoxComponentFigure.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/ComponentReferenceConnection.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/HeadingFigure.java81
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/LinkIconFigure.java90
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/ListFigure.java79
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/figures/ModelDiagnosticInfo.java71
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/layouts/BindingColumnLayout.java145
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/layouts/BindingContentLayout.java105
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/layouts/BindingLayout.java60
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/layouts/ColumnData.java83
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/design/layouts/RowLayout.java182
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IASDObject.java26
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IASDObjectListener.java15
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IBinding.java28
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IBindingMessageReference.java19
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IBindingOperation.java20
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IDescription.java38
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IEndPoint.java24
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IImport.java19
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IInterface.java25
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IMessage.java23
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IMessageReference.java30
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/INamedObject.java20
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IOperation.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IParameter.java35
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IService.java21
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/facade/IType.java18
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/messages.properties50
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/outline/ASDContentOutlinePage.java98
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/outline/ASDContentOutlineProvider.java156
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/outline/ICategoryAdapter.java17
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/outline/ITreeElement.java23
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/ASDAbstractSection.java410
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/ASDTabbedPropertySheetPage.java48
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/BindingSection.java214
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/DocumentationSection.java154
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/EndPointSection.java247
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/ImportSection.java310
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/NameSection.java243
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/NamespaceSection.java259
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/ParameterSection.java261
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/properties/sections/ReferenceSection.java138
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/ASDEditPartFactoryHelper.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/EndPointComparator.java54
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/IOpenExternalEditorHelper.java19
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/refactor/WSDLComponentRenameParticipant.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/refactor/actions/RenameComponentAction.java204
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/refactor/actions/WSDLRefactorActionGroup.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/refactor/actions/WSDLRefactorGroupActionDelegate.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/refactor/actions/WSDLSelectionDispatchAction.java39
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/IWSDLSearchConstants.java34
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchContributor.java77
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-refactor/org/eclipse/wst/wsdl/ui/internal/search/WSDLSearchParticipant.java130
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-search/org/eclipse/wst/wsdl/ui/internal/search/actions/WSDLFindReferencesAction.java162
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-search/org/eclipse/wst/wsdl/ui/internal/search/actions/WSDLFindReferencesInProjectAction.java45
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-search/org/eclipse/wst/wsdl/ui/internal/search/actions/WSDLFindReferencesInWorkingSetAction.java78
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-search/org/eclipse/wst/wsdl/ui/internal/search/actions/WSDLReferencesSearchGroup.java44
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-search/org/eclipse/wst/wsdl/ui/internal/search/actions/WSDLSearchReferencesGroupActionDelegate.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-soap/org/eclipse/wst/wsdl/ui/internal/soap/customizations/Messages.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-soap/org/eclipse/wst/wsdl/ui/internal/soap/customizations/SOAPNodeEditorProvider.java96
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-soap/org/eclipse/wst/wsdl/ui/internal/soap/customizations/SOAPSelectPartsDialog.java142
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-soap/org/eclipse/wst/wsdl/ui/internal/soap/customizations/messages.properties12
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/.classpath12
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/.cvsignore10
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/.project28
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/META-INF/MANIFEST.MF32
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/about.html34
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/build.properties9
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/exsd/extvalidator.exsd127
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/exsd/wsdl11validator.exsd132
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/lib/.cvsignore1
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/plugin.properties23
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/plugin.xml51
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ClassloaderWSDLValidatorDelegate.java82
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/Constants.java50
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ControllerValidationInfo.java32
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/IValidationInfo.java81
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/IValidationMessage.java75
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/IValidationReport.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/IWSDLValidator.java31
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ValidationController.java393
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ValidationInfoImpl.java305
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ValidationMessageImpl.java193
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ValidatorRegistry.java144
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/WSDLValidationConfiguration.java59
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/WSDLValidator.java126
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/WSDLValidatorDelegate.java49
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/EclipseLogger.java53
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/EclipseWSDL11ValidatorDelegate.java60
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/EclipseWSDLValidatorDelegate.java72
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/InlineSchemaModelGrammarPoolImpl.java50
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/URIResolverWrapper.java91
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/ValidateWSDLPlugin.java307
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/Validator.java157
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/WSDLDelegatingValidator.java31
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/eclipse/WSDLValidator.java52
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/exception/ValidateWSDLException.java33
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/ILogger.java60
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/LoggerFactory.java62
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/logging/StandardLogger.java42
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/resolver/IExtensibleURIResolver.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/resolver/IURIResolutionResult.java47
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/resolver/URIResolutionResult.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/resolver/URIResolver.java283
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/resolver/URIResolverDelegate.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/AntLogger.java65
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/ExtensionValidator.java41
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/Property.java66
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/URIResolver.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/WSDLValidate.java489
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/XMLCatalogImpl.java75
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/text/Log4jLogger.java143
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/text/WSDLValidate.java333
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/text/WSDLValidateTextUIMessages.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/ui/text/wsdlvalidatetextui.properties33
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/util/ErrorMessage.java216
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/util/LazyURLInputStream.java163
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/util/MessageGenerator.java93
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/ClassloaderWSDL11ValidatorDelegate.java68
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/IWSDL11ValidationInfo.java129
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/IWSDL11Validator.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/ImportHolder.java610
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/LocationHolder.java66
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/ReaderError.java66
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/ValidatorRegistry.java133
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDL11BasicValidator.java680
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDL11ValidationInfoImpl.java190
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDL11ValidatorController.java347
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDL11ValidatorDelegate.java38
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDLDocument.java2009
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDLReaderImpl.java427
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/http/HTTPValidator.java335
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/mime/MIMEValidator.java43
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/soap/SOAPValidator.java604
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/DOMError.java26
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/FileEntityResolver.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/InlineSchemaGenerator.java681
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/InlineSchemaValidator.java316
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/InlineXSDResolver.java137
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/SchemaAttributeTable.java104
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/ValidateErrorHandler.java88
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/XMLEntityResolverChain.java81
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/XSDValidator.java300
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/AbstractXMLConformanceFactory.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/DefaultXMLConformanceFactory.java36
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/DefaultXMLValidator.java473
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/ElementLocation.java53
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/IXMLCatalog.java40
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/IXMLValidator.java55
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/LineNumberDOMParser.java153
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/XMLCatalog.java364
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/XMLCatalogEntityHolder.java52
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/XMLCatalogResolver.java71
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/xml/XMLMessageInfoHelper.java132
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/validatewsdl.properties59
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/validatewsdlhttp.properties23
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/validatewsdlmime.properties11
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/validatewsdlsoap.properties45
-rw-r--r--bundles/org.eclipse.wst.wsdl.validation/src/validatewsdlui.properties25
-rw-r--r--bundles/org.eclipse.wst.wsdl/.classpath10
-rw-r--r--bundles/org.eclipse.wst.wsdl/.cvsignore9
-rw-r--r--bundles/org.eclipse.wst.wsdl/.project28
-rw-r--r--bundles/org.eclipse.wst.wsdl/.settings/org.eclipse.jdt.core.prefs310
-rw-r--r--bundles/org.eclipse.wst.wsdl/.settings/org.eclipse.jdt.ui.prefs4
-rw-r--r--bundles/org.eclipse.wst.wsdl/META-INF/MANIFEST.MF36
-rw-r--r--bundles/org.eclipse.wst.wsdl/about.html34
-rw-r--r--bundles/org.eclipse.wst.wsdl/build.properties23
-rw-r--r--bundles/org.eclipse.wst.wsdl/component.xml77
-rw-r--r--bundles/org.eclipse.wst.wsdl/grabjars.xml34
-rw-r--r--bundles/org.eclipse.wst.wsdl/lib/.cvsignore1
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/HTTP.ecore27
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/HTTP.genmodel31
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/HTTP.mdl5471
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/MIME.ecore44
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/MIME.genmodel48
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/MIME.mdl5676
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/SOAP.ecore85
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/SOAP.genmodel77
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/SOAP.mdl6233
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/WSDL.ecore597
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/WSDL.genmodel384
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/WSDL.mdl3850
-rw-r--r--bundles/org.eclipse.wst.wsdl/model/org.eclipse.wst.WSDL.cat7295
-rw-r--r--bundles/org.eclipse.wst.wsdl/plugin.properties35
-rw-r--r--bundles/org.eclipse.wst.wsdl/plugin.xml158
-rw-r--r--bundles/org.eclipse.wst.wsdl/schema/contentGenerators.exsd128
-rw-r--r--bundles/org.eclipse.wst.wsdl/schema/extensibilityElementFactories.exsd115
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPAddress.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPBinding.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPFactory.java89
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPOperation.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPPackage.java753
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlEncoded.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/HTTPUrlReplacement.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/generator/HTTPContentGenerator.java291
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPAddressImpl.java225
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPBindingImpl.java226
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPFactoryImpl.java163
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPOperationImpl.java226
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPPackageImpl.java462
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlEncodedImpl.java68
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/impl/HTTPUrlReplacementImpl.java68
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPAdapterFactory.java377
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPConstants.java39
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPExtensibilityElementFactory.java58
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-http/org/eclipse/wst/wsdl/binding/http/internal/util/HTTPSwitch.java413
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEContent.java109
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEFactory.java80
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMimeXml.java82
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEMultipartRelated.java72
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPackage.java699
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/MIMEPart.java47
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEContentImpl.java319
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEFactoryImpl.java205
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMimeXmlImpl.java244
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEMultipartRelatedImpl.java216
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPackageImpl.java480
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/impl/MIMEPartImpl.java123
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEAdapterFactory.java337
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEConstants.java37
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMEExtensibilityElementFactory.java56
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-mime/org/eclipse/wst/wsdl/binding/mime/internal/util/MIMESwitch.java365
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPAddress.java62
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPBinding.java88
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPBody.java123
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPFactory.java115
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPFault.java117
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPHeader.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPHeaderBase.java228
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPHeaderFault.java26
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPOperation.java88
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/SOAPPackage.java1721
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/generator/SOAPContentGenerator.java428
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPAddressImpl.java225
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPBindingImpl.java284
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPBodyImpl.java569
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPFactoryImpl.java255
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPFaultImpl.java420
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPHeaderBaseImpl.java681
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPHeaderFaultImpl.java67
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPHeaderImpl.java233
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPOperationImpl.java285
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/impl/SOAPPackageImpl.java898
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/util/SOAPAdapterFactory.java477
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/util/SOAPConstants.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/util/SOAPExtensibilityElementFactory.java66
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/internal/util/SOAPSwitch.java543
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/package.html21
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-soap/org/eclipse/wst/wsdl/binding/soap/package.xml18
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Binding.java139
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/BindingFault.java114
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/BindingInput.java114
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/BindingOperation.java164
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/BindingOutput.java115
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Definition.java302
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/ExtensibilityElement.java94
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/ExtensibleElement.java84
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Fault.java32
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Import.java172
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Input.java32
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Message.java113
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/MessageReference.java87
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Namespace.java94
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Operation.java211
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Output.java32
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Part.java205
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Port.java91
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/PortType.java113
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Service.java113
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/Types.java61
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/UnknownExtensibilityElement.java53
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/WSDLElement.java152
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/WSDLFactory.java243
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/WSDLPackage.java4590
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/WSDLPlugin.java109
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/WSDLPluginImplementation.java40
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/XSDSchemaExtensibilityElement.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryDescriptor.java59
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryRegistryImpl.java46
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/extensibility/ExtensibilityElementFactoryRegistryReader.java88
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/BaseGenerator.java83
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/BindingGenerator.java724
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/ContentGenerator.java49
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/PortGenerator.java253
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/extension/ContentGeneratorExtensionDescriptor.java65
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/extension/ContentGeneratorExtensionFactoryRegistry.java193
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/generator/extension/ContentGeneratorExtensionRegistryReader.java93
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/BindingFaultImpl.java373
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/BindingImpl.java638
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/BindingInputImpl.java369
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/BindingOperationImpl.java802
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/BindingOutputImpl.java369
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/DefinitionImpl.java2359
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/ExtensibilityElementImpl.java390
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/ExtensibleElementImpl.java214
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/FaultImpl.java87
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/ImportImpl.java584
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/InputImpl.java87
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/MessageImpl.java478
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/MessageReferenceImpl.java327
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/NamespaceImpl.java235
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/OperationImpl.java1086
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/OutputImpl.java87
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/PartImpl.java761
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/PortImpl.java386
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/PortTypeImpl.java505
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/ServiceImpl.java477
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/TypesImpl.java237
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/UnknownExtensibilityElementImpl.java274
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLElementImpl.java1604
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLFactoryImpl.java569
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/WSDLPackageImpl.java2641
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/XSDSchemaExtensibilityElementImpl.java385
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/wsdl4j/WSDLFactoryImpl.java54
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/wsdl4j/WSDLReaderImpl.java227
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/impl/wsdl4j/WSDLWriterImpl.java139
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/Reconcilable.java28
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/WSDLAdapterFactory.java1061
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/WSDLDefinitionFactory.java63
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/WSDLModelLocator.java57
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/WSDLResourceFactoryImpl.java51
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/WSDLSwitch.java1201
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/WSDLUtil.java157
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/XSDSchemaLocatorAdapterFactory.java33
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/internal/util/XSDSchemaLocatorImpl.java75
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/package.html21
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/package.xml18
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/ExtensibilityElementFactory.java29
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/ExtensibilityElementFactoryRegistry.java26
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLConstants.java379
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLDiagnostic.java97
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLDiagnosticImpl.java352
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLDiagnosticSeverity.java171
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLParser.java693
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLResourceFactoryRegistry.java143
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLResourceImpl.java542
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/package.html22
-rw-r--r--bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/package.xml19
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/.classpath7
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/.cvsignore7
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/.project28
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/META-INF/MANIFEST.MF39
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/build.properties10
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/icons/full/obj16/validate.gifbin227 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsi.ui/icons/wsi_logfile_obj.gifbin205 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsi.ui/plugin.properties18
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/plugin.xml89
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/Messages.java74
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/Messages.properties61
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/Resource.java21
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/ResourceFilter.java101
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/WSIMessageValidator.java59
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/WSIUIPlugin.java82
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/WSIValidator.java65
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/ValidateAction.java431
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/WSIValidateAction.java295
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/WSIValidationUIMessages.java32
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/actionDelegates/RequestHandlerImpl.java226
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/actionDelegates/ValidateWSILogFileActionDelegate.java76
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/actionDelegates/ValidateWSIProfileActionDelegate.java240
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/icons/wsi_logfile_wiz.pngbin6138 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/actions/wsivalidation.properties17
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/wizards/ValidationWizard.java319
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/wizards/ValidationWizardLogPage.java133
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/wizards/ValidationWizardWSDLContentPage.java908
-rw-r--r--bundles/org.eclipse.wst.wsi.ui/src/org/eclipse/wst/wsi/ui/internal/wizards/ValidationWizardWSDLPage.java373
-rw-r--r--bundles/org.eclipse.wst.wsi/.classpath7
-rw-r--r--bundles/org.eclipse.wst.wsi/.cvsignore7
-rw-r--r--bundles/org.eclipse.wst.wsi/.project28
-rw-r--r--bundles/org.eclipse.wst.wsi/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--bundles/org.eclipse.wst.wsi/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.wsi/META-INF/MANIFEST.MF58
-rw-r--r--bundles/org.eclipse.wst.wsi/about.html34
-rw-r--r--bundles/org.eclipse.wst.wsi/build.properties10
-rw-r--r--bundles/org.eclipse.wst.wsi/component.xml1
-rw-r--r--bundles/org.eclipse.wst.wsi/plugin.properties22
-rw-r--r--bundles/org.eclipse.wst.wsi/plugin.xml81
-rw-r--r--bundles/org.eclipse.wst.wsi/schema/reportArtifactTypes.exsd111
-rw-r--r--bundles/org.eclipse.wst.wsi/schema/tads.exsd129
-rw-r--r--bundles/org.eclipse.wst.wsi/schema/wsivalidator.exsd127
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/WSIPreferences.java74
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/WSITestToolsEclipseProperties.java142
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/WSITestToolsPlugin.java208
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/WSITestToolsProperties.java127
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/analyzer/MessageAnalyzer.java313
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/analyzer/WSDLAnalyzer.java384
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/analyzer/WSIAnalyzerException.java82
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/analyzer/WSIBasicProfileAnalyzer.java87
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/ToolEnvironment.java254
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/ToolInfo.java447
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/WSIConstants.java483
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/WSIException.java151
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/WSIFileNotFoundException.java56
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/WSIRuntimeException.java55
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/WSITag.java114
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/Analyzer.java314
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/Analyzer.properties45
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AnalyzerContext.java100
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AssertionFailException.java43
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AssertionNotApplicableException.java43
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AssertionPassException.java43
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/AssertionResultException.java65
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/BasicProfileAnalyzer.java460
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/CandidateInfo.java922
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/EnvironmentInfo.java83
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/ServiceReference.java109
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/AnalyzerConfig.java256
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/AnalyzerConfigReader.java51
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/AssertionResultType.java160
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/AssertionResultsOption.java100
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/UDDIReference.java116
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/WSDLElement.java135
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/WSDLReference.java78
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/impl/AnalyzerConfigImpl.java1060
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/impl/AnalyzerConfigReaderImpl.java559
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/impl/AssertionResultsOptionImpl.java200
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/impl/UDDIReferenceImpl.java197
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/impl/WSDLElementImpl.java202
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/analyzer/config/impl/WSDLReferenceImpl.java163
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/common/AddStyleSheet.java124
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/common/impl/AddStyleSheetImpl.java220
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/DocumentElement.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/DocumentFactory.java182
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/DocumentReader.java34
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/DocumentWriter.java67
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/WSIDocument.java34
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/impl/DocumentFactoryImpl.java166
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/document/impl/DocumentWriterImpl.java133
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/Log.java98
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/LogBuilder.java431
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/LogReader.java48
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/LogWriter.java46
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/MessageEntry.java217
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/MessageEntryHandler.java41
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/MimePart.java79
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/MimeParts.java60
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/RequestHandler.java132
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/impl/LogImpl.java219
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/impl/LogReaderImpl.java857
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/impl/LogWriterImpl.java51
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/impl/MessageEntryImpl.java374
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/impl/MimePartImpl.java139
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/log/impl/MimePartsImpl.java75
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/ChunkedData.java221
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/ConnectionListener.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/MessageEntryQueue.java220
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/Monitor.java505
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/Monitor.properties38
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/ServerSocketListener.java140
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/SocketConnection.java306
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/SocketHandler.java963
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/Comment.java50
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/ManInTheMiddle.java72
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/MonitorConfig.java165
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/MonitorConfigReader.java49
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/Redirect.java124
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/impl/CommentImpl.java75
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/impl/ManInTheMiddleImpl.java142
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/impl/MonitorConfigImpl.java561
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/impl/MonitorConfigReaderImpl.java479
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/monitor/config/impl/RedirectImpl.java299
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/EntryTypeList.java82
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/Profile.java24
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/ProfileArtifact.java87
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/ProfileAssertions.java123
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/ProfileAssertionsReader.java43
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/TestAssertion.java177
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/impl/EntryTypeListImpl.java94
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/impl/ProfileArtifactImpl.java123
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/impl/ProfileAssertionsImpl.java193
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/impl/ProfileAssertionsReaderImpl.java586
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/impl/TestAssertionImpl.java256
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/BaseValidator.java98
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/EntryContext.java224
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/EnvelopeValidator.java61
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/LogValidator.java27
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/MessageValidator.java83
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/ProfileValidatorFactory.java109
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/UDDIValidator.java70
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/WSDLValidator.java88
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/AssertionProcess.java66
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/AssertionProcessVisitor.java154
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/BaseMessageValidator.java1910
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/BaseValidatorImpl.java705
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/ProfileValidatorFactoryImpl.java102
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/AP1920.java119
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/AP1928.java426
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1005.java167
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1007.java64
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1008.java277
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1009.java313
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1011.java203
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1012.java102
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1013.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1031.java108
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1032.java152
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1033.java126
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1100.java103
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1107.java277
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1201.java77
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1202.java104
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1203.java147
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1204.java302
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1208.java88
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1211.java147
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1212.java165
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1213.java141
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1214.java142
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1301.java198
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1302.java181
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1305.java132
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1306.java114
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1307.java98
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1308.java97
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1309.java124
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1316.java113
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1318.java183
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1600.java269
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1601.java73
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1701.java110
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1755.java167
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP4100.java226
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP4101.java132
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP4102.java114
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP4109.java107
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/EnvelopeValidatorImpl.java76
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/SSBP1601.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/SSBP9704.java126
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1003.java59
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1902.java124
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1915.java136
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1917.java153
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1925.java133
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1926.java210
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1931.java91
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1932.java80
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1933.java257
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1934.java103
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1935.java348
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1936.java72
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1942.java264
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1945.java73
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP1946.java64
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP5100.java53
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/AP5101.java51
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1001.java101
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1002.java137
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1004.java73
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1006.java69
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1010.java126
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1101.java86
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1103.java80
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1104.java93
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP1116.java150
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP4103.java126
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP4104.java87
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP4105.java95
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP4106.java77
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/BP4107.java66
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/MessageValidatorImpl.java78
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/SSBP1003.java228
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/SSBP5100.java80
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/SSBP5101.java67
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1001.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1002.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1003.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1004.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1005.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1006.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1007.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1008.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1009.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1010.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1011.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1012.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1013.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1031.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1100.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1101.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1102.java150
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1103.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1104.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1105.java110
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1107.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1108.java415
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1109.java103
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1110.java104
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1111.java111
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1116.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1121.java162
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1201.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1202.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1203.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1204.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1208.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1211.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1301.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1302.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1305.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1306.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1307.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1308.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1309.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1311.java204
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1316.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1318.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1601.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI1701.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4100.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4101.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4102.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4103.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4104.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4105.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4106.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/message/WSI4107.java28
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/BP3001.java155
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/BP3002.java81
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/BP3003.java78
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/UDDIValidatorImpl.java542
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3001.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3002.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3003.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3004.java290
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3005_OBSOLETE.java119
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3006.java165
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3007.java155
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/uddi/WSI3021.java115
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2901.java146
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2903.java241
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2904.java47
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2906.java216
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2907.java52
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2908.java296
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2909.java215
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2910.java230
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2911.java228
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2930.java136
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2940.java450
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2941.java367
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2944.java234
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2946.java194
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2010.java119
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2011.java349
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2012.java123
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2013.java91
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2014.java286
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2017.java142
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2018.java127
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2019.java122
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2020.java162
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2021.java112
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2022.java82
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2023.java85
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2032.java86
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2034.java94
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2098.java69
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2101.java106
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2102.java210
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2103.java130
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2104.java100
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2105.java232
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2107.java200
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2108.java94
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2110.java98
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2111.java142
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2112.java203
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2113.java159
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2114.java278
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2115.java97
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2116.java88
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2117.java183
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2118.java98
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2119.java165
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2120.java247
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2121.java174
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2122.java95
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2123.java357
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2201.java189
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2202.java428
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2208.java72
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2402.java69
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2404.java76
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2406.java166
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2416.java209
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2417.java160
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2700.java81
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2701.java89
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2703.java49
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2803.java87
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP4200.java162
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP4201.java144
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP4202.java131
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/SSBP2209.java29
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/SSBP2402.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/SSBP2403.java191
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSDLValidatorImpl.java2385
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2010.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2011.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2012.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2013.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2014.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2017.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2018.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2019.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2020.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2021.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2022.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2032.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2098.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2099.java157
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2100.java171
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2101.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2102.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2103.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2104.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2105.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2107.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2108.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2110.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2111.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2112.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2113.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2114.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2115.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2116.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2117.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2118.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2119.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2120.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2122.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2123.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2201.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2202.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2208.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2402.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2403.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2404.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2406.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2416.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2417.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2700.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2701.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI2703.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI4200.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI4201.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/WSI4202.java26
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/ArtifactReference.java67
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/AssertionResult.java148
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/BuildReport.java125
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/Entry.java153
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/EntryContainer.java35
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/EntryResult.java42
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/FailureDetail.java94
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/PrereqFailedList.java43
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/Report.java105
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/ReportArtifact.java79
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/ReportContext.java116
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/ReportWriter.java40
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/Reporter.java21
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/WriteReport.java47
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/ArtifactReferenceImpl.java125
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/AssertionResultImpl.java236
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/DefaultReporter.java287
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/EntryContainerImpl.java56
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/EntryImpl.java276
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/EntryResultImpl.java56
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/FailureDetailImpl.java151
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/PrereqFailedListImpl.java76
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/ReportArtifactImpl.java115
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/ReportImpl.java514
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/report/impl/ReportWriterImpl.java63
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/toolinfo.properties18
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/ArtifactType.java214
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/BasicRules.java477
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/EntryType.java296
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/ErrorList.java156
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/HTTPConstants.java600
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/HTTPUtils.java182
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/HttpHeadersValidator.java1721
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/JavaEncoding.properties31
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/MIMEConstants.java24
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/MIMEUtils.java138
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/MessageList.java171
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/NullUtil.java40
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/OperationSignature.java788
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/Pair.java77
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/SetCookie2Validator.java629
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/StringTokenizer.java212
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/TestUtils.java192
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/TypesRegistry.java581
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/UDDIUtils.java543
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/Utils.java1446
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/WSDLUtil.java160
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/WSIProperties.java347
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/XMLInfo.java27
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/util/wsi.properties46
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/WSDLDocument.java323
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/WSDLElementList.java99
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/WSDLReaderImpl.java801
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/WSDLUtils.java411
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/traversal/VisitorAdaptor.java201
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/traversal/WSDLTraversal.java3290
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/traversal/WSDLTraversalContext.java1126
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/traversal/WSDLVisitor.java233
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/FileEntityResolver.java50
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/InlineSchemaGenerator.java590
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/InlineSchemaValidator.java241
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/InlineXSDResolver.java110
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/LazyURLInputStream.java162
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/SchemaAttributeTable.java105
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/ValidateErrorHandler.java62
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalog.java90
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogImpl.java45
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLCatalogResolver.java67
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XMLEntityResolverChain.java74
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/wsdl/xsd/XSDValidator.java190
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLConvertor.java69
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLDocumentCache.java77
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLDocumentCacheUser.java117
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLTags.java60
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLTraversal.java129
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLUtils.java1536
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/XMLVisitor.java186
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/dom/DOMParser.java93
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/dom/ElementLocation.java91
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/jaxp/DocumentBuilderFactoryImpl.java100
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/jaxp/DocumentBuilderImpl.java248
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/schema/TargetNamespaceProcessor.java142
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/schema/XMLSchemaProcessor.java170
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/xml/schema/XMLSchemaValidator.java152
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/document/DocumentFactoryImpl.java64
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/report/AssertionError.java131
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/report/NullReportImpl.java54
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/report/ReportNoWriterImpl.java84
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/report/SimpleReporter.java48
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/validate/wsdl/WSDLValidator.java389
-rw-r--r--bundles/org.eclipse.wst.wsi/src/wsivalidate.properties16
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/.cvsignore1
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/.project22
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/META-INF/MANIFEST.MF8
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/about.html34
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/axisconsumptionui-f1Contexts.xml90
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/axiscreationui-f1Contexts.xml100
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/build.properties6
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/plugin.properties3
-rw-r--r--docs/org.eclipse.jst.ws.axis.infopop/plugin.xml19
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/.cvsignore3
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/.project22
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/DocBuild.xml59
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/META-INF/MANIFEST.MF7
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/about.html34
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/build.properties17
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/concepts/caxistover.dita48
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/concepts/caxistover.html84
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/index/_2.cfsbin8772 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/index/deletablebin6 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/index/indexed_contributions3
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/index/indexed_dependencies4
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/index/indexed_docs4
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/index/segmentsbin20 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/myplugin.xml23
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/org.eclipse.jst.ws.axis.ui.doc.user.maplist8
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/org.eclipse.jst.ws.axis.ui.doc.userindex.html70
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/org.eclipse.jst.ws.axis.ui.doc.userindex.xml44
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/plugin.properties15
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/plugin.xml23
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/tsampappa.dita132
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/tsampappa.html189
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/tsklwsdla.dita124
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/tsklwsdla.html223
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/ttomcatserv.dita62
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/ttomcatserv.html101
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/twsbeana.dita171
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/tasks/twsbeana.html238
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/wsaxisbuild_toc.ditamap28
-rw-r--r--docs/org.eclipse.jst.ws.axis.ui.doc.user/wsaxisbuild_toc.xml7
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/.cvsignore1
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/.project22
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/META-INF/MANIFEST.MF7
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/about.html34
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/build.properties7
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/plugin.properties3
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/plugin.xml20
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/wsconsumptionui-f1Contexts.xml460
-rw-r--r--docs/org.eclipse.jst.ws.consumption.infopop/wscreationui-f1Contexts.xml172
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/.cvsignore4
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/.project22
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/DocBuild.xml59
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/META-INF/MANIFEST.MF8
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/about.html34
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/build.properties20
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/concepts/cuddi.dita92
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/concepts/cuddi.html120
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/concepts/cwsdlud.dita111
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/concepts/cwsdlud.html156
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/addfav.gifbin237 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/adduddi.gifbin230 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/beaninfojsp.gifbin7147 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/bindnode.gifbin364 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/browsebutton.gifbin213 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/busasst.gifbin139 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/fav.gifbin265 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/find.gifbin153 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/fswsdlicon.gifbin213 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/login.gifbin179 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/loginicon.gifbin346 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/logouticon.gifbin1096 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/mptwsdlicon.gifbin891 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/newjsp.gifbin22101 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/opnode.gifbin221 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/proxyonjsp.gifbin7318 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/publish2.gifbin163 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/pubserv.gifbin240 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/refserv.gifbin273 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/runjsf.gifbin7736 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/scenario7.gifbin7006 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/servnode.gifbin571 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/soapudws.cdrbin47164 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/uddi.cdrbin39990 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/uddi.gifbin5498 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/uddiref.cdrbin42332 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/uddiref.gifbin9793 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/uddiview.gifbin159 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlbnddetl.gifbin22014 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdldetail.gifbin15345 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdldtlicon.gifbin914 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlexp.gifbin11235 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlfavicon.gifbin136 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlicon.gifbin597 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlnode.gifbin548 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlop.gifbin18275 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlopret.gifbin16767 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlopretx.gifbin18157 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlpage.gifbin14584 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlservdet.gifbin17660 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdlstatx.gifbin31686 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdltemp.gifbin16096 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdluddi.cdrbin45554 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsdluddi.gifbin16346 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsilpage.gifbin26640 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsilview.gifbin367 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wsinjsp.gifbin8636 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/images/wswizicon.gifbin573 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/index/_k.cfsbin49675 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/index/deletablebin6 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/index/indexed_contributions3
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/index/indexed_dependencies4
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/index/indexed_docs21
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/index/segmentsbin20 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/myplugin.xml24
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/org.eclipse.jst.ws.consumption.ui.doc.user.maplist10
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/org.eclipse.jst.ws.consumption.ui.doc.userindex.html179
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/org.eclipse.jst.ws.consumption.ui.doc.userindex.xml160
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/plugin.properties15
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/plugin.xml24
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/ref/ruddi.dita77
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/ref/ruddi.html112
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/taddreg.dita78
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/taddreg.html115
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tassert.dita61
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tassert.html99
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tbkmrk.dita59
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tbkmrk.html96
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tbusproj.dita54
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tbusproj.html90
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tdiscov.dita177
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tdiscov.html275
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tgenwsil.dita72
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tgenwsil.html115
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tlogexp.dita55
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tlogexp.html93
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tpubent.dita102
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tpubent.html160
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tpublish.dita107
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tpublish.html166
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/treg.dita54
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/treg.html88
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tstrtexp.dita119
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tstrtexp.html186
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/ttestwsdl.dita103
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/ttestwsdl.html137
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tuddiexp.dita130
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tuddiexp.html189
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tunpub.dita63
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tunpub.html102
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tupdate.dita57
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/tupdate.html98
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/twsdlexp.dita142
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/tasks/twsdlexp.html200
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/wsconsumptionbuild_toc.ditamap41
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/wsconsumptionbuild_toc.xml27
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/wsconsumptiont_toc.ditamap30
-rw-r--r--docs/org.eclipse.jst.ws.consumption.ui.doc.user/wsconsumptiont_toc.xml21
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/.cvsignore5
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/.project22
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/DocBuild.xml59
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/META-INF/MANIFEST.MF7
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/about.html34
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/build.properties19
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cjaxrpc.dita66
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cjaxrpc.html84
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cjsr109.dita41
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cjsr109.html64
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/csoap.dita108
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/csoap.html154
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cws.dita93
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cws.html137
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsbtmup.dita38
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsbtmup.html63
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsdl.dita73
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsdl.html102
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsil.dita84
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsil.html120
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsilud.dita72
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsilud.html104
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsinwsa.dita48
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsinwsa.html75
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsiover.dita41
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsiover.html63
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsstandards.dita222
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwsstandards.html315
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwstopdown.dita39
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/concepts/cwstopdown.html65
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/images/roles.gifbin4283 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.doc.user/images/soapudws.gifbin17234 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.doc.user/index/_w.cfsbin85979 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.doc.user/index/deletablebin6 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.doc.user/index/indexed_contributions3
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/index/indexed_dependencies4
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/index/indexed_docs31
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/index/segmentsbin20 -> 0 bytes-rw-r--r--docs/org.eclipse.jst.ws.doc.user/myplugin.xml23
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/org.eclipse.jst.ws.doc.user.maplist8
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/org.eclipse.jst.ws.doc.userindex.html164
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/org.eclipse.jst.ws.doc.userindex.xml116
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/plugin.properties15
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/plugin.xml23
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/ref/rwsdl.dita55
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/ref/rwsdl.html92
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/ref/rwspref.dita156
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/ref/rwspref.html236
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/tasks/toverws.dita54
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/tasks/toverws.html87
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/tasks/twsicomply.dita67
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/tasks/twsicomply.html114
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/webservice_toc.ditamap91
-rw-r--r--docs/org.eclipse.jst.ws.doc.user/webservice_toc.xml62
-rw-r--r--docs/org.eclipse.jst.ws.infopop/.cvsignore1
-rw-r--r--docs/org.eclipse.jst.ws.infopop/.project22
-rw-r--r--docs/org.eclipse.jst.ws.infopop/META-INF/MANIFEST.MF7
-rw-r--r--docs/org.eclipse.jst.ws.infopop/about.html34
-rw-r--r--docs/org.eclipse.jst.ws.infopop/build.properties5
-rw-r--r--docs/org.eclipse.jst.ws.infopop/plugin.properties3
-rw-r--r--docs/org.eclipse.jst.ws.infopop/plugin.xml18
-rw-r--r--docs/org.eclipse.jst.ws.infopop/webserviceui-f1Contexts.xml116
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/.cvsignore3
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/.project22
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/DocBuild.xml59
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/META-INF/MANIFEST.MF8
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/about.html34
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/build.properties13
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/index/_6.cfsbin18389 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/index/deletablebin6 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/index/indexed_contributions3
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/index/indexed_dependencies4
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/index/indexed_docs8
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/index/segmentsbin20 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/myplugin.xml23
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/org.eclipse.wst.command.env.doc.user.maplist8
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/plugin.properties15
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/plugin.xml23
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/cwsaxisant.dita45
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/cwsaxisant.html90
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/rbuwsa.dita99
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/rbuwsa.html177
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/rtdwsa.dita100
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/rtdwsa.html178
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/rwsclienta.dita89
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/rwsclienta.html164
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/twbwsa.dita75
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/twbwsa.html141
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/twbwsclienta.dita66
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/topics/twbwsclienta.html126
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/wsaxisant_toc.ditamap19
-rw-r--r--docs/org.eclipse.wst.command.env.doc.user/wsaxisant_toc.xml15
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/.project22
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/META-INF/MANIFEST.MF8
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/about.html34
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/build.properties6
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/plugin.properties3
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/plugin.xml18
-rw-r--r--docs/org.eclipse.wst.command.env.infopop/wst-command-f1.xml30
-rw-r--r--docs/org.eclipse.wst.ws.infopop/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.ws.infopop/.project22
-rw-r--r--docs/org.eclipse.wst.ws.infopop/META-INF/MANIFEST.MF8
-rw-r--r--docs/org.eclipse.wst.ws.infopop/about.html34
-rw-r--r--docs/org.eclipse.wst.ws.infopop/build.properties6
-rw-r--r--docs/org.eclipse.wst.ws.infopop/plugin.properties13
-rw-r--r--docs/org.eclipse.wst.ws.infopop/plugin.xml18
-rw-r--r--docs/org.eclipse.wst.ws.infopop/webserviceui-f1Contexts.xml137
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/.cvsignore4
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/.project22
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/.settings/org.eclipse.pde.prefs13
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/DocBuild.xml59
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/META-INF/MANIFEST.MF8
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/about.html34
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/build.properties18
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/concepts/cwsdled.dita57
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/concepts/cwsdled.html95
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/images/httpskel.gifbin7112 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/images/show-hide-binding.gifbin143 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/images/soapskel.gifbin7881 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/images/wsdleditor.gifbin10559 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/index/_f.cfsbin33697 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/index/deletablebin6 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/index/indexed_contributions3
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/index/indexed_dependencies4
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/index/indexed_docs16
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/index/segmentsbin20 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/myplugin.xml32
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/org.eclipse.wst.wsdl.ui.doc.user.maplist10
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/org.eclipse.wst.wsdl.ui.doc.userindex.html88
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/org.eclipse.wst.wsdl.ui.doc.userindex.xml84
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/plugin.properties15
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/plugin.xml32
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddmess.dita87
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddmess.html142
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddoper.dita57
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddoper.html101
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddpart.dita53
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddpart.html88
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddport.dita64
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddport.html102
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddsrvc.dita45
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/taddsrvc.html76
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tcrtimpt.dita46
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tcrtimpt.html77
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tcrttype.dita39
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tcrttype.html68
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tcrtwsdl.dita91
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tcrtwsdl.html139
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tedtwsdl.dita98
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tedtwsdl.html151
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/timpwsdl.dita80
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/timpwsdl.html119
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tsetbind.dita108
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tsetbind.html172
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tsetprtt.dita115
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/tasks/tsetprtt.html179
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/wswsdleditorc_toc.ditamap8
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/wswsdleditorc_toc.xml7
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/wswsdleditort_toc.ditamap34
-rw-r--r--docs/org.eclipse.wst.wsdl.ui.doc.user/wswsdleditort_toc.xml22
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/.cvsignore3
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/.project22
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/DocBuild.xml59
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/META-INF/MANIFEST.MF7
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/about.html34
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/build.properties15
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/images/traffic.gifbin27043 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/images/wsivalico.gifbin217 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/index/_3.cfsbin9285 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/index/deletablebin6 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/index/indexed_contributions3
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/index/indexed_dependencies4
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/index/indexed_docs5
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/index/segmentsbin20 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/myplugin.xml28
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/org.eclipse.wst.wsi.ui.doc.user.maplist8
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/org.eclipse.wst.wsi.ui.doc.userindex.html60
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/org.eclipse.wst.wsi.ui.doc.userindex.xml37
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/plugin.properties15
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/plugin.xml28
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/tasks/tmonitor.dita93
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/tasks/tmonitor.html148
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/tasks/twsdlval.dita53
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/tasks/twsdlval.html79
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/tasks/twsival.dita53
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/tasks/twsival.html84
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/wswsitest_toc.ditamap11
-rw-r--r--docs/org.eclipse.wst.wsi.ui.doc.user/wswsitest_toc.xml9
-rw-r--r--features/org.eclipse.wst.ws_core.feature/.cvsignore1
-rw-r--r--features/org.eclipse.wst.ws_core.feature/.project17
-rw-r--r--features/org.eclipse.wst.ws_core.feature/addPreBuiltComponents.xml79
-rw-r--r--features/org.eclipse.wst.ws_core.feature/build.properties6
-rw-r--r--features/org.eclipse.wst.ws_core.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_core.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_core.feature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_core.feature/feature.xml177
-rw-r--r--features/org.eclipse.wst.ws_core.feature/license.html93
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplateFeature/build.properties16
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplateFeature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplateFeature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplateFeature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplateFeature/feature.xml30
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplateFeature/license.html79
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/about.html27
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/about.ini31
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/about.mappings6
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/about.properties26
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/build.properties2
-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/eclipse32.gifbin1706 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/eclipse32.pngbin4634 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_core.feature/sourceTemplatePlugin/plugin.properties12
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/.cvsignore4
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/.project17
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/build.properties7
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/feature.xml32
-rw-r--r--features/org.eclipse.wst.ws_sdk.feature/license.html93
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/.cvsignore2
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/.project17
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/build.properties5
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_tests.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/feature.xml60
-rw-r--r--features/org.eclipse.wst.ws_tests.feature/license.html93
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/.cvsignore1
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/.project17
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/build.properties5
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_ui.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/feature.xml120
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/license.html93
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplateFeature/build.properties19
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplateFeature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplateFeature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplateFeature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplateFeature/feature.xml38
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplateFeature/license.html79
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/about.html27
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/about.ini31
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/about.mappings6
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/about.properties26
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/build.properties3
-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/eclipse32.gifbin1706 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/eclipse32.pngbin4634 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_ui.feature/sourceTemplatePlugin/plugin.properties12
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/.cvsignore3
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/.project17
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/build.properties5
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/feature.properties144
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/feature.xml45
-rw-r--r--features/org.eclipse.wst.ws_userdoc.feature/license.html93
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/.classpath7
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/.cvsignore4
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/.project28
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/.settings/org.eclipse.pde.prefs12
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/META-INF/MANIFEST.MF14
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/about.html34
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/build.properties15
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource1/org/tempuri/AreaService/AreaServiceProxy.java59
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource1/org/tempuri/AreaService/AreaServiceSOAPStub.java185
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource1/org/tempuri/AreaService/AreaService_PortType.java22
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource1/org/tempuri/AreaService/AreaService_Service.java26
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource1/org/tempuri/AreaService/AreaService_ServiceLocator.java152
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource1/org/tempuri/AreaService/Dimensions.java156
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource2/wtp/Converter.java23
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource2/wtp/ConverterProxy.java65
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource2/wtp/ConverterService.java26
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource2/wtp/ConverterServiceLocator.java152
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/data/axisSource2/wtp/ConverterSoapBindingStub.java179
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/plugin.properties19
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/tests/org/eclipse/jst/ws/axis/consumption/core/tests/unittest/LocatorTests.java120
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/tests/org/eclipse/jst/ws/axis/consumption/core/tests/util/Filter.java21
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/tests/org/eclipse/jst/ws/axis/consumption/core/tests/util/JavaFilter.java25
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/tests/org/eclipse/jst/ws/axis/consumption/core/tests/util/StdoutProgressMonitor.java47
-rw-r--r--tests/org.eclipse.jst.ws.axis.consumption.core.tests/tests/org/eclipse/jst/ws/axis/consumption/core/tests/util/Util.java259
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/.classpath7
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/.cvsignore4
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/.project28
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.jdt.core.prefs57
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/.settings/org.eclipse.pde.prefs12
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/META-INF/MANIFEST.MF31
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/about.html34
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/build.properties15
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/plugin.properties19
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrBUJavaAxisTC50.java180
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrClientAxisTC50.java169
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/axis/tomcat/v50/perfmsr/PerfmsrTDJavaAxisTC50.java164
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/AllPerformanceTests.java36
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/plugin/PerformancePlugin.java41
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/EclipsePerformanceLog.java77
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/src/org/eclipse/jst/ws/tests/performance/util/PerformanceJUnitUtils.java55
-rw-r--r--tests/org.eclipse.jst.ws.tests.performance/test.xml189
-rw-r--r--tests/org.eclipse.jst.ws.tests/.classpath7
-rw-r--r--tests/org.eclipse.jst.ws.tests/.cvsignore4
-rw-r--r--tests/org.eclipse.jst.ws.tests/.project28
-rw-r--r--tests/org.eclipse.jst.ws.tests/.settings/org.eclipse.jdt.core.prefs52
-rw-r--r--tests/org.eclipse.jst.ws.tests/.settings/org.eclipse.pde.prefs12
-rw-r--r--tests/org.eclipse.jst.ws.tests/META-INF/MANIFEST.MF39
-rw-r--r--tests/org.eclipse.jst.ws.tests/about.html34
-rw-r--r--tests/org.eclipse.jst.ws.tests/build.properties20
-rw-r--r--tests/org.eclipse.jst.ws.tests/data/BUJava/client/EchoProxyTest.jsp38
-rw-r--r--tests/org.eclipse.jst.ws.tests/data/BUJava/src/foo/Echo.java9
-rw-r--r--tests/org.eclipse.jst.ws.tests/data/TDJava/Echo.wsdl80
-rw-r--r--tests/org.eclipse.jst.ws.tests/data/WSPerfProjects.zipbin14258 -> 0 bytes-rw-r--r--tests/org.eclipse.jst.ws.tests/data/WSTestProjects.zipbin8297 -> 0 bytes-rw-r--r--tests/org.eclipse.jst.ws.tests/data/webclient/outputFilePath.jspf6
-rw-r--r--tests/org.eclipse.jst.ws.tests/plugin.properties25
-rw-r--r--tests/org.eclipse.jst.ws.tests/plugin.xml62
-rw-r--r--tests/org.eclipse.jst.ws.tests/readme.txt5
-rw-r--r--tests/org.eclipse.jst.ws.tests/test.xml51
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/WSWizardTest.java208
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/axis/tomcat/v50/WSWizardTomcat50Test.java41
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/plugin/TestsPlugin.java81
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/AllWSJUnitTests.java117
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/BUJavaAxisTC50.java169
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/ClientAxisTC50.java158
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/ComponentCreationTests.java140
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/J2EEUtilsTests.java215
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/LaunchTest.java33
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/ResourceUtilsTests.java100
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/ServerCreationTests.java93
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/TDJavaAxisTC50.java151
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/WSJUnitConstants.java46
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/unittest/WebServiceRuntimeTests.java529
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/util/DynamicPopupJUnitWizard.java72
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/util/JUnitUtils.java361
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/util/ScenarioConstants.java45
-rw-r--r--tests/org.eclipse.jst.ws.tests/tests/org/eclipse/jst/ws/tests/util/WSCustomAdapterFactory.java115
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/.classpath14
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/.cvsignore5
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/.project28
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/META-INF/MANIFEST.MF31
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/about.html34
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/build.properties17
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample0.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample1.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample10.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample100.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample101.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample102.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample103.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample104.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample105.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample106.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample107.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample108.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample109.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample11.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample110.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample111.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample112.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample113.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample114.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample115.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample116.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample117.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample118.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample119.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample12.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample120.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample121.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample122.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample123.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample124.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample125.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample126.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample127.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample128.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample129.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample13.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample130.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample131.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample132.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample133.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample134.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample135.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample136.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample137.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample138.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample139.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample14.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample140.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample141.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample142.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample143.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample144.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample145.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample146.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample147.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample148.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample149.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample15.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample150.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample151.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample152.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample153.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample154.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample155.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample156.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample157.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample158.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample159.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample16.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample160.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample161.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample162.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample163.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample164.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample165.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample166.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample167.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample168.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample169.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample17.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample170.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample171.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample172.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample173.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample174.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample175.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample176.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample177.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample178.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample179.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample18.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample180.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample181.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample182.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample183.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample184.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample185.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample186.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample187.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample188.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample189.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample19.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample190.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample191.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample192.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample193.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample194.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample195.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample196.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample197.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample198.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample199.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample2.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample20.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample200.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample201.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample202.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample203.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample204.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample205.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample206.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample207.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample208.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample209.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample21.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample210.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample211.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample212.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample213.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample214.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample215.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample216.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample217.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample218.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample219.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample22.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample220.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample221.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample222.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample223.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample224.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample225.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample226.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample227.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample228.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample229.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample23.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample230.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample231.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample232.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample233.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample234.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample235.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample236.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample237.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample238.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample239.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample24.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample240.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample241.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample242.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample243.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample244.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample245.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample246.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample247.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample248.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample249.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample25.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample250.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample251.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample252.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample253.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample254.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample255.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample256.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample257.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample258.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample259.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample26.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample260.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample261.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample262.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample263.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample264.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample265.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample266.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample267.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample268.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample269.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample27.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample270.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample271.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample272.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample273.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample274.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample275.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample276.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample277.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample278.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample279.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample28.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample280.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample281.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample282.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample283.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample284.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample285.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample286.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample287.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample288.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample289.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample29.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample290.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample291.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample292.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample293.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample294.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample295.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample296.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample297.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample298.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample299.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample3.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample30.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample300.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample301.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample302.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample303.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample304.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample305.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample306.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample307.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample308.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample309.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample31.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample310.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample311.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample312.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample313.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample314.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample315.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample316.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample317.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample318.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample319.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample32.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample320.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample321.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample322.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample323.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample324.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample325.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample326.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample327.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample328.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample329.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample33.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample330.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample331.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample332.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample333.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample334.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample335.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample336.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample337.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample338.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample339.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample34.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample340.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample341.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample342.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample343.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample344.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample345.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample346.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample347.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample348.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample349.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample35.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample350.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample351.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample352.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample353.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample354.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample355.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample356.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample357.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample358.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample359.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample36.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample360.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample361.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample362.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample363.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample364.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample365.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample366.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample367.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample368.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample369.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample37.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample370.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample371.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample372.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample373.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample374.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample375.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample376.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample377.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample378.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample379.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample38.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample380.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample381.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample382.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample383.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample384.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample385.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample386.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample387.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample388.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample389.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample39.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample390.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample391.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample392.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample393.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample394.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample395.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample396.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample397.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample398.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample399.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample4.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample40.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample400.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample401.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample402.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample403.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample404.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample405.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample406.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample407.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample408.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample409.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample41.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample410.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample411.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample412.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample413.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample414.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample415.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample416.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample417.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample418.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample419.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample42.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample420.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample421.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample422.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample423.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample424.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample425.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample426.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample427.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample428.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample429.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample43.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample430.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample431.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample432.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample433.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample434.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample435.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample436.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample437.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample438.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample439.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample44.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample440.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample441.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample442.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample443.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample444.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample445.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample446.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample447.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample448.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample449.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample45.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample450.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample451.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample452.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample453.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample454.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample455.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample456.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample457.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample458.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample459.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample46.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample460.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample461.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample462.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample463.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample464.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample465.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample466.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample467.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample468.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample469.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample47.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample470.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample471.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample472.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample473.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample474.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample475.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample476.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample477.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample478.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample479.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample48.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample480.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample481.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample482.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample483.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample484.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample485.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample486.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample487.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample488.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample489.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample49.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample490.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample491.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample492.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample493.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample494.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample495.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample496.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample497.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample498.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample499.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample5.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample50.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample500.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample501.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample502.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample503.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample504.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample505.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample506.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample507.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample508.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample509.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample51.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample510.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample511.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample512.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample513.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample514.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample515.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample516.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample517.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample518.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample519.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample52.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample520.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample521.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample522.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample523.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample524.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample525.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample526.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample527.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample528.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample529.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample53.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample530.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample531.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample532.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample533.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample534.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample535.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample536.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample537.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample538.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample539.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample54.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample540.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample541.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample542.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample543.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample544.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample545.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample546.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample547.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample548.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample549.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample55.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample550.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample551.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample552.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample553.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample554.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample555.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample556.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample557.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample558.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample559.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample56.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample560.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample561.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample562.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample563.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample564.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample565.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample566.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample567.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample568.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample569.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample57.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample570.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample571.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample572.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample573.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample574.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample575.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample576.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample577.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample578.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample579.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample58.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample580.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample581.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample582.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample583.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample584.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample585.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample586.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample587.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample588.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample589.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample59.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample590.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample591.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample592.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample593.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample594.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample595.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample596.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample597.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample598.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample599.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample6.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample60.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample600.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample601.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample602.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample603.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample604.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample605.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample606.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample607.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample608.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample609.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample61.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample610.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample611.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample612.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample613.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample614.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample615.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample616.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample617.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample618.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample619.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample62.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample620.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample621.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample622.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample623.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample624.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample625.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample626.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample627.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample628.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample629.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample63.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample630.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample631.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample632.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample633.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample634.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample635.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample636.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample637.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample638.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample639.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample64.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample640.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample641.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample642.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample643.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample644.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample645.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample646.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample647.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample648.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample649.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample65.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample650.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample651.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample652.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample653.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample654.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample655.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample656.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample657.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample658.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample659.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample66.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample660.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample661.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample662.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample663.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample664.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample665.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample666.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample667.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample668.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample669.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample67.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample670.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample671.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample672.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample673.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample674.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample675.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample676.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample677.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample678.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample679.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample68.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample680.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample681.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample682.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample683.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample684.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample685.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample686.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample687.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample688.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample689.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample69.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample690.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample691.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample692.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample693.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample694.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample695.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample696.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample697.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample698.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample699.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample7.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample70.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample700.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample701.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample702.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample703.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample704.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample705.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample706.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample707.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample708.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample709.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample71.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample710.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample711.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample712.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample713.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample714.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample715.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample716.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample717.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample718.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample719.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample72.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample720.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample721.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample722.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample723.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample724.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample725.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample726.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample727.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample728.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample729.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample73.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample730.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample731.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample732.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample733.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample734.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample735.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample736.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample737.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample738.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample739.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample74.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample740.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample741.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample742.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample743.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample744.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample745.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample746.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample747.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample748.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample749.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample75.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample750.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample751.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample752.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample753.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample754.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample755.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample756.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample757.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample758.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample759.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample76.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample760.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample761.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample762.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample763.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample764.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample765.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample766.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample767.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample768.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample769.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample77.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample770.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample771.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample772.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample773.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample774.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample775.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample776.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample777.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample778.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample779.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample78.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample780.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample781.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample782.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample783.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample784.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample785.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample786.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample787.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample788.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample789.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample79.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample790.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample791.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample792.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample793.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample794.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample795.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample796.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample797.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample798.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample799.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample8.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample80.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample800.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample801.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample802.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample803.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample804.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample805.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample806.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample807.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample808.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample809.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample81.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample810.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample811.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample812.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample813.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample814.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample815.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample816.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample817.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample818.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample819.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample82.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample820.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample821.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample822.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample823.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample824.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample825.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample826.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample827.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample828.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample829.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample83.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample830.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample831.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample832.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample833.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample834.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample835.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample836.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample837.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample838.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample839.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample84.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample840.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample841.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample842.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample843.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample844.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample845.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample846.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample847.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample848.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample849.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample85.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample850.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample851.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample852.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample853.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample854.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample855.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample856.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample857.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample858.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample859.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample86.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample860.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample861.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample862.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample863.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample864.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample865.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample866.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample867.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample868.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample869.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample87.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample870.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample871.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample872.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample873.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample874.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample875.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample876.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample877.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample878.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample879.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample88.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample880.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample881.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample882.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample883.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample884.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample885.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample886.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample887.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample888.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample889.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample89.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample890.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample891.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample892.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample893.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample894.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample895.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample896.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample897.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample898.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample899.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample9.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample90.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample900.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample901.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample902.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample903.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample904.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample905.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample906.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample907.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample908.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample909.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample91.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample910.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample911.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample912.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample913.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample914.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample915.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample916.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample917.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample918.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample919.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample92.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample920.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample921.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample922.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample923.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample924.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample925.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample926.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample927.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample928.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample929.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample93.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample930.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample931.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample932.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample933.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample934.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample935.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample936.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample937.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample938.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample939.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample94.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample940.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample941.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample942.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample943.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample944.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample945.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample946.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample947.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample948.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample949.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample95.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample950.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample951.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample952.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample953.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample954.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample955.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample956.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample957.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample958.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample959.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample96.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample960.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample961.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample962.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample963.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample964.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample965.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample966.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample967.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample968.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample969.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample97.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample970.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample971.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample972.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample973.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample974.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample975.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample976.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample977.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample978.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample979.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample98.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample980.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample981.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample982.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample983.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample984.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample985.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample986.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample987.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample988.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample989.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample99.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample990.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample991.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample992.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample993.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample994.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample995.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample996.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample997.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample998.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsCrossDepends/sample999.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample0.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample1.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample10.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample100.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample101.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample102.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample103.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample104.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample105.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample106.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample107.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample108.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample109.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample11.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample110.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample111.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample112.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample113.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample114.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample115.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample116.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample117.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample118.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample119.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample12.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample120.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample121.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample122.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample123.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample124.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample125.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample126.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample127.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample128.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample129.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample13.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample130.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample131.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample132.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample133.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample134.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample135.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample136.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample137.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample138.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample139.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample14.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample140.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample141.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample142.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample143.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample144.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample145.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample146.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample147.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample148.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample149.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample15.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample150.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample151.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample152.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample153.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample154.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample155.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample156.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample157.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample158.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample159.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample16.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample160.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample161.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample162.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample163.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample164.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample165.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample166.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample167.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample168.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample169.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample17.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample170.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample171.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample172.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample173.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample174.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample175.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample176.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample177.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample178.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample179.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample18.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample180.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample181.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample182.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample183.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample184.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample185.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample186.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample187.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample188.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample189.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample19.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample190.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample191.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample192.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample193.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample194.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample195.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample196.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample197.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample198.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample199.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample2.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample20.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample200.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample201.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample202.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample203.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample204.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample205.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample206.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample207.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample208.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample209.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample21.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample210.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample211.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample212.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample213.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample214.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample215.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample216.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample217.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample218.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample219.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample22.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample220.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample221.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample222.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample223.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample224.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample225.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample226.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample227.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample228.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample229.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample23.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample230.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample231.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample232.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample233.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample234.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample235.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample236.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample237.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample238.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample239.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample24.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample240.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample241.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample242.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample243.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample244.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample245.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample246.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample247.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample248.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample249.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample25.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample250.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample251.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample252.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample253.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample254.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample255.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample256.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample257.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample258.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample259.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample26.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample260.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample261.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample262.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample263.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample264.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample265.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample266.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample267.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample268.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample269.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample27.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample270.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample271.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample272.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample273.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample274.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample275.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample276.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample277.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample278.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample279.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample28.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample280.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample281.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample282.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample283.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample284.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample285.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample286.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample287.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample288.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample289.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample29.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample290.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample291.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample292.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample293.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample294.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample295.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample296.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample297.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample298.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample299.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample3.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample30.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample300.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample301.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample302.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample303.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample304.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample305.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample306.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample307.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample308.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample309.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample31.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample310.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample311.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample312.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample313.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample314.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample315.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample316.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample317.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample318.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample319.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample32.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample320.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample321.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample322.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample323.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample324.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample325.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample326.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample327.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample328.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample329.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample33.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample330.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample331.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample332.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample333.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample334.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample335.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample336.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample337.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample338.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample339.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample34.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample340.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample341.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample342.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample343.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample344.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample345.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample346.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample347.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample348.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample349.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample35.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample350.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample351.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample352.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample353.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample354.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample355.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample356.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample357.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample358.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample359.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample36.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample360.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample361.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample362.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample363.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample364.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample365.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample366.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample367.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample368.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample369.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample37.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample370.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample371.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample372.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample373.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample374.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample375.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample376.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample377.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample378.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample379.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample38.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample380.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample381.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample382.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample383.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample384.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample385.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample386.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample387.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample388.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample389.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample39.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample390.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample391.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample392.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample393.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample394.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample395.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample396.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample397.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample398.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample399.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample4.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample40.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample400.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample401.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample402.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample403.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample404.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample405.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample406.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample407.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample408.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample409.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample41.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample410.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample411.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample412.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample413.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample414.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample415.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample416.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample417.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample418.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample419.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample42.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample420.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample421.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample422.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample423.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample424.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample425.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample426.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample427.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample428.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample429.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample43.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample430.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample431.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample432.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample433.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample434.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample435.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample436.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample437.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample438.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample439.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample44.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample440.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample441.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample442.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample443.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample444.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample445.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample446.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample447.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample448.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample449.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample45.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample450.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample451.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample452.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample453.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample454.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample455.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample456.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample457.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample458.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample459.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample46.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample460.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample461.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample462.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample463.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample464.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample465.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample466.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample467.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample468.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample469.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample47.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample470.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample471.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample472.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample473.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample474.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample475.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample476.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample477.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample478.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample479.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample48.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample480.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample481.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample482.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample483.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample484.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample485.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample486.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample487.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample488.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample489.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample49.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample490.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample491.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample492.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample493.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample494.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample495.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample496.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample497.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample498.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample499.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample5.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample50.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample500.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample501.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample502.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample503.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample504.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample505.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample506.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample507.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample508.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample509.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample51.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample510.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample511.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample512.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample513.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample514.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample515.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample516.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample517.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample518.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample519.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample52.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample520.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample521.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample522.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample523.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample524.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample525.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample526.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample527.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample528.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample529.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample53.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample530.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample531.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample532.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample533.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample534.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample535.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample536.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample537.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample538.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample539.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample54.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample540.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample541.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample542.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample543.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample544.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample545.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample546.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample547.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample548.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample549.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample55.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample550.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample551.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample552.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample553.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample554.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample555.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample556.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample557.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample558.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample559.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample56.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample560.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample561.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample562.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample563.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample564.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample565.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample566.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample567.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample568.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample569.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample57.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample570.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample571.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample572.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample573.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample574.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample575.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample576.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample577.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample578.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample579.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample58.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample580.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample581.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample582.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample583.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample584.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample585.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample586.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample587.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample588.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample589.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample59.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample590.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample591.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample592.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample593.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample594.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample595.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample596.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample597.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample598.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample599.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample6.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample60.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample600.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample601.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample602.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample603.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample604.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample605.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample606.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample607.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample608.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample609.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample61.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample610.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample611.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample612.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample613.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample614.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample615.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample616.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample617.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample618.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample619.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample62.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample620.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample621.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample622.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample623.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample624.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample625.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample626.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample627.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample628.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample629.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample63.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample630.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample631.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample632.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample633.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample634.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample635.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample636.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample637.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample638.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample639.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample64.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample640.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample641.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample642.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample643.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample644.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample645.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample646.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample647.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample648.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample649.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample65.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample650.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample651.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample652.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample653.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample654.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample655.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample656.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample657.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample658.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample659.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample66.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample660.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample661.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample662.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample663.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample664.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample665.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample666.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample667.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample668.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample669.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample67.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample670.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample671.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample672.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample673.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample674.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample675.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample676.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample677.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample678.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample679.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample68.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample680.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample681.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample682.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample683.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample684.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample685.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample686.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample687.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample688.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample689.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample69.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample690.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample691.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample692.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample693.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample694.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample695.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample696.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample697.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample698.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample699.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample7.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample70.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample700.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample701.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample702.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample703.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample704.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample705.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample706.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample707.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample708.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample709.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample71.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample710.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample711.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample712.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample713.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample714.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample715.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample716.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample717.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample718.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample719.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample72.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample720.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample721.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample722.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample723.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample724.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample725.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample726.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample727.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample728.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample729.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample73.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample730.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample731.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample732.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample733.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample734.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample735.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample736.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample737.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample738.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample739.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample74.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample740.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample741.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample742.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample743.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample744.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample745.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample746.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample747.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample748.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample749.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample75.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample750.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample751.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample752.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample753.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample754.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample755.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample756.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample757.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample758.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample759.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample76.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample760.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample761.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample762.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample763.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample764.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample765.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample766.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample767.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample768.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample769.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample77.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample770.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample771.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample772.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample773.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample774.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample775.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample776.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample777.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample778.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample779.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample78.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample780.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample781.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample782.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample783.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample784.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample785.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample786.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample787.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample788.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample789.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample79.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample790.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample791.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample792.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample793.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample794.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample795.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample796.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample797.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample798.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample799.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample8.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample80.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample800.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample801.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample802.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample803.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample804.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample805.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample806.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample807.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample808.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample809.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample81.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample810.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample811.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample812.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample813.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample814.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample815.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample816.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample817.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample818.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample819.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample82.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample820.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample821.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample822.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample823.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample824.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample825.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample826.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample827.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample828.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample829.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample83.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample830.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample831.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample832.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample833.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample834.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample835.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample836.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample837.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample838.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample839.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample84.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample840.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample841.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample842.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample843.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample844.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample845.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample846.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample847.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample848.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample849.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample85.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample850.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample851.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample852.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample853.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample854.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample855.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample856.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample857.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample858.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample859.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample86.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample860.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample861.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample862.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample863.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample864.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample865.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample866.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample867.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample868.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample869.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample87.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample870.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample871.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample872.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample873.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample874.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample875.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample876.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample877.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample878.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample879.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample88.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample880.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample881.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample882.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample883.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample884.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample885.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample886.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample887.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample888.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample889.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample89.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample890.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample891.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample892.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample893.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample894.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample895.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample896.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample897.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample898.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample899.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample9.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample90.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample900.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample901.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample902.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample903.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample904.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample905.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample906.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample907.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample908.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample909.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample91.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample910.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample911.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample912.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample913.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample914.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample915.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample916.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample917.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample918.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample919.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample92.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample920.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample921.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample922.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample923.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample924.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample925.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample926.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample927.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample928.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample929.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample93.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample930.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample931.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample932.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample933.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample934.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample935.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample936.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample937.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample938.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample939.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample94.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample940.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample941.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample942.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample943.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample944.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample945.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample946.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample947.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample948.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample949.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample95.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample950.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample951.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample952.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample953.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample954.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample955.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample956.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample957.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample958.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample959.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample96.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample960.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample961.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample962.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample963.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample964.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample965.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample966.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample967.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample968.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample969.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample97.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample970.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample971.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample972.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample973.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample974.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample975.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample976.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample977.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample978.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample979.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample98.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample980.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample981.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample982.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample983.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample984.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample985.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample986.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample987.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample988.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample989.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample99.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample990.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample991.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample992.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample993.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample994.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample995.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample996.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample997.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample998.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsNoDepends/sample999.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample0.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample0.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample1.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample1.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample10.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample10.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample100.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample101.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample102.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample103.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample104.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample105.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample106.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample107.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample108.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample109.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample11.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample11.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample110.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample111.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample112.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample113.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample114.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample115.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample116.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample117.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample118.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample119.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample12.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample12.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample120.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample121.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample122.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample123.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample124.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample125.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample126.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample127.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample128.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample129.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample13.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample13.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample130.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample131.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample132.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample133.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample134.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample135.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample136.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample137.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample138.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample139.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample14.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample14.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample140.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample141.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample142.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample143.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample144.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample145.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample146.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample147.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample148.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample149.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample15.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample15.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample150.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample151.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample152.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample153.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample154.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample155.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample156.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample157.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample158.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample159.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample16.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample16.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample160.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample161.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample162.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample163.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample164.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample165.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample166.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample167.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample168.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample169.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample17.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample17.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample170.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample171.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample172.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample173.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample174.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample175.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample176.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample177.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample178.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample179.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample18.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample18.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample180.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample181.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample182.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample183.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample184.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample185.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample186.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample187.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample188.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample189.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample19.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample19.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample190.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample191.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample192.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample193.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample194.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample195.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample196.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample197.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample198.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample199.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample2.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample2.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample20.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample20.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample200.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample201.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample202.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample203.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample204.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample205.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample206.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample207.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample208.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample209.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample21.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample21.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample210.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample211.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample212.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample213.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample214.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample215.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample216.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample217.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample218.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample219.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample22.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample22.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample220.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample221.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample222.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample223.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample224.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample225.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample226.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample227.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample228.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample229.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample23.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample23.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample230.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample231.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample232.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample233.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample234.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample235.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample236.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample237.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample238.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample239.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample24.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample24.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample240.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample241.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample242.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample243.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample244.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample245.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample246.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample247.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample248.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample249.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample25.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample25.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample250.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample251.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample252.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample253.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample254.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample255.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample256.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample257.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample258.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample259.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample26.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample26.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample260.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample261.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample262.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample263.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample264.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample265.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample266.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample267.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample268.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample269.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample27.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample27.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample270.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample271.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample272.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample273.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample274.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample275.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample276.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample277.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample278.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample279.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample28.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample28.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample280.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample281.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample282.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample283.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample284.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample285.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample286.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample287.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample288.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample289.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample29.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample29.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample290.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample291.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample292.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample293.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample294.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample295.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample296.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample297.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample298.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample299.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample3.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample3.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample30.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample30.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample300.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample301.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample302.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample303.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample304.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample305.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample306.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample307.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample308.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample309.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample31.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample31.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample310.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample311.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample312.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample313.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample314.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample315.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample316.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample317.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample318.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample319.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample32.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample32.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample320.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample321.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample322.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample323.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample324.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample325.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample326.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample327.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample328.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample329.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample33.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample33.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample330.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample331.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample332.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample333.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample334.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample335.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample336.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample337.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample338.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample339.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample34.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample34.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample340.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample341.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample342.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample343.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample344.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample345.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample346.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample347.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample348.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample349.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample35.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample35.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample350.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample351.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample352.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample353.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample354.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample355.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample356.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample357.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample358.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample359.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample36.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample36.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample360.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample361.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample362.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample363.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample364.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample365.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample366.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample367.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample368.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample369.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample37.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample37.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample370.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample371.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample372.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample373.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample374.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample375.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample376.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample377.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample378.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample379.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample38.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample38.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample380.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample381.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample382.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample383.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample384.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample385.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample386.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample387.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample388.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample389.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample39.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample39.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample390.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample391.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample392.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample393.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample394.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample395.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample396.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample397.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample398.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample399.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample4.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample4.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample40.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample40.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample400.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample401.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample402.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample403.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample404.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample405.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample406.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample407.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample408.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample409.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample41.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample41.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample410.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample411.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample412.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample413.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample414.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample415.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample416.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample417.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample418.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample419.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample42.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample42.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample420.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample421.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample422.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample423.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample424.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample425.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample426.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample427.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample428.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample429.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample43.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample43.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample430.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample431.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample432.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample433.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample434.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample435.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample436.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample437.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample438.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample439.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample44.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample44.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample440.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample441.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample442.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample443.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample444.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample445.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample446.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample447.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample448.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample449.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample45.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample45.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample450.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample451.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample452.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample453.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample454.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample455.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample456.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample457.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample458.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample459.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample46.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample46.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample460.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample461.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample462.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample463.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample464.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample465.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample466.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample467.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample468.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample469.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample47.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample47.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample470.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample471.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample472.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample473.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample474.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample475.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample476.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample477.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample478.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample479.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample48.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample48.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample480.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample481.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample482.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample483.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample484.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample485.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample486.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample487.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample488.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample489.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample49.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample49.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample490.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample491.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample492.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample493.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample494.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample495.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample496.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample497.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample498.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample499.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample5.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample5.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample50.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample50.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample500.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample501.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample502.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample503.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample504.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample505.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample506.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample507.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample508.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample509.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample51.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample51.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample510.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample511.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample512.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample513.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample514.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample515.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample516.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample517.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample518.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample519.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample52.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample52.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample520.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample521.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample522.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample523.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample524.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample525.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample526.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample527.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample528.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample529.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample53.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample53.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample530.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample531.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample532.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample533.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample534.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample535.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample536.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample537.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample538.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample539.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample54.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample54.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample540.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample541.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample542.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample543.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample544.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample545.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample546.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample547.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample548.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample549.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample55.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample55.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample550.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample551.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample552.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample553.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample554.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample555.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample556.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample557.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample558.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample559.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample56.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample56.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample560.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample561.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample562.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample563.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample564.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample565.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample566.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample567.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample568.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample569.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample57.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample57.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample570.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample571.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample572.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample573.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample574.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample575.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample576.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample577.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample578.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample579.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample58.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample58.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample580.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample581.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample582.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample583.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample584.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample585.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample586.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample587.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample588.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample589.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample59.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample59.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample590.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample591.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample592.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample593.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample594.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample595.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample596.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample597.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample598.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample599.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample6.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample6.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample60.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample60.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample600.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample601.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample602.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample603.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample604.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample605.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample606.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample607.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample608.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample609.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample61.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample61.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample610.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample611.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample612.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample613.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample614.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample615.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample616.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample617.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample618.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample619.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample62.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample62.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample620.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample621.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample622.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample623.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample624.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample625.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample626.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample627.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample628.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample629.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample63.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample63.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample630.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample631.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample632.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample633.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample634.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample635.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample636.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample637.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample638.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample639.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample64.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample64.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample640.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample641.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample642.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample643.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample644.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample645.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample646.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample647.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample648.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample649.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample65.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample65.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample650.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample651.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample652.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample653.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample654.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample655.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample656.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample657.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample658.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample659.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample66.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample66.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample660.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample661.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample662.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample663.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample664.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample665.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample666.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample667.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample668.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample669.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample67.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample67.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample670.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample671.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample672.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample673.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample674.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample675.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample676.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample677.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample678.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample679.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample68.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample68.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample680.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample681.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample682.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample683.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample684.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample685.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample686.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample687.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample688.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample689.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample69.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample69.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample690.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample691.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample692.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample693.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample694.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample695.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample696.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample697.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample698.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample699.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample7.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample7.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample70.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample70.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample700.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample701.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample702.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample703.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample704.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample705.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample706.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample707.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample708.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample709.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample71.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample71.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample710.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample711.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample712.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample713.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample714.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample715.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample716.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample717.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample718.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample719.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample72.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample72.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample720.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample721.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample722.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample723.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample724.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample725.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample726.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample727.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample728.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample729.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample73.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample73.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample730.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample731.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample732.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample733.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample734.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample735.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample736.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample737.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample738.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample739.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample74.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample74.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample740.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample741.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample742.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample743.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample744.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample745.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample746.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample747.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample748.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample749.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample75.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample75.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample750.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample751.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample752.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample753.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample754.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample755.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample756.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample757.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample758.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample759.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample76.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample76.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample760.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample761.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample762.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample763.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample764.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample765.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample766.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample767.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample768.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample769.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample77.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample77.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample770.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample771.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample772.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample773.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample774.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample775.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample776.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample777.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample778.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample779.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample78.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample78.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample780.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample781.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample782.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample783.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample784.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample785.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample786.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample787.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample788.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample789.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample79.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample79.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample790.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample791.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample792.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample793.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample794.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample795.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample796.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample797.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample798.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample799.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample8.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample8.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample80.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample80.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample800.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample801.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample802.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample803.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample804.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample805.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample806.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample807.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample808.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample809.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample81.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample81.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample810.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample811.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample812.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample813.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample814.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample815.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample816.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample817.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample818.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample819.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample82.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample82.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample820.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample821.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample822.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample823.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample824.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample825.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample826.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample827.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample828.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample829.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample83.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample83.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample830.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample831.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample832.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample833.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample834.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample835.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample836.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample837.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample838.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample839.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample84.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample84.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample840.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample841.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample842.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample843.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample844.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample845.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample846.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample847.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample848.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample849.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample85.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample85.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample850.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample851.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample852.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample853.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample854.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample855.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample856.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample857.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample858.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample859.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample86.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample86.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample860.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample861.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample862.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample863.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample864.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample865.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample866.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample867.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample868.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample869.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample87.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample87.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample870.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample871.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample872.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample873.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample874.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample875.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample876.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample877.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample878.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample879.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample88.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample88.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample880.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample881.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample882.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample883.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample884.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample885.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample886.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample887.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample888.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample889.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample89.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample89.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample890.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample891.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample892.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample893.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample894.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample895.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample896.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample897.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample898.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample899.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample9.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample9.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample90.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample90.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample900.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample901.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample902.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample903.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample904.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample905.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample906.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample907.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample908.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample909.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample91.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample91.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample910.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample911.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample912.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample913.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample914.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample915.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample916.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample917.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample918.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample919.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample92.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample92.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample920.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample921.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample922.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample923.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample924.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample925.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample926.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample927.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample928.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample929.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample93.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample93.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample930.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample931.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample932.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample933.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample934.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample935.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample936.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample937.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample938.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample939.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample94.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample94.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample940.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample941.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample942.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample943.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample944.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample945.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample946.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample947.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample948.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample949.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample95.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample95.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample950.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample951.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample952.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample953.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample954.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample955.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample956.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample957.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample958.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample959.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample96.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample96.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample960.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample961.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample962.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample963.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample964.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample965.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample966.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample967.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample968.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample969.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample97.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample97.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample970.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample971.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample972.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample973.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample974.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample975.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample976.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample977.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample978.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample979.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample98.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample98.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample980.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample981.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample982.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample983.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample984.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample985.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample986.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample987.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample988.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample989.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample99.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample99.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample990.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample991.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample992.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample993.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample994.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample995.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample996.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample997.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample998.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1000WSDLsXSDDepends/sample999.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100KB.wsdl3107
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample0.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample1.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample10.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample11.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample12.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample13.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample14.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample15.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample16.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample17.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample18.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample19.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample2.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample20.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample21.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample22.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample23.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample24.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample25.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample26.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample27.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample28.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample29.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample3.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample30.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample31.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample32.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample33.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample34.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample35.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample36.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample37.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample38.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample39.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample4.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample40.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample41.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample42.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample43.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample44.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample45.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample46.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample47.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample48.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample49.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample5.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample50.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample51.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample52.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample53.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample54.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample55.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample56.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample57.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample58.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample59.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample6.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample60.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample61.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample62.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample63.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample64.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample65.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample66.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample67.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample68.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample69.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample7.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample70.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample71.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample72.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample73.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample74.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample75.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample76.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample77.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample78.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample79.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample8.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample80.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample81.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample82.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample83.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample84.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample85.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample86.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample87.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample88.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample89.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample9.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample90.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample91.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample92.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample93.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample94.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample95.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample96.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample97.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample98.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsCrossDepends/sample99.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample0.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample1.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample10.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample11.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample12.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample13.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample14.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample15.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample16.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample17.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample18.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample19.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample2.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample20.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample21.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample22.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample23.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample24.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample25.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample26.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample27.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample28.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample29.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample3.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample30.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample31.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample32.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample33.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample34.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample35.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample36.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample37.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample38.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample39.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample4.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample40.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample41.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample42.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample43.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample44.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample45.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample46.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample47.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample48.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample49.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample5.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample50.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample51.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample52.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample53.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample54.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample55.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample56.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample57.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample58.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample59.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample6.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample60.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample61.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample62.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample63.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample64.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample65.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample66.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample67.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample68.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample69.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample7.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample70.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample71.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample72.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample73.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample74.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample75.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample76.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample77.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample78.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample79.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample8.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample80.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample81.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample82.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample83.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample84.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample85.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample86.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample87.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample88.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample89.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample9.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample90.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample91.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample92.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample93.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample94.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample95.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample96.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample97.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample98.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsNoDepends/sample99.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample0.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample0.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample1.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample1.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample10.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample10.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample11.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample11.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample12.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample12.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample13.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample13.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample14.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample14.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample15.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample15.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample16.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample16.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample17.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample17.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample18.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample18.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample19.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample19.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample2.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample2.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample20.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample20.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample21.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample21.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample22.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample22.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample23.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample23.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample24.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample24.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample25.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample25.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample26.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample26.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample27.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample27.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample28.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample28.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample29.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample29.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample3.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample3.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample30.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample30.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample31.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample31.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample32.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample32.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample33.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample33.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample34.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample34.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample35.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample35.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample36.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample36.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample37.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample37.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample38.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample38.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample39.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample39.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample4.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample4.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample40.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample40.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample41.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample41.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample42.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample42.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample43.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample43.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample44.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample44.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample45.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample45.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample46.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample46.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample47.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample47.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample48.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample48.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample49.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample49.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample5.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample5.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample50.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample50.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample51.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample51.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample52.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample52.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample53.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample53.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample54.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample54.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample55.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample55.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample56.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample56.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample57.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample57.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample58.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample58.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample59.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample59.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample6.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample6.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample60.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample60.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample61.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample61.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample62.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample62.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample63.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample63.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample64.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample64.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample65.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample65.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample66.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample66.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample67.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample67.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample68.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample68.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample69.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample69.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample7.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample7.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample70.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample70.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample71.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample71.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample72.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample72.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample73.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample73.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample74.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample74.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample75.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample75.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample76.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample76.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample77.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample77.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample78.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample78.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample79.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample79.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample8.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample8.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample80.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample80.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample81.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample81.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample82.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample82.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample83.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample83.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample84.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample84.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample85.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample85.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample86.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample86.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample87.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample87.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample88.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample88.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample89.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample89.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample9.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample9.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample90.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample90.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample91.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample91.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample92.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample92.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample93.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample93.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample94.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample94.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample95.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample95.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample96.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample96.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample97.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample97.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample98.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample98.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample99.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/100WSDLsXSDDepends/sample99.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10KB.wsdl317
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample0.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample1.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample2.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample3.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample4.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample5.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample6.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample7.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample8.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsCrossDepends/sample9.wsdl39
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample0.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample1.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample2.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample3.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample4.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample5.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample6.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample7.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample8.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsNoDepends/sample9.wsdl36
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample0.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample0.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample1.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample1.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample10.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample11.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample12.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample13.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample14.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample15.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample16.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample17.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample18.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample19.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample2.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample2.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample20.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample21.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample22.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample23.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample24.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample25.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample26.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample27.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample28.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample29.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample3.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample3.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample30.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample31.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample32.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample33.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample34.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample35.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample36.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample37.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample38.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample39.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample4.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample4.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample40.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample41.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample42.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample43.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample44.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample45.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample46.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample47.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample48.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample49.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample5.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample5.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample50.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample51.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample52.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample53.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample54.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample55.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample56.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample57.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample58.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample59.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample6.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample6.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample60.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample61.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample62.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample63.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample64.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample65.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample66.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample67.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample68.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample69.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample7.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample7.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample70.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample71.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample72.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample73.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample74.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample75.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample76.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample77.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample78.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample79.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample8.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample8.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample80.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample81.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample82.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample83.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample84.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample85.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample86.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample87.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample88.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample89.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample9.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample9.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample90.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample91.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample92.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample93.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample94.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample95.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample96.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample97.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample98.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/10WSDLsXSDDepends/sample99.xsd3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1KB.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/1MB.wsdl31007
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/200KB.wsdl6207
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/500KB.wsdl15507
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/data/StockQuote/StockQuote.wsdl68
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/AllTests.java35
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenEditorOAGISWSDLTestcase.java141
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLSetup.java84
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/OpenStockQuoteWSDLTestCase.java87
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/PerformancePlugin.java92
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadOAGISWSDLTestcase.java68
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLEMFTestCase.java54
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ReadStockQuoteWSDLTestCase.java45
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSDLTestcase.java83
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateOAGISWSITestcase.java82
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSDLTestCase.java59
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateStockQuoteWSITestCase.java59
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/ValidateWSDLProjectTestCase.java128
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open100KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open10KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open1MBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open200KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Open500KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/OpenWSDLEditorTestCase.java28
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx100TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx10TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx1TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx25TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx50TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenEditorx75TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatOpenWSDLEditorTestCase.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatRunWSDLValidatorTestCase.java34
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex100TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex10TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex1TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex25TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex50TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RepeatValidatex75TestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/RunWSDLValidatorTestCase.java30
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsCrossDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsNoDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1000WSDLsXSDDependsTestCase.java50
-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.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsNoDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate100WSDLsXSDDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsCrossDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsNoDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate10WSDLsXSDDependsTestCase.java50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate1MBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate200KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/Validate500KBFileTestCase.java32
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/performance/org/eclipse/wst/wsdl/tests/performance/scalability/WSDLScalabilityTests.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/plugin.properties12
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.performance/test.xml647
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/.classpath7
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/.cvsignore4
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/.project28
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/META-INF/MANIFEST.MF23
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/about.html34
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/build.properties15
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/plugin.xml27
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/ConvertWSDL20ActionDelegate.java79
-rw-r--r--tests/org.eclipse.wst.wsdl.tests.ui/src/org/eclipse/wst/wsdl/tests/ui/GenerateWSDLActionDelegate.java61
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/.classpath11
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/.cvsignore4
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/.project28
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/.settings/org.eclipse.jdt.core.prefs258
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/.settings/org.eclipse.jdt.ui.prefs4
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/.settings/org.eclipse.pde.core.prefs3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/META-INF/MANIFEST.MF22
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/about.html34
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/build.properties19
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/plugin.properties13
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/.cvsignore1
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/BindingFaultReconciliation/BindingFaultSample.wsdl128
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/BindingOperationReconciliation/BindingOperationReconciliation.wsdl109
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/DuplicateSAXException/SAXException.wsdl9
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/FullElementExtensibility/ExtendedWSDL.wsdl35
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/FullElementExtensibility/Imported.wsdl50
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/LoadsNamelessDefinition/MissingName.wsdl3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/LoadsNamelessDefinition/WithName.wsdl3
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/LocalNamespace/LocalNamespace.wsdl59
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/NullNamespaceURI/Confirmation.xsd12
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/NullNamespaceURI/ContactInfo.xsd22
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/NullNamespaceURI/ContactInfoService.wsdl44
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/OperationStyle/OperationStyleTest.wsdl120
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/TypeAndElementResolution/Test.wsdl31
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/TypeAndElementResolution/Test1.xsd5
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/TypeAndElementResolution/Test2.xsd12
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/TypesExtensibility/TypesExtensibility.wsdl15
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/WSDLElementResolution/firstlevel.wsdl7
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/WSDLElementResolution/main.wsdl24
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/BugFixes/WSDLElementResolution/secondlevel.wsdl22
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/HTTP/HTTPExample.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/HTTP/HTTPTest.wsdl91
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/MIME/MIMEExample.wsdl64
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/MIME/MIMETest.wsdl55
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/SOAP/DocumentLiteralSOAPExample.wsdl137
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/SOAP/RPCEncodedSOAPExample.wsdl47
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/SOAP/RPCLiteralSOAPExample.wsdl54
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/Extensions/SOAP/SOAPTest.wsdl91
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/LoadStoreCompare/.cvsignore1
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/LoadStoreCompare/Imported.wsdl38
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/samples/LoadStoreCompare/LoadAndPrintTest.wsdl47
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/AllTestCases.java57
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/BugFixesTest.java973
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/InlineSchemaTest.java188
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/LoadAndSerializationTest.java222
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/LocationTrackingTest.java108
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/MyResolver.java35
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/ParserTest.java73
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/RefactoringTest.java206
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/SemanticTest.java486
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/UtilTest.java251
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/WSDL4JAPITest.java387
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/WSDLEMFAPITest.java552
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/WSDLGenerationTest.java238
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/WSDLTestsPlugin.java127
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/extensions/HTTPExtensionsTest.java314
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/extensions/MIMEExtensionsTest.java187
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/extensions/SOAPExtensionsTest.java512
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/extensions/WSDLExtensionsTest.java74
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/DefinitionLoader.java90
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/DefinitionVisitor.java204
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/WSDL4JDefinitionVisitor.java218
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/WSDLConverter.java598
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/WSDLModelLocatorAdapterFactory.java48
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/XMLDiff.java181
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/XSDSchemaLocationResolverAdapterFactory.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/src/org/eclipse/wst/wsdl/tests/util/XSDSchemaLocationResolverImpl.java33
-rw-r--r--tests/org.eclipse.wst.wsdl.tests/test.xml53
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.classpath14
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.cvsignore4
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.project28
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.settings/org.eclipse.jdt.core.prefs62
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/.settings/org.eclipse.pde.prefs13
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/META-INF/MANIFEST.MF30
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/about.html34
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/build.properties19
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/plugin.properties13
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/eclipse/ValidatorTest.java252
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/eclipse/ValidatorWrapper.java117
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/eclipse/WSDLValidatorTest.java42
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/eclipse/WSDLValidatorWrapper.java37
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/eclipse/validatewsdl.properties12
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/resolver/URIResolverTest.java203
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/AntLoggerTest.java187
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/AntLoggerTestTask.java103
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/WSDLValidateTask.java29
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/ant/WSDLValidateTest.java143
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/text/WSDLValidateTest.java221
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/text/WSDLValidateTestLogger.java103
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/ui/text/WSDLValidateWrapper.java113
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/InlineSchemaGeneratorTest.java222
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/xsd/InlineSchemaGeneratorWrapper.java98
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/internal/xml/XMLCatalogTest.java63
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/AllWSDLTests.java54
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/BaseTestCase.java374
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/LineNumberAdjustmentsTest.java46
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/PathsTest.java585
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/WSDLTest.java628
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/WSDLValidatorTestsPlugin.java79
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/src/org/eclipse/wst/wsdl/validation/tests/internal/XSDTest.java222
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/test.xml59
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/.cvsignore1
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/LineNumberAdjustments/cvc-complex-type.2.3/cvc-complex-type.2.3.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/LineNumberAdjustments/cvc-complex-type.2.4.b/cvc-complex-type.2.4.b.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/AngleHatInFilename/AngleHat^InFilenameInvalid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/AngleHatInFilename/AngleHat^InFilenameValid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/AngleHat^InPath/AngleHatInPathInvalid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/AngleHat^InPath/AngleHatInPathValid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/CloseBracket)InPath/CloseBracketInPathInvalid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/CloseBracket)InPath/CloseBracketInPathValid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/CloseBracketInFilename/CloseBracket)InFilenameInvalid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/CloseBracketInFilename/CloseBracket)InFilenameValid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/Dash-InPath/DashInPathInvalid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/Dash-InPath/DashInPathValid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/DashInFilename/Dash-InFilenameInvalid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/DashInFilename/Dash-InFilenameValid.wsdl-log8
-rw-r--r--tests/org.eclipse.wst.wsdl.validation.tests/testresources/idealResults/Paths/Exclamation!InPath/ExclamationInPathInvalid.wsdl-log8
div>
-
-
- /* public void test_isContainerManagedEntity() {
- Entity objEntity = getInstance();
- boolean retValue = false;
- retValue = objEntity.isContainerManagedEntity();
- }*/
-
- public void test_setPrimaryKeyName() throws Exception {
- init();
- EJBResource DD = (EJBResource) ejbFile.getDeploymentDescriptorResource();
-
- AssemblyDescriptor assemblyDescriptor = DD.getEJBJar().getAssemblyDescriptor();
- List enterpriseBeans = DD.getEJBJar().getEnterpriseBeans();
- ContainerManagedEntity entityBean = null;
- EnterpriseBean bean = null;
- for (int x=0; x< enterpriseBeans.size(); ++x) {
- bean = (EnterpriseBean) enterpriseBeans.get(x);
- if (bean.isEntity() && bean.isContainerManagedEntity()) {
- entityBean = (ContainerManagedEntity) bean;
- break;
- }
- }
- if (entityBean != null) {
- String name = entityBean.getPrimaryKeyName();
- String newName = "NewName" ;
- entityBean.setPrimaryKeyName(newName);
- assertEquals(newName,entityBean.getPrimaryKeyName());
- }
- }
-
- /* public void test_isReentrant() {
-
- Entity objEntity = getInstance();
- boolean retValue = false;
- retValue = objEntity.isReentrant();
- }
-
- public void test_setReentrant() {
-
- Entity objEntity = getInstance();
- boolean newReentrant = false;
- objEntity.setReentrant(newReentrant);
- }*/
-
- /* public void test_unsetReentrant() {
-
- Entity objEntity = getInstance();
- objEntity.unsetReentrant();
- } */
-
- /* public void test_isSetReentrant() {
-
- Entity objEntity = getInstance();
- boolean retValue = false;
- retValue = objEntity.isSetReentrant();
- } */
-
- /* public void test_getPrimaryKey() {
-
- Entity objEntity = getInstance();
- JavaClass retValue = null;
- retValue = objEntity.getPrimaryKey();
- }
-
- public void test_setPrimaryKey() {
-
- Entity objEntity = getInstance();
- JavaClass newPrimaryKey = null;
- objEntity.setPrimaryKey(newPrimaryKey);
- } */
-
- public static junit.framework.Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new EntityTest("test_setPrimaryKeyName"));
- suite.addTest(new EntityTest("test_getPrimaryKeyName"));
- return suite;
- }
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodElementTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodElementTest.java
deleted file mode 100644
index 2aa81ebe..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodElementTest.java
+++ /dev/null
@@ -1,527 +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.jst.j2ee.ejb.test;
-
-import java.util.List;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaHelpers;
-import org.eclipse.jem.java.JavaParameter;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jem.java.Method;
-import org.eclipse.jem.java.internal.impl.JavaRefFactoryImpl;
-import org.eclipse.jst.j2ee.ejb.EJBResource;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.ejb.MethodElement;
-import org.eclipse.jst.j2ee.ejb.MethodElementKind;
-import org.eclipse.jst.j2ee.ejb.Session;
-
-public class MethodElementTest extends EjbEMFTestBase {
- private final int SESSION =0;
- private final int ENTITY = 1;
- private final int CONTAINER_MANAGED_ENTITY =2;
-
-
-
- /**
- * @param name
- */
- public MethodElementTest(String name) {
- super(name);
-
- }
-
- private MethodElement getInstance() {
- return EjbPackage.eINSTANCE.getEjbFactory().createMethodElement();
- }
-
- public void test_MethodElement() {
- MethodElement tmpMethodElement = getInstance();
- assertNotNull(tmpMethodElement);
- }
-
- public void test_addMethodParams() {
- MethodElement objMethodElement = getInstance();
- String param1 = "param1";
- String param2= "param2";
- boolean retValue = false;
- objMethodElement.addMethodParams(param1);
- objMethodElement.addMethodParams(param2);
- List list = objMethodElement.getMethodParams();
- retValue = list.contains(param1);
- assertEquals(retValue,true);
- }
-
- public void test_applyZeroParams() {
- MethodElement objMethodElement = getInstance();
- String param1 = "param1";
- String param2= "param2";
- boolean retValue = false;
- objMethodElement.addMethodParams(param1);
- objMethodElement.addMethodParams(param2);
- List list = objMethodElement.getMethodParams();
- assertEquals(list.size()==2, true) ;
- objMethodElement.applyZeroParams();
- list = objMethodElement.getMethodParams();
- assertEquals(list.size()==0, true) ;
-
- }
-
- public void test_equalSignature() {
-
- MethodElement objMethodElement1 = getInstance();
- MethodElement objMethodElement2 = getInstance();
- MethodElement objMethodElement3 = getInstance();
-
- objMethodElement1.setName("name");
- objMethodElement2.setName("name");
- objMethodElement3.setName("name");
-
- String param1 = "param1";
- String param2= "param2";
- String param3 = "param3";
- String param4= "param4";
-
- objMethodElement1.addMethodParams(param1);
- objMethodElement1.addMethodParams(param2);
-
- objMethodElement2.addMethodParams(param1);
- objMethodElement2.addMethodParams(param2);
-
- objMethodElement3.addMethodParams(param1);
- objMethodElement3.addMethodParams(param2);
-
- objMethodElement1.setType(MethodElementKind.LOCAL_LITERAL);
- objMethodElement2.setType(MethodElementKind.LOCAL_LITERAL);
- objMethodElement3.setType(MethodElementKind.LOCAL_LITERAL);
-
- boolean retValue = false;
- retValue = objMethodElement1.equalSignature(objMethodElement2);
- assertEquals(retValue,true);
- retValue = objMethodElement2.equalSignature(objMethodElement3);
- assertEquals(retValue,true);
-
- objMethodElement3.setName("nameDiff");
- retValue = objMethodElement2.equalSignature(objMethodElement3);
- assertEquals(retValue,false);
-
- objMethodElement2.addMethodParams(param3);
- retValue = objMethodElement1.equalSignature(objMethodElement2);
- assertEquals(retValue,false);
-
- objMethodElement3.setName("name");
- retValue = objMethodElement1.equalSignature(objMethodElement3);
- assertEquals(retValue,true);
-
- objMethodElement3.setType(MethodElementKind.HOME_LITERAL);
- retValue = objMethodElement1.equalSignature(objMethodElement3);
- assertEquals(retValue,false);
- }
-
- public void test_getMethodParams() {
-
- MethodElement objMethodElement = getInstance();
- String param1 = "param1";
- String param2= "param2";
- boolean retValue = false;
- objMethodElement.addMethodParams(param1);
- objMethodElement.addMethodParams(param2);
- List list = objMethodElement.getMethodParams();
- assertEquals(list.size()==2, true) ;
- assertEquals(list.contains(param1),true);
- assertEquals(list.contains(param2),true);
- }
-
-
-
- public void test_getSignature() {
-
- MethodElement objMethodElement = getInstance();
- String name = "test";
- objMethodElement.setName(name);
-
- String param1 = "param1";
- String param2= "param2";
-
- objMethodElement.addMethodParams(param1);
- objMethodElement.addMethodParams(param2);
-
- String signature = name + "(" + param1 + "," + param2 + ")";
- String retValue = objMethodElement.getSignature();
- assertEquals(signature,retValue);
-
-
- }
-
-
-
-
- public void test_getTypeJavaClass() throws Exception {
- init();
- EJBResource DD = (EJBResource) ejbFile.getDeploymentDescriptorResource();
- List enterpriseBeans = DD.getEJBJar().getEnterpriseBeans();
- EnterpriseBean eb = (EnterpriseBean)enterpriseBeans.get(0);
- MethodElement objMethodElement = getInstance();
- objMethodElement.setEnterpriseBean(eb);
- JavaClass retValue = null;
- if (eb.hasRemoteClient()) {
- objMethodElement.setType(MethodElementKind.HOME_LITERAL);
- retValue = objMethodElement.getTypeJavaClass();
- assertEquals(retValue,eb.getHomeInterface());
- objMethodElement.setType(MethodElementKind.REMOTE_LITERAL);
- retValue = objMethodElement.getTypeJavaClass();
- assertEquals(retValue,eb.getRemoteInterface());
-
- }
- if (eb.hasLocalClient()){
- objMethodElement.setType(MethodElementKind.LOCAL_HOME_LITERAL);
- retValue = objMethodElement.getTypeJavaClass();
- assertEquals(retValue,eb.getLocalHomeInterface());
- objMethodElement.setType(MethodElementKind.LOCAL_LITERAL);
- retValue = objMethodElement.getTypeJavaClass();
- assertEquals(retValue,eb.getLocalInterface());
-
- }
- if (eb.isMessageDriven()) {
- objMethodElement.setType(MethodElementKind.UNSPECIFIED_LITERAL);
- retValue = objMethodElement.getTypeJavaClass();
- assertEquals(retValue,eb.getEjbClass());
- }
-
- }
-
-
-
- /* public void test_getMethods() {
-
- }
-
- public void test_getMostSpecific() {
-
- MethodElement objMethodElement = getInstance();
- MethodElement aMethodElement = null;
- JavaClass aClass = null;
- MethodElement retValue = null;
- retValue = objMethodElement.getMostSpecific(aMethodElement, aClass);
- }*/
-
- public void test_hasMethodParams() {
- MethodElement objMethodElement = getInstance();
- boolean retValue = false;
- retValue = objMethodElement.hasMethodParams();
- assertEquals(retValue,false);
- String param1 = "param1";
- objMethodElement.addMethodParams(param1);
- retValue = objMethodElement.hasMethodParams();
- assertEquals(retValue,true);
- String param2 = "param2";
- objMethodElement.addMethodParams(param2);
- retValue = objMethodElement.hasMethodParams();
- assertEquals(retValue,true);
- }
-
- public void test_initializeFromSignature() {
- MethodElement objMethodElement = getInstance();
- String signature = "setTwoParamMethod(java.lang.String,java.util.List)";
- objMethodElement.initializeFromSignature(signature);
- List list = objMethodElement.getMethodParams();
- assertEquals(list.size()==2, true) ;
- String name = "setTwoParamMethod";
- assertEquals(list.contains("java.lang.String"),true);
- assertEquals(list.contains("java.util.List"),true);
- assertEquals(objMethodElement.getName(), "setTwoParamMethod");
-
- }
-
- public void test_isDefault() {
- MethodElement objMethodElement = getInstance();
- objMethodElement.setName("test");
- boolean retValue = false;
- retValue = objMethodElement.isDefault();
- assertEquals(retValue,false);
- objMethodElement.setName(JavaClass.DEFAULT_METHOD_NAME);
- retValue = objMethodElement.isDefault();
- assertEquals(retValue,true);
-
- }
-
- public void test_isEquivalent() {
-
- MethodElement objMethodElement1 = getInstance();
- MethodElement objMethodElement2 = getInstance();
-
- Session session1 = getEjbFactory().createSession();
- Session session2 = getEjbFactory().createSession();
- objMethodElement1.setEnterpriseBean(session1);
- objMethodElement2.setEnterpriseBean(session1);
- String signature1 = "setTwoParamMethod(java.lang.String,java.util.List)";
- String signature2 = "setTwoParamMethod2(java.lang.String,java.util.List)";
- objMethodElement1.initializeFromSignature(signature1);
- objMethodElement2.initializeFromSignature(signature1);
- boolean retValue = false;
- retValue = objMethodElement1.isEquivalent(objMethodElement2);
- assertEquals(retValue,true);
- objMethodElement2.initializeFromSignature(signature2);
- retValue = objMethodElement1.isEquivalent(objMethodElement2);
- assertEquals(retValue,false);
-
- objMethodElement2.initializeFromSignature(signature1);
- objMethodElement2.setEnterpriseBean(session2);
- retValue = objMethodElement1.isEquivalent(objMethodElement2);
- assertEquals(retValue,false);
- }
-
- public void test_isHome() {
-
- MethodElement objMethodElement = getInstance();
- objMethodElement.setType(MethodElementKind.HOME_LITERAL);
- boolean retValue = false;
- retValue = objMethodElement.isHome();
- assertEquals(retValue,true);
- objMethodElement.setType(MethodElementKind.LOCAL_HOME_LITERAL);
- retValue = objMethodElement.isHome();
- assertEquals(retValue,false);
-
- }
-
- public void test_isRemote() {
- MethodElement objMethodElement = getInstance();
- objMethodElement.setType(MethodElementKind.REMOTE_LITERAL);
- boolean retValue = false;
- retValue = objMethodElement.isRemote();
- assertEquals(retValue,true);
- objMethodElement.setType(MethodElementKind.LOCAL_HOME_LITERAL);
- retValue = objMethodElement.isRemote();
- assertEquals(retValue,false);
- }
-
- public void test_isUnspecified() {
- MethodElement objMethodElement = getInstance();
- objMethodElement.setType(MethodElementKind.UNSPECIFIED_LITERAL);
- boolean retValue = false;
- retValue = objMethodElement.isUnspecified();
- assertEquals(retValue,true);
- objMethodElement.setType(MethodElementKind.LOCAL_HOME_LITERAL);
- retValue = objMethodElement.isUnspecified();
- assertEquals(retValue,false);
-
- }
-
- public void test_isLocalHome() {
-
- MethodElement objMethodElement = getInstance();
- objMethodElement.setType(MethodElementKind.LOCAL_HOME_LITERAL );
- boolean retValue = false;
- retValue = objMethodElement.isLocalHome();
- assertEquals(retValue,true);
- objMethodElement.setType(MethodElementKind.UNSPECIFIED_LITERAL);
- retValue = objMethodElement.isLocalHome();
- assertEquals(retValue,false);
- }
-
- public void test_isLocal() {
- MethodElement objMethodElement = getInstance();
- objMethodElement.setType(MethodElementKind.LOCAL_LITERAL );
- boolean retValue = false;
- retValue = objMethodElement.isLocal();
- assertEquals(retValue,true);
- objMethodElement.setType(MethodElementKind.UNSPECIFIED_LITERAL);
- retValue = objMethodElement.isLocal();
- assertEquals(retValue,false);
- }
-
- public void test_isValid() {
- MethodElement objMethodElement = getInstance();
- boolean retValue = false;
- retValue = objMethodElement.isValid();
- }
-
-
- public void test_nameAndParamsEquals() {
-
- MethodElement objMethodElement = getInstance();
- Method aMethod = JavaRefFactoryImpl.getActiveFactory().createMethod();
- String name = "setTwoParamMethod";
- String param1 = "java.lang.String";
- String param2 = "java.util.List";
-
- JavaParameter javaParameter1 = JavaRefFactory.eINSTANCE.createJavaParameter();
- JavaHelpers type1 = JavaRefFactory.eINSTANCE.createClassRef("java.lang.String");
- javaParameter1.setEType(type1);
-
- JavaParameter javaParameter2 = JavaRefFactory.eINSTANCE.createJavaParameter();
- JavaHelpers type2 = JavaRefFactory.eINSTANCE.createClassRef("java.util.List");
- javaParameter2.setEType(type2);
-
- aMethod.setName(name);
- aMethod.getParameters().add(javaParameter1);
- aMethod.getParameters().add(javaParameter2);
-
- objMethodElement.setName(name);
- objMethodElement.addMethodParams(param1);
- objMethodElement.addMethodParams(param2);
-
- boolean retValue = false;
- retValue = objMethodElement.nameAndParamsEquals(aMethod);
- assertEquals(retValue,true);
-
- String name2 = "setTwoParamMethod2";
- objMethodElement.setName(name2);
- retValue = objMethodElement.nameAndParamsEquals(aMethod);
- assertEquals(retValue,false);
-
- objMethodElement.setName(name);
- String param3 = "java.util.List";
- objMethodElement.addMethodParams(param3);
- retValue = objMethodElement.nameAndParamsEquals(aMethod);
- assertEquals(retValue,false);
-
- }
-
- public void test_removeMethodParams() {
-
- MethodElement objMethodElement = getInstance();
- String param1 = "param1";
- String param2= "param2";
- boolean retValue = false;
- objMethodElement.addMethodParams(param1);
- objMethodElement.addMethodParams(param2);
- List list = objMethodElement.getMethodParams();
- retValue = list.contains(param1);
- assertEquals(retValue,true);
- objMethodElement.removeMethodParams(param1);
- list = objMethodElement.getMethodParams();
- retValue = list.contains(param1);
- assertEquals(retValue,false);
- }
-
- /* public void test_represents() {
-
- MethodElement objMethodElement = getInstance();
- Method aMethod = null;
- boolean retValue = false;
- retValue = objMethodElement.represents(aMethod);
- }
-
- public void test_setIdToReadableString() {
-
- MethodElement objMethodElement = getInstance();
- objMethodElement.setIdToReadableString();
- }
-
- public void test_uniquelyIdentifies() {
-
- MethodElement objMethodElement = getInstance();
- Method aMethod = null;
- boolean retValue = false;
- retValue = objMethodElement.uniquelyIdentifies(aMethod);
- } */
-
- /* public void test_getName() {
-
- MethodElement objMethodElement = getInstance();
- String retValue = "";
- retValue = objMethodElement.getName();
- }*/
-
- /* public void test_setName() {
-
- MethodElement objMethodElement = getInstance();
- String newName = "";
- objMethodElement.setName(newName);
- }*/
-
- /* public void test_getParms() {
-
- MethodElement objMethodElement = getInstance();
- String retValue = "";
- retValue = objMethodElement.getParms();
- }
-
- public void test_setParms() {
-
- MethodElement objMethodElement = getInstance();
- String newParms = "";
- objMethodElement.setParms(newParms);
- }*/
-
- /* public void test_getType() {
-
- MethodElement objMethodElement = getInstance();
- MethodElementKind retValue = null;
- retValue = objMethodElement.getType();
- }
-
- public void test_setType() {
-
- MethodElement objMethodElement = getInstance();
- MethodElementKind newType = null;
- objMethodElement.setType(newType);
- }
-
- public void test_unsetType() {
-
- MethodElement objMethodElement = getInstance();
- objMethodElement.unsetType();
- }
-
- public void test_isSetType() {
-
- MethodElement objMethodElement = getInstance();
- boolean retValue = false;
- retValue = objMethodElement.isSetType();
- }*/
-
- /* public void test_getDescription() {
-
- MethodElement objMethodElement = getInstance();
- String retValue = "";
- retValue = objMethodElement.getDescription();
- }
-
- public void test_setDescription() {
-
- MethodElement objMethodElement = getInstance();
- String newDescription = "";
- objMethodElement.setDescription(newDescription);
- }*/
-
- /* public void test_getEnterpriseBean() {
-
- MethodElement objMethodElement = getInstance();
- EnterpriseBean retValue = null;
- retValue = objMethodElement.getEnterpriseBean();
- }
-
-
- public void test_setEnterpriseBean() {
-
- MethodElement objMethodElement = getInstance();
- EnterpriseBean newEnterpriseBean = null;
- objMethodElement.setEnterpriseBean(newEnterpriseBean);
- }*/
-
- /* public void test_getDescriptions() {
-
- MethodElement objMethodElement = getInstance();
- EList retValue = null;
- retValue = objMethodElement.getDescriptions();
- }*/
-
- public static Test suite() {
- return new TestSuite(MethodElementTest.class);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodPermissionTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodPermissionTest.java
deleted file mode 100644
index f0345708..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodPermissionTest.java
+++ /dev/null
@@ -1,187 +0,0 @@
-package org.eclipse.jst.j2ee.ejb.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.ejb.EjbFactory;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.MethodPermission;
-
-public class MethodPermissionTest extends TestCase {
-
- private static final EjbFactory EJBFACTORY = EjbPackage.eINSTANCE.getEjbFactory();
- private static final CommonFactory COMMONFACTORY = CommonPackage.eINSTANCE.getCommonFactory();
- private MethodPermission getInstance() {
- return EJBFACTORY.createMethodPermission();
- }
-
-
- public void test_MethodPermission() {
- MethodPermission tmpMethodPermission = getInstance();
- assertNotNull(tmpMethodPermission);
- }
-
- /*public void test_getMethodElements() {
-
- MethodPermission objMethodPermission = getInstance();
- EnterpriseBean anEJB = null;
- List retValue = null;
- retValue = objMethodPermission.getMethodElements(anEJB);
- }*/
-
- public void test_getSecurityRole() {
-
- MethodPermission objMethodPermission = getInstance();
- SecurityRole securityRole= COMMONFACTORY.createSecurityRole();
- String securityRoleName = "testRole";
- securityRole.setRoleName(securityRoleName);
- objMethodPermission.getRoles().add(securityRole);
-
- SecurityRole retValue = null;
- retValue = objMethodPermission.getSecurityRole(securityRoleName);
- assertEquals(securityRole,retValue);
- }
-
- public void test_hasSecurityRole() {
- MethodPermission objMethodPermission = getInstance();
- SecurityRole securityRole= COMMONFACTORY.createSecurityRole();
- String securityRoleName = "testRole";
- securityRole.setRoleName(securityRoleName);
- objMethodPermission.getRoles().add(securityRole);
- boolean retValue = objMethodPermission.hasSecurityRole(securityRole);
- assertEquals(retValue, true);
- SecurityRole securityRole2= COMMONFACTORY.createSecurityRole();
- retValue = objMethodPermission.hasSecurityRole(securityRole2);
- assertEquals(retValue, false);
- }
-
- public void test_hasSecurityRole_2() {
-
- MethodPermission objMethodPermission = getInstance();
- SecurityRole securityRole= COMMONFACTORY.createSecurityRole();
- String securityRoleName = "testRole";
- securityRole.setRoleName(securityRoleName);
- objMethodPermission.getRoles().add(securityRole);
- boolean retValue = objMethodPermission.hasSecurityRole(securityRoleName);
- assertEquals(retValue, true);
- String securityRoleNameDoesNotExist = "testRoleDoesNotExist";
- retValue = objMethodPermission.hasSecurityRole(securityRoleNameDoesNotExist);
- assertEquals(retValue, false);
- }
-
- public void test_isEquivalent() {
-
- MethodPermission objMethodPermission1 = getInstance();
- MethodPermission objMethodPermission2 = getInstance();
-
- SecurityRole securityRole1= COMMONFACTORY.createSecurityRole();
- securityRole1.setRoleName("testRole1");
- SecurityRole securityRole2= COMMONFACTORY.createSecurityRole();
- securityRole2.setRoleName("testRole2");
- SecurityRole securityRole3= COMMONFACTORY.createSecurityRole();
- securityRole3.setRoleName("testRole3");
-
-
- objMethodPermission1.getRoles().add(securityRole1);
- objMethodPermission1.getRoles().add(securityRole2);
-
- objMethodPermission2.getRoles().add(securityRole1);
- objMethodPermission2.getRoles().add(securityRole2);
-
-
- boolean retValue = objMethodPermission1.isEquivalent(objMethodPermission2);
- assertEquals(retValue, true);
-
- objMethodPermission1.getRoles().add(securityRole3);
- retValue = objMethodPermission1.isEquivalent(objMethodPermission2);
- assertEquals(retValue, false);
-
-
- }
-
- /* public void test_getDescription() {
-
- MethodPermission objMethodPermission = getInstance();
- String retValue = "";
- retValue = objMethodPermission.getDescription();
- }
-
- public void test_setDescription() {
-
- MethodPermission objMethodPermission = getInstance();
- String newDescription = "";
- objMethodPermission.setDescription(newDescription);
- }*/
-
- /* public void test_isUnchecked() {
-
- MethodPermission objMethodPermission = getInstance();
- boolean retValue = false;
- retValue = objMethodPermission.isUnchecked();
- }*/
-
- /* public void test_setUnchecked() {
-
- MethodPermission objMethodPermission = getInstance();
- boolean newUnchecked = false;
- objMethodPermission.setUnchecked(newUnchecked);
- }*/
-
- /* public void test_unsetUnchecked() {
-
- MethodPermission objMethodPermission = getInstance();
- objMethodPermission.unsetUnchecked();
- }*/
-
- /*public void test_isSetUnchecked() {
-
- MethodPermission objMethodPermission = getInstance();
- boolean retValue = false;
- retValue = objMethodPermission.isSetUnchecked();
- }*/
-
- /* public void test_getAssemblyDescriptor() {
-
- MethodPermission objMethodPermission = getInstance();
- AssemblyDescriptor retValue = null;
- retValue = objMethodPermission.getAssemblyDescriptor();
- }
-
- public void test_setAssemblyDescriptor() {
-
- MethodPermission objMethodPermission = getInstance();
- AssemblyDescriptor newAssemblyDescriptor = null;
- objMethodPermission.setAssemblyDescriptor(newAssemblyDescriptor);
- }*/
-
- /* public void test_getRoles() {
-
- MethodPermission objMethodPermission = getInstance();
- EList retValue = null;
- retValue = objMethodPermission.getRoles();
- }*/
-
- /* public void test_getMethodElements_2() {
-
- MethodPermission objMethodPermission = getInstance();
- EList retValue = null;
- retValue = objMethodPermission.getMethodElements();
- }*/
-
- /* public void test_getDescriptions() {
-
- MethodPermission objMethodPermission = getInstance();
- EList retValue = null;
- retValue = objMethodPermission.getDescriptions();
- }*/
-
- public static Test suite() {
- return new TestSuite(MethodPermissionTest.class);
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodTransactionTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodTransactionTest.java
deleted file mode 100644
index 17dd98d5..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/MethodTransactionTest.java
+++ /dev/null
@@ -1,160 +0,0 @@
-package org.eclipse.jst.j2ee.ejb.test;
-
-import java.util.List;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor;
-import org.eclipse.jst.j2ee.ejb.EJBResource;
-import org.eclipse.jst.j2ee.ejb.EjbFactory;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.ejb.MethodElement;
-import org.eclipse.jst.j2ee.ejb.MethodTransaction;
-import org.eclipse.jst.j2ee.ejb.TransactionAttributeType;
-
-public class MethodTransactionTest extends EjbEMFTestBase {
-
- /**
- * @param name
- */
- public MethodTransactionTest(String name) {
- super(name);
- }
-
- public void test_MethodTransaction() {
- MethodTransaction tmpMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- assertNotNull(tmpMethodTransaction);
- }
-
-
- public void test_getMethodElements() throws Exception{
- init();
- EJBResource DD = (EJBResource) ejbFile.getDeploymentDescriptorResource();
- AssemblyDescriptor assemblyDescriptor = DD.getEJBJar().getAssemblyDescriptor();
- assertNotNull(assemblyDescriptor);
- List enterpriseBeans = DD.getEJBJar().getEnterpriseBeans();
- EnterpriseBean eb1 = (EnterpriseBean)enterpriseBeans.get(0);
- // create a method transaction
- MethodTransaction methodTransaction = getEjbFactory().createMethodTransaction();
- List methodTransactions = assemblyDescriptor.getMethodTransactions();
- methodTransactions.add(methodTransaction);
- // create a method element
- MethodElement methodElement = getEjbFactory().createMethodElement();
- methodElement.setEnterpriseBean(eb1);
- methodTransaction.getMethodElements().add(methodElement);
- // get the method element for the enterprise bean
- List methodElements = methodTransaction.getMethodElements(eb1);
- assertEquals(methodElements.contains(methodElement), true);
- }
-
- /**
- *
- * [issue : SA - getMostSpecificMethodElement() - does it need to be an API as it calls
- * to the static member of MethodElementImpl ]
- *
- */
-
- /* public void test_getMostSpecificMethodElement() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- Method aMethod = null;
- MethodElement retValue = null;
- retValue = objMethodTransaction
- .getMostSpecificMethodElement(aMethod);
- } */
-
- public void test_isEquivalent() {
-
- MethodTransaction objMethodTransaction1 = getEjbFactory().createMethodTransaction();
- MethodTransaction objMethodTransaction2 = getEjbFactory().createMethodTransaction();
-
- objMethodTransaction1.setTransactionAttribute(TransactionAttributeType.SUPPORTS_LITERAL);
- objMethodTransaction2.setTransactionAttribute(TransactionAttributeType.SUPPORTS_LITERAL);
-
- boolean retValue = objMethodTransaction1.isEquivalent(objMethodTransaction2);
- assertEquals(retValue,true);
- objMethodTransaction2.setTransactionAttribute(TransactionAttributeType.REQUIRED_LITERAL);
-
- retValue = objMethodTransaction1.isEquivalent(objMethodTransaction2);
- assertEquals(retValue,false);
- }
-
- /* public void test_getTransactionAttribute() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- TransactionAttributeType retValue = null;
- retValue = objMethodTransaction.getTransactionAttribute();
- }
-
- public void test_setTransactionAttribute() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- TransactionAttributeType newTransactionAttribute = null;
- objMethodTransaction
- .setTransactionAttribute(newTransactionAttribute);
- }
-
- public void test_unsetTransactionAttribute() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- objMethodTransaction.unsetTransactionAttribute();
- }
-
- public void test_isSetTransactionAttribute() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- boolean retValue = false;
- retValue = objMethodTransaction.isSetTransactionAttribute();
- }
-*/
- /* public void test_getDescription() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- String retValue = "";
- retValue = objMethodTransaction.getDescription();
- }
-
- public void test_setDescription() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- String newDescription = "";
- objMethodTransaction.setDescription(newDescription);
- }*/
-
- /* public void test_getAssemblyDescriptor() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- AssemblyDescriptor retValue = null;
- retValue = objMethodTransaction.getAssemblyDescriptor();
- }
-
- public void test_setAssemblyDescriptor() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- AssemblyDescriptor newAssemblyDescriptor = null;
- objMethodTransaction.setAssemblyDescriptor(newAssemblyDescriptor);
- } */
-
- /* public void test_getMethodElements_2() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- EList retValue = null;
- retValue = objMethodTransaction.getMethodElements();
- }
-
- public void test_getDescriptions() {
-
- MethodTransaction objMethodTransaction = EjbFactory.eINSTANCE.createMethodTransaction();
- EList retValue = null;
- retValue = objMethodTransaction.getDescriptions();
- } */
-
- public static junit.framework.Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new MethodTransactionTest("test_isEquivalent"));
- suite.addTest(new MethodTransactionTest("test_getMethodElements"));
- return suite;
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/QueryMethodTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/QueryMethodTest.java
deleted file mode 100644
index 23a6ffd5..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/QueryMethodTest.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.eclipse.jst.j2ee.ejb.test;
-
-import java.util.List;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jst.j2ee.ejb.AssemblyDescriptor;
-import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity;
-import org.eclipse.jst.j2ee.ejb.EJBResource;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.ejb.QueryMethod;
-
-public class QueryMethodTest extends EjbEMFTestBase {
-
- /**
- * @param name
- */
- public QueryMethodTest(String name) {
- super(name);
- }
-
-
- /* public void test_getQuery() {
-
- QueryMethod objQueryMethod = EjbFactory.eINSTANCE.createQueryMethod();
- Query retValue = null;
- retValue = objQueryMethod.getQuery();
- }
-
- public void test_setQuery() {
-
- QueryMethod objQueryMethod = EjbFactory.eINSTANCE.createQueryMethod();
- Query newQuery = null;
- objQueryMethod.setQuery(newQuery);
- } */
-
-
-
- public void test_getClientTypeJavaClasses() throws Exception {
- init();
- EJBResource DD = (EJBResource) ejbFile.getDeploymentDescriptorResource();
-
- AssemblyDescriptor assemblyDescriptor = DD.getEJBJar().getAssemblyDescriptor();
- List enterpriseBeans = DD.getEJBJar().getEnterpriseBeans();
- ContainerManagedEntity entityBean = null;
- EnterpriseBean bean = null;
- for (int x=0; x< enterpriseBeans.size(); ++x) {
- bean = (EnterpriseBean) enterpriseBeans.get(x);
- if (bean.isEntity() && bean.isContainerManagedEntity()) {
- entityBean = (ContainerManagedEntity) bean;
- break;
- }
- }
- assertNotNull(entityBean);
- QueryMethod objQueryMethod =getEjbFactory().createQueryMethod();
- objQueryMethod.setName(QueryMethod.SELECT_PREFIX+"Test");
- objQueryMethod.setEnterpriseBean(entityBean);
- JavaClass[] retValue = objQueryMethod.getClientTypeJavaClasses();
- assertNotNull(retValue);
- assertEquals(retValue.length==1,true );
- assertEquals(retValue[0],entityBean.getEjbClass());
-
- objQueryMethod.setName(QueryMethod.FIND_PREFIX+"Test");
-
- if (entityBean.hasLocalClient() && !entityBean.hasRemoteClient()) {
- retValue = objQueryMethod.getClientTypeJavaClasses();
- assertNotNull(retValue);
- assertEquals(retValue.length==1,true );
- assertEquals(retValue[0],entityBean.getLocalHomeInterface());
- }
- if (entityBean.hasRemoteClient() && !entityBean.hasLocalClient()) {
- retValue = objQueryMethod.getClientTypeJavaClasses();
- assertNotNull(retValue);
- assertEquals(retValue.length==1,true );
- assertEquals(retValue[0],entityBean.getHomeInterface());
- }
- if (entityBean.hasRemoteClient() && entityBean.hasLocalClient()) {
- retValue = objQueryMethod.getClientTypeJavaClasses();
- assertNotNull(retValue);
- assertEquals(retValue.length==2,true );
- assertEquals(retValue[0],entityBean.getLocalHomeInterface());
- assertEquals(retValue[1],entityBean.getHomeInterface());
- }
- }
-
- public static junit.framework.Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new QueryMethodTest("test_getClientTypeJavaClasses"));
- return suite;
- }
-
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/QueryTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/QueryTest.java
deleted file mode 100644
index f62d6465..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/QueryTest.java
+++ /dev/null
@@ -1,130 +0,0 @@
-package org.eclipse.jst.j2ee.ejb.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.ejb.EjbFactory;
-import org.eclipse.jst.j2ee.ejb.Query;
-import org.eclipse.jst.j2ee.ejb.ReturnTypeMapping;
-
-public class QueryTest extends TestCase {
-
- public void test_Query() {
- Query tmpQuery = EjbFactory.eINSTANCE.createQuery();
- assertNotNull(tmpQuery);
- }
- public static Test suite() {
- return new TestSuite(QueryTest.class);
- }
-
- public void test_isLocalResultMapping() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- objQuery.setReturnTypeMapping(ReturnTypeMapping.LOCAL_LITERAL);
- assertEquals(objQuery.isLocalResultMapping(),true);
- objQuery.setReturnTypeMapping(ReturnTypeMapping.REMOTE_LITERAL);
- assertEquals(objQuery.isLocalResultMapping(),false);
-
- }
-
- public void test_isRemoteResultMapping() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- objQuery.setReturnTypeMapping(ReturnTypeMapping.REMOTE_LITERAL);
- assertEquals(objQuery.isLocalResultMapping(),false);
- objQuery.setReturnTypeMapping(ReturnTypeMapping.LOCAL_LITERAL);
- assertEquals(objQuery.isLocalResultMapping(),true);
-
- }
-
- /* public void test_getDescription() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- String retValue = "";
- retValue = objQuery.getDescription();
- }
-
- public void test_setDescription() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- String newDescription = "";
- objQuery.setDescription(newDescription);
- }
-
- public void test_getEjbQL() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- String retValue = "";
- retValue = objQuery.getEjbQL();
- }
-
- public void test_setEjbQL() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- String newEjbQL = "";
- objQuery.setEjbQL(newEjbQL);
- } */
-
- /* public void test_getReturnTypeMapping() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- ReturnTypeMapping retValue = null;
- retValue = objQuery.getReturnTypeMapping();
- }
-
- public void test_setReturnTypeMapping() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- ReturnTypeMapping newReturnTypeMapping = null;
- objQuery.setReturnTypeMapping(newReturnTypeMapping);
- }
-
- public void test_unsetReturnTypeMapping() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- objQuery.unsetReturnTypeMapping();
- }
-
- public void test_isSetReturnTypeMapping() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- boolean retValue = false;
- retValue = objQuery.isSetReturnTypeMapping();
- }*/
-
- /* public void test_getQueryMethod() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- QueryMethod retValue = null;
- retValue = objQuery.getQueryMethod();
- }
-
- public void test_setQueryMethod() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- QueryMethod newQueryMethod = null;
- objQuery.setQueryMethod(newQueryMethod);
- }*/
-
- /* public void test_getEntity() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- ContainerManagedEntity retValue = null;
- retValue = objQuery.getEntity();
- }
-
- public void test_setEntity() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- ContainerManagedEntity newEntity = null;
- objQuery.setEntity(newEntity);
- }*/
-
- /*public void test_getDescriptions() {
-
- Query objQuery = EjbFactory.eINSTANCE.createQuery();
- EList retValue = null;
- retValue = objQuery.getDescriptions();
- }*/
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/SessionTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/SessionTest.java
deleted file mode 100644
index 4077fd00..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/ejb/test/SessionTest.java
+++ /dev/null
@@ -1,116 +0,0 @@
-package org.eclipse.jst.j2ee.ejb.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.ejb.EjbFactory;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.Session;
-
-public class SessionTest extends TestCase {
-
- public static Test suite() {
- return new TestSuite(SessionTest.class);
- }
-
- /* public void test_getTransactionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- TransactionType retValue = null;
- retValue = objSession.getTransactionType();
- }
-
- public void test_setTransactionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- TransactionType newTransactionType = null;
- objSession.setTransactionType(newTransactionType);
- }
-
- public void test_unsetTransactionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- objSession.unsetTransactionType();
- }
-
- public void test_isSetTransactionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- boolean retValue = false;
- retValue = objSession.isSetTransactionType();
- }*/
-
- /* public void test_getSessionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- SessionType retValue = null;
- retValue = objSession.getSessionType();
- }
-
- public void test_setSessionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- SessionType newSessionType = null;
- objSession.setSessionType(newSessionType);
- }
-
- public void test_unsetSessionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- objSession.unsetSessionType();
- }
-
- public void test_isSetSessionType() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- boolean retValue = false;
- retValue = objSession.isSetSessionType();
- }*/
-
- /* public void test_getServiceEndpoint() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- JavaClass retValue = null;
- retValue = objSession.getServiceEndpoint();
- }
-
-
- public void test_setServiceEndpoint() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- JavaClass newServiceEndpoint = null;
- objSession.setServiceEndpoint(newServiceEndpoint);
- }*/
-
- public void test_setServiceEndpointName() {
-
- Session objSession = EjbPackage.eINSTANCE.getEjbFactory().createSession();
- String serviceEndpointName = "SessionEndPoint1";
- objSession.setServiceEndpointName(serviceEndpointName);
- assertEquals(serviceEndpointName,objSession.getServiceEndpointName());
-
- }
-
- public void test_hasServiceEndpoint() {
-
- Session objSession = EjbFactory.eINSTANCE.createSession();
- assertEquals(objSession.hasServiceEndpoint(),false);
- boolean retValue = false;
- String serviceEndpointName = "SessionEndPoint1";
- objSession.setServiceEndpointName(serviceEndpointName);
- retValue = objSession.hasServiceEndpoint();
- assertEquals(objSession.hasServiceEndpoint(),true);
-
- }
-
- public void test_getServiceEndpointName() {
-
- Session objSession = EjbPackage.eINSTANCE.getEjbFactory().createSession();
- String serviceEndpointName = "SessionEndPoint1";
- objSession.setServiceEndpointName(serviceEndpointName);
- assertEquals(serviceEndpointName,objSession.getServiceEndpointName());
-
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jca/test/ConnectorTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jca/test/ConnectorTest.java
deleted file mode 100644
index 317c8d5e..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jca/test/ConnectorTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.eclipse.jst.j2ee.jca.test;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.archive.emftests.RarEMFTest;
-import org.eclipse.jst.j2ee.archive.testutilities.EMFAttributeFeatureGenerator;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.ConnectorResource;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-
-public class ConnectorTest extends RarEMFTest {
-
- /**
- * @param name
- */
- public ConnectorTest(String name) {
- super(name);
- }
-
- public Connector getInstance() {
- return JcaPackage.eINSTANCE.getJcaFactory().createConnector();
- }
-
- public void test_getVersionID() throws Exception {
- EMFAttributeFeatureGenerator.reset();
- createEAR();
- createRAR();
-
- ConnectorResource DD = (ConnectorResource) rarFile.getDeploymentDescriptorResource();
- DD.setVersionID(J2EEVersionConstants.J2EE_1_4_ID);
- setVersion(VERSION_1_4);
- int versionID = DD.getConnector().getVersionID();
- assertEquals(versionID,J2EEVersionConstants.JCA_1_5_ID);
-
- }
-
- public static junit.framework.Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new ConnectorTest("test_getVersionID"));
- return suite;
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jca/test/JcaFactoryTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jca/test/JcaFactoryTest.java
deleted file mode 100644
index 48905937..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jca/test/JcaFactoryTest.java
+++ /dev/null
@@ -1,159 +0,0 @@
-package org.eclipse.jst.j2ee.jca.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaFactory;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-
-public class JcaFactoryTest extends TestCase {
-
- private JcaFactory getInstance() {
- return JcaPackage.eINSTANCE.getJcaFactory();
- }
- public void test_JcaFactory() {
-
- JcaFactory tmpJcaFactory = getInstance();
- }
-
- public static Test suite() {
- return new TestSuite(JcaFactoryTest.class);
- }
-
- public void test_createConnector() {
-
- JcaFactory objJcaFactory = getInstance();
- Connector retValue = null;
- retValue = objJcaFactory.createConnector();
- assertNotNull(retValue);
- }
-
- public void test_createLicense() {
-
- JcaFactory objJcaFactory = getInstance();
- License retValue = null;
- retValue = objJcaFactory.createLicense();
- assertNotNull(retValue);
- }
-
- public void test_createInboundResourceAdapter() {
-
- JcaFactory objJcaFactory = getInstance();
- InboundResourceAdapter retValue = null;
- retValue = objJcaFactory.createInboundResourceAdapter();
- assertNotNull(retValue);
- }
-
- public void test_createOutboundResourceAdapter() {
-
- JcaFactory objJcaFactory = getInstance();
- OutboundResourceAdapter retValue = null;
- retValue = objJcaFactory.createOutboundResourceAdapter();
- assertNotNull(retValue);
- }
-
- public void test_createMessageAdapter() {
-
- JcaFactory objJcaFactory = getInstance();
- MessageAdapter retValue = null;
- retValue = objJcaFactory.createMessageAdapter();
- assertNotNull(retValue);
- }
-
- public void test_createConnectionDefinition() {
-
- JcaFactory objJcaFactory = getInstance();
- ConnectionDefinition retValue = null;
- retValue = objJcaFactory.createConnectionDefinition();
- assertNotNull(retValue);
- }
-
- public void test_createAdminObject() {
-
- JcaFactory objJcaFactory = getInstance();
- AdminObject retValue = null;
- retValue = objJcaFactory.createAdminObject();
- assertNotNull(retValue);
- }
-
- public void test_createMessageListener() {
-
- JcaFactory objJcaFactory = getInstance();
- MessageListener retValue = null;
- retValue = objJcaFactory.createMessageListener();
- assertNotNull(retValue);
- }
-
- public void test_createActivationSpec() {
-
- JcaFactory objJcaFactory = getInstance();
- ActivationSpec retValue = null;
- retValue = objJcaFactory.createActivationSpec();
- assertNotNull(retValue);
- }
-
- public void test_createRequiredConfigPropertyType() {
-
- JcaFactory objJcaFactory = getInstance();
- RequiredConfigPropertyType retValue = null;
- retValue = objJcaFactory.createRequiredConfigPropertyType();
- assertNotNull(retValue);
- }
-
- public void test_createResourceAdapter() {
-
- JcaFactory objJcaFactory = getInstance();
- ResourceAdapter retValue = null;
- retValue = objJcaFactory.createResourceAdapter();
- assertNotNull(retValue);
- }
-
- public void test_createSecurityPermission() {
-
- JcaFactory objJcaFactory = getInstance();
- SecurityPermission retValue = null;
- retValue = objJcaFactory.createSecurityPermission();
- assertNotNull(retValue);
- }
-
- public void test_createAuthenticationMechanism() {
-
- JcaFactory objJcaFactory = getInstance();
- AuthenticationMechanism retValue = null;
- retValue = objJcaFactory.createAuthenticationMechanism();
- assertNotNull(retValue);
- }
-
- public void test_createConfigProperty() {
-
- JcaFactory objJcaFactory = getInstance();
- ConfigProperty retValue = null;
- retValue = objJcaFactory.createConfigProperty();
- assertNotNull(retValue);
- }
-
- public void test_getJcaPackage() {
-
- JcaFactory objJcaFactory = getInstance();
- JcaPackage retValue = null;
- retValue = objJcaFactory.getJcaPackage();
-
- assertNotNull(retValue);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jsp/test/JspFactoryTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jsp/test/JspFactoryTest.java
deleted file mode 100644
index 7b1f9876..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/jsp/test/JspFactoryTest.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.eclipse.jst.j2ee.jsp.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.jca.test.JcaFactoryTest;
-import org.eclipse.jst.j2ee.jsp.JSPConfig;
-import org.eclipse.jst.j2ee.jsp.JSPPropertyGroup;
-import org.eclipse.jst.j2ee.jsp.JspFactory;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.TagLibRefType;
-
-public class JspFactoryTest extends TestCase {
-
- public static Test suite() {
- return new TestSuite(JcaFactoryTest.class);
- }
-
- private JspFactory getInstance() {
- return JspPackage.eINSTANCE.getJspFactory();
- }
- public void test_createJSPConfig() {
-
- JspFactory objJspFactory = getInstance();
- JSPConfig retValue = null;
- retValue = objJspFactory.createJSPConfig();
- assertNotNull(retValue);
- }
-
- public void test_createJSPPropertyGroup() {
-
- JspFactory objJspFactory = getInstance();
- JSPPropertyGroup retValue = null;
- retValue = objJspFactory.createJSPPropertyGroup();
- assertNotNull(retValue);
- }
-
- public void test_createTagLibRefType() {
-
- JspFactory objJspFactory = getInstance();
- TagLibRefType retValue = null;
- retValue = objJspFactory.createTagLibRefType();
- assertNotNull(retValue);
- }
-
- public void test_getJspPackage() {
-
- JspFactory objJspFactory = getInstance();
- JspPackage retValue = null;
- retValue = objJspFactory.getJspPackage();
- // TODO getWsddPackage method always return null
- assertNotNull(retValue);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webapplication/test/WebapplicationFactoryTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webapplication/test/WebapplicationFactoryTest.java
deleted file mode 100644
index 03d0a1d4..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webapplication/test/WebapplicationFactoryTest.java
+++ /dev/null
@@ -1,281 +0,0 @@
-package org.eclipse.jst.j2ee.webapplication.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.RoleNameType;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-public class WebapplicationFactoryTest extends TestCase {
-
- public static Test suite() {
- return new TestSuite(WebapplicationFactoryTest.class);
- }
-
- private WebapplicationFactory getInstance() {
- return WebapplicationPackage.eINSTANCE.getWebapplicationFactory();
- }
-
- public void test_createWebApp() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- WebApp retValue = null;
- retValue = objWebapplicationFactory.createWebApp();
- assertNotNull(retValue);
- }
-
- public void test_createContextParam() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- ContextParam retValue = null;
- retValue = objWebapplicationFactory.createContextParam();
- assertNotNull(retValue);
- }
-
- public void test_createErrorPage() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- ErrorPage retValue = null;
- retValue = objWebapplicationFactory.createErrorPage();
- assertNotNull(retValue);
- }
-
- public void test_createTagLibRef() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- TagLibRef retValue = null;
- retValue = objWebapplicationFactory.createTagLibRef();
- assertNotNull(retValue);
- }
-
- public void test_createExceptionTypeErrorPage() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- ExceptionTypeErrorPage retValue = null;
- retValue = objWebapplicationFactory.createExceptionTypeErrorPage();
- assertNotNull(retValue);
- }
-
- public void test_createErrorCodeErrorPage() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- ErrorCodeErrorPage retValue = null;
- retValue = objWebapplicationFactory.createErrorCodeErrorPage();
- assertNotNull(retValue);
- }
-
- public void test_createWelcomeFileList() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- WelcomeFileList retValue = null;
- retValue = objWebapplicationFactory.createWelcomeFileList();
- assertNotNull(retValue);
- }
-
- public void test_createWelcomeFile() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- WelcomeFile retValue = null;
- retValue = objWebapplicationFactory.createWelcomeFile();
- assertNotNull(retValue);
- }
-
- public void test_createSecurityConstraint() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- SecurityConstraint retValue = null;
- retValue = objWebapplicationFactory.createSecurityConstraint();
- assertNotNull(retValue);
- }
-
- public void test_createWebResourceCollection() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- WebResourceCollection retValue = null;
- retValue = objWebapplicationFactory.createWebResourceCollection();
- assertNotNull(retValue);
- }
-
- public void test_createURLPatternType() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- URLPatternType retValue = null;
- retValue = objWebapplicationFactory.createURLPatternType();
- assertNotNull(retValue);
- }
-
- public void test_createAuthConstraint() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- AuthConstraint retValue = null;
- retValue = objWebapplicationFactory.createAuthConstraint();
- assertNotNull(retValue);
- }
-
- public void test_createUserDataConstraint() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- UserDataConstraint retValue = null;
- retValue = objWebapplicationFactory.createUserDataConstraint();
- assertNotNull(retValue);
- }
-
- public void test_createLoginConfig() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- LoginConfig retValue = null;
- retValue = objWebapplicationFactory.createLoginConfig();
- assertNotNull(retValue);
- }
-
- public void test_createFormLoginConfig() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- FormLoginConfig retValue = null;
- retValue = objWebapplicationFactory.createFormLoginConfig();
- assertNotNull(retValue);
- }
-
- public void test_createMimeMapping() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- MimeMapping retValue = null;
- retValue = objWebapplicationFactory.createMimeMapping();
- assertNotNull(retValue);
- }
-
- public void test_createSessionConfig() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- SessionConfig retValue = null;
- retValue = objWebapplicationFactory.createSessionConfig();
- assertNotNull(retValue);
- }
-
- public void test_createServletMapping() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- ServletMapping retValue = null;
- retValue = objWebapplicationFactory.createServletMapping();
- assertNotNull(retValue);
- }
-
- public void test_createServlet() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- Servlet retValue = null;
- retValue = objWebapplicationFactory.createServlet();
- assertNotNull(retValue);
- }
-
- public void test_createServletType() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- ServletType retValue = null;
- retValue = objWebapplicationFactory.createServletType();
- assertNotNull(retValue);
- }
-
- public void test_createJSPType() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- JSPType retValue = null;
- retValue = objWebapplicationFactory.createJSPType();
- assertNotNull(retValue);
- }
-
- public void test_createInitParam() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- InitParam retValue = null;
- retValue = objWebapplicationFactory.createInitParam();
- assertNotNull(retValue);
- }
-
- public void test_createFilter() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- Filter retValue = null;
- retValue = objWebapplicationFactory.createFilter();
- assertNotNull(retValue);
- }
-
- public void test_createFilterMapping() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- FilterMapping retValue = null;
- retValue = objWebapplicationFactory.createFilterMapping();
- assertNotNull(retValue);
- }
-
- public void test_createLocalEncodingMappingList() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- LocalEncodingMappingList retValue = null;
- retValue = objWebapplicationFactory
- .createLocalEncodingMappingList();
- assertNotNull(retValue);
- }
-
- public void test_createLocalEncodingMapping() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- LocalEncodingMapping retValue = null;
- retValue = objWebapplicationFactory.createLocalEncodingMapping();
- assertNotNull(retValue);
- }
-
- public void test_createHTTPMethodType() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- HTTPMethodType retValue = null;
- retValue = objWebapplicationFactory.createHTTPMethodType();
- assertNotNull(retValue);
- }
-
- public void test_createRoleNameType() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- RoleNameType retValue = null;
- retValue = objWebapplicationFactory.createRoleNameType();
- assertNotNull(retValue);
- }
-
- public void test_getWebapplicationPackage() {
-
- WebapplicationFactory objWebapplicationFactory = getInstance();
- WebapplicationPackage retValue = null;
- retValue = objWebapplicationFactory.getWebapplicationPackage();
- assertNotNull(retValue);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webservice/wscommon/test/WscommonFactoryTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webservice/wscommon/test/WscommonFactoryTest.java
deleted file mode 100644
index fa764fe9..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webservice/wscommon/test/WscommonFactoryTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.eclipse.jst.j2ee.webservice.wscommon.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.webservice.wscommon.DescriptionType;
-import org.eclipse.jst.j2ee.webservice.wscommon.DisplayNameType;
-import org.eclipse.jst.j2ee.webservice.wscommon.InitParam;
-import org.eclipse.jst.j2ee.webservice.wscommon.PortName;
-import org.eclipse.jst.j2ee.webservice.wscommon.SOAPHeader;
-import org.eclipse.jst.j2ee.webservice.wscommon.SOAPRole;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonFactory;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-
-public class WscommonFactoryTest extends TestCase {
-
- public static Test suite() {
- return new TestSuite(WscommonFactoryTest.class);
- }
-
- private WscommonFactory getInstance() {
- return WscommonPackage.eINSTANCE.getWscommonFactory();
- }
- public void test_createInitParam() {
-
- WscommonFactory objWscommonFactory = getInstance();
- InitParam retValue = null;
- retValue = objWscommonFactory.createInitParam();
- assertNotNull(retValue);
- }
-
- public void test_createSOAPHeader() {
-
- WscommonFactory objWscommonFactory = getInstance();
- SOAPHeader retValue = null;
- retValue = objWscommonFactory.createSOAPHeader();
- assertNotNull(retValue);
- }
-
- public void test_createSOAPRole() {
-
- WscommonFactory objWscommonFactory = getInstance();
- SOAPRole retValue = null;
- retValue = objWscommonFactory.createSOAPRole();
- assertNotNull(retValue);
- }
-
- public void test_createPortName() {
-
- WscommonFactory objWscommonFactory = getInstance();
- PortName retValue = null;
- retValue = objWscommonFactory.createPortName();
- assertNotNull(retValue);
- }
-
- public void test_createDescriptionType() {
-
- WscommonFactory objWscommonFactory = getInstance();
- DescriptionType retValue = null;
- retValue = objWscommonFactory.createDescriptionType();
- assertNotNull(retValue);
- }
-
- public void test_createDisplayNameType() {
-
- WscommonFactory objWscommonFactory = getInstance();
- DisplayNameType retValue = null;
- retValue = objWscommonFactory.createDisplayNameType();
- assertNotNull(retValue);
- }
-
- public void test_getWscommonPackage() {
-
- WscommonFactory objWscommonFactory = getInstance();
- WscommonPackage retValue = null;
- retValue = objWscommonFactory.getWscommonPackage();
-
- assertNotNull(retValue);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webservice/wsdd/test/WsddFactoryTest.java b/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webservice/wsdd/test/WsddFactoryTest.java
deleted file mode 100644
index 6210ab86..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/mofj2eeTests/org/eclipse/jst/j2ee/webservice/wsdd/test/WsddFactoryTest.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package org.eclipse.jst.j2ee.webservice.wsdd.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.webservice.wsdd.BeanLink;
-import org.eclipse.jst.j2ee.webservice.wsdd.EJBLink;
-import org.eclipse.jst.j2ee.webservice.wsdd.Handler;
-import org.eclipse.jst.j2ee.webservice.wsdd.PortComponent;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServiceImplBean;
-import org.eclipse.jst.j2ee.webservice.wsdd.ServletLink;
-import org.eclipse.jst.j2ee.webservice.wsdd.WSDLPort;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServiceDescription;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServices;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-
-public class WsddFactoryTest extends TestCase {
-
- public static Test suite() {
- return new TestSuite(WsddFactoryTest.class);
- }
-
- private WsddFactory getInstance() {
- return WsddPackage.eINSTANCE.getWsddFactory();
- }
- public void test_createWebServices() {
-
- WsddFactory objWsddFactory = getInstance();
- WebServices retValue = null;
- retValue = objWsddFactory.createWebServices();
- assertNotNull(retValue);
- }
-
- public void test_createWebServiceDescription() {
-
- WsddFactory objWsddFactory = getInstance();
- WebServiceDescription retValue = null;
- retValue = objWsddFactory.createWebServiceDescription();
- assertNotNull(retValue);
- }
-
- public void test_createPortComponent() {
-
- WsddFactory objWsddFactory = getInstance();
- PortComponent retValue = null;
- retValue = objWsddFactory.createPortComponent();
- assertNotNull(retValue);
- }
-
- public void test_createWSDLPort() {
-
- WsddFactory objWsddFactory = getInstance();
- WSDLPort retValue = null;
- retValue = objWsddFactory.createWSDLPort();
- assertNotNull(retValue);
- }
-
- public void test_createServiceImplBean() {
-
- WsddFactory objWsddFactory = getInstance();
- ServiceImplBean retValue = null;
- retValue = objWsddFactory.createServiceImplBean();
- assertNotNull(retValue);
- }
-
- public void test_createServletLink() {
-
- WsddFactory objWsddFactory = getInstance();
- ServletLink retValue = null;
- retValue = objWsddFactory.createServletLink();
- assertNotNull(retValue);
- }
-
- public void test_createEJBLink() {
-
- WsddFactory objWsddFactory = getInstance();
- EJBLink retValue = null;
- retValue = objWsddFactory.createEJBLink();
- assertNotNull(retValue);
- }
-
- public void test_createHandler() {
-
- WsddFactory objWsddFactory = getInstance();
- Handler retValue = null;
- retValue = objWsddFactory.createHandler();
- assertNotNull(retValue);
- }
-
- public void test_createBeanLink() {
-
- WsddFactory objWsddFactory = getInstance();
- BeanLink retValue = null;
- retValue = objWsddFactory.createBeanLink();
- assertNotNull(retValue);
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/out.xmi b/tests/org.eclipse.jst.j2ee.core.tests/out.xmi
deleted file mode 100644
index 47d30c3a..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/out.xmi
+++ /dev/null
@@ -1,110 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<org.eclipse.jem.internal.java:JavaClass xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:org.eclipse.jem.internal.java="java.xmi" name="A" kind="CLASS" public="true">
- <eSuperTypes href="java:/java.lang#Object"/>
- <implementsInterfaces href="java:/com.ibm.etools.java.stressSample#IA"/>
- <fields name="anA" eType="/"/>
- <fields name="aB">
- <eType xsi:type="org.eclipse.jem.internal.java:JavaClass" href="java:/com.ibm.etools.java.stressSample#B"/>
- </fields>
- <fields name="bees">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/com.ibm.etools.java.stressSample#B[]"/>
- </fields>
- <fields name="bees_and_bees">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/com.ibm.etools.java.stressSample#B[][]"/>
- </fields>
- <fields name="ints">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[]"/>
- </fields>
- <fields name="ints2">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[][]"/>
- </fields>
- <fields name="ints3">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[][][]"/>
- </fields>
- <fields name="chars">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#char[]"/>
- </fields>
- <fields name="floats">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#float[]"/>
- </fields>
- <fields name="cools">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#boolean[]"/>
- </fields>
- <fields name="doubles">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#double[]"/>
- </fields>
- <fields name="longs">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#long[]"/>
- </fields>
- <fields name="shorts">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#short[]"/>
- </fields>
- <fields name="bytes">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#byte[]"/>
- </fields>
- <fields name="testString" final="true" static="true">
- <eType xsi:type="org.eclipse.jem.internal.java:JavaClass" href="java:/java.lang#String"/>
- <initializer source="&quot;testing&quot;" name="testString_block"/>
- </fields>
- <methods name="doAllPrimitives">
- <eType xsi:type="org.eclipse.jem.internal.java:JavaDataType" href="java:/#void"/>
- <parameters name="arg0">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[]"/>
- </parameters>
- <parameters name="arg1">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[][]"/>
- </parameters>
- <parameters name="arg2">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[][][]"/>
- </parameters>
- <parameters name="arg3">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#char[]"/>
- </parameters>
- <parameters name="arg4">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#float[]"/>
- </parameters>
- <parameters name="arg5">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#boolean[]"/>
- </parameters>
- <parameters name="arg6">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#double[]"/>
- </parameters>
- <parameters name="arg7">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#long[]"/>
- </parameters>
- <parameters name="arg8">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#short[]"/>
- </parameters>
- <parameters name="arg9">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#byte[]"/>
- </parameters>
- </methods>
- <methods name="doSomething">
- <eType xsi:type="org.eclipse.jem.internal.java:JavaClass" href="java:/com.ibm.etools.java.stressSample#C"/>
- </methods>
- <methods name="getBytes">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#byte[]"/>
- </methods>
- <methods name="getChar">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#char[]"/>
- </methods>
- <methods name="getFloats">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#float[]"/>
- </methods>
- <methods name="getInts">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#int[]"/>
- </methods>
- <methods name="getLongs">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#long[]"/>
- </methods>
- <methods name="getShorts">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/#short[]"/>
- </methods>
- <methods name="returnAs">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/com.ibm.etools.java.stressSample#A[]"/>
- <parameters name="arg0">
- <eType xsi:type="org.eclipse.jem.internal.java:ArrayType" href="java:/com.ibm.etools.java.stressSample#C[]"/>
- </parameters>
- </methods>
- <methods name="A" constructor="true"/>
-</org.eclipse.jem.internal.java:JavaClass>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/plugin.properties b/tests/org.eclipse.jst.j2ee.core.tests/plugin.properties
deleted file mode 100644
index 9f0e0515..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2005, 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-# properties file for org.eclipse.jst.j2ee.core.tests
-Bundle-Name.0 = J2EE Core Tests Component
-Bundle-Vendor.0 = Eclipse Web Tools Platform \ No newline at end of file
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/test.xml b/tests/org.eclipse.jst.j2ee.core.tests/test.xml
deleted file mode 100644
index 79f2b20a..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/test.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="testsuite" default="run" basedir=".">
- <!-- The property ${eclipse-home} should be passed into this script -->
- <!-- Set a meaningful default value for when it is not. -->
- <!-- <property name="eclipse-home" value="${basedir}\..\.."/> -->
- <echo message="basedir ${basedir}" />
- <echo message="eclipse place ${eclipse-home}" />
- <!-- sets the properties plugin-name, and library-file -->
- <property name="plugin-name" value="org.eclipse.jst.j2ee.core.tests"/>
- <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml"/>
- <property name="extraVMargs" value="-Xmx700M"/>
-
- <!-- This target holds all initialization code that needs to be done for -->
- <!-- all tests that are to be run. Initialization for individual tests -->
- <!-- should be done within the body of the suite target. -->
- <target name="init">
- <tstamp/>
- <delete>
- <fileset dir="${eclipse-home}" includes="org*.xml"/>
- </delete>
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite">
- <property name="jst-folder" value="${eclipse-home}/jst_folder"/>
- <delete dir="${jst-folder}" quiet="true"/>
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${jst-folder}"/>
- <property name="plugin-name" value="${plugin-name}"/>
- <property name="classname" value="org.eclipse.jst.j2ee.core.tests.bvt.AutomatedBVT" />
- <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/>
- <property name="extraVMargs" value="${extraVMargs}"/>
- </ant>
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${jst-folder}"/>
- <property name="plugin-name" value="${plugin-name}"/>
- <property name="classname" value="org.eclipse.jst.j2ee.core.api.test.AutomatedAPIBVT" />
- <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/>
- <property name="extraVMargs" value="${extraVMargs}"/>
- </ant>
- </target>
-
- <!-- This target holds code to cleanup the testing environment after -->
- <!-- after all of the tests have been run. You can use this target to -->
- <!-- delete temporary files that have been created. -->
- <target name="cleanup">
- </target>
-
- <!-- This target runs the test suite. Any actions that need to happen -->
- <!-- after all the tests have been run should go here. -->
- <target name="run" depends="init,suite,cleanup">
- <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
- <property name="includes" value="org*.xml"/>
- <property name="output-file" value="${plugin-name}.xml"/>
- </ant>
- </target>
-</project> \ No newline at end of file
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/MANIFEST.MF
deleted file mode 100644
index 10416508..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-Ant-Version: Apache Ant 1.5.4
-Created-By: 1.3.0 (IBM Corporation)
-Main-Class: null
-
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/Table.ddl b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/Table.ddl
deleted file mode 100644
index 57808613..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/Table.ddl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
--- Generated by Relational Schema Center on Fri Mar 12 14:32:14 CST 2004
-
-
-CREATE TABLE ACCOUNT
- (ACCOUNTID VARCHAR(250) NOT NULL,
- TYPE1 INTEGER NOT NULL,
- BALANCE DOUBLE PRECISION NOT NULL,
- APR DOUBLE PRECISION NOT NULL);
-
-ALTER TABLE ACCOUNT
- ADD CONSTRAINT PK_ACCOUNT PRIMARY KEY (ACCOUNTID); \ No newline at end of file
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/Map.mapxmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/Map.mapxmi
deleted file mode 100644
index a19a98e5..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/Map.mapxmi
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejbrdbmapping:EjbRdbDocumentRoot xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:RDBSchema="RDBSchema.xmi" xmlns:ejb="ejb.xmi" xmlns:ejbrdbmapping="ejbrdbmapping.xmi" xmlns:Mapping="Mapping.xmi" xmi:id="EjbRdbDocumentRoot_1079123516907" topToBottom="true" commandStack="&lt;collection>&lt;command-creation-record>&lt;class name=&quot;com.ibm.etools.ejbrdbmapping.command.TopDownEjbJarCommand&quot;/>&lt;command-parameter>&lt;ref-object href=&quot;platform:/resource/b63748ba/ejbModule/META-INF/ejb-jar.xml#ejb-jar_ID&quot;/>&lt;null/>&lt;collection>&lt;string value=&quot;TopDownDB&quot;/>&lt;null/>&lt;int value=&quot;18&quot;/>&lt;hashtable>&lt;/hashtable>&lt;hashtable>&lt;/hashtable>&lt;boolean value=&quot;false&quot;/>&lt;boolean value=&quot;false&quot;/>&lt;/collection>&lt;null/>&lt;int value=&quot;-1&quot;/>&lt;/command-parameter>&lt;/command-creation-record>&lt;/collection>">
- <helper xmi:type="ejbrdbmapping:RdbSchemaProperies" xmi:id="RdbSchemaProperies_1079123516907" primitivesDocument="CLOUDSCAPE_V50"/>
- <nested xmi:type="ejbrdbmapping:RDBEjbMapper" xmi:id="RDBEjbMapper_1079123516907">
- <helper xmi:type="ejbrdbmapping:PrimaryTableStrategy" xmi:id="PrimaryTableStrategy_1079123516907">
- <table href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#ACCOUNT"/>
- </helper>
- <nested xmi:type="ejbrdbmapping:RDBEjbFieldMapper" xmi:id="RDBEjbFieldMapper_1079123516907">
- <inputs xmi:type="ejb:CMPAttribute" href="META-INF/ejb-jar.xml#Account_accountid"/>
- <outputs xmi:type="RDBSchema:RDBColumn" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#ACCOUNTID"/>
- <typeMapping href="JavatoCLOUDSCAPE_V50TypeMaps.xmi#String-VARCHAR"/>
- </nested>
- <nested xmi:type="ejbrdbmapping:RDBEjbFieldMapper" xmi:id="RDBEjbFieldMapper_1079123516908" optimistic="true">
- <inputs xmi:type="ejb:CMPAttribute" href="META-INF/ejb-jar.xml#Account_type"/>
- <outputs xmi:type="RDBSchema:RDBColumn" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#TYPE1"/>
- <typeMapping href="JavatoCLOUDSCAPE_V50TypeMaps.xmi#int-INTEGER"/>
- </nested>
- <nested xmi:type="ejbrdbmapping:RDBEjbFieldMapper" xmi:id="RDBEjbFieldMapper_1079123516909" optimistic="true">
- <inputs xmi:type="ejb:CMPAttribute" href="META-INF/ejb-jar.xml#Account_balance"/>
- <outputs xmi:type="RDBSchema:RDBColumn" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#BALANCE"/>
- <typeMapping href="JavatoCLOUDSCAPE_V50TypeMaps.xmi#double-DOUBLE"/>
- </nested>
- <nested xmi:type="ejbrdbmapping:RDBEjbFieldMapper" xmi:id="RDBEjbFieldMapper_1079123516910" optimistic="true">
- <inputs xmi:type="ejb:CMPAttribute" href="META-INF/ejb-jar.xml#Account_apr"/>
- <outputs xmi:type="RDBSchema:RDBColumn" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#APR"/>
- <typeMapping href="JavatoCLOUDSCAPE_V50TypeMaps.xmi#double-DOUBLE"/>
- </nested>
- <inputs xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
- <outputs xmi:type="RDBSchema:RDBTable" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#ACCOUNT"/>
- </nested>
- <inputs xmi:type="ejb:EJBJar" href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
- <outputs xmi:type="RDBSchema:RDBDatabase" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB.dbxmi#TopDownDB"/>
- <typeMapping xmi:type="Mapping:MappingRoot" href="JavatoCLOUDSCAPE_V50TypeMaps.xmi#Java_to_CLOUDSCAPE_V50_TypeMaps"/>
-</ejbrdbmapping:EjbRdbDocumentRoot>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/Table.ddl b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/Table.ddl
deleted file mode 100644
index 57808613..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/Table.ddl
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
--- Generated by Relational Schema Center on Fri Mar 12 14:32:14 CST 2004
-
-
-CREATE TABLE ACCOUNT
- (ACCOUNTID VARCHAR(250) NOT NULL,
- TYPE1 INTEGER NOT NULL,
- BALANCE DOUBLE PRECISION NOT NULL,
- APR DOUBLE PRECISION NOT NULL);
-
-ALTER TABLE ACCOUNT
- ADD CONSTRAINT PK_ACCOUNT PRIMARY KEY (ACCOUNTID); \ No newline at end of file
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB.dbxmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB.dbxmi
deleted file mode 100644
index 914bdeef..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB.dbxmi
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<RDBSchema:RDBDatabase xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:RDBSchema="RDBSchema.xmi" xmi:id="TopDownDB" name="TopDownDB">
- <schemata href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID.schxmi#NULLID"/>
- <tableGroup xmi:type="RDBSchema:RDBTable" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#ACCOUNT"/>
- <domain href="CLOUDSCAPE_V50_Domain.xmi#SQLVendor_1"/>
-</RDBSchema:RDBDatabase>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID.schxmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID.schxmi
deleted file mode 100644
index ca20a408..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID.schxmi
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<RDBSchema:RDBSchema xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:RDBSchema="RDBSchema.xmi" xmi:id="NULLID" name="NULLID">
- <database href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB.dbxmi#TopDownDB"/>
- <tables xmi:type="RDBSchema:RDBTable" href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi#ACCOUNT"/>
-</RDBSchema:RDBSchema>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi
deleted file mode 100644
index adf1d752..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID_ACCOUNT.tblxmi
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<RDBSchema:RDBTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:RDBSchema="RDBSchema.xmi" xmi:id="ACCOUNT" name="ACCOUNT" primaryKey="PK_ACCOUNT">
- <database href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB.dbxmi#TopDownDB"/>
- <schema href="META-INF/backends/CLOUDSCAPE_V50_1/TopDownDB_NULLID.schxmi#NULLID"/>
- <columns xmi:type="RDBSchema:RDBColumn" xmi:id="ACCOUNTID" name="ACCOUNTID">
- <type xmi:type="RDBSchema:SQLCharacterStringType" xmi:id="SQLCharacterStringType_1079123516977" length="250">
- <originatingType xmi:type="RDBSchema:SQLCharacterStringType" href="JavatoCLOUDSCAPE_V50TypeMaps.xmi#SQLCharacterStringType_250"/>
- </type>
- </columns>
- <columns xmi:type="RDBSchema:RDBColumn" xmi:id="TYPE1" name="TYPE1">
- <type xmi:type="RDBSchema:SQLExactNumeric" xmi:id="SQLExactNumeric_1079123516977">
- <originatingType xmi:type="RDBSchema:SQLExactNumeric" href="CLOUDSCAPE_V50_Primitives.xmi#SQLExactNumeric_1"/>
- </type>
- </columns>
- <columns xmi:type="RDBSchema:RDBColumn" xmi:id="BALANCE" name="BALANCE">
- <type xmi:type="RDBSchema:SQLApproximateNumeric" xmi:id="SQLApproximateNumeric_1079123516977">
- <originatingType xmi:type="RDBSchema:SQLApproximateNumeric" href="CLOUDSCAPE_V50_Primitives.xmi#SQLApproximateNumeric_1"/>
- </type>
- </columns>
- <columns xmi:type="RDBSchema:RDBColumn" xmi:id="APR" name="APR">
- <type xmi:type="RDBSchema:SQLApproximateNumeric" xmi:id="SQLApproximateNumeric_1079123516978">
- <originatingType xmi:type="RDBSchema:SQLApproximateNumeric" href="CLOUDSCAPE_V50_Primitives.xmi#SQLApproximateNumeric_1"/>
- </type>
- </columns>
- <namedGroup xmi:type="RDBSchema:SQLReference" xmi:id="PK_ACCOUNT" name="PK_ACCOUNT" members="ACCOUNTID" constraint="SQLConstraint_1079123516977"/>
- <constraints xmi:id="SQLConstraint_1079123516977" name="PK_ACCOUNT" type="PRIMARYKEY" primaryKey="PK_ACCOUNT"/>
-</RDBSchema:RDBTable>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/ibm_pmbab.properties b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/ibm_pmbab.properties
deleted file mode 100644
index d6f62d3a..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/backends/CLOUDSCAPE_V50_1/ibm_pmbab.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-#Fri Mar 12 14:32:01 CST 2004
-Account=com.ibm.websphere.samples.appprofile.accountmanagementejb.websphere_deploy.CLOUDSCAPE_V50_1.AccountBeanAdaptorBinding_0c182135
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ejb-jar.xml b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ejb-jar.xml
deleted file mode 100644
index 9d9860fd..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ejb-jar.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
-
- <ejb-jar id="ejb-jar_ID">
- <display-name>AppProfileSampleEJBModule</display-name>
- <enterprise-beans>
- <entity id="ContainerManagedEntity_1">
- <ejb-name>Account</ejb-name>
- <home>com.ibm.websphere.samples.appprofile.accountmanagementejb.AccountHome</home>
- <remote>com.ibm.websphere.samples.appprofile.accountmanagementejb.Account</remote>
- <local-home>com.ibm.websphere.samples.appprofile.accountmanagementejb.LocalAccountHome</local-home>
- <local>com.ibm.websphere.samples.appprofile.accountmanagementejb.LocalAccount</local>
- <ejb-class>com.ibm.websphere.samples.appprofile.accountmanagementejb.AccountBean</ejb-class>
- <persistence-type>Container</persistence-type>
- <prim-key-class>java.lang.String</prim-key-class>
- <reentrant>False</reentrant>
- <cmp-version>2.x</cmp-version>
- <abstract-schema-name>Account</abstract-schema-name>
- <cmp-field id="Account_accountid">
- <field-name>accountid</field-name>
- </cmp-field>
- <cmp-field id="Account_type">
- <field-name>type</field-name>
- </cmp-field>
- <cmp-field id="Account_balance">
- <field-name>balance</field-name>
- </cmp-field>
- <cmp-field id="Account_apr">
- <field-name>apr</field-name>
- </cmp-field>
- <primkey-field>accountid</primkey-field>
- <query id="Query_1">
- <query-method id="QueryMethod_1">
- <method-name>findLargeAccounts</method-name>
- <method-params>
- <method-param>double</method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(a) FROM Account a WHERE a.balance >= ?1</ejb-ql>
- </query>
- <query id="Query_2">
- <query-method id="QueryMethod_2">
- <method-name>findByAccountId</method-name>
- <method-params>
- <method-param>java.lang.String</method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(a) FROM Account a WHERE a.accountid = ?1</ejb-ql>
- </query>
- <query id="Query_3">
- <query-method id="QueryMethod_3">
- <method-name>findAllAccounts</method-name>
- <method-params>
- <method-param></method-param>
- </method-params>
- </query-method>
- <ejb-ql>SELECT OBJECT(a) FROM Account a</ejb-ql>
- </query>
- </entity>
- <session id="Session_1">
- <display-name>AccountManager</display-name>
- <ejb-name>AccountManager</ejb-name>
- <home>com.ibm.websphere.samples.appprofile.accountmanagementejb.AccountManagerHome</home>
- <remote>com.ibm.websphere.samples.appprofile.accountmanagementejb.AccountManager</remote>
- <ejb-class>com.ibm.websphere.samples.appprofile.accountmanagementejb.AccountManagerBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- <ejb-local-ref id="EJBLocalRef_1">
- <ejb-ref-name>ejb/AppProfileSample-AccountHome</ejb-ref-name>
- <ejb-ref-type>Entity</ejb-ref-type>
- <local-home>com.ibm.websphere.samples.appprofile.accountmanagementejb.LocalAccountHome</local-home>
- <local>com.ibm.websphere.samples.appprofile.accountmanagementejb.LocalAccount</local>
- <ejb-link>Account</ejb-link>
- </ejb-local-ref>
- </session>
- </enterprise-beans>
- </ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-bnd.xmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-bnd.xmi
deleted file mode 100644
index d690d436..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-bnd.xmi
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejbbnd:EJBJarBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ejbbnd="ejbbnd.xmi" xmlns:ejb="ejb.xmi" xmlns:common="common.xmi" xmi:id="ejb-jar_ID_Bnd" currentBackendId="CLOUDSCAPE_V50_1">
- <ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
- <ejbBindings xmi:id="ContainerManagedEntity_1_Bnd" jndiName="AppProfileSample-AccountHome">
- <enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
- </ejbBindings>
- <ejbBindings xmi:id="EnterpriseBeanBinding_1" jndiName="AppProfileSample-AccountManagerHome">
- <enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#Session_1"/>
- <ejbRefBindings xmi:id="EjbRefBinding_1" jndiName="AppProfileSample-AccountHome">
- <bindingEjbRef xmi:type="common:EJBLocalRef" href="META-INF/ejb-jar.xml#EJBLocalRef_1"/>
- </ejbRefBindings>
- </ejbBindings>
- <defaultCMPConnectionFactory xmi:id="CMPConnectionFactoryBinding_2" jndiName="eis/jdbc/AppProfileSampleDB_CMP" resAuth="Per_Connection_Factory"/>
-</ejbbnd:EJBJarBinding>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-ext-pme.xmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-ext-pme.xmi
deleted file mode 100644
index 3eeecb16..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-ext-pme.xmi
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<pmeext:PMEEJBJarExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appprofileejbext="http://www.ibm.com/websphere/appserver/schemas/5.0/appprofileejbext.xmi" xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" xmlns:pmeext="http://www.ibm.com/websphere/appserver/schemas/5.0/pmeext.xmi" xmi:id="PMEEJBJarExtension_1">
- <appProfileEJBJarExtension xmi:id="AppProfileEJBJarExtension_1">
- <applicationProfiles xmi:id="EJBModuleProfile_1" name="Read-only" description="This profile will apply a read-only access-intent policy to the multifinder for the Account entity bean.">
- <appliedAccessIntents xmi:id="AppliedAccessIntent_1072828753424" name="com.ibm.websphere.ejbquery.Default" description="All methods of the Account bean are set for read only." accessIntentName="wsPessimisticRead">
- <methodElements xmi:id="MethodElement_1072828753424" type="Unspecified">
- <enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
- </methodElements>
- </appliedAccessIntents>
- <tasks xmi:id="Task_1071093415784" name="getLargeAccounts" description="This task will be used by AccountManager session bean for read-only intent."/>
- </applicationProfiles>
- <ejbJarExtension href="META-INF/ibm-ejb-jar-ext.xmi#ejb-jar_ID_Ext"/>
- <definedAccessIntentPolicies xmi:id="DefinedAccessIntentPolicy_1" name="PessimisticUpdate - Increment 10" description="This is a custom policy that keeps all the attributes of wsPessimisiticUpdate except for collection increment, which is set to 10.">
- <accessIntentEntries xmi:type="ejbext:PessimisticUpdate" xmi:id="PessimisticUpdate_1072824290817"/>
- <accessIntentEntries xmi:type="ejbext:CollectionIncrement" xmi:id="CollectionIncrement_1072824290817" collectionIncrement="10"/>
- <accessIntentEntries xmi:type="ejbext:ResourceManagerPreFetchIncrement" xmi:id="ResourceManagerPreFetchIncrement_1072824290817" preFetchIncrement="0"/>
- <accessIntentEntries xmi:type="ejbext:TransactionScope" xmi:id="TransactionScope_1072824290817"/>
- </definedAccessIntentPolicies>
- <runAsTasks xmi:id="RunAsTask_2" name="getLargeAcounts">
- <taskRunAsKind xmi:type="appprofileejbext:RunAsSpecifiedTask" xmi:id="RunAsSpecifiedTask_2">
- <task xmi:id="Task_5" name="getLargeAccounts" description="for viewing account data only"/>
- </taskRunAsKind>
- <methodElements xmi:id="MethodElement_3" name="getLargeAccounts" parms="double " type="Remote">
- <enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#Session_1"/>
- </methodElements>
- </runAsTasks>
- <appProfileComponentExtensions xmi:id="AppProfileComponentExtension_1">
- <componentExtension xmi:type="ejbext:SessionExtension" href="META-INF/ibm-ejb-jar-ext.xmi#SessionExtension_1"/>
- </appProfileComponentExtensions>
- <appProfileComponentExtensions xmi:id="AppProfileComponentExtension_2">
- <componentExtension xmi:type="ejbext:ContainerManagedEntityExtension" href="META-INF/ibm-ejb-jar-ext.xmi#ContainerManagedEntity_1_Ext"/>
- </appProfileComponentExtensions>
- </appProfileEJBJarExtension>
-</pmeext:PMEEJBJarExtension>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-ext.xmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-ext.xmi
deleted file mode 100644
index 673264f2..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/ejb/META-INF/ibm-ejb-jar-ext.xmi
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejbext:EJBJarExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" xmi:id="ejb-jar_ID_Ext">
- <ejbExtensions xmi:type="ejbext:ContainerManagedEntityExtension" xmi:id="ContainerManagedEntity_1_Ext" concurrencyControl="pessimistic">
- <enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
- <structure xmi:id="BeanStructure_1" inheritenceRoot="false"/>
- <beanCache xmi:id="BeanCache_1" activateAt="TRANSACTION" loadAt="TRANSACTION"/>
- <localTran xmi:id="LocalTran_1" boundary="BEAN_METHOD" unresolvedAction="ROLLBACK"/>
- <dataCache xmi:id="DataCache_1" lifetimeInCache="0" lifetimeInCacheUsage="OFF"/>
- </ejbExtensions>
- <ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="SessionExtension_1" timeout="600">
- <enterpriseBean xmi:type="ejb:Session" href="META-INF/ejb-jar.xml#Session_1"/>
- <structure xmi:id="BeanStructure_2" inheritenceRoot="false"/>
- <beanCache xmi:id="BeanCache_2" activateAt="ONCE"/>
- <localTran xmi:id="LocalTran_2" boundary="BEAN_METHOD" unresolvedAction="ROLLBACK"/>
- </ejbExtensions>
- <ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/>
- <appliedAccessIntents xmi:id="AppliedAccessIntent_1071093415744" name="com.ibm.websphere.ejbquery.Default" description="" accessIntentName="PessimisticUpdate - Increment 10">
- <methodElements xmi:id="MethodElement_1071093415744" type="Unspecified">
- <enterpriseBean xmi:type="ejb:ContainerManagedEntity" href="META-INF/ejb-jar.xml#ContainerManagedEntity_1"/>
- </methodElements>
- </appliedAccessIntents>
-</ejbext:EJBJarExtension>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/META-INF/MANIFEST.MF
deleted file mode 100644
index 59499bce..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,2 +0,0 @@
-Manifest-Version: 1.0
-
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/META-INF/ejb-jar.xml b/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/META-INF/ejb-jar.xml
deleted file mode 100644
index 2693c860..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/META-INF/ejb-jar.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar id="ejb-jar_ID" version="2.1"
- xmlns="http://java.sun.com/xml/ns/j2ee" >
- <display-name>
- TestEJB</display-name>
- <enterprise-beans>
- <session id="T1">
- <ejb-name>T1</ejb-name>
- <home>ejbs.T1Home</home>
- <remote>ejbs.T1</remote>
- <ejb-class>ejbs.T1Bean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1.class b/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1.class
deleted file mode 100644
index cda4e08f..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1Bean.class b/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1Bean.class
deleted file mode 100644
index 51cb4f62..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1Bean.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1Home.class b/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1Home.class
deleted file mode 100644
index a5798322..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/no-sl/ejbs/T1Home.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/META-INF/MANIFEST.MF
deleted file mode 100644
index 59499bce..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,2 +0,0 @@
-Manifest-Version: 1.0
-
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/META-INF/ejb-jar.xml b/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/META-INF/ejb-jar.xml
deleted file mode 100644
index af37a039..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/META-INF/ejb-jar.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
- <display-name>
- TestEJB</display-name>
- <enterprise-beans>
- <session id="T1">
- <ejb-name>T1</ejb-name>
- <home>ejbs.T1Home</home>
- <remote>ejbs.T1</remote>
- <ejb-class>ejbs.T1Bean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1.class b/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1.class
deleted file mode 100644
index cda4e08f..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1Bean.class b/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1Bean.class
deleted file mode 100644
index 51cb4f62..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1Bean.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1Home.class b/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1Home.class
deleted file mode 100644
index a5798322..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/sl/ejbs/T1Home.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/AnnuityServices_mapping.xml b/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/AnnuityServices_mapping.xml
deleted file mode 100644
index e2fdcbdc..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/AnnuityServices_mapping.xml
+++ /dev/null
@@ -1,461 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
- <package-mapping>
- <package-type>com.ibm.wssvt.tc.pli.data</package-type>
- <namespaceURI>http://data.pli.tc.wssvt.ibm.com</namespaceURI>
- </package-mapping>
- <package-mapping>
- <package-type>com.ibm.wssvt.acme.annuity.ws</package-type>
- <namespaceURI>http://ws.annuity.acme.wssvt.ibm.com</namespaceURI>
- </package-mapping>
- <java-xml-type-mapping>
- <java-type>double</java-type>
- <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:double</root-type-qname>
- <qname-scope>simpleType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>java.util.Vector</java-type>
- <root-type-qname xmlns:rtq="http://xml.apache.org/xml-soap">rtq:Vector</root-type-qname>
- <qname-scope>simpleType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>java.lang.String</java-type>
- <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:string</root-type-qname>
- <qname-scope>simpleType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</java-type>
- <root-type-qname xmlns:rtq="http://data.pli.tc.wssvt.ibm.com">rtq:WSAnnuityCompositeData</root-type-qname>
- <qname-scope>complexType</qname-scope>
- <variable-mapping>
- <java-variable-name>WSAnnuity Data</java-variable-name>
- <xml-element-name>WSAnnuity Data</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>subAccounts</java-variable-name>
- <xml-element-name>subAccounts</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>com.ibm.wssvt.tc.pli.data.WSAnnuityData</java-type>
- <root-type-qname xmlns:rtq="http://data.pli.tc.wssvt.ibm.com">rtq:WSAnnuityData</root-type-qname>
- <qname-scope>complexType</qname-scope>
- <variable-mapping>
- <java-variable-name>taxStatus</java-variable-name>
- <xml-element-name>taxStatus</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>type</java-variable-name>
- <xml-element-name>type</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>amount</java-variable-name>
- <xml-element-name>amount</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>endDate</java-variable-name>
- <xml-element-name>endDate</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>custNumber</java-variable-name>
- <xml-element-name>custNumber</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>custName</java-variable-name>
- <xml-element-name>custName</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>custSSNum</java-variable-name>
- <xml-element-name>custSSNum</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>EMail</java-variable-name>
- <xml-element-name>EMail</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>annuityNo</java-variable-name>
- <xml-element-name>annuityNo</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>premium</java-variable-name>
- <xml-element-name>premium</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>beginDate</java-variable-name>
- <xml-element-name>beginDate</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>status</java-variable-name>
- <xml-element-name>status</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>fixedPeriod</java-variable-name>
- <xml-element-name>fixedPeriod</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>fixedAmount</java-variable-name>
- <xml-element-name>fixedAmount</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>life</java-variable-name>
- <xml-element-name>life</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>lifeWithPeriod</java-variable-name>
- <xml-element-name>lifeWithPeriod</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>fixedPercent</java-variable-name>
- <xml-element-name>fixedPercent</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>actualPercent</java-variable-name>
- <xml-element-name>actualPercent</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>benefitOptions</java-variable-name>
- <xml-element-name>benefitOptions</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>premiumSched</java-variable-name>
- <xml-element-name>premiumSched</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>investCategory</java-variable-name>
- <xml-element-name>investCategory</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>payoutOptions</java-variable-name>
- <xml-element-name>payoutOptions</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>guarPayout</java-variable-name>
- <xml-element-name>guarPayout</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>numSubAccts</java-variable-name>
- <xml-element-name>numSubAccts</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>extraCredits</java-variable-name>
- <xml-element-name>extraCredits</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>cellNodeServerName</java-variable-name>
- <xml-element-name>cellNodeServerName</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>clientId</java-variable-name>
- <xml-element-name>clientId</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>int</java-type>
- <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:int</root-type-qname>
- <qname-scope>simpleType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>java.util.Calendar</java-type>
- <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:dateTime</root-type-qname>
- <qname-scope>simpleType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>com.ibm.wssvt.tc.pli.data.SubAcctData[]</java-type>
- <anonymous-type-qname>http://data.pli.tc.wssvt.ibm.com:SubAcctData[0,unbounded]</anonymous-type-qname>
- <qname-scope>complexType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>com.ibm.wssvt.tc.pli.data.SubAcctData</java-type>
- <root-type-qname xmlns:rtq="http://data.pli.tc.wssvt.ibm.com">rtq:SubAcctData</root-type-qname>
- <qname-scope>complexType</qname-scope>
- <variable-mapping>
- <java-variable-name>type</java-variable-name>
- <xml-element-name>type</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>value</java-variable-name>
- <xml-element-name>value</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>annuityId</java-variable-name>
- <xml-element-name>annuityId</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>id</java-variable-name>
- <xml-element-name>id</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>name</java-variable-name>
- <xml-element-name>name</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>cellNodeServerName</java-variable-name>
- <xml-element-name>cellNodeServerName</xml-element-name>
- </variable-mapping>
- <variable-mapping>
- <java-variable-name>clientId</java-variable-name>
- <xml-element-name>clientId</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>boolean</java-type>
- <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:boolean</root-type-qname>
- <qname-scope>simpleType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>com.ibm.wssvt.tc.pli.data.SubAcctData[]</java-type>
- <root-type-qname xmlns:rtq="http://ws.annuity.acme.wssvt.ibm.com">rtq:ArrayOf_tns2_nillable_SubAcctData</root-type-qname>
- <qname-scope>complexType</qname-scope>
- <variable-mapping>
- <java-variable-name>subAcctData</java-variable-name>
- <xml-element-name>SubAcctData</xml-element-name>
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>com.ibm.wssvt.tc.pli.data.SubAcctData[]</java-type>
- <anonymous-type-qname>http://ws.annuity.acme.wssvt.ibm.com:ArrayOf_tns2_nillable_SubAcctData&gt;SubAcctData[0,unbounded]</anonymous-type-qname>
- <qname-scope>complexType</qname-scope>
- </java-xml-type-mapping>
- <java-xml-type-mapping>
- <java-type>java.lang.Object[]</java-type>
- <anonymous-type-qname>http://xml.apache.org/xml-soap:Vector&gt;item[0,unbounded]</anonymous-type-qname>
- <qname-scope>complexType</qname-scope>
- </java-xml-type-mapping>
- <service-interface-mapping>
- <service-interface>com.ibm.wssvt.acme.annuity.ws.WSTAnnuityService</service-interface>
- <wsdl-service-name xmlns:sim="http://ws.annuity.acme.wssvt.ibm.com">sim:WSTAnnuityService</wsdl-service-name>
- <port-mapping>
- <port-name>WSTAnnuityService</port-name>
- <java-port-name>WSTAnnuityService</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping>
- <service-endpoint-interface>com.ibm.wssvt.acme.annuity.ws.AnnuityServicePortType</service-endpoint-interface>
- <wsdl-port-type xmlns:seimwpt="http://ws.annuity.acme.wssvt.ibm.com">seimwpt:AnnuityServicePortType</wsdl-port-type>
- <wsdl-binding xmlns:seimwb="http://ws.annuity.acme.wssvt.ibm.com">seimwb:AnnuityServiceBinding</wsdl-binding>
- <service-endpoint-method-mapping>
- <java-method-name>wsListAnnuityByHolder</java-method-name>
- <wsdl-operation>wsListAnnuityByHolder</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>java.lang.String</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsListAnnuityByHolderRequest</wsdl-message>
- <wsdl-message-part-name>holderSSN</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>java.util.Vector</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsListAnnuityByHolderResponse</wsdl-message>
- <wsdl-message-part-name>wsListAnnuityByHolderReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- <service-endpoint-method-mapping>
- <java-method-name>wsAddSubAccounts</java-method-name>
- <wsdl-operation>wsAddSubAccounts</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsAddSubAccountsRequest</wsdl-message>
- <wsdl-message-part-name>aCD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <method-param-parts-mapping>
- <param-position>1</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.SubAcctData[]</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsAddSubAccountsRequest</wsdl-message>
- <wsdl-message-part-name>sAD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsAddSubAccountsResponse</wsdl-message>
- <wsdl-message-part-name>wsAddSubAccountsReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- <service-endpoint-method-mapping>
- <java-method-name>wsCreateAnnuity</java-method-name>
- <wsdl-operation>wsCreateAnnuity</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsCreateAnnuityRequest</wsdl-message>
- <wsdl-message-part-name>aCD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsCreateAnnuityResponse</wsdl-message>
- <wsdl-message-part-name>wsCreateAnnuityReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- </service-endpoint-interface-mapping>
- <service-interface-mapping>
- <service-interface>com.ibm.wssvt.acme.annuity.ws.AnnuityService</service-interface>
- <wsdl-service-name xmlns:sim="http://ws.annuity.acme.wssvt.ibm.com">sim:AnnuityService</wsdl-service-name>
- <port-mapping>
- <port-name>AnnuityService</port-name>
- <java-port-name>AnnuityService</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping>
- <service-endpoint-interface>com.ibm.wssvt.acme.annuity.ws.AnnuityServicePortType</service-endpoint-interface>
- <wsdl-port-type xmlns:seimwpt="http://ws.annuity.acme.wssvt.ibm.com">seimwpt:AnnuityServicePortType</wsdl-port-type>
- <wsdl-binding xmlns:seimwb="http://ws.annuity.acme.wssvt.ibm.com">seimwb:AnnuityServiceBinding</wsdl-binding>
- <service-endpoint-method-mapping>
- <java-method-name>wsListAnnuityByHolder</java-method-name>
- <wsdl-operation>wsListAnnuityByHolder</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>java.lang.String</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsListAnnuityByHolderRequest</wsdl-message>
- <wsdl-message-part-name>holderSSN</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>java.util.Vector</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsListAnnuityByHolderResponse</wsdl-message>
- <wsdl-message-part-name>wsListAnnuityByHolderReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- <service-endpoint-method-mapping>
- <java-method-name>wsAddSubAccounts</java-method-name>
- <wsdl-operation>wsAddSubAccounts</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsAddSubAccountsRequest</wsdl-message>
- <wsdl-message-part-name>aCD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <method-param-parts-mapping>
- <param-position>1</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.SubAcctData[]</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsAddSubAccountsRequest</wsdl-message>
- <wsdl-message-part-name>sAD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsAddSubAccountsResponse</wsdl-message>
- <wsdl-message-part-name>wsAddSubAccountsReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- <service-endpoint-method-mapping>
- <java-method-name>wsCreateAnnuity</java-method-name>
- <wsdl-operation>wsCreateAnnuity</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsCreateAnnuityRequest</wsdl-message>
- <wsdl-message-part-name>aCD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsCreateAnnuityResponse</wsdl-message>
- <wsdl-message-part-name>wsCreateAnnuityReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- </service-endpoint-interface-mapping>
- <service-interface-mapping>
- <service-interface>com.ibm.wssvt.acme.annuity.ws.AnnuityService2</service-interface>
- <wsdl-service-name xmlns:sim="http://ws.annuity.acme.wssvt.ibm.com">sim:AnnuityService2</wsdl-service-name>
- <port-mapping>
- <port-name>AnnuityService2</port-name>
- <java-port-name>AnnuityService2</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping>
- <service-endpoint-interface>com.ibm.wssvt.acme.annuity.ws.AnnuityServicePortType</service-endpoint-interface>
- <wsdl-port-type xmlns:seimwpt="http://ws.annuity.acme.wssvt.ibm.com">seimwpt:AnnuityServicePortType</wsdl-port-type>
- <wsdl-binding xmlns:seimwb="http://ws.annuity.acme.wssvt.ibm.com">seimwb:AnnuityServiceBinding</wsdl-binding>
- <service-endpoint-method-mapping>
- <java-method-name>wsListAnnuityByHolder</java-method-name>
- <wsdl-operation>wsListAnnuityByHolder</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>java.lang.String</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsListAnnuityByHolderRequest</wsdl-message>
- <wsdl-message-part-name>holderSSN</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>java.util.Vector</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsListAnnuityByHolderResponse</wsdl-message>
- <wsdl-message-part-name>wsListAnnuityByHolderReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- <service-endpoint-method-mapping>
- <java-method-name>wsAddSubAccounts</java-method-name>
- <wsdl-operation>wsAddSubAccounts</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsAddSubAccountsRequest</wsdl-message>
- <wsdl-message-part-name>aCD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <method-param-parts-mapping>
- <param-position>1</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.SubAcctData[]</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsAddSubAccountsRequest</wsdl-message>
- <wsdl-message-part-name>sAD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsAddSubAccountsResponse</wsdl-message>
- <wsdl-message-part-name>wsAddSubAccountsReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- <service-endpoint-method-mapping>
- <java-method-name>wsCreateAnnuity</java-method-name>
- <wsdl-operation>wsCreateAnnuity</wsdl-operation>
- <wrapped-element></wrapped-element>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:mppm="http://ws.annuity.acme.wssvt.ibm.com">mppm:wsCreateAnnuityRequest</wsdl-message>
- <wsdl-message-part-name>aCD</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>com.ibm.wssvt.tc.pli.data.WSAnnuityCompositeData</method-return-value>
- <wsdl-message xmlns:wrvm="http://ws.annuity.acme.wssvt.ibm.com">wrvm:wsCreateAnnuityResponse</wsdl-message>
- <wsdl-message-part-name>wsCreateAnnuityReturn</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- </service-endpoint-interface-mapping>
-</java-wsdl-mapping>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/ibm-webservices-bnd.xmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/ibm-webservices-bnd.xmi
deleted file mode 100644
index d5dcf6c8..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/ibm-webservices-bnd.xmi
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<com.ibm.etools.webservice.wsbnd:WSBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.etools.webservice.wsbnd="http://www.ibm.com/websphere/appserver/schemas/5.0.2/wsbnd.xmi" xmi:id="WSBinding_1055737241797">
- <wsdescBindings xmi:id="WSDescBinding_1055737241797" wsDescNameLink="StockQuoteFetcher">
- <pcBindings xmi:id="PCBinding_1055737241797" pcNameLink="urn:xmltoday-delayed-quotes" scope="Session"/>
- </wsdescBindings>
- <routerModules xmi:id="RouterModule_1055737241797" transport="http" name="StockQuote.war"/>
-</com.ibm.etools.webservice.wsbnd:WSBinding>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/ibm-webservices-ext.xmi b/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/ibm-webservices-ext.xmi
deleted file mode 100644
index 170500f3..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/ibm-webservices-ext.xmi
+++ /dev/null
@@ -1,6 +0,0 @@
-<com.ibm.etools.webservice.wsext:WsExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.etools.webservice.wsext="http://www.ibm.com/websphere/appserver/schemas/5.0.2/wsext.xmi" xmi:id="WsExtension_1053484615054">
- <wsDescExt xmi:id="WsDescExt_1053484615054" wsDescNameLink="StockQuoteFetcher">
- <pcBinding xmi:id="PcBinding_1053484615054" pcNameLink="urn:xmltoday-delayed-quotes">
- </pcBinding>
- </wsDescExt>
-</com.ibm.etools.webservice.wsext:WsExtension>
diff --git a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/webservices.xml b/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/webservices.xml
deleted file mode 100644
index 7269077d..00000000
--- a/tests/org.eclipse.jst.j2ee.core.tests/testData/webservices/META-INF/webservices.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE webservices PUBLIC "-//IBM Corporation, Inc.//DTD J2EE Web services 1.0//EN" "http://www.ibm.com/webservices/dtd/j2ee_web_services_1_0.dtd">
-
- <webservices id="WebServices_1055737241672">
- <webservice-description id="WebServiceDescription_1055737241688">
- <webservice-description-name>StockQuoteFetcher</webservice-description-name>
- <wsdl-file>META-INF/wsdl/StockQuoteFetcher.wsdl</wsdl-file>
- <jaxrpc-mapping-file>META-INF/StockQuoteFetcher_mapping.xml</jaxrpc-mapping-file>
- <port-component id="PortComponent_1055737241734">
- <port-component-name>urn:xmltoday-delayed-quotes</port-component-name>
- <wsdl-port id="WSDLPort_1055737241734">
- <namespaceURI>http://stock.webservices.samples.websphere.ibm.com</namespaceURI>
- <localpart>StockQuote</localpart>
- </wsdl-port>
- <service-endpoint-interface>com.ibm.websphere.samples.webservices.stock.StockQuote</service-endpoint-interface>
- <service-impl-bean id="ServiceImplBean_1055737241734">
- <ejb-link>com_ibm_websphere_samples_webservices_stock_StockQuote</ejb-link>
- </service-impl-bean>
- </port-component>
- </webservice-description>
- </webservices>
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/.classpath b/tests/org.eclipse.jst.j2ee.tests.performance/.classpath
deleted file mode 100644
index 8bf670e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="common/"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/.cvsignore b/tests/org.eclipse.jst.j2ee.tests.performance/.cvsignore
deleted file mode 100644
index 43ac6065..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-temp.folder
-build.xml
-performance.jar
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/.project b/tests/org.eclipse.jst.j2ee.tests.performance/.project
deleted file mode 100644
index 2aed33e9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.j2ee.tests.performance</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/about.html b/tests/org.eclipse.jst.j2ee.tests.performance/about.html
deleted file mode 100644
index 2199df3f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/build.properties b/tests/org.eclipse.jst.j2ee.tests.performance/build.properties
deleted file mode 100644
index 21d4547c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.performance.jar = common/
-output.performance.jar = bin/
-bin.includes = plugin.xml,\
- performance.jar,\
- about.html
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/BasePerformanceTestCase.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/BasePerformanceTestCase.java
deleted file mode 100644
index ce756af3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/BasePerformanceTestCase.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * Created on Dec 6, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.tests.performance;
-
-import java.io.File;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.common.tests.BaseTestCase;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public abstract class BasePerformanceTestCase extends BaseTestCase {
- protected static Map performanceClass = null;
- static ClassLoader clazzLoader = null;
- protected static String file= null;
- public static Test suite() {
- performanceClass = null;
- return createTestSuites() ;
- }
- /**
- *
- */
- private static Test createTestSuites() {
- createPerformanceClass();
- TestSuite suite = new TestSuite();
- for (Iterator iter = performanceClass.keySet().iterator(); iter.hasNext();) {
- Class clazz = (Class) iter.next();
- List methodList = (List)performanceClass.get(clazz);
- for (int x=0; x< methodList.size(); ++x) {
- PerformanceTestObject testObject = (PerformanceTestObject)methodList.get(x);
- Test test = createTest(clazz,testObject.getName());
- if (test instanceof BaseTestCase) {
- suite.addTest(new PerformanceTestCaseWrapper((BaseTestCase)test, testObject.getTagging() , testObject.getShortName()));
- }
- }
- }
- return suite;
- }
-
- static public Test createTest(Class theClass, String name) {
- Constructor constructor;
- try {
- constructor= getTestConstructor(theClass);
- } catch (NoSuchMethodException e) {
- return warning("Class "+theClass.getName()+" has no public constructor TestCase(String name) or TestCase()");
- }
- Object test;
- try {
- if (constructor.getParameterTypes().length == 0) {
- test= constructor.newInstance(new Object[0]);
- if (test instanceof TestCase)
- ((TestCase) test).setName(name);
- } else {
- test= constructor.newInstance(new Object[]{name});
- }
- } catch (InstantiationException e) {
- return(warning("Cannot instantiate test case: "+name+" ("+exceptionToString(e)+")"));
- } catch (InvocationTargetException e) {
- return(warning("Exception in constructor: "+name+" ("+exceptionToString(e.getTargetException())+")"));
- } catch (IllegalAccessException e) {
- return(warning("Cannot access test case: "+name+" ("+exceptionToString(e)+")"));
- }
- return (Test) test;
- }
-
- /**
- * Returns a test which will fail and log a warning message.
- */
- private static Test warning(final String message) {
- return new TestCase("warning") {
- protected void runTest() {
- fail(message);
- }
- };
- }
-
- public static Constructor getTestConstructor(Class theClass) throws NoSuchMethodException {
- Class[] args= { String.class };
- try {
- return theClass.getConstructor(args);
- } catch (NoSuchMethodException e) {
- // fall through
- }
- return theClass.getConstructor(new Class[0]);
- }
-
- private static String exceptionToString(Throwable t) {
- StringWriter stringWriter= new StringWriter();
- PrintWriter writer= new PrintWriter(stringWriter);
- t.printStackTrace(writer);
- return stringWriter.toString();
-
- }
- /**
- * @param performanceClass2
- */
-
- public static Map getPerformanceClass() {
- if (performanceClass == null) {
- createPerformanceClass();
- }
- return performanceClass;
- }
-
-
- protected static void createPerformanceClass() {
- if (performanceClass == null) {
- performanceClass = new TestCaseSAXParser().doLoad(new File(file));
- }
- }
-
-
- /**
- * @return Returns the clazzLoader.
- */
- public static ClassLoader getClassLoader() {
- return clazzLoader;
- }
- /**
- * @param clazzLoader The clazzLoader to set.
- */
- public static void setClassLoader(ClassLoader clazzLoader) {
- BasePerformanceTestCase.clazzLoader = clazzLoader;
- }
- /**
- * @return Returns the file.
- */
- public static String getFile() {
- return file;
- }
- /**
- * @param file The file to set.
- */
- public static void setFile(String file) {
- BasePerformanceTestCase.file = file;
- }
-
- /**
- * @param suite
- * @param test
- * @param global
- * @param string
- */
- protected static void addPerformanceTest(TestSuite suite, BaseTestCase test, int tagging, String shortName) {
- PerformanceTestCaseWrapper testCase = new PerformanceTestCaseWrapper(test, tagging , shortName);
- suite.addTest(testCase);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/EJBProjectCreationTestCase.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/EJBProjectCreationTestCase.java
deleted file mode 100644
index f6d4dc4e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/EJBProjectCreationTestCase.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.eclipse.jst.j2ee.tests.performance;
-
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-
-public class EJBProjectCreationTestCase extends PerformanceTestCase {
-
- public void testEJB30_Defaults() throws Exception {
- Dimension[] dims = new Dimension[] { Dimension.ELAPSED_PROCESS, Dimension.USED_JAVA_HEAP };
- tagAsGlobalSummary("EJB project creation", dims);
- startMeasuring();
-
- // Create an EJB 3.0 project with default settings
- EJBProjectCreationOperationTest.
- getEJBDataModel("ejb30_defaults", /* projName */
- null, /* clientName */
- null, /* clientSourceFolder */
- null, /* earName */
- JavaEEFacetConstants.EJB_3, /* version */
- false /* createDD */
- );
-
- stopMeasuring();
- commitMeasurements();
- assertPerformance();
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/HeaderParserPerformanceTest.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/HeaderParserPerformanceTest.java
deleted file mode 100644
index 33a76e1f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/HeaderParserPerformanceTest.java
+++ /dev/null
@@ -1,132 +0,0 @@
-package org.eclipse.jst.j2ee.tests.performance;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import junit.framework.Assert;
-
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.jee.util.internal.JavaEEQuickPeek;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class HeaderParserPerformanceTest {
- private static final String DATA_DIR = "TestData" + java.io.File.separatorChar + "headerParserTestData" + java.io.File.separatorChar;
-
- public void testSpeed() throws Exception {
- List data = getXMLData();
- long[] times = new long[data.size()];
- InputStream in = null;
-
- for (int i = 0; i < data.size(); i++) {
- try {
- TestData testData = (TestData) data.get(i);
- in = new FileInputStream(new File(getDataPath(testData.fileName)));
- long start = System.currentTimeMillis();
- JavaEEQuickPeek peek = new JavaEEQuickPeek(in);
- long end = System.currentTimeMillis();
- times[i] = end - start;
- if (times[i] == 0) {
- times[i] = 10; // stub in a minimum time
- }
- Assert.assertEquals(testData.type, peek.getType());
- Assert.assertEquals(testData.modVersion, peek.getVersion());
- Assert.assertEquals(testData.eeVersion, peek.getJavaEEVersion());
- } finally {
- if (in != null) {
- in.close();
- }
- }
- }
- // all times should be the same
- Arrays.sort(times);
- if (times[0] * 2 < times[times.length - 1]) {
- Assert.fail();
- }
- }
-
- private List getXMLData() {
- List data = new ArrayList();
- data.add(new TestData("application-client12.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("application-client13.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("application-client14.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("application-client5.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- data.add(new TestData("application12.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("application13.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("application14.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("application5.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- data.add(new TestData("ejb-jar11.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_1_1_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("ejb-jar20.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_0_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("ejb-jar21.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_1_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("ejb-jar30.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- data.add(new TestData("ra10.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_0_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("ra15.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_5_ID, J2EEVersionConstants.J2EE_1_4_ID));
-
- data.add(new TestData("web22.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_2_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("web23.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_3_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("web24.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_4_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("web25.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- // test some bogus dds as well
- data.add(new TestData("notxml.xml", J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("notjavaee.xml", J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("application-client0.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application-client00.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application-client000.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("application0.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application00.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application000.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("ejb-jar0.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ejb-jar00.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ejb-jar000.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("ra0.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ra00.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ra000.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("web0.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("web00.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("web000.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- return data;
- }
-
- protected String getDataPath(String shortName) throws Exception {
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- String pluginRelativeFileName = DATA_DIR + java.io.File.separatorChar + shortName;
- return ProjectUtility.getFullFileName(plugin, pluginRelativeFileName);
- }
-
- private class TestData {
- String fileName;
-
- int type;
-
- int modVersion;
-
- int eeVersion;
-
- Class modelObjectInterface;
-
- public TestData(String fileName, int type, int modVersion, int eeVersion) {
- this.fileName = fileName;
- this.type = type;
- this.modVersion = modVersion;
- this.eeVersion = eeVersion;
- }
-
- public TestData(String fileName, int type, int modVersion, int eeVersion, Class modelTypeClass) {
- this(fileName, type, modVersion, eeVersion);
- this.modelObjectInterface = modelTypeClass;
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformancePlugin.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformancePlugin.java
deleted file mode 100644
index cd55b79a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformancePlugin.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.eclipse.jst.j2ee.tests.performance;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class PerformancePlugin extends AbstractUIPlugin {
- //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.jst.j2ee.tests.performance.PerformancePluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- return resourceBundle;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestCaseWrapper.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestCaseWrapper.java
deleted file mode 100644
index df87c89d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestCaseWrapper.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Created on Nov 24, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.tests.performance;
-
-import junit.framework.Test;
-
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.Performance;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.wst.common.tests.BaseTestCase;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class PerformanceTestCaseWrapper extends PerformanceTestCase {
- protected BaseTestCase fTest;
- public static final int NONE = 0;
- public static final int LOCAL = 1;
- public static final int GLOBAL = 2;
-
- private boolean tagAsGlobalSummary;
- private boolean tagAsSummary;
- private String shortName;
-
- public static final int ITERATIONS = 10;
-
- public PerformanceTestCaseWrapper(BaseTestCase test,
- int tagging,
- String shortName) {
- fTest=test;
- tagAsGlobalSummary = ((tagging & GLOBAL) != 0);
- tagAsSummary = ((tagging & LOCAL) != 0);
- this.shortName = shortName;
- }
-
- public int countTestCases() {
- return fTest.countTestCases();
- }
-
- public String toString() {
- return fTest.toString();
- }
-
- public Test getTest() {
- return fTest;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.test.performance.PerformanceTestCase#setUp()
- */
- protected void setUp() throws Exception {
- fTest.setUpTest();
- }
-
- protected void basicSetUp() throws Exception {
- Performance performance= Performance.getDefault();
- fPerformanceMeter= performance.createPerformanceMeter(performance.getDefaultScenarioId(fTest));
- }
-
-
- /**
- * Runs the bare test sequence.
- * @exception Throwable if any exception is thrown
- */
- public void runBare() throws Throwable {
- basicSetUp();
- tagIfNecessary(shortName, Dimension.CPU_TIME);
- try {
- for (int i= 0; i < ITERATIONS; i++) {
- setUp();
- startMeasuring();
- runTest();
- stopMeasuring();
- }
- } catch (Throwable t) {
- // log the error, thrown by the JUnit test, in the console and re-throw it
- t.printStackTrace();
- throw t;
- } finally {
- commitMeasurements();
- assertPerformance();
- tearDown();
- }
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#runTest()
- */
- protected void runTest() throws Throwable {
- // TODO Auto-generated method stub
- fTest.runCoreTest();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.test.performance.PerformanceTestCase#tearDown()
- */
- protected void tearDown() throws Exception {
- // TODO Auto-generated method stub
- fTest.tearDownTest();
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setName(java.lang.String)
- */
- public void setName(String name) {
- // TODO Auto-generated method stub
- fTest.setName(name);
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#getName()
- */
- public String getName() {
- // TODO Auto-generated method stub
- return fTest.getName();
- }
-
- /**
- * Answers whether this test should be tagged globally.
- *
- * @return whether this test should be tagged globally
- */
- private boolean shouldGloballyTag() {
- return tagAsGlobalSummary;
- }
-
- /**
- * Answers whether this test should be tagged locally.
- *
- * @return whether this test should be tagged locally
- */
- private boolean shouldLocallyTag() {
- return tagAsSummary;
- }
-
- public void tagIfNecessary(String shortName, Dimension dimension) {
- if (shouldGloballyTag()) {
- tagAsGlobalSummary(shortName, dimension);
- }
- if (shouldLocallyTag()) {
- tagAsSummary(shortName, dimension);
- }
- }
-
- public void tagIfNecessary(String shortName, Dimension [] dimensions) {
- if (shouldGloballyTag()) {
- tagAsGlobalSummary(shortName, dimensions);
- }
- if (shouldLocallyTag()) {
- tagAsSummary(shortName, dimensions);
- }
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestObject.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestObject.java
deleted file mode 100644
index 803934ec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestObject.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Created on Nov 26, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.tests.performance;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class PerformanceTestObject {
- int tagging;
- String shortName;
- String name;
- /**
- *
- */
- public PerformanceTestObject(String name,int tagging, String shortname) {
- super();
- this.tagging = tagging;
- this.name = name;
- this.shortName = shortname;
- }
-
- /**
- * @return Returns the name.
- */
- public String getName() {
- return name;
- }
- /**
- * @return Returns the shortName.
- */
- public String getShortName() {
- return shortName;
- }
- /**
- * @return Returns the tagging.
- */
- public int getTagging() {
- return tagging;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestSuite.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestSuite.java
deleted file mode 100644
index ca283159..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/PerformanceTestSuite.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- *
- */
-package org.eclipse.jst.j2ee.tests.performance;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.common.tests.BaseTestCase;
-
-/**
- * @author itewk
- *
- */
-public class PerformanceTestSuite extends TestSuite {
- private static final String DEFAULT_SIMPLE_NAME = "Performance Test";
-
- /**
- *
- * @param name
- */
- public PerformanceTestSuite(String name) {
- super(name);
- }
-
- public void addTest(Test test) {
- //must be a BaseTestCase so it can be wrapped in a PerformanceTestCaseWrapper
- if(test instanceof BaseTestCase) {
- PerformanceTestCaseWrapper performanceTest = new PerformanceTestCaseWrapper(
- (BaseTestCase)test,PerformanceTestCaseWrapper.GLOBAL,DEFAULT_SIMPLE_NAME);
- super.addTest(performanceTest);
- }
- }
-
- /**
- *
- */
- public void addTest(Test test, String simpleName) {
- //must be a BaseTestCase so it can be wrapped in a PerformanceTestCaseWrapper
- if(test instanceof BaseTestCase) {
- PerformanceTestCaseWrapper performanceTest = new PerformanceTestCaseWrapper(
- (BaseTestCase)test,PerformanceTestCaseWrapper.GLOBAL,simpleName);
- super.addTest(performanceTest);
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/TestCaseSAXParser.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/TestCaseSAXParser.java
deleted file mode 100644
index 3189ea0b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/TestCaseSAXParser.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * Created on Nov 29, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.tests.performance;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class TestCaseSAXParser extends DefaultHandler {
- private static Map performanceCases = null;
- private static final String TEST_CASE = "testCase";
- private static final String CLASS = "class";
- private static final String METHOD = "method";
- private static final String SHORT_NAME = "shortName";
- private static final String TAGGING = "tagging";
- private static final String METHOD_NAME = "name";
- private static final String GLOBAL = "GLOBAL";
- private static final String LOCAL = "LOCAL";
- private static Class currentClazz = null;
-
-
-
- public Map doLoad(File file) {
- performanceCases = new HashMap();
- DefaultHandler handler = new TestCaseSAXParser();
- SAXParserFactory factory = SAXParserFactory.newInstance();
- try {
- SAXParser saxParser = factory.newSAXParser();
- saxParser.parse(file , handler );
- }
- catch (ParserConfigurationException ex) {
- System.err.println ("Failed to create SAX parser:" + ex);
- }
- catch (SAXException ex) {
- System.err.println ("SAX parser exceeption:" + ex);
- }
- catch (IOException ex) {
- System.err.println ("IO exeception:" + ex);
- }
- catch (IllegalArgumentException ex) {
- System.err.println ("Invalid file argument" + ex);
- }
- return performanceCases;
- }
-
- public void startElement(String uri, String localName,
- String qualifiedName, Attributes attributes) throws SAXException {
- if (qualifiedName.equals(TEST_CASE)) {
- for (int i = 0; i< attributes.getLength(); i++) {
- if (attributes.getQName(i).equalsIgnoreCase(CLASS)) {
- try {
- currentClazz = loadClass(attributes.getValue(i));
- if (performanceCases.get(currentClazz) == null) {
- ArrayList methodList = new ArrayList();
- performanceCases.put(currentClazz,methodList);
- }
- } catch (ClassNotFoundException e) {
- currentClazz = null;
- System.err.println ("Failed to load class:" + attributes.getValue(i));
- //e.printStackTrace();
- }
- } // end of if
- } // end of for
- } // end of if TEST_CASE
- else if (qualifiedName.equalsIgnoreCase(METHOD)) {
- String methodName = null;
- int tagging = 0;
- String shortName = null;
-
- if (currentClazz == null) return;
-
- for (int i = 0; i< attributes.getLength(); i++) {
- if (attributes.getQName(i).equalsIgnoreCase(METHOD_NAME)) {
- methodName = attributes.getValue(i);
- }
- else if (attributes.getQName(i).equalsIgnoreCase(TAGGING)){
- if (attributes.getValue(i).equalsIgnoreCase(GLOBAL)) {
- tagging = PerformanceTestCaseWrapper.GLOBAL;
- } else if (attributes.getValue(i).equalsIgnoreCase(LOCAL)) {
- tagging = PerformanceTestCaseWrapper.LOCAL;
- } else {
- tagging = PerformanceTestCaseWrapper.NONE;
- }
- } else if(attributes.getQName(i).equalsIgnoreCase(SHORT_NAME)) {
- shortName = attributes.getValue(i);
- }
- } // end of for
- List methodList = (List) performanceCases.get(currentClazz);
- methodList.add(new PerformanceTestObject(methodName,tagging,shortName));
- }
- }
-
- public void endElement(String uri, String localName, String qualifiedName)
- throws SAXException {
- if (qualifiedName.equals(TEST_CASE)) {
- currentClazz = null;
- }
- }
-
- /**
- * Loads the test suite class.
- */
- private Class loadClass(String className) throws ClassNotFoundException {
- if (className == null)
- return null;
- return getClassLoader().loadClass(className);
- }
-
- /**
- * The class loader to be used for loading tests.
- * Subclasses may override to use another class loader.
- */
- protected ClassLoader getClassLoader() {
- return BasePerformanceTestCase.getClassLoader();
- }
-
-}
-
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/WTPHeadlessPerformanceTests.java b/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/WTPHeadlessPerformanceTests.java
deleted file mode 100644
index 518cdc09..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/common/org/eclipse/jst/j2ee/tests/performance/WTPHeadlessPerformanceTests.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- *
- */
-package org.eclipse.jst.j2ee.tests.performance;
-
-import junit.framework.Test;
-
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARProjectCreationOperationTest;
-
-/**
- * @author itewk
- *
- */
-public class WTPHeadlessPerformanceTests extends PerformanceTestSuite {
- public WTPHeadlessPerformanceTests() {
- super("All WTP Headless Performances Tests");
-
- addTest(new EARProjectCreationOperationTest("testEAR14_WithDependencies"), "Test EAR 1.4 Project Creation with Dependincies");
- }
-
- public static Test suite(){
- return new WTPHeadlessPerformanceTests();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests.performance/plugin.xml b/tests/org.eclipse.jst.j2ee.tests.performance/plugin.xml
deleted file mode 100644
index 45e55bd0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests.performance/plugin.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin
- id="org.eclipse.jst.j2ee.tests.performance"
- name="Performance Plug-in"
- version="1.1.0"
- provider-name=""
- class="org.eclipse.jst.j2ee.tests.performance.PerformancePlugin">
-
- <runtime>
- <library name="performance.jar">
- <export name="*"/>
- </library>
- </runtime>
-
- <requires>
- <import plugin="org.eclipse.ui"/>
- <import plugin="org.eclipse.core.runtime"/>
- <import plugin="org.eclipse.test.performance"/>
- <import plugin="org.junit"/>
- <import plugin="org.eclipse.wst.common.tests"/>
- <import plugin="org.eclipse.jst.j2ee.core"/>
- <import plugin="org.eclipse.jst.j2ee.tests"/>
- <import plugin="org.eclipse.wst.common.project.facet.core"/>
- </requires>
-
-</plugin>
diff --git a/tests/org.eclipse.jst.j2ee.tests/.classpath b/tests/org.eclipse.jst.j2ee.tests/.classpath
deleted file mode 100644
index a13b1ceb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/.classpath
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="defect-tests"/>
- <classpathentry kind="src" path="webmodule-tests"/>
- <classpathentry kind="src" path="savestrategy-tests"/>
- <classpathentry kind="src" path="j2ee-tests"/>
- <classpathentry kind="src" path="j2ee-verifiers"/>
- <classpathentry kind="src" path="exportmodel-tests"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.jst.j2ee.tests/.cvsignore b/tests/org.eclipse.jst.j2ee.tests/.cvsignore
deleted file mode 100644
index 4a8c6e28..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-build.xml
-temp.folder
-j2ee-tests.jar
diff --git a/tests/org.eclipse.jst.j2ee.tests/.project b/tests/org.eclipse.jst.j2ee.tests/.project
deleted file mode 100644
index ffec9c0b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.j2ee.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2a57aff9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,59 +0,0 @@
-#Thu May 10 18:35:31 EDT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.nullReference=ignore
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 5993ccb4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Sat Mar 24 11:01:21 EDT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/>
diff --git a/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index ed079711..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,15 +0,0 @@
-#Sat Mar 24 10:56:39 EDT 2007
-compilers.incompatible-environment=1
-compilers.p.build=1
-compilers.p.deprecated=1
-compilers.p.missing-packages=1
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=1
-compilers.p.unknown-attribute=1
-compilers.p.unknown-class=1
-compilers.p.unknown-element=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/149995.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/149995.ear
deleted file mode 100644
index eecabd6c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/149995.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/149995BinaryClasspathTest.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/149995BinaryClasspathTest.ear
deleted file mode 100644
index 5be9ce77..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/149995BinaryClasspathTest.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/BeenThere.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/BeenThere.ear
deleted file mode 100644
index ad26fae6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/BeenThere.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/Collision.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/Collision.ear
deleted file mode 100644
index 9013a12f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/Collision.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Client.jar b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Client.jar
deleted file mode 100644
index df661029..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Client.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Connector.rar b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Connector.rar
deleted file mode 100644
index 59ba234e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Connector.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158EJB.jar b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158EJB.jar
deleted file mode 100644
index b7d56531..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158EJB.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Util.jar b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Util.jar
deleted file mode 100644
index 895c31c5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Util.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Web.war b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Web.war
deleted file mode 100644
index 0a269393..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/EAR121158Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/META-INF/MANIFEST.MF
deleted file mode 100644
index 59499bce..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,2 +0,0 @@
-Manifest-Version: 1.0
-
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/META-INF/application.xml b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/META-INF/application.xml
deleted file mode 100644
index a801dd9d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EAR121158.ear/META-INF/application.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
- <display-name>
- EAR121158</display-name>
- <module id="WebModule_1144784925194">
- <web>
- <web-uri>EAR121158Web.war</web-uri>
- <context-root>EAR121158Web</context-root>
- </web>
- </module>
- <module id="EjbModule_1144784925224">
- <ejb>EAR121158EJB.jar</ejb>
- </module>
- <module id="JavaClientModule_1144784925234">
- <java>EAR121158Client.jar</java>
- </module>
- <module id="ConnectorModule_1144784925244">
- <connector>EAR121158Connector.rar</connector>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EARForLibDep.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EARForLibDep.ear
deleted file mode 100644
index 607c5386..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EARForLibDep.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EJBLocalAndRemoteRefEARWithClientJars.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EJBLocalAndRemoteRefEARWithClientJars.ear
deleted file mode 100644
index 129f3851..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/EJBLocalAndRemoteRefEARWithClientJars.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/Example1.war b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/Example1.war
deleted file mode 100644
index 9c30a383..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/Example1.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/JarTest.auto.jar b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/JarTest.auto.jar
deleted file mode 100644
index 1c607fe3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/JarTest.auto.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/JarTest.man.jar b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/JarTest.man.jar
deleted file mode 100644
index fe9e2521..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/JarTest.man.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/WebDavTest.war b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/WebDavTest.war
deleted file mode 100644
index b6c2dc00..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/WebDavTest.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/WorkAreaFvtApp.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/WorkAreaFvtApp.ear
deleted file mode 100644
index e28784b2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/WorkAreaFvtApp.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/componentLoadAdapterTestData/testblah.war b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/componentLoadAdapterTestData/testblah.war
deleted file mode 100644
index 14373734..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/componentLoadAdapterTestData/testblah.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/sib.test.mediations.m5.JsMBR.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/sib.test.mediations.m5.JsMBR.ear
deleted file mode 100644
index fe9776b0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/sib.test.mediations.m5.JsMBR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/undeployed_DefaultApplication.ear b/tests/org.eclipse.jst.j2ee.tests/DefectTestData/undeployed_DefaultApplication.ear
deleted file mode 100644
index 74b10cfb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/DefectTestData/undeployed_DefaultApplication.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.j2ee.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 85eaf6f6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,73 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: J2EE Tests Plug-in
-Bundle-SymbolicName: org.eclipse.jst.j2ee.tests; singleton:=true
-Bundle-Version: 1.1.500.qualifier
-Bundle-ClassPath: j2ee-tests.jar
-Bundle-Activator: org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin
-Bundle-Localization: plugin
-Export-Package: org.eclipse.jst.common.annotations.tests,
- org.eclipse.jst.j2ee.bindingshelper.tests,
- org.eclipse.jst.j2ee.classpath.tests,
- org.eclipse.jst.j2ee.classpath.tests.util,
- org.eclipse.jst.j2ee.defect.tests,
- org.eclipse.jst.j2ee.dependency.tests,
- org.eclipse.jst.j2ee.dependency.tests.util,
- org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit,
- org.eclipse.jst.j2ee.flexible.project.fvtests,
- org.eclipse.jst.j2ee.flexible.project.tests,
- org.eclipse.jst.j2ee.project.facet.tests,
- org.eclipse.jst.j2ee.tests.bvt,
- org.eclipse.jst.j2ee.tests.modulecore,
- org.eclipse.jst.jee.model.tests,
- org.eclipse.wtp.headless.tests.savestrategy,
- org.eclipse.wtp.j2ee.headless.tests.appclient.operations,
- org.eclipse.wtp.j2ee.headless.tests.ear.operations,
- org.eclipse.wtp.j2ee.headless.tests.ejb.operations,
- org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers,
- org.eclipse.wtp.j2ee.headless.tests.j2ee.operations,
- org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers,
- org.eclipse.wtp.j2ee.headless.tests.jca.operations,
- org.eclipse.wtp.j2ee.headless.tests.jca.verifiers,
- org.eclipse.wtp.j2ee.headless.tests.plugin,
- org.eclipse.wtp.j2ee.headless.tests.web.container,
- org.eclipse.wtp.j2ee.headless.tests.web.operations,
- org.eclipse.wtp.j2ee.headless.tests.web.verifiers
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.resources,
- org.eclipse.core.commands,
- org.eclipse.jst.common.frameworks,
- org.eclipse.wst.common.emfworkbench.integration,
- org.eclipse.wst.common.frameworks,
- org.eclipse.jst.j2ee.core,
- org.eclipse.jst.j2ee.web,
- org.junit,
- org.eclipse.emf.common,
- org.eclipse.emf.ecore,
- org.eclipse.jst.j2ee,
- org.eclipse.wst.common.modulecore,
- org.eclipse.jst.j2ee.ejb,
- org.eclipse.jst.j2ee.jca,
- org.eclipse.wst.common.tests,
- org.eclipse.jst.j2ee.core.tests,
- org.eclipse.wst.server.core,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.wst.common.emf,
- org.eclipse.jst.j2ee.webservice,
- org.eclipse.jem.util,
- org.eclipse.jdt.core,
- org.eclipse.jdt.launching,
- org.eclipse.wst.web,
- org.eclipse.wst.common.project.facet.core,
- org.eclipse.jst.server.core,
- org.eclipse.jst.common.annotations.core,
- org.eclipse.wst.validation,
- org.eclipse.jst.jee,
- org.eclipse.jst.jee.ejb,
- org.eclipse.jface.text,
- org.eclipse.core.filebuffers,
- org.eclipse.jst.jee.web,
- org.eclipse.wst.xml.core,
- org.eclipse.wst.sse.core
-Eclipse-LazyStart: true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/tests/org.eclipse.jst.j2ee.tests/META-INF/eclipse.inf b/tests/org.eclipse.jst.j2ee.tests/META-INF/eclipse.inf
deleted file mode 100644
index 86da494b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/META-INF/eclipse.inf
+++ /dev/null
@@ -1,6 +0,0 @@
-# We do not want any nested jars
-# signed or normalized for packing
-# see bug 274743 Some unit tests are sensitive to details of build
-# https://bugs.eclipse.org/bugs/show_bug.cgi?id=274743
-jarprocessor.exclude=true
-jarprocessor.exclude.children=true
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/.cvsignore b/tests/org.eclipse.jst.j2ee.tests/TestData/.cvsignore
deleted file mode 100644
index d30e719a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-tempOutput
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/12AppClientTest.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/12AppClientTest.jar
deleted file mode 100644
index 8cce112b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/12AppClientTest.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/13AppClient.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/13AppClient.jar
deleted file mode 100644
index 79957c4d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/13AppClient.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/13AppClientTest.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/13AppClientTest.jar
deleted file mode 100644
index f00cf8bf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/13AppClientTest.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientExpTest.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientExpTest.jar
deleted file mode 100644
index b3c7ede9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientExpTest.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientNoSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientNoSource.jar
deleted file mode 100644
index dbe7dfbf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientNoSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientSomeSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientSomeSource.jar
deleted file mode 100644
index def98f6f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientSomeSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientSource.jar
deleted file mode 100644
index eaac33ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/AppClientTests/AppClientSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/BindingsHelperTests/BindingsTestEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/BindingsHelperTests/BindingsTestEAR.ear
deleted file mode 100644
index cbedada1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/BindingsHelperTests/BindingsTestEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test1.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test1.jar
deleted file mode 100644
index 80f089dd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test1.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test2.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test2.jar
deleted file mode 100644
index 66c077d3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test2.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test3.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test3.jar
deleted file mode 100644
index 7e597678..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test3.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test3_bin/test/Test3.class b/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test3_bin/test/Test3.class
deleted file mode 100644
index b0c3c889..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/Test3_bin/test/Test3.class
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/other/Test3.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/other/Test3.jar
deleted file mode 100644
index 7e597678..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/ClasspathDependencyTests/other/Test3.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/DefectTests/EJB100441NoClient.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/DefectTests/EJB100441NoClient.jar
deleted file mode 100644
index cb921c68..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/DefectTests/EJB100441NoClient.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/SimpleEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/SimpleEAR.ear
deleted file mode 100644
index 3bf23c14..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/SimpleEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test12EJBEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test12EJBEAR.ear
deleted file mode 100644
index e7c8dc9b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test12EJBEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test12WEBEJBEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test12WEBEJBEAR.ear
deleted file mode 100644
index c16da2a0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test12WEBEJBEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test13EJBEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test13EJBEAR.ear
deleted file mode 100644
index edc7beb1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test13EJBEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test13WEBEJBEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test13WEBEJBEAR.ear
deleted file mode 100644
index e932509c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test13WEBEJBEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14EJBEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14EJBEAR.ear
deleted file mode 100644
index fd220287..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14EJBEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14WEBEJBEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14WEBEJBEAR.ear
deleted file mode 100644
index 86cb4930..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14WEBEJBEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14WEBEJBEARWithMetaData.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14WEBEJBEARWithMetaData.ear
deleted file mode 100644
index 17b981ab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/Test14WEBEJBEARWithMetaData.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/UtilityJarTestEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/UtilityJarTestEAR.ear
deleted file mode 100644
index cb831015..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/UtilityJarTestEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/UtilityJarWebLibWithMetaDataFilesEAR.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/UtilityJarWebLibWithMetaDataFilesEAR.ear
deleted file mode 100644
index 5debb3ba..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EARImportTests/UtilityJarWebLibWithMetaDataFilesEAR.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/Test13EJB.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/Test13EJB.jar
deleted file mode 100644
index be00332e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/Test13EJB.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/Test14EJB.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/Test14EJB.jar
deleted file mode 100644
index f06f7542..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/Test14EJB.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/TestEJB3.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/TestEJB3.jar
deleted file mode 100644
index 8980df3e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/EJBImportTests/TestEJB3.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/GenralArtifactTest/J2EEArtifactEditTestProjects.zip b/tests/org.eclipse.jst.j2ee.tests/TestData/GenralArtifactTest/J2EEArtifactEditTestProjects.zip
deleted file mode 100644
index b0a4cf3a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/GenralArtifactTest/J2EEArtifactEditTestProjects.zip
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/GenralArtifactTest/perfWAR.zip b/tests/org.eclipse.jst.j2ee.tests/TestData/GenralArtifactTest/perfWAR.zip
deleted file mode 100644
index 98c4b2a9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/GenralArtifactTest/perfWAR.zip
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Defaults.jar
deleted file mode 100644
index 92786630..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Defaults.jar
deleted file mode 100644
index 32a4ab48..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_NoBuild.jar
deleted file mode 100644
index 32a4ab48..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Source.jar
deleted file mode 100644
index 9818ea04..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 9818ea04..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_NoBuild.jar
deleted file mode 100644
index 92786630..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Source.jar
deleted file mode 100644
index 1474ac07..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Source_NoBuild.jar
deleted file mode 100644
index 1474ac07..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_AddToEAR_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Defaults.jar
deleted file mode 100644
index bde3461a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_NoBuild.jar
deleted file mode 100644
index bde3461a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Source.jar
deleted file mode 100644
index 636ab26a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 5a7ae5b6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Defaults.jar
deleted file mode 100644
index 68a5d5fd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_NoBuild.jar
deleted file mode 100644
index 68a5d5fd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Source.jar
deleted file mode 100644
index 6de1dfc1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 6de1dfc1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Defaults.jar
deleted file mode 100644
index 04b2f240..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_NoBuild.jar
deleted file mode 100644
index 04b2f240..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Source.jar
deleted file mode 100644
index b806faec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Source_NoBuild.jar
deleted file mode 100644
index b806faec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC12_NoDefaultClass_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Defaults.jar
deleted file mode 100644
index 56cad7d0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Defaults.jar
deleted file mode 100644
index 7662c871..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_NoBuild.jar
deleted file mode 100644
index 7662c871..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Source.jar
deleted file mode 100644
index 2e170219..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 2e170219..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_NoBuild.jar
deleted file mode 100644
index 56cad7d0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Source.jar
deleted file mode 100644
index e4af3acb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Source_NoBuild.jar
deleted file mode 100644
index e4af3acb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_AddToEAR_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Defaults.jar
deleted file mode 100644
index efc61361..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_NoBuild.jar
deleted file mode 100644
index efc61361..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Source.jar
deleted file mode 100644
index 4f29ca2b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 4f29ca2b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Defaults.jar
deleted file mode 100644
index 8f19ba95..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_NoBuild.jar
deleted file mode 100644
index 8f19ba95..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Source.jar
deleted file mode 100644
index 9c3af02a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 9c3af02a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Defaults.jar
deleted file mode 100644
index b6fdbfaf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_NoBuild.jar
deleted file mode 100644
index b6fdbfaf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Source.jar
deleted file mode 100644
index c261ea94..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Source_NoBuild.jar
deleted file mode 100644
index c261ea94..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC13_NoDefaultClass_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Defaults.jar
deleted file mode 100644
index f2f6856f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Defaults.jar
deleted file mode 100644
index b859e0b6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_NoBuild.jar
deleted file mode 100644
index b859e0b6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Source.jar
deleted file mode 100644
index 2feac4c6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 2feac4c6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_NoBuild.jar
deleted file mode 100644
index f2f6856f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Source.jar
deleted file mode 100644
index cb274bed..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Source_NoBuild.jar
deleted file mode 100644
index cb274bed..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_AddToEAR_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Defaults.jar
deleted file mode 100644
index 2984fb52..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_NoBuild.jar
deleted file mode 100644
index 2984fb52..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Source.jar
deleted file mode 100644
index f1ac0d0e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Source_NoBuild.jar
deleted file mode 100644
index f1ac0d0e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Defaults.jar
deleted file mode 100644
index 3165ae7b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_NoBuild.jar
deleted file mode 100644
index 3165ae7b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Source.jar
deleted file mode 100644
index a566f681..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index a566f681..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Defaults.jar
deleted file mode 100644
index 78f79ef5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_NoBuild.jar
deleted file mode 100644
index 121a8fad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Source.jar
deleted file mode 100644
index 9827b052..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Source_NoBuild.jar
deleted file mode 100644
index 9827b052..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC14_NoDefaultClass_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Defaults.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Defaults.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_NoBuild.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Defaults.jar
deleted file mode 100644
index fdf8e883..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_NoBuild.jar
deleted file mode 100644
index fdf8e883..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Source.jar
deleted file mode 100644
index fdf8e883..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar
deleted file mode 100644
index fdf8e883..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_NoBuild.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source_NoBuild.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Defaults.jar
deleted file mode 100644
index b8e24624..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_NoBuild.jar
deleted file mode 100644
index b8e24624..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Source.jar
deleted file mode 100644
index b8e24624..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Source_NoBuild.jar
deleted file mode 100644
index b8e24624..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Defaults.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_NoBuild.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Defaults.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_NoBuild.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Defaults.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_NoBuild.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source_NoBuild.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Defaults.jar
deleted file mode 100644
index 9b074925..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_NoBuild.jar
deleted file mode 100644
index 9b074925..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Source.jar
deleted file mode 100644
index 9b074925..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 9b074925..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Defaults.jar
deleted file mode 100644
index 3138c110..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_NoBuild.jar
deleted file mode 100644
index 3138c110..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Source.jar
deleted file mode 100644
index 3138c110..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 3138c110..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Defaults.jar
deleted file mode 100644
index a6350a29..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_NoBuild.jar
deleted file mode 100644
index 63191727..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source.jar
deleted file mode 100644
index 8afc75c1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar
deleted file mode 100644
index fbc1719e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Defaults.jar
deleted file mode 100644
index fd2e0a98..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_NoBuild.jar
deleted file mode 100644
index a4ec26df..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source.jar
deleted file mode 100644
index 7cf87d21..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 5eb844e4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Defaults.jar
deleted file mode 100644
index 30abbedc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_NoBuild.jar
deleted file mode 100644
index 9e98f9b8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source.jar
deleted file mode 100644
index 81603416..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 4e10e375..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Defaults.jar
deleted file mode 100644
index cacb37c9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_NoBuild.jar
deleted file mode 100644
index de17b044..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source.jar
deleted file mode 100644
index fd4e308b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 6849c8c7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/288180.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/288180.ear
deleted file mode 100644
index 9b158b50..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/288180.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Defaults.ear
deleted file mode 100644
index 5ad79f03..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_NoBuild.ear
deleted file mode 100644
index 5ad79f03..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Source.ear
deleted file mode 100644
index 3c7aab11..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Source_NoBuild.ear
deleted file mode 100644
index 3c7aab11..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_ChangedContentDir_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Defaults.ear
deleted file mode 100644
index aeb6f5b8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_NoBuild.ear
deleted file mode 100644
index aeb6f5b8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Source.ear
deleted file mode 100644
index 21fa5655..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Source_NoBuild.ear
deleted file mode 100644
index 21fa5655..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR12_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Defaults.ear
deleted file mode 100644
index ff457d9b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_NoBuild.ear
deleted file mode 100644
index b6534640..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Source.ear
deleted file mode 100644
index 49aad0c6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Source_NoBuild.ear
deleted file mode 100644
index 95273067..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_ChangedContentDir_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Defaults.ear
deleted file mode 100644
index 6f31632c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_NoBuild.ear
deleted file mode 100644
index 294e7ad6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Source.ear
deleted file mode 100644
index b50752ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Source_NoBuild.ear
deleted file mode 100644
index df3a1678..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR13_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Defaults.ear
deleted file mode 100644
index a5e4aa53..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_NoBuild.ear
deleted file mode 100644
index e0d0bace..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Source.ear
deleted file mode 100644
index d198108d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Source_NoBuild.ear
deleted file mode 100644
index e6f515e3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_ChangedContentDir_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Defaults.ear
deleted file mode 100644
index fb635f1e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_NoBuild.ear
deleted file mode 100644
index 0725a279..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Source.ear
deleted file mode 100644
index 380f8257..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Source_NoBuild.ear
deleted file mode 100644
index 5a11637e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR14_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Defaults.ear
deleted file mode 100644
index 363bf9c5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_NoBuild.ear
deleted file mode 100644
index 47a6608a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Source.ear
deleted file mode 100644
index f6e1d065..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Source_NoBuild.ear
deleted file mode 100644
index 2119e369..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Defaults.ear
deleted file mode 100644
index 87522a2a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_NoBuild.ear
deleted file mode 100644
index 19fb5a7e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Source.ear
deleted file mode 100644
index 2ff4724a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Source_NoBuild.ear
deleted file mode 100644
index 6bf0da0c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_ChangedContentDir_WithDD_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Defaults.ear
deleted file mode 100644
index f060facc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_NoBuild.ear
deleted file mode 100644
index 07e01fa8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Source.ear
deleted file mode 100644
index 02a80d8d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Source_NoBuild.ear
deleted file mode 100644
index ad4e0a6f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Defaults.ear
deleted file mode 100644
index ebf22ffe..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_NoBuild.ear
deleted file mode 100644
index aa81cc6a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Source.ear
deleted file mode 100644
index 862ec0c4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Source_NoBuild.ear
deleted file mode 100644
index 28b573af..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR50_WithDD_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDs.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDs.ear
deleted file mode 100644
index fd46af67..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDs.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDsAndWithDDs.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDsAndWithDDs.ear
deleted file mode 100644
index a6a5662c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDsAndWithDDs.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDsAndWithDDs_WithUtil.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDsAndWithDDs_WithUtil.ear
deleted file mode 100644
index d6b473f9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDsAndWithDDs_WithUtil.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDs_WithUtil.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDs_WithUtil.ear
deleted file mode 100644
index 4fd58216..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesNoDDs_WithUtil.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesWithDDs.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesWithDDs.ear
deleted file mode 100644
index b6c3f5b0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesWithDDs.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesWithDDs_WithUtil.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesWithDDs_WithUtil.ear
deleted file mode 100644
index 8e0850d4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5NoDD_DependincesWithDDs_WithUtil.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDs.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDs.ear
deleted file mode 100644
index a7d57d9a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDs.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDsAndWithDDs.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDsAndWithDDs.ear
deleted file mode 100644
index d7abc11d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDsAndWithDDs.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDsAndWithDDs_WithUtil.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDsAndWithDDs_WithUtil.ear
deleted file mode 100644
index 73340284..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDsAndWithDDs_WithUtil.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDs_WithUtil.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDs_WithUtil.ear
deleted file mode 100644
index 655737cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesNoDDs_WithUtil.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesWithDDs.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesWithDDs.ear
deleted file mode 100644
index 790c5cc6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesWithDDs.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesWithDDs_WithUtil.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesWithDDs_WithUtil.ear
deleted file mode 100644
index 134505ef..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EARImportOperationTest/EAR5WithDD_DependincesWithDDs_WithUtil.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_ChangedEJBClientName_WithSource_DontRunBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_ChangedEJBClientName_WithSource_DontRunBuild.jar
deleted file mode 100644
index c3da7c39..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_ChangedEJBClientName_WithSource_DontRunBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Defaults.jar
deleted file mode 100644
index ef19d092..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_NoBuild.jar
deleted file mode 100644
index ef19d092..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Source.jar
deleted file mode 100644
index 77f5fd2c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 77f5fd2c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Defaults.jar
deleted file mode 100644
index af093f8c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index 26c9e7f0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index 26c9e7f0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index aa960834..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index aa960834..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_NoBuild.jar
deleted file mode 100644
index af093f8c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Source.jar
deleted file mode 100644
index c3da7c39..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Source_NoBuild.jar
deleted file mode 100644
index c3da7c39..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index 28e57b0d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index 28e57b0d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index 7f4dcd4a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index 7f4dcd4a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Defaults.jar
deleted file mode 100644
index f414ec83..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_NoBuild.jar
deleted file mode 100644
index f414ec83..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Source.jar
deleted file mode 100644
index 3b60d44b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Source_NoBuild.jar
deleted file mode 100644
index 3b60d44b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_AddToEAR_NoClient_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Defaults.jar
deleted file mode 100644
index cc772d90..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_NoBuild.jar
deleted file mode 100644
index 0871820a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Source.jar
deleted file mode 100644
index e7e7ff3a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 65262e2f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB11_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Defaults.jar
deleted file mode 100644
index bb531729..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_NoBuild.jar
deleted file mode 100644
index bb531729..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Source.jar
deleted file mode 100644
index 08e2d292..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 08e2d292..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Defaults.jar
deleted file mode 100644
index 467ac404..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index b0e0e79f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index b0e0e79f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index 243122c7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index 243122c7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_NoBuild.jar
deleted file mode 100644
index 467ac404..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Source.jar
deleted file mode 100644
index b0c17fa1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Source_NoBuild.jar
deleted file mode 100644
index b0c17fa1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index 6fa6d96f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index 6fa6d96f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index 2d10a5c8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index 2d10a5c8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Defaults.jar
deleted file mode 100644
index a662a82e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_NoBuild.jar
deleted file mode 100644
index a662a82e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Source.jar
deleted file mode 100644
index 33ca119c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Source_NoBuild.jar
deleted file mode 100644
index 33ca119c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_AddToEAR_NoClient_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Defaults.jar
deleted file mode 100644
index cbb0a80c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_NoBuild.jar
deleted file mode 100644
index cbb0a80c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Source.jar
deleted file mode 100644
index 3b429d47..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 3b429d47..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB20_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Defaults.jar
deleted file mode 100644
index 24ceea38..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_NoBuild.jar
deleted file mode 100644
index 24ceea38..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Source.jar
deleted file mode 100644
index 3ef57cdd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 3ef57cdd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Defaults.jar
deleted file mode 100644
index 3e89dad5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index 2748913c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index 2748913c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index 82ff7a79..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index 82ff7a79..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_NoBuild.jar
deleted file mode 100644
index 3e89dad5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Source.jar
deleted file mode 100644
index 72459743..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Source_NoBuild.jar
deleted file mode 100644
index 72459743..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index e4b6574d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index e4b6574d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index ffcf785e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index ffcf785e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Defaults.jar
deleted file mode 100644
index 1c178157..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_NoBuild.jar
deleted file mode 100644
index 1c178157..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Source.jar
deleted file mode 100644
index 252c0bb2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Source_NoBuild.jar
deleted file mode 100644
index 252c0bb2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_AddToEAR_NoClient_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Defaults.jar
deleted file mode 100644
index e81c497b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_NoBuild.jar
deleted file mode 100644
index e81c497b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Source.jar
deleted file mode 100644
index fd864ff9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Source_NoBuild.jar
deleted file mode 100644
index fd864ff9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB21_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Defaults.jar
deleted file mode 100644
index b09afce6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_NoBuild.jar
deleted file mode 100644
index da70bea2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source.jar
deleted file mode 100644
index da70bea2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source_NoBuild.jar
deleted file mode 100644
index da70bea2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Defaults.jar
deleted file mode 100644
index 68b41b9b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_NoBuild.jar
deleted file mode 100644
index 68b41b9b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Source.jar
deleted file mode 100644
index 68b41b9b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 68b41b9b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Defaults.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar
deleted file mode 100644
index 9bc55763..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar
deleted file mode 100644
index 9bc55763..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar
deleted file mode 100644
index 9bc55763..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 9bc55763..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_NoBuild.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source_NoBuild.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Defaults.jar
deleted file mode 100644
index 5709ab34..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_NoBuild.jar
deleted file mode 100644
index 5709ab34..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Source.jar
deleted file mode 100644
index 5709ab34..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 5709ab34..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar
deleted file mode 100644
index 0a5644ca..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar
deleted file mode 100644
index 0a5644ca..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar
deleted file mode 100644
index 0a5644ca..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 0a5644ca..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Defaults.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_NoBuild.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source_NoBuild.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Defaults.jar
deleted file mode 100644
index 98ef23cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_NoBuild.jar
deleted file mode 100644
index 98ef23cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Source.jar
deleted file mode 100644
index 98ef23cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 98ef23cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Defaults.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_NoBuild.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source_NoBuild.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Defaults.jar
deleted file mode 100644
index 6a2cadcb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_NoBuild.jar
deleted file mode 100644
index 6a2cadcb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Source.jar
deleted file mode 100644
index 6a2cadcb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 6a2cadcb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Defaults.jar
deleted file mode 100644
index 183137ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_NoBuild.jar
deleted file mode 100644
index 99e278ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source.jar
deleted file mode 100644
index 3fdead63..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source_NoBuild.jar
deleted file mode 100644
index aa208aae..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar
deleted file mode 100644
index 17d5b5cf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar
deleted file mode 100644
index 0422489e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar
deleted file mode 100644
index 274aaf52..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 9fd3d2cc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Defaults.jar
deleted file mode 100644
index af93e198..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_NoBuild.jar
deleted file mode 100644
index 8342436b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source.jar
deleted file mode 100644
index a88a79e2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar
deleted file mode 100644
index d19297e3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar
deleted file mode 100644
index c9f8808b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar
deleted file mode 100644
index 46f09c5e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar
deleted file mode 100644
index 2346692c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
deleted file mode 100644
index da365c32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Defaults.jar
deleted file mode 100644
index ffcaa28f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_NoBuild.jar
deleted file mode 100644
index 5f7dde62..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source.jar
deleted file mode 100644
index 26cb8657..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 38db407c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Defaults.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Defaults.jar
deleted file mode 100644
index dd0647d0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_NoBuild.jar
deleted file mode 100644
index 2592c8b8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source.jar
deleted file mode 100644
index 731966fb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 2e2d5c35..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Defaults.rar
deleted file mode 100644
index 3f564926..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_NoBuild.rar
deleted file mode 100644
index 742c03d1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Source.rar
deleted file mode 100644
index 1caa2b3c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Source_NoBuild.rar
deleted file mode 100644
index 1caa2b3c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_Defaults_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Defaults.rar
deleted file mode 100644
index b63fb894..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_NoBuild.rar
deleted file mode 100644
index b63fb894..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Source.rar
deleted file mode 100644
index a09685fb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Source_NoBuild.rar
deleted file mode 100644
index a09685fb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Defaults.rar
deleted file mode 100644
index f03ca407..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_NoBuild.rar
deleted file mode 100644
index f03ca407..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Source.rar
deleted file mode 100644
index 68d4fb36..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Source_NoBuild.rar
deleted file mode 100644
index 68d4fb36..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_DiffSourceFolder_WithEAR_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Defaults.rar
deleted file mode 100644
index 9505a63c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_NoBuild.rar
deleted file mode 100644
index 9505a63c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Source.rar
deleted file mode 100644
index 0fc69361..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Source_NoBuild.rar
deleted file mode 100644
index 0fc69361..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector10_WithEAR_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Defaults.rar
deleted file mode 100644
index 8fbe6a08..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_NoBuild.rar
deleted file mode 100644
index 8fbe6a08..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Source.rar
deleted file mode 100644
index 6efe066d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Source_NoBuild.rar
deleted file mode 100644
index 6efe066d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_Defaults_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Defaults.rar
deleted file mode 100644
index d4860d0a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_NoBuild.rar
deleted file mode 100644
index 25aeecb9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Source.rar
deleted file mode 100644
index 5c4a27f2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Source_NoBuild.rar
deleted file mode 100644
index 1e812b00..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Defaults.rar
deleted file mode 100644
index 4a6626f0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_NoBuild.rar
deleted file mode 100644
index 4a6626f0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Source.rar
deleted file mode 100644
index f3a9b5a8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Source_NoBuild.rar
deleted file mode 100644
index f3a9b5a8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_DiffSourceFolder_WithEAR_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Defaults.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Defaults.rar
deleted file mode 100644
index 5f0cabe5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Defaults.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_NoBuild.rar
deleted file mode 100644
index 5f0cabe5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Source.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Source.rar
deleted file mode 100644
index 32134db8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Source.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Source_NoBuild.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Source_NoBuild.rar
deleted file mode 100644
index 32134db8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/JCAImportOperationTest/Connector15_WithEAR_Source_NoBuild.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Defaults.ear
deleted file mode 100644
index 097894ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_NoBuild.ear
deleted file mode 100644
index 097894ad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Source.ear
deleted file mode 100644
index 59911a07..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Source_NoBuild.ear
deleted file mode 100644
index 59911a07..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR12_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Defaults.ear
deleted file mode 100644
index a03cf0f2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_NoBuild.ear
deleted file mode 100644
index a03cf0f2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Source.ear
deleted file mode 100644
index ef9c07a9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Source_NoBuild.ear
deleted file mode 100644
index ef9c07a9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR13_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Defaults.ear
deleted file mode 100644
index a7601cab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_NoBuild.ear
deleted file mode 100644
index a7601cab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Source.ear
deleted file mode 100644
index ef49a27f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Source_NoBuild.ear
deleted file mode 100644
index ef49a27f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR14_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Defaults.ear
deleted file mode 100644
index 269458fa..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_NoBuild.ear
deleted file mode 100644
index 269458fa..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Source.ear
deleted file mode 100644
index 269458fa..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Source_NoBuild.ear
deleted file mode 100644
index 269458fa..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithDD_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Defaults.ear
deleted file mode 100644
index 4f80b48b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_NoBuild.ear
deleted file mode 100644
index 4f80b48b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Source.ear
deleted file mode 100644
index 4f80b48b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Source_NoBuild.ear
deleted file mode 100644
index 4f80b48b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_AddToExisitingEAR5_WithoutDD_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Defaults.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Defaults.ear
deleted file mode 100644
index e89d68d2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Defaults.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_NoBuild.ear
deleted file mode 100644
index e89d68d2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Source.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Source.ear
deleted file mode 100644
index 79e59b27..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Source.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Source_NoBuild.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Source_NoBuild.ear
deleted file mode 100644
index 79e59b27..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/UtilityImportOperationTest/Utility_Defaults_Source_NoBuild.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Defaults.war
deleted file mode 100644
index d9472703..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_NoBuild.war
deleted file mode 100644
index 3bc9b6b3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Source.war
deleted file mode 100644
index 02148ff3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Source_NoBuild.war
deleted file mode 100644
index 2a180308..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Defaults.war
deleted file mode 100644
index ba969647..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_NoBuild.war
deleted file mode 100644
index ba969647..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Source.war
deleted file mode 100644
index 2619b318..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 2619b318..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_Defaults_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Defaults.war
deleted file mode 100644
index d42f5058..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Defaults.war
deleted file mode 100644
index c769162c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_NoBuild.war
deleted file mode 100644
index c769162c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Source.war
deleted file mode 100644
index 3a9f3ff8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 3a9f3ff8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 98715f32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 98715f32..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 1d1e5af7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 1d1e5af7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_NoBuild.war
deleted file mode 100644
index d42f5058..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Source.war
deleted file mode 100644
index 064b9bab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Source_NoBuild.war
deleted file mode 100644
index 064b9bab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index f0073cc8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index f0073cc8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 8172345a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 8172345a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 6807fd90..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index d6ee3428..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index d1def2e8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index d1def2e8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 0023bd13..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 0023bd13..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 8b24b78c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 8b24b78c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index f3c84a6f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index f3c84a6f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 895033e3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 895033e3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Defaults.war
deleted file mode 100644
index c19007e6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_NoBuild.war
deleted file mode 100644
index c19007e6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Source.war
deleted file mode 100644
index 97465250..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 97465250..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffContextRoot_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Defaults.war
deleted file mode 100644
index a4399064..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_NoBuild.war
deleted file mode 100644
index a4399064..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Source.war
deleted file mode 100644
index 36a56150..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 36a56150..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 0121b0dc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 0121b0dc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index e3018812..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index e3018812..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web22_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Defaults.war
deleted file mode 100644
index afb939bb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_NoBuild.war
deleted file mode 100644
index afb939bb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Source.war
deleted file mode 100644
index cfbb4008..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Source_NoBuild.war
deleted file mode 100644
index cfbb4008..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Defaults.war
deleted file mode 100644
index a336b136..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_NoBuild.war
deleted file mode 100644
index a336b136..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Source.war
deleted file mode 100644
index 3b14fc4a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 3b14fc4a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_Defaults_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Defaults.war
deleted file mode 100644
index fd9e050a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Defaults.war
deleted file mode 100644
index e0aa27d3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_NoBuild.war
deleted file mode 100644
index e0aa27d3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Source.war
deleted file mode 100644
index 96d3b939..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 96d3b939..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 2000597d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 2000597d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 5166d7e0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5166d7e0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_NoBuild.war
deleted file mode 100644
index fd9e050a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Source.war
deleted file mode 100644
index 1f1fb391..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Source_NoBuild.war
deleted file mode 100644
index 1f1fb391..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index a8b1146a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index a8b1146a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 964b1ded..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 964b1ded..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 3e6e3d78..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 3e6e3d78..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 91306b59..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 91306b59..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 5afa0728..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5afa0728..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 80158fd1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 80158fd1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index ad3ce652..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index ad3ce652..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 218edf68..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 218edf68..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Defaults.war
deleted file mode 100644
index 6f8d388e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_NoBuild.war
deleted file mode 100644
index 6f8d388e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Source.war
deleted file mode 100644
index 117d9aff..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 117d9aff..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffContextRoot_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Defaults.war
deleted file mode 100644
index ccd1b4ab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_NoBuild.war
deleted file mode 100644
index ccd1b4ab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Source.war
deleted file mode 100644
index 4d056f26..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 4d056f26..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 080c3d33..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 080c3d33..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 8d636c80..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 8d636c80..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web23_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Defaults.war
deleted file mode 100644
index 96671912..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_NoBuild.war
deleted file mode 100644
index 96671912..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Source.war
deleted file mode 100644
index e52373ed..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Source_NoBuild.war
deleted file mode 100644
index e52373ed..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Defaults.war
deleted file mode 100644
index 441a3430..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_NoBuild.war
deleted file mode 100644
index 441a3430..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Source.war
deleted file mode 100644
index 66989ba1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 66989ba1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_Defaults_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Defaults.war
deleted file mode 100644
index 75f61758..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Defaults.war
deleted file mode 100644
index 93bf4e7f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_NoBuild.war
deleted file mode 100644
index 93bf4e7f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Source.war
deleted file mode 100644
index ced5825f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index ced5825f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index d3aac3fc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index d3aac3fc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 9b078889..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 9b078889..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_NoBuild.war
deleted file mode 100644
index 75f61758..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Source.war
deleted file mode 100644
index 771919a3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Source_NoBuild.war
deleted file mode 100644
index 771919a3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 84264848..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index f93be326..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index b119bd97..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 4e731930..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index d050a88a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index d050a88a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 361d88e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 361d88e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 525ecd63..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 525ecd63..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index e17942ff..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index e17942ff..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 1ed9ac1e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 1ed9ac1e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index c1c6b6e0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index c1c6b6e0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Defaults.war
deleted file mode 100644
index f85e1166..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_NoBuild.war
deleted file mode 100644
index f85e1166..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Source.war
deleted file mode 100644
index 98cbd95e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 98cbd95e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffContextRoot_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Defaults.war
deleted file mode 100644
index e312c38a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_NoBuild.war
deleted file mode 100644
index e312c38a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Source.war
deleted file mode 100644
index 6a15b33b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 6a15b33b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index ab3b2a3b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index ab3b2a3b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index c901deb5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index c901deb5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web24_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Defaults.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_NoBuild.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source_NoBuild.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Defaults.war
deleted file mode 100644
index b8ad6e96..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_NoBuild.war
deleted file mode 100644
index b8ad6e96..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Source.war
deleted file mode 100644
index b8ad6e96..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Source_NoBuild.war
deleted file mode 100644
index b8ad6e96..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Defaults.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_NoBuild.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 0743d1a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 0743d1a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Source.war
deleted file mode 100644
index 0743d1a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 0743d1a7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Defaults.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Defaults.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_NoBuild.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Defaults.war
deleted file mode 100644
index f70cbdbd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_NoBuild.war
deleted file mode 100644
index f70cbdbd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Source.war
deleted file mode 100644
index f70cbdbd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Source_NoBuild.war
deleted file mode 100644
index f70cbdbd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 2e266067..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 2e266067..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source.war
deleted file mode 100644
index 2e266067..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 2e266067..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_NoBuild.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source_NoBuild.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Defaults.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_NoBuild.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Source.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Source_NoBuild.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index ea85c0b9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index ea85c0b9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Source.war
deleted file mode 100644
index ea85c0b9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index ea85c0b9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Defaults.war
deleted file mode 100644
index 14b2ac79..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_NoBuild.war
deleted file mode 100644
index 14b2ac79..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Source.war
deleted file mode 100644
index 14b2ac79..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Source_NoBuild.war
deleted file mode 100644
index 14b2ac79..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 819dd968..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 819dd968..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source.war
deleted file mode 100644
index 819dd968..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 819dd968..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Defaults.war
deleted file mode 100644
index 831b2074..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_NoBuild.war
deleted file mode 100644
index 831b2074..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Source.war
deleted file mode 100644
index 831b2074..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Source_NoBuild.war
deleted file mode 100644
index 831b2074..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 8824f3f8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 8824f3f8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Source.war
deleted file mode 100644
index 8824f3f8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 8824f3f8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Defaults.war
deleted file mode 100644
index 68f8244f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_NoBuild.war
deleted file mode 100644
index 68f8244f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Source.war
deleted file mode 100644
index 68f8244f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Source_NoBuild.war
deleted file mode 100644
index 68f8244f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 4fd6ec0d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 4fd6ec0d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Source.war
deleted file mode 100644
index 4fd6ec0d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 4fd6ec0d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Defaults.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_NoBuild.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Source.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Source_NoBuild.war
deleted file mode 100644
index e0242842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Defaults.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_NoBuild.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 99466101..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 99466101..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Source.war
deleted file mode 100644
index 99466101..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 99466101..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Defaults.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_NoBuild.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Defaults.war
deleted file mode 100644
index d7dc4ee7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_NoBuild.war
deleted file mode 100644
index d7dc4ee7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Source.war
deleted file mode 100644
index d7dc4ee7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Source_NoBuild.war
deleted file mode 100644
index d7dc4ee7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Defaults.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Defaults.war
deleted file mode 100644
index 0e227155..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_NoBuild.war
deleted file mode 100644
index 0e227155..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Source.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Source.war
deleted file mode 100644
index 0e227155..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war b/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
deleted file mode 100644
index 0e227155..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_WithDD_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/RARImportTests/JDEConnector.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/RARImportTests/JDEConnector.rar
deleted file mode 100644
index f1fb89d6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/RARImportTests/JDEConnector.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/SaveStrategyTests/AppClient.zip b/tests/org.eclipse.jst.j2ee.tests/TestData/SaveStrategyTests/AppClient.zip
deleted file mode 100644
index 3817287b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/SaveStrategyTests/AppClient.zip
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/SaveStrategyTests/WarImportFlexProject.zip b/tests/org.eclipse.jst.j2ee.tests/TestData/SaveStrategyTests/WarImportFlexProject.zip
deleted file mode 100644
index eb51480c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/SaveStrategyTests/WarImportFlexProject.zip
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Bug311542.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Bug311542.war
deleted file mode 100644
index a3bac0f5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Bug311542.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Example1.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Example1.war
deleted file mode 100644
index 9c30a383..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Example1.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML1.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML1.war
deleted file mode 100644
index 95b1bf8c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML1.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML14_1.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML14_1.war
deleted file mode 100644
index bfd2b4e4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML14_1.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML14_2.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML14_2.war
deleted file mode 100644
index e253f362..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML14_2.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML2.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML2.war
deleted file mode 100644
index ac126f55..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/InvalidWebXML2.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test12Web.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test12Web.war
deleted file mode 100644
index ba220b13..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test12Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test13Web.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test13Web.war
deleted file mode 100644
index 22aa926e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test13Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test14Web.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test14Web.war
deleted file mode 100644
index 1eb2a3fb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/Test14Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebContainerClientApp.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebContainerClientApp.war
deleted file mode 100644
index 860a2190..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebContainerClientApp.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebNoSource.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebNoSource.war
deleted file mode 100644
index a4a75975..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebNoSource.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebSomeSource.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebSomeSource.war
deleted file mode 100644
index 533b000d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebSomeSource.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebSource.war b/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebSource.war
deleted file mode 100644
index 6b71a0ea..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WARImportTests/WebSource.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WebAppLibrariesContainerTests/abc.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/WebAppLibrariesContainerTests/abc.jar
deleted file mode 100644
index 27d1aba9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WebAppLibrariesContainerTests/abc.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WebAppLibrariesContainerTests/foo.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/WebAppLibrariesContainerTests/foo.jar
deleted file mode 100644
index 6edac256..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WebAppLibrariesContainerTests/foo.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WebDeployTests/WebDeployTest.zip b/tests/org.eclipse.jst.j2ee.tests/TestData/WebDeployTests/WebDeployTest.zip
deleted file mode 100644
index 2504ebc3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WebDeployTests/WebDeployTest.zip
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/WebEditDdExternal/TestJSTL_Web25.zip b/tests/org.eclipse.jst.j2ee.tests/TestData/WebEditDdExternal/TestJSTL_Web25.zip
deleted file mode 100644
index dccb30f7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/WebEditDdExternal/TestJSTL_Web25.zip
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/EAR5_NoDD.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/EAR5_NoDD.ear
deleted file mode 100644
index 06dcc929..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/EAR5_NoDD.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/EAR5_WithDD.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/EAR5_WithDD.ear
deleted file mode 100644
index c3b57006..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/EAR5_WithDD.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client0.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client0.xml
deleted file mode 100644
index 8ebf1acc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client0.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application-client id="Application-client_ID">
- <display-name>EAR12Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client00.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client00.xml
deleted file mode 100644
index 80a05cdc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client00.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE application-client PUBLIC "test" "test">
-<application-client id="Application-client_ID">
- <display-name>EAR12Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client000.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client000.xml
deleted file mode 100644
index 2d13d7ae..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client000.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application-client id="Application-client_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="test">
- <display-name>
- EAR14Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client12.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client12.jar
deleted file mode 100644
index 1ac9235e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client12.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client12.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client12.xml
deleted file mode 100644
index add0ffc0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client12.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
-<application-client id="Application-client_ID">
- <display-name>EAR12Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client13.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client13.jar
deleted file mode 100644
index c7202f20..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client13.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client13.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client13.xml
deleted file mode 100644
index 1db72601..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client13.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN" "http://java.sun.com/dtd/application-client_1_3.dtd">
-<application-client id="Application-client_ID">
- <display-name>EAR13Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client14.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client14.jar
deleted file mode 100644
index ae270c97..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client14.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client14.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client14.xml
deleted file mode 100644
index 496b5787..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client14.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application-client id="Application-client_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd">
- <display-name>
- EAR14Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client5.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client5.jar
deleted file mode 100644
index e6accb49..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client5.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client5.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client5.xml
deleted file mode 100644
index 76e90604..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application-client5.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application-client id="Application-client_ID" version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_5.xsd">
- <display-name>
- EAR15Client</display-name>
-</application-client>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application0.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application0.xml
deleted file mode 100644
index 7b94cd69..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application0.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application id="Application_ID">
- <display-name>EAR12</display-name>
- <module id="JavaClientModule_1176405650468">
- <java>EAR12Client.jar</java>
- </module>
- <module id="EjbModule_1176405650484">
- <ejb>EAR12EJB.jar</ejb>
- </module>
- <module id="WebModule_1176405650484">
- <web>
- <web-uri>EAR12Web.war</web-uri>
- <context-root>EAR12Web</context-root>
- </web>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application00.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application00.xml
deleted file mode 100644
index c4c7cdde..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application00.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE application PUBLIC "test" "test">
-<application id="Application_ID">
- <display-name>EAR12</display-name>
- <module id="JavaClientModule_1176405650468">
- <java>EAR12Client.jar</java>
- </module>
- <module id="EjbModule_1176405650484">
- <ejb>EAR12EJB.jar</ejb>
- </module>
- <module id="WebModule_1176405650484">
- <web>
- <web-uri>EAR12Web.war</web-uri>
- <context-root>EAR12Web</context-root>
- </web>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application000.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application000.xml
deleted file mode 100644
index 24644d69..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application000.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="test">
- <display-name>
- EAR14</display-name>
- <module id="ConnectorModule_1176405694468">
- <connector>EAR14Connector.rar</connector>
- </module>
- <module id="JavaClientModule_1176405694578">
- <java>EAR14Client.jar</java>
- </module>
- <module id="EjbModule_1176405694578">
- <ejb>EAR14EJB.jar</ejb>
- </module>
- <module id="WebModule_1176405694578">
- <web>
- <web-uri>EAR14Web.war</web-uri>
- <context-root>EAR14Web</context-root>
- </web>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application12.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application12.ear
deleted file mode 100644
index 2271c196..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application12.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application12.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application12.xml
deleted file mode 100644
index b28f4a1d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application12.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
-<application id="Application_ID">
- <display-name>EAR12</display-name>
- <module id="JavaClientModule_1176405650468">
- <java>EAR12Client.jar</java>
- </module>
- <module id="EjbModule_1176405650484">
- <ejb>EAR12EJB.jar</ejb>
- </module>
- <module id="WebModule_1176405650484">
- <web>
- <web-uri>EAR12Web.war</web-uri>
- <context-root>EAR12Web</context-root>
- </web>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application13.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application13.ear
deleted file mode 100644
index 6cf7458d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application13.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application13.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application13.xml
deleted file mode 100644
index 0b195f5b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application13.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
-<application id="Application_ID">
- <display-name>EAR13</display-name>
- <module id="WebModule_1176405672843">
- <web>
- <web-uri>EAR13Web.war</web-uri>
- <context-root>EAR13Web</context-root>
- </web>
- </module>
- <module id="ConnectorModule_1176405672859">
- <connector>EAR13Connector.rar</connector>
- </module>
- <module id="JavaClientModule_1176405672875">
- <java>EAR13Client.jar</java>
- </module>
- <module id="EjbModule_1176405672875">
- <ejb>EAR13EJB.jar</ejb>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application14.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application14.ear
deleted file mode 100644
index 47e3d23a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application14.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application14.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application14.xml
deleted file mode 100644
index 12be2583..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application14.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
- <display-name>
- EAR14</display-name>
- <module id="ConnectorModule_1176405694468">
- <connector>EAR14Connector.rar</connector>
- </module>
- <module id="JavaClientModule_1176405694578">
- <java>EAR14Client.jar</java>
- </module>
- <module id="EjbModule_1176405694578">
- <ejb>EAR14EJB.jar</ejb>
- </module>
- <module id="WebModule_1176405694578">
- <web>
- <web-uri>EAR14Web.war</web-uri>
- <context-root>EAR14Web</context-root>
- </web>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application5.ear b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application5.ear
deleted file mode 100644
index b5dd57d4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application5.ear
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application5.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application5.xml
deleted file mode 100644
index 51bd3fb3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/application5.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application id="Application_ID" version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
- <display-name>
- EAR50</display-name>
- <module id="ConnectorModule_1176405694468">
- <connector>EAR14Connector.rar</connector>
- </module>
- <module id="JavaClientModule_1176405694578">
- <java>EAR14Client.jar</java>
- </module>
- <module id="EjbModule_1176405694578">
- <ejb>EAR14EJB.jar</ejb>
- </module>
- <module id="WebModule_1176405694578">
- <web>
- <web-uri>EAR14Web.war</web-uri>
- <context-root>EAR14Web</context-root>
- </web>
- </module>
-</application>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar0.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar0.xml
deleted file mode 100644
index cae4d200..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar0.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar id="ejb-jar_ID">
- <display-name>EAR12EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar00.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar00.xml
deleted file mode 100644
index 464538d2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar00.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE ejb-jar PUBLIC "test" "test">
-<ejb-jar id="ejb-jar_ID">
- <display-name>EAR12EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar000.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar000.xml
deleted file mode 100644
index afc230ce..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar000.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="test">
- <display-name>
- EAR14EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar11.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar11.jar
deleted file mode 100644
index 35b3aece..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar11.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar11.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar11.xml
deleted file mode 100644
index e8d6fe71..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar11.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
-<ejb-jar id="ejb-jar_ID">
- <display-name>EAR12EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar20.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar20.jar
deleted file mode 100644
index b6d04ab2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar20.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar20.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar20.xml
deleted file mode 100644
index bcbffd68..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar20.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
-<ejb-jar id="ejb-jar_ID">
- <display-name>EAR13EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar21.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar21.jar
deleted file mode 100644
index b5f1d8eb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar21.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar21.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar21.xml
deleted file mode 100644
index 22b655e3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar21.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
- <display-name>
- EAR14EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar30.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar30.jar
deleted file mode 100644
index 79d4c6ab..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar30.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar30.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar30.xml
deleted file mode 100644
index b8451bdd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ejb-jar30.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar id="ejb-jar_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
- <display-name>
- EAR5EJB</display-name>
- <enterprise-beans>
- <session id="S">
- <ejb-name>S</ejb-name>
- <home>ejbs.SHome</home>
- <remote>ejbs.S</remote>
- <ejb-class>ejbs.SBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
- </session>
- </enterprise-beans>
-</ejb-jar>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/notjavaee.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/notjavaee.xml
deleted file mode 100644
index c0312d06..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/notjavaee.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<test id="Application-client_ID">
- <display-name>EAR12Client</display-name>
-</test>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/notxml.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/notxml.xml
deleted file mode 100644
index b8ce116a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/notxml.xml
+++ /dev/null
@@ -1 +0,0 @@
-this is not xml
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra0.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra0.xml
deleted file mode 100644
index cd1dcbf3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra0.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<connector>
- <display-name>EAR13Connector</display-name>
- <description></description>
- <vendor-name></vendor-name>
- <spec-version></spec-version>
- <eis-type></eis-type>
- <version></version>
- <license>
- <description></description>
- <license-required>false</license-required>
- </license>
- <resourceadapter>
- <managedconnectionfactory-class></managedconnectionfactory-class>
- <connectionfactory-interface></connectionfactory-interface>
- <connectionfactory-impl-class></connectionfactory-impl-class>
- <connection-interface></connection-interface>
- <connection-impl-class></connection-impl-class>
- <transaction-support></transaction-support>
- <config-property>
- <description></description>
- <config-property-name></config-property-name>
- <config-property-type></config-property-type>
- <config-property-value></config-property-value>
- </config-property>
- <authentication-mechanism>
- <description></description>
- <authentication-mechanism-type></authentication-mechanism-type>
- <credential-interface></credential-interface>
- </authentication-mechanism>
- <reauthentication-support>false</reauthentication-support>
- <security-permission>
- <description></description>
- <security-permission-spec>
- </security-permission-spec>
- </security-permission>
- </resourceadapter>
-</connector>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra00.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra00.xml
deleted file mode 100644
index ac63c72d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra00.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE connector PUBLIC "test" "test">
-<connector>
- <display-name>EAR13Connector</display-name>
- <description></description>
- <vendor-name></vendor-name>
- <spec-version></spec-version>
- <eis-type></eis-type>
- <version></version>
- <license>
- <description></description>
- <license-required>false</license-required>
- </license>
- <resourceadapter>
- <managedconnectionfactory-class></managedconnectionfactory-class>
- <connectionfactory-interface></connectionfactory-interface>
- <connectionfactory-impl-class></connectionfactory-impl-class>
- <connection-interface></connection-interface>
- <connection-impl-class></connection-impl-class>
- <transaction-support></transaction-support>
- <config-property>
- <description></description>
- <config-property-name></config-property-name>
- <config-property-type></config-property-type>
- <config-property-value></config-property-value>
- </config-property>
- <authentication-mechanism>
- <description></description>
- <authentication-mechanism-type></authentication-mechanism-type>
- <credential-interface></credential-interface>
- </authentication-mechanism>
- <reauthentication-support>false</reauthentication-support>
- <security-permission>
- <description></description>
- <security-permission-spec>
- </security-permission-spec>
- </security-permission>
- </resourceadapter>
-</connector>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra000.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra000.xml
deleted file mode 100644
index 214edb33..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra000.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<connector id="Connector_ID" version="1.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="test">
- <description></description>
- <display-name>EAR14Connector</display-name>
- <vendor-name></vendor-name>
- <eis-type></eis-type>
- <resourceadapter-version></resourceadapter-version>
- <resourceadapter>
- </resourceadapter>
-</connector>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra10.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra10.rar
deleted file mode 100644
index 1e0848a4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra10.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra10.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra10.xml
deleted file mode 100644
index 63d848b6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra10.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE connector PUBLIC "-//Sun Microsystems, Inc.//DTD Connector 1.0//EN" "http://java.sun.com/dtd/connector_1_0.dtd">
-<connector>
- <display-name>EAR13Connector</display-name>
- <description></description>
- <vendor-name></vendor-name>
- <spec-version></spec-version>
- <eis-type></eis-type>
- <version></version>
- <license>
- <description></description>
- <license-required>false</license-required>
- </license>
- <resourceadapter>
- <managedconnectionfactory-class></managedconnectionfactory-class>
- <connectionfactory-interface></connectionfactory-interface>
- <connectionfactory-impl-class></connectionfactory-impl-class>
- <connection-interface></connection-interface>
- <connection-impl-class></connection-impl-class>
- <transaction-support></transaction-support>
- <config-property>
- <description></description>
- <config-property-name></config-property-name>
- <config-property-type></config-property-type>
- <config-property-value></config-property-value>
- </config-property>
- <authentication-mechanism>
- <description></description>
- <authentication-mechanism-type></authentication-mechanism-type>
- <credential-interface></credential-interface>
- </authentication-mechanism>
- <reauthentication-support>false</reauthentication-support>
- <security-permission>
- <description></description>
- <security-permission-spec>
- </security-permission-spec>
- </security-permission>
- </resourceadapter>
-</connector>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra15.rar b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra15.rar
deleted file mode 100644
index dbdad495..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra15.rar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra15.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra15.xml
deleted file mode 100644
index 127636f2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/ra15.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<connector id="Connector_ID" version="1.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd">
- <description></description>
- <display-name>EAR14Connector</display-name>
- <vendor-name></vendor-name>
- <eis-type></eis-type>
- <resourceadapter-version></resourceadapter-version>
- <resourceadapter>
- </resourceadapter>
-</connector>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web0.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web0.xml
deleted file mode 100644
index b954cdc6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web0.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID">
- <display-name>EAR12Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web00.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web00.xml
deleted file mode 100644
index 96114772..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web00.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app PUBLIC "test" "test">
-<web-app id="WebApp_ID">
- <display-name>EAR12Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web000.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web000.xml
deleted file mode 100644
index bdd3f000..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web000.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="test">
- <display-name>
- EAR14Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web22.war b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web22.war
deleted file mode 100644
index 7678e1c6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web22.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web22.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web22.xml
deleted file mode 100644
index f9ac38d2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web22.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
-<web-app id="WebApp_ID">
- <display-name>EAR12Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web23.war b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web23.war
deleted file mode 100644
index d89fda2c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web23.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web23.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web23.xml
deleted file mode 100644
index 36f56e0a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web23.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
-<web-app id="WebApp_ID">
- <display-name>EAR13Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web24.war b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web24.war
deleted file mode 100644
index 9ef73f6f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web24.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web24.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web24.xml
deleted file mode 100644
index 54f82b54..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web24.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <display-name>
- EAR14Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web25.war b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web25.war
deleted file mode 100644
index 37f3001a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web25.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web25.xml b/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web25.xml
deleted file mode 100644
index 6ccdda74..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/headerParserTestData/web25.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
- <display-name>
- EAR5Web</display-name>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/12AppClientTest_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/12AppClientTest_withoutSource.jar
deleted file mode 100644
index b2d7eed2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/12AppClientTest_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/13AppClientTest_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/13AppClientTest_withoutSource.jar
deleted file mode 100644
index b07d371f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/13AppClientTest_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/13AppClient_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/13AppClient_withoutSource.jar
deleted file mode 100644
index 69f4ee49..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/13AppClient_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientExpTest_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientExpTest_withoutSource.jar
deleted file mode 100644
index fb54025b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientExpTest_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientNoSource_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientNoSource_withoutSource.jar
deleted file mode 100644
index 2b2168cd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientNoSource_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientSomeSource_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientSomeSource_withoutSource.jar
deleted file mode 100644
index 0348d598..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientSomeSource_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientSource_withoutSource.jar b/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientSource_withoutSource.jar
deleted file mode 100644
index 421f0ddf..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/TestData/testOutputs/AppClientSource_withoutSource.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.j2ee.tests/about.html b/tests/org.eclipse.jst.j2ee.tests/about.html
deleted file mode 100644
index 2199df3f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/tests/org.eclipse.jst.j2ee.tests/build.properties b/tests/org.eclipse.jst.j2ee.tests/build.properties
deleted file mode 100644
index d7fb32c0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/build.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-###############################################################################
-# Copyright (c) 2005, 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-source.j2ee-tests.jar = j2ee-tests/,\
- webmodule-tests/,\
- defect-tests/,\
- savestrategy-tests/,\
- j2ee-verifiers/
-output.j2ee-tests.jar = bin/
-bin.includes = plugin.xml,\
- j2ee-tests.jar,\
- TestData/,\
- testHOLD.xml,\
- about.html,\
- DefectTestData/,\
- META-INF/,\
- bvt.properties
-src.includes = build.properties,\
- testHOLD.xml,\
- plugin.xml,\
- TestData/,\
- DefectTestData/,\
- bvt.properties
diff --git a/tests/org.eclipse.jst.j2ee.tests/bvt.properties b/tests/org.eclipse.jst.j2ee.tests/bvt.properties
deleted file mode 100644
index 762b351c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/bvt.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-###############################################################################
-# Copyright (c) 2010 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
-###############################################################################
-
-# To run all the buckets in the BVT, uncomment org.eclipse.jst.j2ee.tests.bvt.ALL (the rest of the
-# properties will be ignored).
-# To run individual buckets, comment out org.eclipse.jst.j2ee.tests.bvt.ALL and
-# uncomment the corresponding properties.
-
-#org.eclipse.jst.j2ee.tests.bvt.ALL = true
-org.eclipse.jst.j2ee.tests.bvt.EnterpriseBVT = true
-org.eclipse.jst.j2ee.tests.bvt.EJBBVT = true
-org.eclipse.jst.j2ee.tests.bvt.WebBVT = true
-org.eclipse.jst.j2ee.tests.bvt.CoreInfrastructureBVT = true
-org.eclipse.jst.j2ee.tests.bvt.ModelProviderBVT = true
-org.eclipse.jst.j2ee.tests.bvt.ExtendedModelProviderBVT = true
diff --git a/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/ClasspathContainerThreading.java b/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/ClasspathContainerThreading.java
deleted file mode 100644
index c95a98cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/ClasspathContainerThreading.java
+++ /dev/null
@@ -1,166 +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.jst.j2ee.defect.tests;
-
-import java.io.InputStream;
-import java.io.StringBufferInputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest;
-import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-
-public class ClasspathContainerThreading {
-
- public final int LOOPS = 10;
- private final List threads = new ArrayList();
-
- class EARRunnable implements Runnable {
- IProject project;
-
- public EARRunnable(IProject earProject) {
- this.project = earProject;
- }
-
- public void run() {
- try {
- for (int i = 0; i < LOOPS; i++) {
- IVirtualComponent comp = ComponentCore.createComponent(project);
- IVirtualFile vFile = comp.getRootFolder().getFile("foo.jar");
- IFile iFile = vFile.getUnderlyingFile();
- InputStream in = new StringBufferInputStream("foo.jar");
- iFile.create(in, true, null);
- Thread.sleep(10);
- iFile.delete(true, null);
- Thread.sleep(10);
- }
- } catch (Exception e) {
- e.printStackTrace();
- } finally {
- synchronized (threads) {
- threads.remove(Thread.currentThread());
- }
- }
- }
- };
-
- class ForceUpdateRunnable implements Runnable {
- IProject project;
-
- public ForceUpdateRunnable(IProject project) {
- this.project = project;
- }
-
- public void run() {
- try {
- for (int i = 0; i < LOOPS * 2; i++) {
- J2EEComponentClasspathUpdater.getInstance().queueUpdate(project);
- Thread.sleep(10);
- }
- } catch (Exception e) {
- e.printStackTrace();
- } finally {
- synchronized (threads) {
- threads.remove(Thread.currentThread());
- }
- }
- }
- };
-
- class ModuleRunnable implements Runnable {
- IProject project;
-
- public ModuleRunnable(IProject project) {
- this.project = project;
- }
-
- public void run() {
- try {
- for (int i = 0; i < LOOPS; i++) {
- ArchiveManifest manifest = J2EEProjectUtilities.readManifest(project);
- manifest.addEntry("foo.jar");
- J2EEProjectUtilities.writeManifest(project, manifest);
- Thread.sleep(10);
- manifest = J2EEProjectUtilities.readManifest(project);
- manifest.removeEntry("foo.jar");
- J2EEProjectUtilities.writeManifest(project, manifest);
- Thread.sleep(10);
- }
- } catch (Exception e) {
- e.printStackTrace();
- } finally {
- synchronized (threads) {
- threads.remove(Thread.currentThread());
- }
- }
- }
- };
-
-
- public ClasspathContainerThreading() {
-
- }
-
- public void testDeadlock() {
- IProject[] allProjects = J2EEProjectUtilities.getAllProjects();
- List earProjects = new ArrayList();
- List modulesProjects = new ArrayList();
- for (int i = 0; i < allProjects.length; i++) {
- if (JavaEEProjectUtilities.isEARProject(allProjects[i])) {
- earProjects.add(allProjects[i]);
- } else {
- IVirtualComponent comp = ComponentCore.createComponent(allProjects[i]);
- if (comp != null) {
- modulesProjects.add(allProjects[i]);
- }
- }
- }
-
-
-
- for (int i = 0; i < earProjects.size(); i++) {
- threads.add(new Thread(new EARRunnable((IProject) earProjects.get(i))));
- threads.add(new Thread(new ForceUpdateRunnable((IProject) earProjects.get(i))));
- }
- for (int i = 0; i < modulesProjects.size(); i++) {
- threads.add(new Thread(new ModuleRunnable((IProject) modulesProjects.get(i))));
- threads.add(new Thread(new ForceUpdateRunnable((IProject) modulesProjects.get(i))));
- }
-
- synchronized (threads) {
- for (int i = 0; i < threads.size(); i++) {
- ((Thread) threads.get(i)).start();
- }
- }
-
- boolean shouldContinue = true;
- while (shouldContinue) {
- try {
- Thread.sleep(100);
- } catch (Exception e) {
- e.printStackTrace();
- }
- synchronized (threads) {
- shouldContinue = !threads.isEmpty();
- }
- }
-
-
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/DefectVerificationTests.java b/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/DefectVerificationTests.java
deleted file mode 100644
index 0ac5e985..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/DefectVerificationTests.java
+++ /dev/null
@@ -1,837 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.defect.tests;
-
-//import java.io.File;
-import java.io.File;
-import java.io.StringBufferInputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.jobs.IJobManager;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jdt.core.IClasspathContainer;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.J2EEComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchiveFactory;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonarchivePackage;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.RuntimeClasspathEntry;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualArchiveComponent;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.jst.j2ee.datamodel.properties.IEARComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.datamodel.properties.IEARComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-import org.eclipse.jst.j2ee.internal.plugin.IJ2EEModuleConstants;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJavaProjectMigrationDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.JavaProjectMigrationDataModelProvider;
-import org.eclipse.jst.j2ee.web.datamodel.properties.IWebComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.operation.CreateReferenceComponentsDataModelProvider;
-import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wst.common.componentcore.resources.IVirtualResource;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebImportOperationTest;
-
-public class DefectVerificationTests extends OperationTestCase {
-
- public static String BASE_DATA_DIRECTORY = System.getProperty("user.dir") + java.io.File.separatorChar + "DefectTestData" + java.io.File.separatorChar;
- private static final String TEST_DATA_PATH = System.getProperty("user.dir") + java.io.File.separatorChar + "TestData" + java.io.File.separatorChar;
-
-
- private static String getDataPath(String suffix) {
- return BASE_DATA_DIRECTORY + "componentLoadAdapterTestData" + java.io.File.separatorChar + suffix;
- }
-
- public static String getFullTestDataPath(String dataPath) {
- try {
- String defectTestDataPath = "DefectTestData" + fileSep + dataPath;
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- if (plugin != null) {
- return ProjectUtility.getFullFileName(plugin, defectTestDataPath);
- }
- return System.getProperty("user.dir") + java.io.File.separatorChar + defectTestDataPath;
- } catch (Exception e) {
- e.printStackTrace();
- }
- return "";
- }
-
-
- public void _test261508() throws Exception {
- String earFileName = getFullTestDataPath("EARForLibDep.ear");
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
- runAndVerify(model);
-
- IVirtualComponent webComponent = ComponentCore.createComponent(J2EEProjectUtilities.getProject("WebForLibDep"));
- IVirtualReference[] refs = webComponent.getReferences();
- Assert.assertTrue(refs.length == 2);
- for( IVirtualReference ref : refs ){
- IVirtualComponent refComponent = ref.getReferencedComponent();
- if ( refComponent instanceof J2EEModuleVirtualArchiveComponent ){
- J2EEModuleVirtualArchiveComponent j2eeVirtualArchive = (J2EEModuleVirtualArchiveComponent)refComponent;
- Assert.assertTrue( j2eeVirtualArchive.getName().endsWith("EjbTestClient.jar"));
- }
- }
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=130657
- */
- public void test130657() throws Exception {
- IDataModel model = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- model.setProperty(IWebFacetInstallDataModelProperties.FACET_PROJECT_NAME, "Test120018");
- model.getDefaultOperation().execute(null, null);
-
- IVirtualComponent component = ComponentUtilities.getComponent("Test120018");
-
- IFolder folder = component.getProject().getFolder("imported_classes");
- folder.create(true,true,null);
- IFile fakeClassFile = folder.getFile("Fake.class");
- fakeClassFile.create(new StringBufferInputStream(""),true,null);
- Assert.assertTrue("Class file should have been created in project.",component.getProject().exists(fakeClassFile.getProjectRelativePath()));
-
- final IVirtualFolder jsrc = component.getRootFolder().getFolder("/WEB-INF/classes");
- jsrc.createLink(folder.getProjectRelativePath(), 0, null);
- Assert.assertEquals("Should be a link for each class in imported_classes.",folder.members().length, jsrc.members().length);
-
- //Export war
- IDataModel dataModel = DataModelFactory.createDataModel(new WebComponentExportDataModelProvider());
- dataModel.setProperty(J2EEComponentExportDataModelProvider.ARCHIVE_DESTINATION, getDataPath("testblah.war"));
- dataModel.setProperty(J2EEComponentExportDataModelProvider.COMPONENT, component);
- dataModel.setBooleanProperty(J2EEComponentExportDataModelProvider.EXPORT_SOURCE_FILES, true);
- dataModel.setBooleanProperty(J2EEComponentExportDataModelProvider.OVERWRITE_EXISTING, true);
- IStatus status = dataModel.getDefaultOperation().execute(null, null);
- Assert.assertEquals("Creating WAR failed " + status.getMessage(), IStatus.OK, status.getSeverity());
-
- IArchive archiveWAR = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(getDataPath("testblah.war")));
- for(int i=0; i<jsrc.members().length; i++) {
- Assert.assertTrue("Archive does not contain resource for each linked imported class.",
- archiveWAR.containsArchiveResource((jsrc.members())[i].getRuntimePath().makeRelative()));
- }
-
- //archiveWAR.
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archiveWAR);
- }
-
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=120018
- */
- public void test120018() throws Exception {
- IDataModel model = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- model.setProperty(IWebFacetInstallDataModelProperties.FACET_PROJECT_NAME, "Test120018");
- model.getDefaultOperation().execute(null, null);
-
- IVirtualComponent component = ComponentUtilities.getComponent("Test120018");
-
-
- IVirtualFolder folder = component.getRootFolder().getFolder("imported_classes");
- folder.create(IResource.NONE, null);
- IPath folderPath = folder.getProjectRelativePath();
-
- final IVirtualFolder jsrc = component.getRootFolder().getFolder("/WEB-INF/classes");
- jsrc.createLink(folder.getProjectRelativePath(), 0, null);
-
- J2EEComponentClasspathUpdater.getInstance().forceUpdate(Collections.singleton(component.getProject()));
- IJobManager manager = Job.getJobManager();
- Job [] jobs = manager.find(J2EEComponentClasspathUpdater.MODULE_UPDATE_JOB_NAME);
- if(jobs.length > 0){
- try {
- for (int i = 0; i < jobs.length; i++){
- if(jobs[i].getName().equals(J2EEComponentClasspathUpdater.MODULE_UPDATE_JOB_NAME))
- jobs[i].join();
- }
- } catch (InterruptedException e) {
- Logger.getLogger().log(e);
- }
- }
-
- IJavaProject javaProject = JavaCore.create(component.getProject());
- IClasspathEntry[] entries = javaProject.getRawClasspath();
- boolean foundImportedClasses = false;
- for (int i = 0; i < entries.length && !foundImportedClasses; i++) {
- if (IClasspathEntry.CPE_CONTAINER == entries[i].getEntryKind()) {
- IClasspathContainer container = JavaCore.getClasspathContainer(entries[i].getPath(), javaProject);
- IClasspathEntry[] containerEntries = container.getClasspathEntries();
- for (int j = 0; j < containerEntries.length && !foundImportedClasses; j++) {
- IPath entryPath = containerEntries[j].getPath().removeFirstSegments(1);
- foundImportedClasses = folderPath.equals(entryPath);
- if (foundImportedClasses) break;
- }
- }
-
- }
- Assert.assertTrue(foundImportedClasses);
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=105901
- */
- public void test105901() throws Exception {
- String earFileName = getFullTestDataPath("Collision.ear");
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
- runAndVerify(model);
- IVirtualComponent comp = (IVirtualComponent) model.getProperty(IEARComponentImportDataModelProperties.COMPONENT);
- IVirtualReference[] refs = comp.getReferences();
- assertEquals(3, refs.length);
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=109430
- */
- public void test109430() throws Exception {
- String earFileName = getFullTestDataPath("EJBLocalAndRemoteRefEARWithClientJars.ear");
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
- List moduleList = (List) model.getProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST);
-
- runAndVerify(model);
- IVirtualComponent component = (IVirtualComponent) model.getProperty(IEARComponentImportDataModelProperties.COMPONENT);
- EnterpriseArtifactEdit artifactEdit = null;
- try {
- artifactEdit = EARArtifactEdit.getEARArtifactEditForRead(component);
- EARFile earFile = null;
- try {
- earFile = (EARFile) artifactEdit.asArchive(true);
- earFile.getEJBReferences(false, false);
- } finally {
- if (earFile != null) {
- earFile.close();
- }
- }
- } finally {
- if (artifactEdit != null) {
- artifactEdit.dispose();
- }
- }
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=112636
- */
- public void test112636() throws Exception {
- checkDeploy("BeenThere.ear");
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=112835
- */
- public void test112835() throws Exception {
- checkDeploy("sib.test.mediations.m5.JsMBR.ear");
- }
-
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=121158
- */
- public void test121158() throws Exception {
- String earFileName = getFullTestDataPath("EAR121158.ear"); //$NON-NLS-1$
- EARFile earFile = null;
- try {
- ArchiveOptions opts = new ArchiveOptions();
- opts.setIsReadOnly(true);
- earFile = CommonarchiveFactory.eINSTANCE.openEARFile(opts, earFileName);
-
- List moduleList = earFile.getModuleFiles();
- for (int i = 0; i < moduleList.size(); i++) {
- ModuleFile module = (ModuleFile) moduleList.get(i);
- RuntimeClasspathEntry[] entries = module.getFullRuntimeClassPath();
- assertEquals(2, entries.length);
- assertTrue(entries[0].toString().endsWith(module.getURI()));
- assertTrue(entries[1].toString().endsWith("EAR121158Util.jar")); //$NON-NLS-1$
- }
-
- } finally {
- if (earFile != null && earFile.isOpen()) {
- earFile.close();
- earFile = null;
- }
- }
- }
-
- protected void checkDeploy(String earName) throws Exception {
- String earFileName = getFullTestDataPath(earName);
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
-
- runAndVerify(model);
- IVirtualComponent comp = (IVirtualComponent) model.getProperty(IEARComponentImportDataModelProperties.COMPONENT);
- EnterpriseArtifactEdit earEdit = EARArtifactEdit.getEARArtifactEditForRead(comp);
- EARFile earFile = (EARFile) earEdit.asArchive(false);
- earFile.getEJBReferences(true, true);
- earFile.getEJBReferences(true, false);
- earFile.getEJBReferences(false, true);
- earFile.getEJBReferences(false, false);
- earFile.close();
- earFile = null;
-
- Thread.sleep(5000);
-
- String earOutputName = "c:\\temp\\Output" + System.currentTimeMillis() + ".ear";
- IDataModel export = DataModelFactory.createDataModel(new EARComponentExportDataModelProvider());
- export.setProperty(IEARComponentExportDataModelProperties.PROJECT_NAME, comp.getProject().getName());
- export.setProperty(IEARComponentExportDataModelProperties.ARCHIVE_DESTINATION, earOutputName);
- runAndVerify(export);
-
-
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=143483
- */
- public void test143483() throws Exception {
- checkDeploy("undeployed_DefaultApplication.ear");//$NON-NLS-1$
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=144288
-
- public void test144288() throws Exception {
- String earName = "WorkAreaFvtApp.ear";//$NON-NLS-1$
- String earFileName = getFullTestDataPath(earName);
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
-
- List moduleList = (List) model.getProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST);
- for (int i = moduleList.size() - 1; i > -1; i--) {
- IDataModel aModel = (IDataModel) moduleList.get(i);
- Object file = aModel.getProperty(IEARComponentImportDataModelProperties.FILE);
- if (file instanceof ModuleFile) {
- ModuleFile moduleFile = (ModuleFile) file;
- if (moduleFile.isWARFile())
- moduleList.remove(aModel);
- if (moduleFile.isApplicationClientFile())
- moduleList.remove(aModel);
- }
- }
-
- runAndVerify(model);
- IVirtualComponent comp = (IVirtualComponent) model.getProperty(IEARComponentImportDataModelProperties.COMPONENT);
- String appClientURI = "WorkAreaFvtClient.jar";//$NON-NLS-1$
-
- IFile file = ComponentUtilities.findFile(comp, new Path(appClientURI));
- ApplicationClientFile appClientJar = CommonarchiveFactoryImpl.getActiveFactory().openApplicationClientFile(file.getLocation().toOSString());
- ArchiveManifest manf = appClientJar.getManifest();
- String existingEntries[] = manf.getClassPathTokenized();
- manf.appendClassPath("foo.jar");//$NON-NLS-1$
- appClientJar.saveNoReopen();
-
- String earOutputName = "d:\\temp\\Output" + System.currentTimeMillis() + ".ear";
- IDataModel export = DataModelFactory.createDataModel(new EARComponentExportDataModelProvider());
- export.setProperty(IEARComponentExportDataModelProperties.PROJECT_NAME, comp.getProject().getName());
- export.setProperty(IEARComponentExportDataModelProperties.ARCHIVE_DESTINATION, earOutputName);
- runAndVerify(export);
- }
- */
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=145460
- */
- public void test145460() throws Exception {
- String warName = "Example1.war"; //$NON-NLS-1$
- String warFileName = getFullTestDataPath(warName);
-
- IDataModel dataModel = DataModelFactory.createDataModel(new WebComponentImportDataModelProvider());
- dataModel.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, "AN_EAR");
- dataModel.setBooleanProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- dataModel.setProperty(IWebComponentImportDataModelProperties.FILE_NAME, warFileName);
- dataModel.setProperty(IWebComponentImportDataModelProperties.PROJECT_NAME, "A_WAR");
- runAndVerify(dataModel);
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=149995
- */
- public void test149995() throws Exception {
- String earName = "149995.ear";//$NON-NLS-1$
- String earFileName = getFullTestDataPath(earName);
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
- runAndVerify(model);
-
- IVirtualComponent earComponent = ComponentCore.createComponent(J2EEProjectUtilities.getProject("149995"));
- IVirtualResource [] members = earComponent.getRootFolder().members();
- Assert.assertEquals(5, members.length);
-
- setUp();
-
- model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
- model.setProperty(IEARComponentImportDataModelProperties.MODULE_MODELS_LIST, Collections.EMPTY_LIST);
- runAndVerify(model);
-
- earComponent = ComponentCore.createComponent(J2EEProjectUtilities.getProject("149995"));
- members = earComponent.getRootFolder().members();
- Assert.assertEquals(5, members.length);
- }
-
- /**
- * The following code checks to ensure classpaths are being setup properly for dependent projects
- * In the ear there is one AppClient which depends directly on the utility jar C which contains class test.C.
- * The utility jar C depends on the utility jar B which contains class test.B
- * The utility jar B depends on the utility jar A which contains class test.A
- *
- * This portion of the test ensures the classpath is setup properly by importing every combination of the
- * A, B, and C utility jars along with AppClient. Then the types test.A, test.B, and test.C are opened through
- * AppClient to ensure they are pulled from the correct location (the utility jars in the EAR, or the expanded projects)
- *
- */
- public void test149995_BinaryClaspathTest() throws Exception {
-// int A = 1;
-// int B = 2;
-// int C = 4;
-//
-// String earName = "149995BinaryClasspathTest.ear";//$NON-NLS-1$
-// String earFileName = getFullTestDataPath(earName);
-//
-// for(int i=0; i<8; i++){
-// setUp();
-//
-// IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
-// model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earFileName);
-// List utilityArchives = EARComponentImportDataModelProvider.getAllUtilities((EARFile) model.getProperty(IEARComponentImportDataModelProperties.FILE));
-// List utilsList = new ArrayList();
-//
-// for(int j =0;j<utilityArchives.size(); j++){
-// Archive archive = (Archive)utilityArchives.get(j);
-// String projectName = archive.getName();
-// if((i & A) == A && "A.jar".equals(projectName)){
-// utilsList.add(archive);
-// } else if((i & B) == B && "B.jar".equals(projectName)){
-// utilsList.add(archive);
-// } else if((i & C) == C && "C.jar".equals(projectName)){
-// utilsList.add(archive);
-// }
-// }
-// model.setProperty(IEARComponentImportDataModelProperties.UTILITY_LIST, utilsList);
-// runAndVerify(model);
-//
-// IJavaProject appClient = JavaCore.create(J2EEProjectUtilities.getProject("AppClient"));
-// IType aType = appClient.findType("test.A");
-// Assert.assertNotNull(aType);
-// if((i & A) == A ){
-// Assert.assertTrue(aType instanceof SourceType);
-// } else {
-// Assert.assertTrue(aType instanceof BinaryType);
-// }
-//
-// IType bType = appClient.findType("test.B");
-// Assert.assertNotNull(bType);
-// if((i & B) == B ){
-// Assert.assertTrue(bType instanceof SourceType);
-// } else {
-// Assert.assertTrue(bType instanceof BinaryType);
-// }
-//
-// IType cType = appClient.findType("test.C");
-// Assert.assertNotNull(cType);
-// if((i & C) == C ){
-// Assert.assertTrue(cType instanceof SourceType);
-// } else {
-// Assert.assertTrue(cType instanceof BinaryType);
-// }
-// }
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=145031
- */
- /*
- public void test145031() throws Exception {
- String [] shortNames = new String [] { "JarTest.man.jar", "JarTest.auto.jar"};
-
- for (int i = 0; i < shortNames.length; i++) {
- //System.out.println("trying shortName ="+shortNames[i]);
- String longName = getFullTestDataPath(shortNames[i]);
- //System.out.println("longName ="+longName);
- URLClassLoader jarCL = new URLClassLoader(new URL[] { new URL("file:\\"+longName) });
- Enumeration resources = jarCL.getResources("META-INF/");
- boolean foundResource = false;
- while(resources.hasMoreElements()){
- URL url = (URL)resources.nextElement();
-
- if(url.toString().indexOf(shortNames[i]) != -1){
- //System.out.println(" Found URL with URLClassLoader.getResources(\"META-INF/\") ");
- //System.out.println(" url = "+ url);
- foundResource = true;
- }
- }
-
- //this is cheating because we know the the manual archive is first and does not have the directory info
- // and that second index is auto and should have the directory info
- if(i == 0) {
- Assert.assertFalse("Should not have found URL with URLClassLoader.getResources(\"META-INF/\") ", foundResource);
- } else if(i == 1) {
- Assert.assertTrue("Didn't find URL with URLClassLoader.getResources(\"META-INF/\") ", foundResource);
- }
-
- if(!foundResource){
- System.out.println(" Didn't find URL with URLClassLoader.getResources(\"META-INF/\") ");
- }
-
- ZipFile zipFile = new ZipFile(longName);
- Enumeration entries = zipFile.entries();
- while(entries.hasMoreElements()){
- ZipEntry entry = (ZipEntry)entries.nextElement();
- System.out.println(" Entry found = "+entry);
- }
-
- }
- }
- */
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=159481
- */
- public void test159481() throws Exception {
- ArchiveOptions options = new ArchiveOptions();
- options.setRendererType(ArchiveOptions.DOM);
- final String earPath = getFullTestDataPath("WebDavTest.war"); //$NON-NLS-1$
- CommonarchivePackage pkg = CommonarchivePackage.eINSTANCE;
- WARFile warFile = pkg.getCommonarchiveFactory().openWARFile(options, earPath);
- warFile.getDeploymentDescriptor();
-
- }
-
-
- /**
- * To run this test, first override setUp() to do nothing, and then import a
- * few ear projects containing modules.
- *
- * @throws Exception
- */
- public void test145805() throws Exception {
- ClasspathContainerThreading threading = new ClasspathContainerThreading();
- threading.testDeadlock();
- }
-
- public void test160562() throws Exception {
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("A.jar", "B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("./A.jar", "B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("A.jar", "./B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("././././A.jar", "B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("A.jar", "././././B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("././././A.jar", "././././B.jar"));
- Assert.assertEquals("lib/A.jar", ArchiveUtil.deriveEARRelativeURI("A.jar", "lib/B.jar"));
- Assert.assertEquals("lib/A.jar", ArchiveUtil.deriveEARRelativeURI("./A.jar", "lib/B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("../A.jar", "lib/B.jar"));
- Assert.assertEquals("lib/A.jar", ArchiveUtil.deriveEARRelativeURI("../lib/A.jar", "lib/B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("../../../A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/A.jar", ArchiveUtil.deriveEARRelativeURI("../../A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/foo/A.jar", ArchiveUtil.deriveEARRelativeURI("../A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/foo/bar/A.jar", ArchiveUtil.deriveEARRelativeURI("A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/foo/bar/A.jar", ArchiveUtil.deriveEARRelativeURI("./A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/foo/bar/A.jar", ArchiveUtil.deriveEARRelativeURI("./A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/foo/bar/A.jar", ArchiveUtil.deriveEARRelativeURI("./../bar/../../foo/./bar/A.jar", "lib/foo/bar/B.jar"));
- Assert.assertEquals("lib/foo/bar/A.jar", ArchiveUtil.deriveEARRelativeURI("./A.jar", "lib/foo/bar/B.jar"));
- }
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=184154
- */
- public void test184154() throws Exception {
-
- // Scenario 1 - create ejb project with add to ear and ejb client
-
- IDataModel dataModel = DataModelFactory.createDataModel(IEjbFacetInstallDataModelProperties.class);
-
- String projName = "TestAPIEjbProject";//$NON-NLS-1$
- String ejbVersionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.EJB_2_1_ID);
- IProjectFacet ejbFacet = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EJB_MODULE);
- IProjectFacetVersion ejbFacetVersion = ejbFacet.getVersion(ejbVersionString); //$NON-NLS-1$
-
-
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel appmodel = (IDataModel) map.get(IModuleConstants.JST_EJB_MODULE);
- appmodel.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, ejbFacetVersion);
- appmodel.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER,"ejb333"); //$NON-NLS-1$
-
- String ejbClientName = projName + "Client"; //$NON-NLS-1$
-
- map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- appmodel = (IDataModel) map.get(IModuleConstants.JST_EJB_MODULE);
-
- appmodel.setBooleanProperty(IEjbFacetInstallDataModelProperties.CREATE_CLIENT, true);
- appmodel.setStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_NAME, ejbClientName);
-
- String clientURI = ejbClientName+"zzzzz"+IJ2EEModuleConstants.JAR_EXT;
-
- appmodel.setStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_URI, clientURI);
-
- String earProjName = projName + "EAR"; //$NON-NLS-1$
-
- dataModel.setBooleanProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
-
- dataModel.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earProjName);
-
- runAndVerify(dataModel);
-
- IVirtualComponent component = ComponentUtilities.getComponent(earProjName);
-
- IVirtualComponent ejbClientComponent = ComponentUtilities.getComponent(ejbClientName);
-
- IVirtualReference reference = component.getReference(ejbClientComponent.getName());
-
- Assert.assertEquals(reference.getReferencedComponent(), ejbClientComponent);
-
- Assert.assertEquals(reference.getArchiveName(), clientURI);
-
- // Scenario 2 - create utility project with add to ear
-
- String utilityProjectName = "TestUtilityProject";
- String utilEarProjectName = utilityProjectName + "EAR"; //$NON-NLS-1$
- String utilityURI = utilityProjectName + IJ2EEModuleConstants.JAR_EXT;
-
- ProjectUtil.createUtilityProject(utilityProjectName , utilEarProjectName);
-
- IVirtualComponent earComponent = ComponentUtilities.getComponent(utilEarProjectName);
-
- IVirtualComponent utilClientComponent = ComponentUtilities.getComponent(utilityProjectName);
-
- IVirtualReference reference1 = earComponent.getReference(utilClientComponent.getName());
-
- Assert.assertEquals(reference1.getReferencedComponent(), utilClientComponent);
-
- Assert.assertEquals(reference1.getArchiveName(), utilityURI);
-
- String javaProjectName = "TestJavaProject";
-
- // Scenario 3 - create java project add it as a j2ee module dependency for an ear project
-
- IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(javaProjectName);
- proj.create(null);
- proj.open(null);
-
- IProjectDescription description = proj.getDescription();
- List natureList = new ArrayList();
- natureList.add(JavaCore.NATURE_ID);
- natureList.addAll(Arrays.asList(description.getNatureIds()));
- description.setNatureIds((String[]) natureList.toArray(new String[natureList.size()]));
- proj.setDescription(description, null);
-
- IJavaProject javaProject = JavaCore.create(proj);
-
- IDataModel migrationdm = DataModelFactory.createDataModel(new JavaProjectMigrationDataModelProvider());
- migrationdm.setProperty(IJavaProjectMigrationDataModelProperties.PROJECT_NAME, proj.getName());
-
- runAndVerify(migrationdm);
-
- String javaProjectURI = proj.getName() + IJ2EEModuleConstants.JAR_EXT;
-
- IDataModel refdm = DataModelFactory.createDataModel(new CreateReferenceComponentsDataModelProvider());
- List targetCompList = (List) refdm.getProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST);
-
- IVirtualComponent targetcomponent = ComponentCore.createComponent(proj);
- targetCompList.add(targetcomponent);
-
- refdm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT, earComponent);
- refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, targetCompList);
-
- // referenced java projects should have archiveName attribute
- ((Map)refdm.getProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_TO_URI_MAP)).put(targetcomponent, javaProjectURI);
-
- runAndVerify(refdm, true, true, null, true, true);
-
- IVirtualReference reference2 = earComponent.getReference(targetcomponent.getName());
-
- Assert.assertEquals(reference2.getReferencedComponent(), targetcomponent);
-
- Assert.assertEquals(reference2.getArchiveName(), javaProjectURI);
-
-
- }
-
- /*
- public void test192752() throws Exception {
- String warPath = null;
- String projectName = null;
- WebArtifactEdit webArtifactEditForRead = null;
- IDataModel model = null;
-
-
- warPath = getWarFile("InvalidWebXML1.war");
- projectName = warPath.substring(warPath.lastIndexOf(File.separator) + 1, warPath.length() - 4);
- model = WebImportOperationTest.getWebImportDataModel(warPath, projectName, null, null, true, null, null);
- OperationTestCase.runAndVerify(model);
- webArtifactEditForRead = WebArtifactEdit.getWebArtifactEditForRead(ProjectUtil.getProject(projectName));
- checkIfModelIsParsed(webArtifactEditForRead.getWebApp());
-
- warPath = getWarFile("InvalidWebXML2.war");
- projectName = warPath.substring(warPath.lastIndexOf(File.separator) + 1, warPath.length() - 4);
- model = WebImportOperationTest.getWebImportDataModel(warPath, projectName, null, null, true, null, null);
- OperationTestCase.runAndVerify(model);
- webArtifactEditForRead = WebArtifactEdit.getWebArtifactEditForRead(ProjectUtil.getProject(projectName));
- checkIfModelIsParsed(webArtifactEditForRead.getWebApp());
-
- warPath = getWarFile("InvalidWebXML14_1.war");
- projectName = warPath.substring(warPath.lastIndexOf(File.separator) + 1, warPath.length() - 4);
- model = WebImportOperationTest.getWebImportDataModel(warPath, projectName, null, null, true, null, null);
- OperationTestCase.runAndVerify(model);
- webArtifactEditForRead = WebArtifactEdit.getWebArtifactEditForRead(ProjectUtil.getProject(projectName));
- checkIfModelIsParsed(webArtifactEditForRead.getWebApp());
-
- warPath = getWarFile("InvalidWebXML14_2.war");
- projectName = warPath.substring(warPath.lastIndexOf(File.separator) + 1, warPath.length() - 4);
- model = WebImportOperationTest.getWebImportDataModel(warPath, projectName, null, null, true, null, null);
- OperationTestCase.runAndVerify(model);
- webArtifactEditForRead = WebArtifactEdit.getWebArtifactEditForRead(ProjectUtil.getProject(projectName));
- checkIfModelIsParsed(webArtifactEditForRead.getWebApp());
- }
- */
-
- /**
- * Test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=311542
- */
- public void test311542() throws Exception {
- String warPath = null;
- String projectName = null;
- IDataModel model = null;
-
-
- warPath = getWarFile("Bug311542.war");
- projectName = warPath.substring(warPath.lastIndexOf(File.separator) + 1, warPath.length() - 4);
- model = WebImportOperationTest.getWebImportDataModel(warPath, projectName, null, true, null, null);
- OperationTestCase.runAndVerify(model);
- }
-
- private String getWarFile(String fileName) {
- return TEST_DATA_PATH + "WARImportTests" + java.io.File.separatorChar + fileName;
- }
-
- private void checkIfModelIsParsed(WebApp deploymentDescriptor1) {
- // tests to ensure model is usable to a degree
- Assert.assertNotNull(deploymentDescriptor1);
- Assert.assertNotNull(deploymentDescriptor1.getConstraints());
- Assert.assertFalse(deploymentDescriptor1.getConstraints().isEmpty());
- Assert.assertNotNull(deploymentDescriptor1.getSecurityRoles());
- Assert.assertFalse(deploymentDescriptor1.getSecurityRoles().isEmpty());
- }
-
-
- /**
- * This defect was canceled.
- public void test147917() throws Exception {
-
- Assert.assertEquals("Lib/A.jar", ArchiveUtil.deriveEARRelativeURI("Lib/A.jar", "B.jar"));
-
-
- String workingDir = new java.io.File(".").getCanonicalPath(); //$NON-NLS-1$
- if(workingDir.lastIndexOf(java.io.File.separatorChar) == -1){
- return;
- }
-
- List prefixes = new ArrayList();
- String lastSegment = workingDir.substring(workingDir.lastIndexOf(java.io.File.separatorChar)+1);
- prefixes.add(lastSegment);
- String lower = lastSegment.toLowerCase();
- prefixes.add(lower);
- String upper = lastSegment.toUpperCase();
- prefixes.add(upper);
- //switch each charactor
- for(int i=0;i<lastSegment.length(); i++){
- char [] newValue = lastSegment.toCharArray();
- char c = Character.toUpperCase(newValue[i]);
- if(c == newValue[i]){
- c = Character.toLowerCase(c);
- }
- if(c != newValue[i]){
- newValue[i] = c;
- String newString = new String(newValue);
- prefixes.add(newString);
- }
- }
-
- for(Iterator itr = prefixes.iterator(); itr.hasNext();){
- String prefix = (String)itr.next();
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("/A.jar", "B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI(prefix+"/A.jar", "B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI("/"+prefix+"/A.jar", "B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI(prefix+"/A.jar", "./B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI("A.jar", prefix+"/B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI("/A.jar", prefix+"/B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI("./A.jar", prefix+"/B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("../A.jar", prefix+"/B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("/../A.jar", prefix+"/B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI(prefix+"/../../A.jar", prefix+"/B.jar"));
- Assert.assertEquals("A.jar", ArchiveUtil.deriveEARRelativeURI("/"+prefix+"/../../A.jar", prefix+"/B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI(prefix+"/../A.jar", prefix+"/B.jar"));
- Assert.assertEquals(prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI("/"+prefix+"/../A.jar", prefix+"/B.jar"));
- Assert.assertEquals(prefix+"/"+prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI(prefix+"/A.jar", prefix+"/B.jar"));
- Assert.assertEquals(prefix+"/"+prefix+"/A.jar", ArchiveUtil.deriveEARRelativeURI("/"+prefix+"/A.jar", prefix+"/B.jar"));
-
-
- }
- }
- **/
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/DefectVerificationTestsSuite.java b/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/DefectVerificationTestsSuite.java
deleted file mode 100644
index f0195543..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/defect-tests/org/eclipse/jst/j2ee/defect/tests/DefectVerificationTestsSuite.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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.jst.j2ee.defect.tests;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class DefectVerificationTestsSuite extends TestSuite {
-
- public static Test suite() {
- return new DefectVerificationTestsSuite();
- }
-
- public DefectVerificationTestsSuite() {
- super("Defect Verification Tests");
- addTest(new SimpleTestSuite(DefectVerificationTests.class));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/ExportModelTest.java b/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/ExportModelTest.java
deleted file mode 100644
index 55685e36..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/ExportModelTest.java
+++ /dev/null
@@ -1,212 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.exportmodel;
-
-import java.io.ByteArrayInputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.componentcore.internal.flat.FilterResourceParticipant;
-import org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent;
-import org.eclipse.wst.common.componentcore.internal.flat.IFlatFolder;
-import org.eclipse.wst.common.componentcore.internal.flat.IFlatResource;
-import org.eclipse.wst.common.componentcore.internal.flat.IFlatVirtualComponent;
-import org.eclipse.wst.common.componentcore.internal.flat.IFlattenParticipant;
-import org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.FlatComponentTaskModel;
-import org.eclipse.wst.common.componentcore.internal.operation.CreateReferenceComponentsDataModelProvider;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-
-public class ExportModelTest extends TestCase {
- public void testSimpleExportModel() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("aEAR", null, null, null, JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject("aEAR");
- assertTrue(p.exists());
- runVerify(p);
- assertEquals(2, countRecurse(p));
- p.getFolder("garbage").create(true, true, null);
- runVerify(p);
- assertEquals(2, countRecurse(p));
- IFile f = p.getFile(new Path("garbage/file.txt"));
- f.create(new ByteArrayInputStream("hello".getBytes()), true, null);
- runVerify(p);
- assertEquals(2, countRecurse(p));
- IFile f2 = p.getFile(new Path("EarContent/file.txt"));
- f2.create(new ByteArrayInputStream("hello2".getBytes()), true, null);
- runVerify(p);
- assertEquals(3, countRecurse(p));
- addMapping(p, new Path("/garbage"), new Path("some/output"));
- assertEquals(6, countRecurse(p)); // (added some, some/output, and some/output/file.txt)
- p.delete(true, null);
- }
-
- public void testConsumesExportModel() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("bEAR", null, null, null, JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- IProject ear = ResourcesPlugin.getWorkspace().getRoot().getProject("bEAR");
- assertTrue(ear.exists());
- runVerify(ear);
- assertEquals(2, countRecurse(ear));
- IVirtualComponent earComponent = ComponentCore.createComponent(ear);
- IProject pojp = ResourcesPlugin.getWorkspace().getRoot().getProject("pojp");
- pojp.create(null);
- assertTrue(pojp.exists());
- pojp.open(null);
- IFile pojpTxt = pojp.getFile(new Path("pojp.txt"));
- pojpTxt.create(new ByteArrayInputStream("pojp".getBytes()), true, null);
- assertTrue(pojpTxt.exists());
- assertEquals(2, countRecurse(ear));
- TestExportVirtualComponent pojpComponent = new TestExportVirtualComponent(pojpTxt);
- addReference(earComponent, pojpComponent, "path/to", "");
- assertEquals(5, countRecurse(ear)); // META-INF, META-INF/application.xml, path, path/to, path/to/pojp.txt
- ear.delete(true, null);
- pojp.delete(true, null);
- }
-
- protected void addReference(IVirtualComponent parent, IVirtualComponent child,
- String path, String archiveName) throws CoreException {
- IDataModelProvider provider = new CreateReferenceComponentsDataModelProvider();
- IDataModel dm = DataModelFactory.createDataModel(provider);
-
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT, parent);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, Arrays.asList(child));
-
- //[Bug 238264] the uri map needs to be manually set correctly
- Map<IVirtualComponent, String> uriMap = new HashMap<IVirtualComponent, String>();
- uriMap.put(child, archiveName);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_TO_URI_MAP, uriMap);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH, path);
-
- IStatus stat = dm.validateProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST);
- if (!stat.isOK())
- throw new CoreException(stat);
- try {
- dm.getDefaultOperation().execute(new NullProgressMonitor(), null);
- } catch (ExecutionException e) {
- }
- }
-
- public void testSuffixFilterExportModel() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("aEAR", null, null, null, JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject("aEAR");
- assertTrue(p.exists());
- runVerify(p);
- assertEquals(2, countRecurse(p));
- IFile f = p.getFile(new Path("EarContent/file.txt"));
- f.create(new ByteArrayInputStream("hello".getBytes()), true, null);
- IFile f2 = p.getFile(new Path("EarContent/file.java"));
- f2.create(new ByteArrayInputStream("hello2".getBytes()), true, null);
- runVerify(p);
- assertEquals(4, countRecurse(p));
- assertEquals(4, countRecurse(p, FilterResourceParticipant.createSuffixFilterParticipant(new String[]{})));
- assertEquals(3, countRecurse(p, FilterResourceParticipant.createSuffixFilterParticipant(new String[]{".txt"})));
- assertEquals(3, countRecurse(p, FilterResourceParticipant.createSuffixFilterParticipant(new String[]{".java"})));
- assertEquals(2, countRecurse(p, FilterResourceParticipant.createSuffixFilterParticipant(new String[]{".java", ".txt"})));
- assertEquals(1, countRecurse(p, FilterResourceParticipant.createSuffixFilterParticipant(new String[]{".java", ".txt", ".xml"})));
- }
-
- protected static void runVerify(IProject p) throws Exception {
- IVirtualComponent component = ComponentCore.createComponent(p);
- assertTrue(component.exists());
- IFlatVirtualComponent model = new FlatVirtualComponent(component);
- IFlatResource[] resources = model.fetchResources();
- ComponentResource[] mappings = getMappings(p);
- verifyMappingsAndOutput(p, resources, mappings);
- }
-
- protected static int countRecurse(IProject p) throws Exception {
- IVirtualComponent component = ComponentCore.createComponent(p);
- assertTrue(component.exists());
- IFlatVirtualComponent model = new FlatVirtualComponent(component);
- IFlatResource[] resources = model.fetchResources();
- return countRecurse(resources);
- }
-
- protected static int countRecurse(IProject p, IFlattenParticipant participant) throws Exception {
- IVirtualComponent component = ComponentCore.createComponent(p);
- assertTrue(component.exists());
- FlatComponentTaskModel tm = new FlatComponentTaskModel();
- tm.put(IFlatVirtualComponent.PARTICIPANT_LIST, participant);
- IFlatVirtualComponent model = new FlatVirtualComponent(component, tm);
- IFlatResource[] resources = model.fetchResources();
- return countRecurse(resources);
- }
-
-
-
- protected static int countRecurse(IFlatResource[] resources) {
- int count = 0;
- for( int i = 0; i < resources.length; i++ ) {
- if( resources[i] != null ) {
- count++;
- if( resources[i] instanceof IFlatFolder)
- count += countRecurse(((IFlatFolder)resources[i]).members());
- }
- }
- return count;
- }
-
- protected static void verifyMappingsAndOutput(IProject p, IFlatResource[] resources, ComponentResource[] mappings) {
- for( int i = 0; i < resources.length; i++ ) {
- IPath deployPath = resources[i].getModuleRelativePath().append(resources[i].getName());
- IResource workspaceResource = (IResource)resources[i].getAdapter(IResource.class);
- IPath workspacePath = workspaceResource.getFullPath();
- assertNotNull(workspaceResource);
- boolean found = false;
- for( int j = 0; j < mappings.length && !found; j++ ) {
- IPath tmp = new Path(p.getName()).makeAbsolute().append(mappings[j].getSourcePath()).append(deployPath);
- found |= (tmp.equals(workspacePath));
- }
- assertTrue(found);
- if( resources[i] instanceof IFlatFolder)
- verifyMappingsAndOutput(p, ((IFlatFolder)resources[i]).members(), mappings);
- }
- }
-
- protected static ComponentResource[] getMappings(IProject project) {
- StructureEdit structureEdit = null;
- structureEdit = StructureEdit.getStructureEditForRead(project);
- WorkbenchComponent component = structureEdit.getComponent();
- EList list = component.getResources();
- List<ComponentResource> newList = new ArrayList<ComponentResource>();
- for(Iterator i = list.iterator(); i.hasNext();) {
- newList.add((ComponentResource)i.next());
- }
- return (ComponentResource[]) newList.toArray(new ComponentResource[newList
- .size()]);
- }
-
- protected static void addMapping(IProject project, IPath src, IPath runtime) throws CoreException {
- IVirtualComponent vc = ComponentCore.createComponent(project);
- IVirtualFolder vf = vc.getRootFolder();
- vf.getFolder(runtime).createLink(src, 0, null);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/TestExportReferenceResolver.java b/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/TestExportReferenceResolver.java
deleted file mode 100644
index 8b1de0e0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/TestExportReferenceResolver.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.exportmodel;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.internal.ComponentcorePackage;
-import org.eclipse.wst.common.componentcore.internal.DependencyType;
-import org.eclipse.wst.common.componentcore.internal.ReferencedComponent;
-import org.eclipse.wst.common.componentcore.internal.impl.PlatformURLModuleConnection;
-import org.eclipse.wst.common.componentcore.resolvers.IReferenceResolver;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-
-public class TestExportReferenceResolver implements IReferenceResolver {
- private static final String FIRST_SEGMENT = "org.eclipse.wtp.j2ee.exportTestResolver";
- public static final String PROTOCOL = PlatformURLModuleConnection.MODULE_PROTOCOL
- +IPath.SEPARATOR + FIRST_SEGMENT + IPath.SEPARATOR;
-
- public boolean canResolve(IVirtualReference reference) {
- if( reference.getReferencedComponent()
- instanceof TestExportVirtualComponent )
- return true;
- return false;
- }
-
- public ReferencedComponent resolve(IVirtualReference reference) {
- TestExportVirtualComponent vc = (TestExportVirtualComponent)reference.getReferencedComponent();
- ReferencedComponent rc = ComponentcorePackage.eINSTANCE.getComponentcoreFactory().createReferencedComponent();
- rc.setArchiveName(reference.getArchiveName());
- rc.setRuntimePath(reference.getRuntimePath());
- rc.setHandle(URI.createURI(PROTOCOL + vc.getFullPath().toString()));
- rc.setDependencyType(DependencyType.CONSUMES_LITERAL);
- return rc;
- }
-
- public boolean canResolve(IVirtualComponent context,
- ReferencedComponent referencedComponent) {
- URI uri = referencedComponent.getHandle();
- if( uri.segmentCount() >= 1 && FIRST_SEGMENT.equals(uri.segment(0)))
- return true;
- return false;
- }
-
- public IVirtualReference resolve(IVirtualComponent context,
- ReferencedComponent referencedComponent) {
- URI uri = referencedComponent.getHandle();
- if( uri.segmentCount() >= 1 && FIRST_SEGMENT.equals(uri.segment(0))) {
- String path = uri.toString().substring(PROTOCOL.length());
- IPath filePath = new Path(path);
- IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(filePath.segment(0));
- IFile f = proj.getFile(filePath.removeFirstSegments(1));
- IVirtualReference ref = ComponentCore.createReference(context,
- new TestExportVirtualComponent(f));
- ref.setArchiveName(referencedComponent.getArchiveName());
- ref.setRuntimePath(referencedComponent.getRuntimePath());
- ref.setDependencyType(referencedComponent.getDependencyType().getValue());
- return ref;
- }
- return null;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/TestExportVirtualComponent.java b/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/TestExportVirtualComponent.java
deleted file mode 100644
index c2775224..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/exportmodel-tests/org/eclipse/wtp/j2ee/headless/tests/exportmodel/TestExportVirtualComponent.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.exportmodel;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.common.componentcore.internal.resources.VirtualComponent;
-import org.eclipse.wst.common.componentcore.internal.resources.VirtualFile;
-import org.eclipse.wst.common.componentcore.internal.resources.VirtualFolder;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.componentcore.resources.IVirtualResource;
-
-public class TestExportVirtualComponent extends VirtualComponent {
- private IFile file;
- public TestExportVirtualComponent(IFile file) {
- super(file.getProject(), new Path(""));
- this.file = file;
- }
-
- public boolean exists() {
- return true;
- }
-
- public IPath getFullPath() {
- return file.getFullPath();
- }
- public IVirtualFolder getRootFolder() {
- return new TestExportVirtualFolder(file.getProject());
- }
-
- public class TestExportVirtualFolder extends VirtualFolder {
- public TestExportVirtualFolder(IProject aComponentProject) {
- super(aComponentProject, new Path("/"));
- }
-
- public IVirtualResource[] members(int memberFlags) throws CoreException {
- return new IVirtualResource[] {
- new VirtualFile(file.getProject(), new Path("inside"), file)
- };
- }
-
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/common/annotations/tests/AnnotationProviderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/common/annotations/tests/AnnotationProviderTest.java
deleted file mode 100644
index a05a041d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/common/annotations/tests/AnnotationProviderTest.java
+++ /dev/null
@@ -1,49 +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.jst.common.annotations.tests;
-
-import java.util.List;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-
-import org.eclipse.jst.common.internal.annotations.core.AnnotationsProviderManager;
-import org.eclipse.jst.common.internal.annotations.core.IAnnotationsProvider;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-public class AnnotationProviderTest extends TestCase {
-
- public AnnotationProviderTest() {
- super();
- }
-
- public AnnotationProviderTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(AnnotationProviderTest.class);
- }
-
- public void testAnnotationProviderFramework() throws Exception {
- List providers = AnnotationsProviderManager.INSTANCE.getAnnotationsProviders();
- boolean success = false;
- for (int i=0; i<providers.size(); i++) {
- IAnnotationsProvider provider = (IAnnotationsProvider) providers.get(i);
- provider.isAnnotated(null);
- provider.getPrimaryAnnotatedCompilationUnit(null);
- provider.getPrimaryTagset(null);
- success = true;
- }
- assertTrue(success);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/common/annotations/tests/TestAnnotationProvider.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/common/annotations/tests/TestAnnotationProvider.java
deleted file mode 100644
index d7cf5541..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/common/annotations/tests/TestAnnotationProvider.java
+++ /dev/null
@@ -1,35 +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.jst.common.annotations.tests;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jst.common.internal.annotations.core.IAnnotationsProvider;
-
-public class TestAnnotationProvider implements IAnnotationsProvider {
-
- public TestAnnotationProvider() {
- super();
- }
-
- public boolean isAnnotated(EObject eObject) {
- return false;
- }
-
- public ICompilationUnit getPrimaryAnnotatedCompilationUnit(EObject eObject) {
- return null;
- }
-
- public String getPrimaryTagset(EObject eObject) {
- return null;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/BarBindingsHelper.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/BarBindingsHelper.java
deleted file mode 100644
index 72a95310..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/BarBindingsHelper.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 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.jst.j2ee.bindingshelper.tests;
-
-public class BarBindingsHelper extends TestBindingsHelper {
-
- public static String getFileName(){
- return "bar.txt"; //$NON-NLS-1$
- }
-
- public String getBindingsFileName() {
- return getFileName();
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/BindingsHelperTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/BindingsHelperTest.java
deleted file mode 100644
index b8ab6306..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/BindingsHelperTest.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.bindingshelper.tests;
-
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.EJBJarFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.jst.j2ee.core.internal.bindings.IJNDIBindingsHelper;
-import org.eclipse.jst.j2ee.core.internal.bindings.JNDIBindingsHelperManager;
-import org.eclipse.jst.j2ee.datamodel.properties.IEARComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity;
-import org.eclipse.jst.j2ee.ejb.EJBJar;
-import org.eclipse.jst.j2ee.ejb.Session;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class BindingsHelperTest extends TestCase {
-
- public static String fileSep = System.getProperty("file.separator"); //$NON-NLS-1$
-
- public static String getFullTestDataPath(String dataPath) {
- try {
- String defectTestDataPath = "TestData" + fileSep + "BindingsHelperTests" + fileSep + dataPath; //$NON-NLS-1$ //$NON-NLS-2$
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- if (plugin != null) {
- return ProjectUtility.getFullFileName(plugin, defectTestDataPath);
- }
- return System.getProperty("user.dir") + java.io.File.separatorChar + defectTestDataPath; //$NON-NLS-1$
- } catch (Exception e) {
- e.printStackTrace();
- }
- return ""; //$NON-NLS-1$
- }
-
- private IProject earProject;
- private IVirtualComponent earComponent;
-
- protected void setUp() throws Exception {
- super.setUp();
- IDataModel model = importEar(getFullTestDataPath("BindingsTestEAR.ear")); //$NON-NLS-1$
- earProject = ProjectUtilities.getProject(model.getStringProperty(IEARComponentImportDataModelProperties.PROJECT_NAME));
- earComponent = ComponentCore.createComponent(earProject);
- }
-
- protected EARFile getEarFile() throws Exception {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- return (EARFile) edit.asArchive(true);
- } finally {
- if (null != edit) {
- edit.dispose();
- }
- }
- }
-
- public static IDataModel importEar(String earPath) throws Exception {
- IDataModel model = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
- model.setProperty(IEARComponentImportDataModelProperties.FILE_NAME, earPath);
- model.getDefaultOperation().execute(null, null);
- return model;
- }
-
- protected void tearDown() throws Exception {
- super.tearDown();
- IProject[] projects = ProjectUtilities.getAllProjects();
- for (int i = 0; i < projects.length; i++) {
- projects[i].delete(true, null);
- }
- }
-
- protected String getSourceFileName() {
- return "test.txt"; //$NON-NLS-1$
- }
-
- public void testHelpers() throws Exception {
- // First check the default helper; i.e. no helpers enabled
- IJNDIBindingsHelper[] helpers = checkHelper(null);
- checkBindings(getEarFile(), helpers[0], ""); //$NON-NLS-1$
-
- // Now check fooHelper (barHelper disabled)
- IFile srcFile = earComponent.getRootFolder().getFile(getSourceFileName()).getUnderlyingFile();
- IFile fooFile = earComponent.getRootFolder().getFile(FooBindingsHelper.getFileName()).getUnderlyingFile();
- srcFile.copy(new Path(fooFile.getFullPath().lastSegment()), true, null);
- assertTrue(fooFile.exists());
-
- helpers = checkHelper(FooBindingsHelper.class);
- checkBindings(getEarFile(), helpers[0], FooBindingsHelper.getFileName());
-
- // Now check barHelper (fooHelper disabled)
- fooFile.delete(true, null);
- assertFalse(fooFile.exists());
-
- IFile barFile = earComponent.getRootFolder().getFile(BarBindingsHelper.getFileName()).getUnderlyingFile();
- srcFile.copy(new Path(barFile.getFullPath().lastSegment()), true, null);
- assertTrue(barFile.exists());
-
- helpers = checkHelper(BarBindingsHelper.class);
- checkBindings(getEarFile(), helpers[0], BarBindingsHelper.getFileName());
-
- // Now check both fooHelper and barHelper (both enabled)
- srcFile.copy(new Path(fooFile.getFullPath().lastSegment()), true, null);
- assertTrue(fooFile.exists());
-
- helpers = JNDIBindingsHelperManager.getInstance().getBindingsHelpers(earProject);
- assertEquals(2, helpers.length);
- int fooIndex = (helpers[0].getClass() == FooBindingsHelper.class) ? 0 : 1;
- int barIndex = (fooIndex == 0) ? 1 : 0;
- assertTrue(helpers[fooIndex].getClass() == FooBindingsHelper.class);
- assertTrue(helpers[barIndex].getClass() == BarBindingsHelper.class);
- EARFile earFile = getEarFile();
- IJNDIBindingsHelper[] tempHelpers = JNDIBindingsHelperManager.getInstance().getBindingsHelpers(earFile);
- assertEquals(2, tempHelpers.length);
- assertTrue(helpers[0] == tempHelpers[0]);
- assertTrue(helpers[1] == tempHelpers[1]);
-
- checkBindings(getEarFile(), helpers[fooIndex], FooBindingsHelper.getFileName());
- checkBindings(getEarFile(), helpers[barIndex], BarBindingsHelper.getFileName());
- }
-
- private IJNDIBindingsHelper[] checkHelper(Class clazz) throws Exception {
- IJNDIBindingsHelper[] helpers = JNDIBindingsHelperManager.getInstance().getBindingsHelpers(earProject);
- assertEquals(1, helpers.length);
- if (null != clazz) {
- assertTrue(helpers[0].getClass() == clazz);
- } else {
- assertTrue(helpers[0].getClass() != FooBindingsHelper.class);
- assertTrue(helpers[0].getClass() != BarBindingsHelper.class);
- }
- EARFile earFile = getEarFile();
- IJNDIBindingsHelper[] tempHelpers = JNDIBindingsHelperManager.getInstance().getBindingsHelpers(earFile);
- assertEquals(1, tempHelpers.length);
- assertTrue(helpers[0] == tempHelpers[0]);
- return helpers;
- }
-
- private void checkBindings(EARFile earFile, IJNDIBindingsHelper helper, String prefix) {
- List ejbJarFiles = earFile.getEJBJarFiles();
- EJBJarFile ejbJarFile = (EJBJarFile) ejbJarFiles.get(0);
- EJBJar ejbJar = ejbJarFile.getDeploymentDescriptor();
-
- List cmps = ejbJar.getContainerManagedBeans();
- ContainerManagedEntity cmp = (ContainerManagedEntity) cmps.get(0);
- String jndiName = helper.getJNDIName(cmp);
- String suffix = prefix.length() > 0 ? TestBindingsHelper.EJB : prefix;
- assertEquals(prefix + cmp.getName() + suffix, jndiName);
-
- jndiName = helper.getJNDINameForDefaultDataSource(cmp);
- suffix = prefix.length() > 0 ? TestBindingsHelper.CMP : prefix;
- assertEquals(prefix + ejbJar.getDisplayName() + suffix, jndiName);
-
- List sessions = ejbJar.getSessionBeans();
-
- Session session = (Session) sessions.get(0);
- // TODO
- // List ejbRefs = session.getEjbRefs();
- // EjbRef ejbRef = (EjbRef) ejbRefs.get(0);
-
- List resRefs = session.getResourceRefs();
- ResourceRef resRef = (ResourceRef) resRefs.get(0);
- jndiName = helper.getJNDINameForRef(session, resRef);
- suffix = prefix.length() > 0 ? TestBindingsHelper.EJB_RES_REF : prefix;
- assertEquals(prefix + resRef.getName() + suffix, jndiName);
-
- List resEnvRefs = session.getResourceEnvRefs();
- ResourceEnvRef resEnvRef = (ResourceEnvRef) resEnvRefs.get(0);
- jndiName = helper.getJNDINameForRef(session, resEnvRef);
- suffix = prefix.length() > 0 ? TestBindingsHelper.EJB_RES_ENV_REF : prefix;
- assertEquals(prefix + resEnvRef.getName() + suffix, jndiName);
-
- List securityRoleRefs = session.getSecurityRoleRefs();
- SecurityRoleRef securityRoleRef = (SecurityRoleRef) securityRoleRefs.get(0);
- jndiName = helper.getJNDINameForRef(session, securityRoleRef);
- suffix = prefix.length() > 0 ? TestBindingsHelper.EJB_SEC_ROLE_REF : prefix;
- assertEquals(prefix + securityRoleRef.getName() + suffix, jndiName);
-
- List warFiles = earFile.getWARFiles();
- WARFile warFile = (WARFile) warFiles.get(0);
- WebApp webApp = warFile.getDeploymentDescriptor();
-
- resRefs = webApp.getResourceRefs();
- resRef = (ResourceRef) resRefs.get(0);
- jndiName = helper.getJNDINameForRef(webApp, resRef);
- suffix = prefix.length() > 0 ? TestBindingsHelper.WEB_RES_REF : prefix;
- assertEquals(prefix + resRef.getName() + suffix, jndiName);
-
- resEnvRefs = session.getResourceEnvRefs();
- resEnvRef = (ResourceEnvRef) resEnvRefs.get(0);
- jndiName = helper.getJNDINameForRef(webApp, resEnvRef);
- suffix = prefix.length() > 0 ? TestBindingsHelper.WEB_RES_ENV_REF : prefix;
- assertEquals(prefix + resEnvRef.getName() + suffix, jndiName);
-
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/FooBindingsHelper.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/FooBindingsHelper.java
deleted file mode 100644
index 445356c2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/FooBindingsHelper.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 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.jst.j2ee.bindingshelper.tests;
-
-public class FooBindingsHelper extends TestBindingsHelper {
-
- public static String getFileName(){
- return "foo.txt"; //$NON-NLS-1$
- }
-
- public String getBindingsFileName() {
- return getFileName();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/TestBindingsHelper.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/TestBindingsHelper.java
deleted file mode 100644
index 273f99d7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/bindingshelper/tests/TestBindingsHelper.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 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.jst.j2ee.bindingshelper.tests;
-
-import java.io.FileNotFoundException;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive;
-import org.eclipse.jst.j2ee.core.internal.bindings.AbstractJNDIBindingsHelper;
-import org.eclipse.jst.j2ee.ejb.ContainerManagedEntity;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-
-public abstract class TestBindingsHelper extends AbstractJNDIBindingsHelper {
-
- public abstract String getBindingsFileName();
-
- public boolean appliesFor(IProject project) {
- IVirtualComponent component = ComponentCore.createComponent(project);
- if (null == component) {
- return false;
- }
- IFile bindingsFile = component.getRootFolder().getFile(getBindingsFileName()).getUnderlyingFile();
- return bindingsFile.exists();
- }
-
- public boolean appliesFor(Archive archive) {
- try {
- archive.getFile(getBindingsFileName());
- return true;
- } catch (FileNotFoundException e) {
- return false;
- }
- }
-
- public static final String OBJ = "obj";//$NON-NLS-1$
- public static final String EJB = "ejb";//$NON-NLS-1$
- public static final String EJB_RES_REF = "ejbResRef";//$NON-NLS-1$
- public static final String EJB_RES_ENV_REF = "ejbResEnvRef";//$NON-NLS-1$
- public static final String EJB_SEC_ROLE_REF = "ejbSecRoleRef";//$NON-NLS-1$
- public static final String WEB_RES_REF = "webResRef";//$NON-NLS-1$
- public static final String WEB_RES_ENV_REF = "webResEnvRef";//$NON-NLS-1$
- public static final String CMP = "cmp";//$NON-NLS-1$
-
- public String getJNDIName(Object object) {
- return getBindingsFileName() + super.getJNDIName(object) + OBJ;
- }
-
- public String getJNDIName(EnterpriseBean bean) {
- return getBindingsFileName() + super.getJNDIName(bean) + EJB;
- }
-
- public String getJNDINameForRef(EnterpriseBean bean, ResourceRef resourceRef) {
- return getBindingsFileName() + super.getJNDINameForRef(bean, resourceRef) + EJB_RES_REF;
- }
-
- public String getJNDINameForRef(EnterpriseBean bean, ResourceEnvRef resourceEnvRef) {
- return getBindingsFileName() + super.getJNDINameForRef(bean, resourceEnvRef) + EJB_RES_ENV_REF;
- }
-
- public String getJNDINameForRef(EnterpriseBean bean, SecurityRoleRef securityRoleRef) {
- return getBindingsFileName() + super.getJNDINameForRef(bean, securityRoleRef) + EJB_SEC_ROLE_REF;
- }
-
- public String getJNDINameForRef(WebApp webApp, ResourceRef resourceRef) {
- return getBindingsFileName() + super.getJNDINameForRef(webApp, resourceRef) + WEB_RES_REF;
- }
-
- public String getJNDINameForRef(WebApp webApp, ResourceEnvRef resourceEnvRef) {
- return getBindingsFileName() + super.getJNDINameForRef(webApp, resourceEnvRef) + WEB_RES_ENV_REF;
- }
-
- public String getJNDINameForDefaultDataSource(ContainerManagedEntity bean) {
- return getBindingsFileName() + super.getJNDINameForDefaultDataSource(bean) + CMP;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/AbstractTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/AbstractTests.java
deleted file mode 100644
index d2f35b88..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/AbstractTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests;
-
-import org.eclipse.wst.common.tests.OperationTestCase;
-
-/**
- * Abstract base class for classpath dependency unit tests
- *
- * @author rfrost@bea.com
- */
-public abstract class AbstractTests extends OperationTestCase {
-
- protected AbstractTests(final String name) {
- super(name);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/AllTests.java
deleted file mode 100644
index 3fee11e6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/AllTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-public class AllTests extends TestCase {
- public static Test suite() {
- final TestSuite suite = new TestSuite();
-
- suite.setName("All Classpath Dependency Tests");
- suite.addTest(ClasspathDependencyCreationTests.suite());
- //suite.addTest(ClasspathDependencyValidationTests.suite());
- suite.addTest(ClasspathDependencyEARTests.suite());
- suite.addTest(ClasspathDependencyWebTests.suite());
-
- return suite;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyCreationTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyCreationTests.java
deleted file mode 100644
index d1c9d193..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyCreationTests.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.classpath.tests.util.ClasspathDependencyTestUtil;
-import org.eclipse.jst.j2ee.classpathdep.UpdateClasspathAttributeUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Tests creation of classpath component dependencies via addition of the
- * classpath entry attribute.
- */
-public class ClasspathDependencyCreationTests extends AbstractTests {
-
- private ClasspathDependencyCreationTests(final String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Classpath Component Dependency Creation Tests" );
- suite.addTest(new ClasspathDependencyCreationTests("testNoClasspathDependencies"));
- suite.addTest(new ClasspathDependencyCreationTests("testAddRemoveClasspathDependency"));
- suite.addTest(new ClasspathDependencyCreationTests("testLibraryClasspathDependency"));
- suite.addTest(new ClasspathDependencyCreationTests("testClassFolderDependency"));
- return suite;
- }
-
- public void testNoClasspathDependencies() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", "TestEAR");
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
- }
-
- public void testAddRemoveClasspathDependency() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", "TestEAR");
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
-
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- ClasspathDependencyTestUtil.addCustomClasspathContainer(javaProject);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(ClasspathDependencyTestUtil.CUSTOM_CLASSPATH_CONTAINER);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(comp, archiveNames);
-
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
- }
-
- public void testLibraryClasspathDependency() throws Exception {
- final IProject project = ProjectUtil.createWebProject("TestWeb", "TestEAR");
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
-
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- ClasspathDependencyTestUtil.addLibraryEntry(javaProject, ClasspathDependencyTestUtil.TEST3_JAR_PATH, true);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(ClasspathDependencyTestUtil.TEST3_JAR_PATH);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST3_JAR);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(comp, archiveNames);
- }
-
- public void testClassFolderDependency() throws Exception {
- final IProject project = ProjectUtil.createWebProject("TestWeb", "TestEAR");
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
- final IPath binPath = new Path("bin");
- final IPath fullBinPath = project.getFullPath().append(binPath);
- project.getFolder(binPath).create(true, true, null);
-
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- ClasspathDependencyTestUtil.addLibraryEntry(javaProject, fullBinPath, true);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(fullBinPath);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- final Set archiveNames = new HashSet();
- archiveNames.add(fullBinPath.toString());
- ClasspathDependencyTestUtil.verifyClasspathDependencies(comp, archiveNames);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyEARTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyEARTests.java
deleted file mode 100644
index adb15edd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyEARTests.java
+++ /dev/null
@@ -1,647 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests;
-
-import java.io.FileInputStream;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.classpath.tests.util.ClasspathDependencyTestUtil;
-import org.eclipse.jst.j2ee.classpathdep.UpdateClasspathAttributeUtil;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.EARFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.File;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyEnablement;
-import org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.model.IModuleFile;
-import org.eclipse.wst.server.core.model.IModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-import org.eclipse.wst.server.core.util.ProjectModule;
-
-/**
- * Tests export and publish behavior for classpath component dependencies on the module projects associated with an EAR.
- */
-public class ClasspathDependencyEARTests extends AbstractTests {
-
- private static final String UTIL_PROJECT = "TestUtil";
- private static final String WEB_PROJECT = "TestWeb";
- private static final String EAR_PROJECT = "TestEAR";
-
- private ClasspathDependencyEARTests(final String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Classpath Dependency EAR Tests" );
- suite.addTest(new ClasspathDependencyEARTests("testEARExportJ2EE"));
- //suite.addTest(new ClasspathDependencyEARTests("testEARExportJEE5"));
- suite.addTest(new ClasspathDependencyEARTests("testEARPublishJ2EE"));
- suite.addTest(new ClasspathDependencyEARTests("testEARPublishJEE5"));
- suite.addTest(new ClasspathDependencyEARTests("testEARLibPublishJEE5"));
- return suite;
- }
-
- public void testEARExportJ2EE() throws Exception {
- testEARExport(false);
- }
-
- public void testEARExportJEE5() throws Exception {
- testEARExport(true);
- }
-
- // XXX TODO need to modify test logic to work with new JEE5 model provider logic rather than just EARArtifactEdit
- private void testEARExport(boolean JEE5) throws Exception {
- // create the EAR and module projects
- createProjects(JEE5);
- final IProject earProject = ProjectUtil.getProject(EAR_PROJECT);
- final IVirtualComponent earComp = ComponentCore.createComponent(earProject);
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
-
- // verify that the exported EAR does not contain the cp container Jars from the utility,
- // that the utility MANIFEST classpath does not include entries for the cp container jars and
- // that the contents of the util and web "bin" class folders are not included in the exported archives.
- verifyExportedEAR(earComp, archiveNames, false);
-
- // add the attribute to the cp container and "bin" class folder in the utility project and to the "bin" class
- // folder in the web project
- addDependencyAttribute(true);
-
- // verify that the exported EAR does contain the cp container Jars from the utility,
- // that the utility MANIFEST classpath includes entries for the cp container
- // jars, that the utility includes the contents of the "bin" class folder and that the web's WEB-INF/classes
- // includes the contents of the web's "bin" class folder.
- verifyExportedEAR(earComp, archiveNames, true);
- }
-
- private void verifyExportedEAR(final IVirtualComponent comp, final Set archiveNames, final boolean shouldHaveDependencies) throws Exception {
- EnterpriseArtifactEdit earEdit = null;
- EARFile earFile = null;
- try {
- earEdit = EARArtifactEdit.getEARArtifactEditForRead(comp);
- if (earEdit != null) {
- earFile = (EARFile) earEdit.asArchive(true);
- List archives = earFile.getArchiveFiles();
- Iterator it = archiveNames.iterator();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean hasArchive = false;
- for (int i = 0; i < archives.size(); i++) {
- File archive = (File) archives.get(i);
- if (archive.isArchive()) {
- if (archive.getName().equals(name)) {
- hasArchive= true;
- }
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Exported EAR missing classpath dependency Jar " + name, hasArchive);
- } else {
- assertFalse("Exported EAR has unexpected classpath dependency Jar " + name, hasArchive);
- }
- }
- for (int i = 0; i < archives.size(); i++) {
- File archive = (File) archives.get(i);
- if (archive.isArchive() && archive.getName().equals(UTIL_PROJECT + ".jar")) {
- ArchiveImpl archiveImpl = (ArchiveImpl) archive;
- String[] cp = archiveImpl.getManifest().getClassPathTokenized();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean isOnCP = false;
- for (int j = 0; j < cp.length; j++) {
- if (cp[j].equals(name)) {
- isOnCP = true;
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Exported utility project MANIFEST.MF classpath in exported EAR is entry for dependency Jar " + name, isOnCP);
- } else {
- assertFalse("Exported utility project MANIFEST.MF classpath in exported EAR has unexpected entry for dependency Jar " + name, isOnCP);
- }
- }
- archiveImpl.getFiles();
- boolean hasTestFile = archiveImpl.containsFile("test");
- if (shouldHaveDependencies) {
- assertTrue("Exported utility project missing file from published/exported class folder", hasTestFile);
- } else {
- assertFalse("Exported utility project has unexpected entry for file from non-published/exported class folder", hasTestFile);
- }
-
- } else if (archive.isArchive() && archive.getName().equals(WEB_PROJECT + ".war")) {
- ArchiveImpl archiveImpl = (ArchiveImpl) archive;
- archiveImpl.getFiles();
- boolean hasTestFile = archiveImpl.containsFile("WEB-INF/classes/test");
- if (shouldHaveDependencies) {
- assertTrue("Exported web project missing file from published/exported class folder", hasTestFile);
- } else {
- assertFalse("Exported web project has unexpected entry for file from non-published/exported class folder", hasTestFile);
- }
- }
- }
- }
- } finally {
- if (earEdit !=null)
- earEdit.dispose();
- if(earFile != null){
- earFile.close();
- }
- }
- }
-
- public void testEARPublishJ2EE() throws Exception {
- testEARPublish(false);
- }
-
- public void testEARPublishJEE5() throws Exception {
- testEARPublish(true);
- }
-
- public void testEARLibPublishJEE5() throws Exception {
- testEARLibPublishJEE5(true);
- }
-
- private void testEARPublish(boolean JEE5) throws Exception {
-
- // create the EAR and module projects
- createProjects(JEE5);
- final IProject earProject = ProjectUtil.getProject(EAR_PROJECT);
- final IVirtualComponent earComp = ComponentCore.createComponent(earProject);
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
-
- // verify that the published EAR does not contain the cp container Jars from the utility,
- // that the utility MANIFEST classpath does not include entries for the cp container jars and
- // that the contents of the util and web "bin" class folders are not included in the exported archives.
- verifyPublishedEAR(earComp, archiveNames, false, JEE5);
-
- // add the attribute to the cp container in the utility project
- addDependencyAttribute(false);
-
- // verify that the published EAR does contain the cp container Jars from the utility,
- // that the utility MANIFEST classpath includes entries for the cp container
- // jars, that the utility includes the contents of the "bin" class folder and that the web's WEB-INF/classes
- // includes the contents of the web's "bin" class folder.
- verifyPublishedEAR(earComp, archiveNames, true, JEE5);
- }
-
- private void testEARLibPublishJEE5(boolean JEE5) throws Exception {
- IVirtualComponent webComp = createWebProject(JEE5);
-
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- final IProject earProject = ProjectUtil.getProject(EAR_PROJECT);
- final IVirtualComponent earComp = ComponentCore.createComponent(earProject);
-
- verifyPublishedEARLibRef(earComp, archiveNames, false, JEE5);
-
- addEARLibDependencyAttribute(false);
-
- verifyPublishedEARLibRef(earComp, archiveNames, true, JEE5);
- }
-
- private void verifyPublishedEAR(final IVirtualComponent comp, final Set archiveNames, final boolean shouldHaveDependencies, boolean isEE5) throws Exception {
-
- // verify that the published EAR contains the cp container jars from the Utility
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(comp.getProject(), comp);
- try {
- IModuleResource[] rootmembers = deployable.members();
- IModuleResource[] members = null;
- if (isEE5) {
- for (int i=0; i<rootmembers.length; i++) {
- String name = rootmembers[i].getName();
- if (name.equals("lib")) {
- members = ((IModuleFolder)rootmembers[i]).members();
- }
- }
- }
-
- if (members == null)
- members = rootmembers;
-
- Iterator it = archiveNames.iterator();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean hasArchive = false;
- for (int i=0; i<members.length; i++) {
- if (members[i].getName().equals(name)) {
- hasArchive = true;
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Published EAR missing classpath dependency Jar " + name, hasArchive);
- } else {
- assertFalse("Published EAR has unexpected classpath dependency Jar " + name, hasArchive);
- }
- }
-
- // get the web and util child modules
-
- IModule utilModule = null;
- IModule webModule = null;
- IModule[] childModules = deployable.getChildModules();
- for (int i=0; i < childModules.length; i++) {
- if (childModules[i].getName().equals(UTIL_PROJECT)) {
- utilModule = childModules[i];
- } else if (childModules[i].getName().equals(WEB_PROJECT)) {
- webModule = childModules[i];
- }
- }
-
- // verify that the util module has MANIFEST.MF classpath references to the cp container jars and has the
- // class folder file
-
- assertNotNull("Missing entry for utility project", utilModule);
-
- J2EEFlexProjDeployable projectModule =(J2EEFlexProjDeployable) utilModule.loadAdapter(ProjectModule.class, null);
- IModuleResource[] moduleMembers = projectModule.members();
- ArchiveManifest manifest = null;
- boolean foundMetaInf = false;
- boolean foundTest = false;
- for (int i=0; i< moduleMembers.length; i++) {
- String name = moduleMembers[i].getName();
- if (name.equals("META-INF")) {
- foundMetaInf = true;
- IModuleResource manifestResource= ((IModuleFolder)moduleMembers[i]).members()[0];
- assertTrue(manifestResource.getModuleRelativePath().toString().equals("META-INF"));
- assertTrue("Expected MANIFEST.MF, got " + manifestResource.getName(), manifestResource.getName().equals("MANIFEST.MF"));
- java.io.File manifestFile = (java.io.File) manifestResource.getAdapter(java.io.File.class);
- if (manifestFile == null) {
- manifestFile = ((IFile) manifestResource.getAdapter(IFile.class)).getLocation().toFile();
- }
- assertNotNull(manifestFile);
- FileInputStream fis = null;
- try {
- fis = new FileInputStream(manifestFile);
- manifest = new ArchiveManifestImpl(fis);
- } finally {
- if (fis != null) {
- fis.close();
- }
- }
- } else if (name.equals("test")) {
- if (moduleMembers[i] instanceof IModuleFile) {
- foundTest = true;
- }
- }
- }
- if (!foundMetaInf) {
- assertTrue("members() failed to return META-INF for utility project module in published EAR", foundMetaInf);
- }
-
- if (shouldHaveDependencies) {
- assertTrue("Published utility project missing file from published/exported class folder", foundTest);
- } else {
- assertFalse("Published utility project has unexpected entry for file from non-published/exported class folder", foundTest);
- }
-
- assertNotNull("Failed to retrieve MANIFEST.MF from utility project module in published EAR", manifest);
-
- it = archiveNames.iterator();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean isOnCP = false;
- String[] cp = manifest.getClassPathTokenized();
- for (int j = 0; j < cp.length; j++) {
- if (cp[j].equals(name)) {
- isOnCP = true;
- }
- }
- if (shouldHaveDependencies && ClasspathDependencyEnablement.isAllowClasspathComponentDependency()) {
- assertTrue("Utility project MANIFEST.MF classpath in published EAR missing entry for dependency Jar " + name, isOnCP);
- } else {
- assertFalse("Utility project MANIFEST.MF classpath in published EAR has unexpected entry for dependency Jar " + name, isOnCP);
- }
- }
-
- assertNotNull("Missing entry for web project", webModule);
-
- projectModule =(J2EEFlexProjDeployable) webModule.loadAdapter(ProjectModule.class, null);
- moduleMembers = projectModule.members();
- foundTest = false;
- for (int i=0; i< moduleMembers.length; i++) {
- if (moduleMembers[i].getName().equals("WEB-INF")) {
- IModuleResource[] webinfMembers = ((IModuleFolder)moduleMembers[i]).members();
- for (int j = 0; j < webinfMembers.length; j++) {
- if (webinfMembers[j].getName().equals("classes")) {
- IModuleResource[] classesMembers = ((IModuleFolder)webinfMembers[j]).members();
- if (classesMembers.length > 0) {
- IModuleResource test = classesMembers[0];
- if (test.getName().equals("test") && test.getModuleRelativePath().equals(new Path("WEB-INF/classes")) && test instanceof IModuleFile) {
- foundTest = true;
- }
- }
- }
- }
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Exported web project does not contain class folder file in WEB-INF/classes", foundTest);
- } else {
- assertFalse("Exported Web project should not class folder file in WEB-INF/classes", foundTest);
- }
- } catch (CoreException e) {
- e.printStackTrace();
- fail(e.getMessage());
- }
- }
-
-private void verifyPublishedEARLibRef(final IVirtualComponent comp, final Set archiveNames, final boolean shouldHaveDependencies, boolean isEE5) throws Exception {
-
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(comp.getProject(), comp);
- try {
- IModuleResource[] rootmembers = deployable.members();
- IModuleResource[] members = null;
- if (isEE5) {
- for (int i=0; i<rootmembers.length; i++) {
- String name = rootmembers[i].getName();
- if (name.equals("lib")) {
- members = ((IModuleFolder)rootmembers[i]).members();
- }
- }
- }
-
- if (members == null)
- members = rootmembers;
-
- Iterator it = archiveNames.iterator();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean hasArchive = false;
- for (int i=0; i<members.length; i++) {
- if (members[i].getName().equals(name)) {
- hasArchive = true;
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Published EAR missing classpath dependency Jar " + name, hasArchive);
- } else {
- assertFalse("Published EAR has unexpected classpath dependency Jar " + name, hasArchive);
- }
- }
-
- IModule webModule = null;
- IModule[] childModules = deployable.getChildModules();
- for (int i=0; i < childModules.length; i++) {
- if (childModules[i].getName().equals(WEB_PROJECT)) {
- webModule = childModules[i];
- }
- }
-
- assertNotNull("Missing entry for web project", webModule);
-
- J2EEFlexProjDeployable projectModule =(J2EEFlexProjDeployable) webModule.loadAdapter(ProjectModule.class, null);
- IModuleResource[] moduleMembers = projectModule.members();
- ArchiveManifest manifest = null;
- boolean foundMetaInf = false;
- for (int i=0; i< moduleMembers.length; i++) {
- String name = moduleMembers[i].getName();
- if (name.equals("META-INF")) {
- foundMetaInf = true;
- IModuleResource manifestResource= ((IModuleFolder)moduleMembers[i]).members()[0];
- assertTrue(manifestResource.getModuleRelativePath().toString().equals("META-INF"));
- assertTrue("Expected MANIFEST.MF, got " + manifestResource.getName(), manifestResource.getName().equals("MANIFEST.MF"));
- java.io.File manifestFile = (java.io.File) manifestResource.getAdapter(java.io.File.class);
- if (manifestFile == null) {
- manifestFile = ((IFile) manifestResource.getAdapter(IFile.class)).getLocation().toFile();
- }
- assertNotNull(manifestFile);
- FileInputStream fis = null;
- try {
- fis = new FileInputStream(manifestFile);
- manifest = new ArchiveManifestImpl(fis);
- } finally {
- if (fis != null) {
- fis.close();
- }
- }
- }
- }
- if (!foundMetaInf) {
- assertTrue("members() failed to return META-INF for web project module in published EAR", foundMetaInf);
- }
-
- assertNotNull("Failed to retrieve MANIFEST.MF from web project module in published EAR", manifest);
-
- it = archiveNames.iterator();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean isOnCP = false;
- String[] cp = manifest.getClassPathTokenized();
- for (int j = 0; j < cp.length; j++) {
- if (cp[j].equals("lib/" + name)) {
- isOnCP = true;
- }
- }
- if (shouldHaveDependencies && ClasspathDependencyEnablement.isAllowClasspathComponentDependency()) {
- assertTrue("Utility project MANIFEST.MF classpath in published EAR missing entry for dependency Jar " + name, isOnCP);
- } else {
- assertFalse("Utility project MANIFEST.MF classpath in published EAR has unexpected entry for dependency Jar " + name, isOnCP);
- }
- }
-
- } catch (CoreException e) {
- e.printStackTrace();
- fail(e.getMessage());
- }
- }
-
- private IVirtualComponent createProjects(boolean JEE5) throws Exception {
-
- // create a Web project
- int version = J2EEVersionConstants.SERVLET_2_5;
- if (!JEE5) {
- version = J2EEVersionConstants.SERVLET_2_4;
- }
- final IProject webProject = ProjectUtil.createWebProject(WEB_PROJECT, EAR_PROJECT, version, true);
- final IJavaProject webJavaProject = JavaCore.create(webProject);
- final IVirtualComponent webComp = ComponentCore.createComponent(webProject);
- // create a new "bin" folder
- final IPath binPath = new Path("bin");
- IFolder webBin = webProject.getFolder(binPath);
- webBin.create(true, true, null);
- // add a file
- webBin.getFile("test").create(new java.io.StringBufferInputStream("blah"), true, null);
- // add as a library cp entry
- ClasspathDependencyTestUtil.addLibraryEntry(webJavaProject, webBin.getFullPath(), true);
-
- // create a Utility project
- final IProject util = ProjectUtil.createUtilityProject(UTIL_PROJECT, EAR_PROJECT, true);
- IFolder output = util.getFolder("build").getFolder("classes");
- final IJavaProject utilJava = JavaCore.create(util);
- // create a folder "bin"
- IFolder utilBin = util.getFolder(binPath);
- utilBin.create(true, true, null);
- // add a file
- utilBin.getFile("test").create(new java.io.StringBufferInputStream("blah"), true, null);
- final IVirtualComponent utilComp = ComponentCore.createComponent(util);
- // add as a library cp entry
- ClasspathDependencyTestUtil.addLibraryEntry(utilJava, utilBin.getFullPath(), true);
-
- // add a dependency from the Web to the Utility
- DependencyCreationUtil.createModuleDependency(webProject, util);
-
- // add a cp dependency to the Utility
- ClasspathDependencyTestUtil.addCustomClasspathContainer(utilJava);
-
- return webComp;
- }
-
- private IVirtualComponent createWebProject(boolean JEE5) throws Exception {
- // create a Web project
- int version = J2EEVersionConstants.SERVLET_2_5;
- if (!JEE5) {
- version = J2EEVersionConstants.SERVLET_2_4;
- }
- final IProject webProject = ProjectUtil.createWebProject(WEB_PROJECT, EAR_PROJECT, version, true);
- final IJavaProject webJavaProject = JavaCore.create(webProject);
- final IVirtualComponent webComp = ComponentCore.createComponent(webProject);
-
- // add a cp dependency to the Utility
- ClasspathDependencyTestUtil.addCustomClasspathContainer(webJavaProject);
-
- return webComp;
- }
-
-
- /**
- *
- * @param verifyClasspathDependencies - true if you want to immediately verify that
- * the classpath dependencies were added. Set to false if you want to verify this at
- * a later time (such as thru a members call in export or publish).
- * @throws Exception
- */
- private void addDependencyAttribute(boolean verifyClasspathDependencies) throws Exception {
- final IProject util = ProjectUtil.getProject(UTIL_PROJECT);
- final IPath fullUtilBinPath = util.getFullPath().append("bin");
- final IJavaProject utilJava = JavaCore.create(util);
- final IVirtualComponent utilComp = ComponentCore.createComponent(util);
- final IProject web = ProjectUtil.getProject(WEB_PROJECT);
- final IJavaProject webJava = JavaCore.create(web);
- final IPath fullWebBinPath = web.getFullPath().append("bin");
- final IVirtualComponent webComp = ComponentCore.createComponent(web);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(ClasspathDependencyTestUtil.CUSTOM_CLASSPATH_CONTAINER);
- entryPaths.add(fullUtilBinPath);
- // verify that "bin" and the custom cp container are potential entries
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(utilJava, entryPaths);
- // verify that no entries have the classpath attribute
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(utilJava);
- // verify that there are no classpath dependencies
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(utilComp);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
-
- // add the dependency attribute to "bin" and the cp container
- for (Object o: entries) {
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, util.getName(), (IClasspathEntry) o);
- }
- // should no longer have potential entries
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(utilJava);
- // verify that "bin" and the cp container have the attribute
- ClasspathDependencyTestUtil.verifyClasspathAttributes(utilJava, entryPaths);
- // verify that "bin" and the cp container are dependencies
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- archiveNames.add(fullUtilBinPath.toString());
- if (verifyClasspathDependencies)
- ClasspathDependencyTestUtil.verifyClasspathDependencies(utilComp, archiveNames);
-
- entryPaths.clear();
- entryPaths.add(fullWebBinPath);
- // verify that "bin" in the web project is a potential entry
- entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(webJava, entryPaths);
- // verify that no entries have the classpath attribute
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(webJava);
- // verify that there are no classpath dependencies
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(webComp);
-
- // add the dependency attribute to "bin"
- entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, web.getName(), entry);
- // should no longer have potential entries
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(webJava);
- // verify that "bin" has the attribute
- ClasspathDependencyTestUtil.verifyClasspathAttributes(webJava, entryPaths);
- // verify that "bin" is a dependency
- archiveNames.clear();
- archiveNames.add(fullWebBinPath.toString());
- if (verifyClasspathDependencies)
- ClasspathDependencyTestUtil.verifyClasspathDependencies(webComp, archiveNames);
- }
-
- /**
- *
- * @param verifyClasspathDependencies - true if you want to immediately verify that
- * the classpath dependencies were added. Set to false if you want to verify this at
- * a later time (such as thru a members call in export or publish)
- * @throws Exception
- */
- private void addEARLibDependencyAttribute(boolean verifyClasspathDependencies) throws Exception {
-
- final IProject web = ProjectUtil.getProject(WEB_PROJECT);
- final IJavaProject webJava = JavaCore.create(web);
- final IVirtualComponent webComp = ComponentCore.createComponent(web);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(ClasspathDependencyTestUtil.CUSTOM_CLASSPATH_CONTAINER);
- // verify that "bin" and the custom cp container are potential entries
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(webJava, entryPaths);
- // verify that no entries have the classpath attribute
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(webJava);
- // verify that there are no classpath dependencies
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(webComp);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
-
- // add the dependency attribute to "bin" and the cp container
- for (Object o: entries) {
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, web.getName(), (IClasspathEntry) o, new Path("../lib"));
- }
- // should no longer have potential entries
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(webJava);
- // verify that "bin" and the cp container have the attribute
- ClasspathDependencyTestUtil.verifyClasspathAttributes(webJava, entryPaths);
- // verify that "bin" and the cp container are dependencies
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- if (verifyClasspathDependencies)
- ClasspathDependencyTestUtil.verifyClasspathDependencies(webComp, archiveNames);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java
deleted file mode 100644
index 4160b2af..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyValidationTests.java
+++ /dev/null
@@ -1,360 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests;
-
-import java.util.Collections;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.launching.JavaRuntime;
-import org.eclipse.jst.j2ee.classpath.tests.util.ClasspathDependencyTestUtil;
-import org.eclipse.jst.j2ee.classpathdep.UpdateClasspathAttributeUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualResource;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Tests validation rules for classpath component dependencies.
- */
-public class ClasspathDependencyValidationTests extends AbstractTests {
-
- private ClasspathDependencyValidationTests(final String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Classpath Component Dependency Validation Tests" );
- suite.addTest(new ClasspathDependencyValidationTests("testSourceEntryRule"));
- suite.addTest(new ClasspathDependencyValidationTests("testProjectEntryRule"));
- suite.addTest(new ClasspathDependencyValidationTests("testDuplicateClassFolderRule"));
- suite.addTest(new ClasspathDependencyValidationTests("testNonWebNonExportedRule"));
- //suite.addTest(new ClasspathDependencyValidationTests("testDuplicateArchiveNamesRule"));
- suite.addTest(new ClasspathDependencyValidationTests("testRootMappingNonEARWARRefRule"));
- suite.addTest(new ClasspathDependencyValidationTests("testInvalidContainerRules"));
- suite.addTest(new ClasspathDependencyValidationTests("testNonTaggedExportedClassesRule"));
-
- return suite;
- }
- //SourceEntry=Invalid classpath component dependency {0}. Source entries not supported.
- public void testSourceEntryRule() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", "TestEAR", true);
- ClasspathDependencyTestUtil.verifyNoValidationError(project);
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry[] entries = javaProject.getRawClasspath();
- IClasspathEntry src = null;
- for (int i = 0; i < entries.length; i++) {
- if (entries[i].getEntryKind() == IClasspathEntry.CPE_SOURCE) {
- src = entries[i];
- break;
- }
- }
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), src);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyClasspathDependencyError(project);
-
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), src);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencyError(project);
- }
-
- //ProjectClasspathEntry=Invalid classpath component dependency {0}. Project entries not supported.
- public void testProjectEntryRule() throws Exception {
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", "TestEAR");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", "TestEAR", true);
- final IJavaProject webJavaProject = JavaCore.create(webProject);
- final IVirtualComponent webComp = ComponentCore.createComponent(webProject);
-
- final IClasspathEntry entry = JavaCore.newProjectEntry(utilProject.getFullPath());
- ClasspathDependencyTestUtil.addEntryToCP(webJavaProject, entry);
-
- DependencyUtil.waitForValidationJobs(webProject);
- ClasspathDependencyTestUtil.verifyNoValidationError(webProject);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(webJavaProject);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(webJavaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(webComp);
-
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, webProject.getName(), entry);
-
- DependencyUtil.waitForValidationJobs(webProject);
- ClasspathDependencyTestUtil.verifyClasspathDependencyError(webProject);
-
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, webProject.getName(), entry);
-
- DependencyUtil.waitForValidationJobs(webProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencyError(webProject);
- }
-
- //DuplicateClassFolderEntry
- public void testDuplicateClassFolderRule() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", "TestEAR", true);
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
- final IPath classFolderPath = project.getFullPath().append(ClasspathDependencyTestUtil.TEST3_BIN_PATH);
-
- // create a library classpath entry
- ClasspathDependencyTestUtil.addLibraryEntry(javaProject, classFolderPath, true);
-
- // link via the component file
- comp.getRootFolder().createLink(ClasspathDependencyTestUtil.TEST3_BIN_PATH, IVirtualResource.FORCE, null);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoValidationError(project);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry[] entries = javaProject.getRawClasspath();
- IClasspathEntry lib = null;
- for (int i = 0; i < entries.length; i++) {
- if (entries[i].getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
- lib = entries[i];
- break;
- }
- }
-
- // Mark that cp entry for publish/export
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), lib);
-
- final Set entryPaths = Collections.singleton(classFolderPath);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyClasspathDependencyError(project);
-
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), lib);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencyError(project);
- }
-
- //NonWebNonExported=Invalid classpath component dependency {0}. Classpath component dependencies for non-web projects must be exported.
- public void testNonWebNonExportedRule() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", "TestEAR", true);
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
-
- ClasspathDependencyTestUtil.addLibraryEntry(javaProject, ClasspathDependencyTestUtil.TEST3_JAR_PATH, false);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoValidationError(project);
- final Set entryPaths = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR_PATH);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- final Set archiveNames = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(comp, archiveNames);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyClasspathDependencyMarker(project);
- }
-
- //DuplicateArchiveName=Invalid classpath component dependency {0}. The project contains another classpath component dependency the same archive name.
- public void testDuplicateArchiveNamesRule() throws Exception {
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", "TestEAR");
- final IJavaProject webJavaProject = JavaCore.create(webProject);
- final IProject util1 = ProjectUtil.createUtilityProject("TestUtil1", "TestEAR");
- DependencyCreationUtil.createWebLibDependency(webProject, util1);
- final IJavaProject utilJava1 = JavaCore.create(util1);
- final IVirtualComponent utilComp1 = ComponentCore.createComponent(util1);
- final IProject util2 = ProjectUtil.createUtilityProject("TestUtil2", "TestEAR");
- DependencyCreationUtil.createWebLibDependency(webProject, util2);
- final IVirtualComponent utilComp2 = ComponentCore.createComponent(util2);
- final IJavaProject utilJava2 = JavaCore.create(util2);
- final IProject util3 = ProjectUtil.createUtilityProject("TestUtil3", "TestEAR", true);
- DependencyCreationUtil.createWebLibDependency(webProject, util3);
- final IVirtualComponent utilComp3 = ComponentCore.createComponent(util3);
- final IJavaProject utilJava3 = JavaCore.create(util3);
- ClasspathDependencyTestUtil.addLibraryEntry(utilJava1, ClasspathDependencyTestUtil.TEST3_JAR_PATH, true);
- ClasspathDependencyTestUtil.addLibraryEntry(utilJava2, ClasspathDependencyTestUtil.TEST3_JAR_PATH, true);
- ClasspathDependencyTestUtil.addLibraryEntry(utilJava3, ClasspathDependencyTestUtil.TEST3_JAR_OTHER_LOCATION_PATH, true);
- final Set entryPaths = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR_PATH);
- final Set otherEntryPaths = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR_OTHER_LOCATION_PATH);
- final Set archiveNames = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR);
-
-
- // add the dependency attribute to util1 and util2 (these point to the same jar so won't
- // generate a validation error)
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(utilJava1, entryPaths);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, util1.getName(), entry);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(utilComp1, archiveNames);
- entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(utilJava2, entryPaths);
- entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, util2.getName(), entry);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(utilComp2, archiveNames);
-
- // no validation error on the EAR or Web
- DependencyUtil.waitForValidationJobs(webProject);
- IProject earProject = ProjectUtil.getProject("TestEAR");
- ClasspathDependencyTestUtil.verifyNoValidationError(earProject);
- ClasspathDependencyTestUtil.verifyNoValidationError(webProject);
-
- // add the dependency attribute to util3
- entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(utilJava3, otherEntryPaths);
- entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, util3.getName(), entry);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(utilComp3, archiveNames);
-
- // will have a validation error on the EAR and on the Web
- DependencyUtil.waitForValidationJobs(webProject);
- DependencyUtil.waitForValidationJobs(earProject);
- ClasspathDependencyTestUtil.verifyValidationError(webProject);
- ClasspathDependencyTestUtil.verifyValidationError(earProject);
-
- // remove dependency attribute from util3
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, util3.getName(), entry);
-
- // will have no validation errors on the EAR and on the Web
- DependencyUtil.waitForValidationJobs(webProject);
- DependencyUtil.waitForValidationJobs(earProject);
- ClasspathDependencyTestUtil.verifyNoValidationError(webProject);
- ClasspathDependencyTestUtil.verifyNoValidationError(earProject);
- }
-
- //RootMappingNonEARWARRef=Non-web projects must be referenced by an EAR or a WAR to use classpath component dependencies.
- public void testRootMappingNonEARWARRefRule() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", null, true);
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
-
- ClasspathDependencyTestUtil.addLibraryEntry(javaProject, ClasspathDependencyTestUtil.TEST3_JAR_PATH, true);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoValidationError(project);
- final Set entryPaths = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR_PATH);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyClasspathDependencyMarker(project);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- final Set archiveNames = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(comp, archiveNames);
-
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- }
-
- //EarLibrariesContainer=Invalid classpath component dependency {0}. The EAR Libraries classpath container cannot be exposed.
- //WebAppLibrariesContainer=Invalid classpath component dependency {0}. The Web App Libraries classpath container cannot be exposed.
- //RuntimeClasspathContainer=Invalid classpath component dependency {0}. Server Runtime classpath containers cannot be exposed.
- //JREContainer=Invalid classpath component dependency {0}. JRE classpath containers cannot be exposed.
- public void testInvalidContainerRules() throws Exception {
- final IProject project = ProjectUtil.createWebProject("TestWeb", "TestEAR", true);
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoValidationError(project);
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
-
- IClasspathEntry earLibContainer = null;
- IClasspathEntry webAppLibContainer = null;
- IClasspathEntry jreContainer = null;
- IClasspathEntry[] rawCP = javaProject.getRawClasspath();
- for (int i = 0; i < rawCP.length; i++) {
- if (rawCP[i].getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
- final IPath path = rawCP[i].getPath();
- if (path.equals(J2EEComponentClasspathContainer.CONTAINER_PATH)) {
- earLibContainer = rawCP[i];
- } else if (path.segment(0).equals("org.eclipse.jst.j2ee.internal.web.container")) {
- webAppLibContainer = rawCP[i];
- } else if (path.segment(0).equals(JavaRuntime.JRE_CONTAINER)) {
- jreContainer = rawCP[i];
- }
- }
- }
-
- // XXX Encountering sporadic JUnit problems trying to wait for and verify results of validator
- // the ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject) will need to be
- // sufficient for now: the results of that call are computed by calling the validator
-
- // try adding the Ear Libraries container
- //testInvalidContainer(javaProject, earLibContainer);
-
- // try adding the Web App Libraries container
- //testInvalidContainer(javaProject, webAppLibContainer);
-
- // try adding the JRE container
- //testInvalidContainer(javaProject, jreContainer);
- }
-
- private void testInvalidContainer(final IJavaProject javaProject, final IClasspathEntry entry) throws Exception {
- IProject project = javaProject.getProject();
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, Collections.singleton(entry.getPath()));
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyClasspathDependencyError(project);
- UpdateClasspathAttributeUtil.removeDependencyAttribute(null, project.getName(), entry);
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencyError(project);
- }
-
- //NonTaggedExportedClasses=Classpath entry {0} will not be exported or published. Runtime ClassNotFoundExceptions may result.
- public void testNonTaggedExportedClassesRule() throws Exception {
- final IProject project = ProjectUtil.createUtilityProject("TestUtil", "TestEAR", true);
- final IJavaProject javaProject = JavaCore.create(project);
- final IVirtualComponent comp = ComponentCore.createComponent(project);
-
- ClasspathDependencyTestUtil.addLibraryEntry(javaProject, ClasspathDependencyTestUtil.TEST3_JAR_PATH, true);
-
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyClasspathDependencyMarker(project);
- final Set entryPaths = Collections.singleton(ClasspathDependencyTestUtil.TEST3_JAR_PATH);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(javaProject, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(javaProject);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(comp);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, project.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(javaProject);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(javaProject, entryPaths);
- DependencyUtil.waitForValidationJobs(project);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencyMarker(project);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyWebTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyWebTests.java
deleted file mode 100644
index 5688ec6f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/ClasspathDependencyWebTests.java
+++ /dev/null
@@ -1,435 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.classpath.tests.util.ClasspathDependencyTestUtil;
-import org.eclipse.jst.j2ee.classpathdep.UpdateClasspathAttributeUtil;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.File;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.WARFile;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.impl.FileImpl;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.server.core.model.IModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-
-/**
- * Tests export and publish behavior for classpath component dependencies and web projects.
- */
-public class ClasspathDependencyWebTests extends AbstractTests {
-
- private static final String UTIL_PROJECT = "TestUtil";
- private static final String WEB_PROJECT = "TestWeb";
-
- private ClasspathDependencyWebTests(final String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Classpath Dependency Web Tests" );
- suite.addTest(new ClasspathDependencyWebTests("testWebExportJ2EE"));
- //suite.addTest(new ClasspathDependencyWebTests("testWebExportJEE5"));
- suite.addTest(new ClasspathDependencyWebTests("testWebPublishJ2EE"));
- suite.addTest(new ClasspathDependencyWebTests("testWebPublishJEE5"));
- suite.addTest(new ClasspathDependencyWebTests("testWebContainerPublishJEE5"));
- return suite;
- }
-
- public void testWebExportJ2EE() throws Exception {
- testWebExport(false);
- }
-
- public void testWebExportJEE5() throws Exception {
- testWebExport(true);
- }
-
- private void testWebExport(boolean JEE5) throws Exception {
-
- // create the Web and utility projects
- IVirtualComponent webComp = createProjects(JEE5);
-
- // verify that the exported WAR WEB-INF/lib does not contain the cp container jars from the Utility
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- verifyExportedWebInfLibs(webComp, archiveNames, false);
-
- // add the cp dependency attribute to the cp container in the util
- addDependencyAttribute(false);
-
- // verify that the exported WAR WEB-INF/lib does contain the cp container jars from the Utility
- verifyExportedWebInfLibs(webComp, archiveNames, true);
- }
-
- // TODO need to modify to work with both JEE5 model provider and J2EE ArtifactEdit logic
- private void verifyExportedWebInfLibs(final IVirtualComponent comp, final Set archiveNames, final boolean shouldHaveDependencies) throws Exception {
- WebArtifactEdit webEdit = null;
- WARFile warFile = null;
- try {
- webEdit = WebArtifactEdit.getWebArtifactEditForRead(comp);
- if (webEdit != null) {
- warFile = (WARFile) webEdit.asArchive(true);
- List libArchives = warFile.getLibArchives();
- Iterator it = archiveNames.iterator();
- while (it.hasNext()) {
- String name = (String) it.next();
- boolean hasArchive = false;
- for (int i = 0; i < libArchives.size(); i++) {
- File archive = (File) libArchives.get(i);
- if (archive.isArchive()) {
- if (archive.getName().equals(name)) {
- hasArchive= true;
- }
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Exported WAR missing classpath dependency Jar " + name, hasArchive);
- } else {
- assertFalse("Exported WAR has unexpected classpath dependency Jar " + name, hasArchive);
- }
- }
- List webInfClasses = warFile.getClasses();
- it = webInfClasses.iterator();
- boolean hasNestedTest = false;
- while (it.hasNext()) {
- Object o = it.next();
- if (o instanceof FileImpl && ((FileImpl)o).getURI().toString().equals("WEB-INF/classes/nested/test")) {
- hasNestedTest = true;
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Exported WAR missing nested class folder file", hasNestedTest);
- } else {
- assertFalse("Exported WAR has unexpected nested class folder file", hasNestedTest);
- }
- }
- } finally {
- if (webEdit !=null)
- webEdit.dispose();
- if(warFile != null){
- warFile.close();
- }
- }
- }
-
- public void testWebPublishJ2EE() throws Exception {
- testWebPublish(false);
- }
-
- public void testWebPublishJEE5() throws Exception {
- testWebPublish(true);
- }
-
- public void testWebContainerPublishJEE5() throws Exception {
- testWebContainerPublish(true);
- }
-
- private void testWebPublish(boolean JEE5) throws Exception {
-
- // create the web and utility projects
- IVirtualComponent webComp = createProjects(JEE5);
-
- // verify that the exported WAR WEB-INF/lib does not contain the cp container jars from the Utility
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- verifyPublishedWebInfLibs(webComp, archiveNames, false);
-
- // add the cp dependency attribute to the cp container in the util
- addDependencyAttribute(true);
-
- // verify that the exported WAR WEB-INF/lib does contain the cp container jars from the Utility
- verifyPublishedWebInfLibs(webComp, archiveNames, true);
- }
-
- private void testWebContainerPublish(boolean JEE5) throws Exception {
- IVirtualComponent webComp = createWebProject(JEE5);
-
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
-
- verifyPublishedWebInfContainer(webComp, archiveNames, false);
-
- addWebInfContainerDependencyAttribute(false);
-
- verifyPublishedWebInfContainer(webComp, archiveNames, true);
- }
-
- private void verifyPublishedWebInfLibs(final IVirtualComponent comp, final Set archiveNames, final boolean shouldHaveDependencies) throws Exception {
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(comp.getProject(), comp);
-
- try {
- IModuleResource[] members = deployable.members();
- assertTrue(members.length==2);
-
- for (int i=0; i<members.length; i++) {
- String name = members[i].getName();
- if (name.equals("WEB-INF")) {
- IModuleResource[] webInf = ((IModuleFolder)members[i]).members();
- for (int j=0; j<webInf.length; j++) {
- IModuleResource webResource = webInf[j];
- assertTrue(webResource.getModuleRelativePath().toString().equals("WEB-INF"));
- if (webResource.getName().equals("lib")) {
- IModuleResource[] webresMembers = ((IModuleFolder)webResource).members();
- Iterator it = archiveNames.iterator();
- while (it.hasNext()) {
- String archiveName = (String) it.next();
- boolean hasArchive = false;
- for (int k = 0; k < webresMembers.length; k++) {
- String localName = webresMembers[k].getName();
- if (localName.equals(archiveName)) {
- hasArchive= true;
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Published WAR missing classpath dependency Jar " + archiveName, hasArchive);
- } else {
- assertFalse("Published WAR has unexpected classpath dependency Jar " + archiveName, hasArchive);
- }
- }
- } else if (webResource.getName().equals("classes")) {
- IModuleResource[] webresMembers = ((IModuleFolder)webResource).members();
- for (j = 0; j < webresMembers.length; j++) {
- if (webresMembers[j].getName().equals("nested")) {
- IModuleResource[] nestedMembers = ((IModuleFolder)webresMembers[j]).members();
- assertTrue("Published WAR should have have nested folder without class folder dependency", shouldHaveDependencies);
- boolean hasNestedTest = false;
- if (nestedMembers.length == 1 && nestedMembers[0].getName().equals("test")) {
- hasNestedTest = true;
- }
- if (shouldHaveDependencies) {
- assertTrue("Published WAR missing nested class folder file", hasNestedTest);
- } else {
- assertFalse("Published WAR has unexpected nested class folder file", hasNestedTest);
- }
- }
- }
- }
- }
- }
- }
-
- } catch (CoreException e) {
- e.printStackTrace();
- fail(e.getMessage());
- }
- }
-
- private void verifyPublishedWebInfContainer(final IVirtualComponent comp, final Set archiveNames, final boolean shouldHaveDependencies) throws Exception {
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(comp.getProject(), comp);
-
- try {
- IModuleResource[] members = deployable.members();
- assertTrue(members.length==2);
-
- for (int i=0; i<members.length; i++) {
- String name = members[i].getName();
- if (name.equals("WEB-INF")) {
- IModuleResource[] webInf = ((IModuleFolder)members[i]).members();
- for (int j=0; j<webInf.length; j++) {
- IModuleResource webResource = webInf[j];
- assertTrue(webResource.getModuleRelativePath().toString().equals("WEB-INF"));
- if (webResource.getName().equals("lib")) {
- IModuleResource[] webresMembers = ((IModuleFolder)webResource).members();
- Iterator it = archiveNames.iterator();
- while (it.hasNext()) {
- String archiveName = (String) it.next();
- boolean hasArchive = false;
- for (int k = 0; k < webresMembers.length; k++) {
- String localName = webresMembers[k].getName();
- if (localName.equals(archiveName)) {
- hasArchive= true;
- }
- }
- if (shouldHaveDependencies) {
- assertTrue("Published WAR missing classpath dependency Jar " + archiveName, hasArchive);
- } else {
- assertFalse("Published WAR has unexpected classpath dependency Jar " + archiveName, hasArchive);
- }
- }
- }
- }
- }
- }
-
- } catch (CoreException e) {
- e.printStackTrace();
- fail(e.getMessage());
- }
- }
-
- private IVirtualComponent createProjects(boolean JEE5) throws Exception {
- // create a Utility project
- final IProject util = ProjectUtil.createUtilityProject(UTIL_PROJECT, null, true);
- final IJavaProject utilJava = JavaCore.create(util);
- final IVirtualComponent utilComp = ComponentCore.createComponent(util);
-
- // create a Web project
- // create a Web project
- int version = J2EEVersionConstants.SERVLET_2_5;
- if (!JEE5) {
- version = J2EEVersionConstants.SERVLET_2_4;
- }
- final IProject webProject = ProjectUtil.createWebProject(WEB_PROJECT, null, version, true);
- final IJavaProject webJavaProject = JavaCore.create(webProject);
- final IVirtualComponent webComp = ComponentCore.createComponent(webProject);
- // create a new "bin" folder
- final IPath binPath = new Path("bin");
- final IFolder webBin = webProject.getFolder(binPath);
- webBin.create(true, true, null);
- // create a nested folder
- final IFolder nested = webBin.getFolder("nested");
- nested.create(true, true, null);
- // add a file
- nested.getFile("test").create(new java.io.StringBufferInputStream("blah"), true, null);
- // add as a library cp entry
- ClasspathDependencyTestUtil.addLibraryEntry(webJavaProject, webBin.getFullPath(), true);
-
- // add a dependency from the Web to the Utility
- DependencyCreationUtil.createWebLibDependency(webProject, util);
-
- // add a cp dependency to the Utility
- ClasspathDependencyTestUtil.addCustomClasspathContainer(utilJava);
-
- return webComp;
- }
-
- private IVirtualComponent createWebProject(boolean JEE5) throws Exception {
- // create a Web project
- int version = J2EEVersionConstants.SERVLET_2_5;
- if (!JEE5) {
- version = J2EEVersionConstants.SERVLET_2_4;
- }
- final IProject webProject = ProjectUtil.createWebProject(WEB_PROJECT, null, version, true);
- final IJavaProject webJavaProject = JavaCore.create(webProject);
- final IVirtualComponent webComp = ComponentCore.createComponent(webProject);
-
- // add a cp dependency to the Utility
- ClasspathDependencyTestUtil.addCustomClasspathContainer(webJavaProject);
-
- return webComp;
- }
-
- /**
- *
- * @param verifyClasspathDependencies - true if you want to immediately verify that
- * the classpath dependencies were added. Set to false if you want to verify this at
- * a later time (such as thru a members call in export or publish)
- * @throws Exception
- */
- private void addDependencyAttribute(boolean verifyClasspathDependencies) throws Exception {
- final IProject util = ProjectUtil.getProject(UTIL_PROJECT);
- final IJavaProject utilJava = JavaCore.create(util);
- final IVirtualComponent utilComp = ComponentCore.createComponent(util);
- final IProject web = ProjectUtil.getProject(WEB_PROJECT);
- final IJavaProject webJava = JavaCore.create(web);
- final IPath fullWebBinPath = web.getFullPath().append("bin");
- final IVirtualComponent webComp = ComponentCore.createComponent(web);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(ClasspathDependencyTestUtil.CUSTOM_CLASSPATH_CONTAINER);
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(utilJava, entryPaths);
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(utilJava);
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(utilComp);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, util.getName(), entry);
-
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(utilJava);
- ClasspathDependencyTestUtil.verifyClasspathAttributes(utilJava, entryPaths);
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- ClasspathDependencyTestUtil.verifyClasspathDependencies(utilComp, archiveNames);
-
- entryPaths.clear();
- entryPaths.add(fullWebBinPath);
- // verify that "bin" in the web project is a potential entry
- entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(webJava, entryPaths);
- // verify that no entries have the classpath attribute
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(webJava);
- // verify that there are no classpath dependencies
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(webComp);
-
- // add the dependency attribute to "bin"
- entry = (IClasspathEntry) entries.get(0);
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, web.getName(), entry);
- // should no longer have potential entries
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(webJava);
- // verify that "bin" has the attribute
- ClasspathDependencyTestUtil.verifyClasspathAttributes(webJava, entryPaths);
- // verify that "bin" is a dependency
- archiveNames.clear();
- archiveNames.add(fullWebBinPath.toString());
- ClasspathDependencyTestUtil.verifyClasspathDependencies(webComp, archiveNames);
- }
-
- /**
- *
- * @param verifyClasspathDependencies - true if you want to immediately verify that
- * the classpath dependencies were added. Set to false if you want to verify this at
- * a later time (such as thru a members call in export or publish)
- * @throws Exception
- */
- private void addWebInfContainerDependencyAttribute(boolean verifyClasspathDependencies) throws Exception {
-
- final IProject web = ProjectUtil.getProject(WEB_PROJECT);
- final IJavaProject webJava = JavaCore.create(web);
- final IVirtualComponent webComp = ComponentCore.createComponent(web);
-
- final Set entryPaths = new HashSet();
- entryPaths.add(ClasspathDependencyTestUtil.CUSTOM_CLASSPATH_CONTAINER);
- // verify that "bin" and the custom cp container are potential entries
- List entries = ClasspathDependencyTestUtil.verifyPotentialClasspathEntries(webJava, entryPaths);
- // verify that no entries have the classpath attribute
- ClasspathDependencyTestUtil.verifyNoClasspathAttributes(webJava);
- // verify that there are no classpath dependencies
- ClasspathDependencyTestUtil.verifyNoClasspathDependencies(webComp);
- IClasspathEntry entry = (IClasspathEntry) entries.get(0);
-
- // add the dependency attribute to "bin" and the cp container
- for (Object o: entries) {
- UpdateClasspathAttributeUtil.addDependencyAttribute(null, web.getName(), (IClasspathEntry) o);
- }
- // should no longer have potential entries
- ClasspathDependencyTestUtil.verifyNoPotentialClasspathEntries(webJava);
- // verify that "bin" and the cp container have the attribute
- ClasspathDependencyTestUtil.verifyClasspathAttributes(webJava, entryPaths);
- // verify that "bin" and the cp container are dependencies
- final Set archiveNames = new HashSet();
- archiveNames.add(ClasspathDependencyTestUtil.TEST1_JAR);
- archiveNames.add(ClasspathDependencyTestUtil.TEST2_JAR);
- if (verifyClasspathDependencies)
- ClasspathDependencyTestUtil.verifyClasspathDependencies(webComp, archiveNames);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/util/ClasspathDependencyTestUtil.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/util/ClasspathDependencyTestUtil.java
deleted file mode 100644
index a588fff9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/classpath/tests/util/ClasspathDependencyTestUtil.java
+++ /dev/null
@@ -1,219 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.classpath.tests.util;
-
-import java.net.URL;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jdt.core.IClasspathContainer;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil;
-import org.eclipse.jst.j2ee.classpathdep.IClasspathDependencyConstants.DependencyAttributeType;
-import org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyUtil;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-/**
- * Various utility methods.
- */
-public class ClasspathDependencyTestUtil extends DependencyUtil {
-
- public static final IPath CUSTOM_CLASSPATH_CONTAINER = new Path("TEST_CP_CONTAINER");
-
- public static final String TEST_DATA = "TestData" + IPath.SEPARATOR + "ClasspathDependencyTests";
- public static final String TEST1_JAR = "Test1.jar";
- public static final String TEST2_JAR = "Test2.jar";
- public static final String TEST3_JAR = "Test3.jar";
- public static final String TEST3_JAR_OTHER_LOCATION = "other/Test3.jar";
- public static final String TEST3_BIN= "Test3_bin";
-
- public static final IPath TEST1_JAR_PATH = getFullTestDataPath(TEST1_JAR);
- public static final IPath TEST2_JAR_PATH = getFullTestDataPath(TEST2_JAR);
- public static final IPath TEST3_JAR_PATH = getFullTestDataPath(TEST3_JAR);
- public static final IPath TEST3_JAR_OTHER_LOCATION_PATH = getFullTestDataPath(TEST3_JAR_OTHER_LOCATION);
- public static final IPath TEST3_BIN_PATH = new Path(TEST3_BIN);
-
- public static final String CLASSPATH_DEPENDENCY_MARKER_TYPE = "org.eclipse.jst.j2ee.ClasspathDependencyValidatorMarker";
- public static final String VALIDATION_MARKER_TYPE = "org.eclipse.wst.validation.problemmarker";
-
- public static IPath getFullTestDataPath(String dataPath) {
- try {
- final String testDataPath = TEST_DATA + IPath.SEPARATOR + dataPath;
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- if (plugin != null) {
- URL url = plugin.getBundle().getEntry(testDataPath);
- if (url != null) {
- url = Platform.asLocalURL(url);
- return new Path(url.getPath());
- }
- }
- return new Path(System.getProperty("user.dir") + IPath.SEPARATOR + testDataPath);
- } catch (Exception e) {
- e.printStackTrace();
- }
- return new Path("");
- }
-
-
- /**
- * Adds a library entry that references a jar file and is optionally exported.
- */
- public static IClasspathEntry addLibraryEntry(final IJavaProject javaProject, final IPath path, final boolean isExported) throws CoreException {
- final IClasspathEntry entry = JavaCore.newLibraryEntry(path, null, null, isExported);
- addEntryToCP(javaProject, entry);
- return entry;
- }
-
- public static void addEntryToCP(final IJavaProject javaProject, final IClasspathEntry entry) throws CoreException {
- final IClasspathEntry[] rawCP = javaProject.getRawClasspath();
- final IClasspathEntry[] newCP = new IClasspathEntry[rawCP.length + 1];
- System.arraycopy(rawCP, 0, newCP, 0, rawCP.length);
- newCP[rawCP.length] = entry;
- javaProject.setRawClasspath(newCP, true, null);
- }
- /**
- * Adds a custom classpath container with the specified name that references two jar files.
- */
- public static IClasspathEntry addCustomClasspathContainer(final IJavaProject javaProject) throws CoreException {
- final IClasspathEntry entry = JavaCore.newContainerEntry(CUSTOM_CLASSPATH_CONTAINER, true);
- addEntryToCP(javaProject, entry);
- JavaCore.setClasspathContainer(
- CUSTOM_CLASSPATH_CONTAINER,
- new IJavaProject[]{ javaProject },
- new IClasspathContainer[] {
- new IClasspathContainer() {
- public IClasspathEntry[] getClasspathEntries() {
- return new IClasspathEntry[]{
- JavaCore.newLibraryEntry(TEST1_JAR_PATH, null, null, false),
- JavaCore.newLibraryEntry(TEST2_JAR_PATH, null, null, false),
- };
- }
- public String getDescription() { return "Test classpath container"; }
- public int getKind() { return IClasspathContainer.K_APPLICATION;}
- public IPath getPath() { return CUSTOM_CLASSPATH_CONTAINER; }
- }
- },
- null);
- return entry;
- }
-
- public static void verifyNoClasspathAttributes(final IJavaProject javaProject) throws Exception {
- verifyClasspathAttributes(javaProject, new HashSet());
- }
-
- public static Map verifyClasspathAttributes(final IJavaProject javaProject, final Set rawEntryPaths) throws Exception {
- final Map entriesToAttrib = ClasspathDependencyUtil.getRawComponentClasspathDependencies(javaProject, DependencyAttributeType.CLASSPATH_COMPONENT_DEPENDENCY);
- Assert.assertTrue("Project " + javaProject + " should have " + rawEntryPaths.size() + " raw classpath dependencies, only has: " +
- entriesToAttrib.size(), entriesToAttrib.size()== rawEntryPaths.size());
- final Iterator i = entriesToAttrib.keySet().iterator();
- while (i.hasNext()) {
- final IClasspathEntry entry = (IClasspathEntry) i.next();
- Assert.assertTrue("Project " + javaProject + " missing expected classpath dependency " + entry.getPath(), rawEntryPaths.contains(entry.getPath()));
- }
- return entriesToAttrib;
- }
-
- public static void verifyNoClasspathDependencies(final IVirtualComponent component) throws Exception {
- verifyClasspathDependencies(component, new HashSet());
- }
-
- public static IVirtualReference[] verifyClasspathDependencies(final IVirtualComponent component, final Set archiveNames) throws Exception {
- Assert.assertTrue("Component " + component.getName() + " not a J2EEModuleVirtualComponent", component instanceof J2EEModuleVirtualComponent);
- J2EEModuleVirtualComponent j2eeComp = (J2EEModuleVirtualComponent) component;
- IVirtualReference[] refs = j2eeComp.getJavaClasspathReferences();
- Assert.assertTrue("Component " + component.getName()+ " should have " + archiveNames.size() + " component classpath dependencies, only has: " +
- refs.length, refs.length == archiveNames.size());
- for (int i = 0; i < refs.length; i++) {
- Assert.assertTrue("Component " + component.getName()+ " has unexpected component classpath dependency " + refs[i].getArchiveName(), archiveNames.contains(refs[i].getArchiveName()));
- }
- return refs;
- }
-
- public static void verifyNoPotentialClasspathEntries(final IJavaProject javaProject) throws Exception {
- verifyPotentialClasspathEntries(javaProject, new HashSet());
- }
-
- public static List verifyPotentialClasspathEntries(final IJavaProject javaProject, final Set potentialEntryPaths) throws Exception {
- List entries = ClasspathDependencyUtil.getPotentialComponentClasspathDependencies(javaProject);
- Assert.assertTrue("Project " + javaProject + " should have " + potentialEntryPaths.size() + " potential classpath dependencies, only has: " +
- entries.size(), entries.size() == potentialEntryPaths.size());
- for (int i = 0; i < entries.size(); i++) {
- IClasspathEntry entry = (IClasspathEntry) entries.get(i);
- Assert.assertTrue("Project " + javaProject + " missing expected potential classpath entry " + entry.getPath(), potentialEntryPaths.contains(entry.getPath()));
- }
- return entries;
- }
-
- public static void verifyValidationError(final IProject project) throws CoreException {
- verifyError(project, VALIDATION_MARKER_TYPE, true);
- }
-
- public static void verifyNoValidationError(final IProject project) throws CoreException {
- verifyError(project, VALIDATION_MARKER_TYPE, false);
- }
-
- public static void verifyClasspathDependencyError(final IProject project) throws CoreException {
- verifyError(project, CLASSPATH_DEPENDENCY_MARKER_TYPE, true);
- }
-
- public static void verifyNoClasspathDependencyError(final IProject project) throws CoreException {
- verifyError(project, CLASSPATH_DEPENDENCY_MARKER_TYPE, false);
- }
-
- private static void verifyError(final IProject project, final String markerType, final boolean shouldHaveErrorMarker) throws CoreException {
- final IMarker[] markers = project.findMarkers(markerType, true, IProject.DEPTH_ZERO);
- boolean hasError = false;
- for (int i = 0; i < markers.length; i++) {
- if (markers[i].getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_INFO) == IMarker.SEVERITY_ERROR) {
- hasError = true;
- break;
- }
- }
- if (shouldHaveErrorMarker) {
- Assert.assertTrue("Project " + project + " missing expected validation error problem marker", hasError);
- } else {
- Assert.assertFalse("Project " + project + " has unexpected validation error problem marker", hasError);
- }
- }
-
- public static void verifyClasspathDependencyMarker(final IProject project) throws CoreException {
- verifyMarker(project, CLASSPATH_DEPENDENCY_MARKER_TYPE, true);
- }
-
- public static void verifyNoClasspathDependencyMarker(final IProject project) throws CoreException {
- verifyMarker(project, CLASSPATH_DEPENDENCY_MARKER_TYPE, false);
- }
-
- private static void verifyMarker(final IProject project, final String markerType, final boolean shouldHaveMarker) throws CoreException {
- final IMarker[] markers = project.findMarkers(markerType, true, IProject.DEPTH_ZERO);
- if (shouldHaveMarker) {
- Assert.assertTrue("Project " + project + " missing expected " + markerType + " problem marker", markers.length > 0);
- } else {
- Assert.assertFalse("Project " + project + " has unexpected " + markerType + " problem marker", markers.length > 0);
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/AbstractTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/AbstractTests.java
deleted file mode 100644
index 7b62b824..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/AbstractTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import org.eclipse.wst.common.tests.OperationTestCase;
-
-/**
- * Abstract base class for unit tests
- *
- * @author rfrost@bea.com
- */
-public abstract class AbstractTests extends OperationTestCase {
-
- protected AbstractTests(final String name) {
- super(name);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/AllTests.java
deleted file mode 100644
index 466f32b7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/AllTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-public class AllTests extends TestCase {
- public static Test suite() {
- final TestSuite suite = new TestSuite();
-
- suite.setName("All J2EE Dependency/Refactoring Tests");
-
- suite.addTest(ProjectCreationTests.suite());
- suite.addTest(ProjectDependencyTests.suite());
- suite.addTest(ProjectEARRefactoringTests.suite());
- //[Bug 234409] Temporarily removing these tests until underlying issue is fixed
-// suite.addTest(ProjectModuleRefactoringTests.suite());
-// suite.addTest(ProjectWebLibRefactoringTests.suite());
- suite.addTest(ProjectClasspathRefactoringTests.suite());
- suite.addTest(ProjectServerRefactoringTests.suite());
- suite.addTest(EarLibDirContainerTests.suite());
-
- return suite;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/EarLibDirContainerTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/EarLibDirContainerTests.java
deleted file mode 100644
index 3cc9efaa..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/EarLibDirContainerTests.java
+++ /dev/null
@@ -1,114 +0,0 @@
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import java.util.ArrayList;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-
-public class EarLibDirContainerTests extends AbstractTests {
-
- private static final String EAR_PROJECT_NAME = "TestEAR";
- private static final String LIB_PROJECT_NAME = "TestLib";
- private static final String UTIL_PROJECT_NAME = "TestUtil";
-
- public EarLibDirContainerTests(String name) {
- super(name);
- }
-
- public static Test suite() {
- final TestSuite suite = new TestSuite();
- suite.setName("EAR Container Library Directory Tests");
- suite.addTest(new EarLibDirContainerTests("testEarLibDirDependency"));
- return suite;
- }
-
- public void testEarLibDirDependency() throws Exception {
- ResourcesPlugin.getWorkspace().getRoot().getProjects();
- IProject earProject = ProjectUtil.createEARProject(EAR_PROJECT_NAME, J2EEVersionConstants.JEE_5_0_ID, false);
- IProject utilProject = ProjectUtil.createUtilityProject(UTIL_PROJECT_NAME, null);
- DependencyCreationUtil.createEARDependency(earProject, utilProject, false);
- IProject libProject = ProjectUtil.createUtilityProject(LIB_PROJECT_NAME, null);
- DependencyCreationUtil.createEARDependency(earProject, libProject, true);
- updateEARLibrariesContainer(utilProject);
- waitForCondition(cpContains(utilProject, new Path(IPath.SEPARATOR + LIB_PROJECT_NAME)));
- }
-
- private static void updateEARLibrariesContainer(IProject project) {
- ArrayList projectList = new ArrayList();
- projectList.add(project);
- J2EEComponentClasspathUpdater.getInstance().forceUpdate(projectList);
- }
-
- private static ICondition cpContains(final IProject project, final IPath entry) {
- return new ClasspathContainsCondition( project, entry );
- }
-
- private static void waitForCondition( final ICondition condition ) throws Exception {
- waitForCondition( condition, 10 );
- }
-
- private static void waitForCondition( final ICondition condition, final int seconds ) throws Exception {
- for( int i = 0; i < seconds && ! condition.check(); i++ ) {
- try {
- Thread.sleep( 1000 );
- }
- catch( InterruptedException e ) {}
- }
-
- assertCondition( condition );
- }
-
- private static void assertCondition( final ICondition condition ) throws Exception {
- assertTrue( condition.check() );
- }
-
- private static interface ICondition {
- boolean check() throws Exception;
- }
-
- private static abstract class AbstractClasspathCondition implements ICondition {
- private final IProject project;
- private final IPath entry;
-
- public AbstractClasspathCondition( final IProject project, final IPath entry ) {
- this.project = project;
- this.entry = entry;
- }
-
- protected boolean internalCheck() throws Exception {
- final IJavaProject jproj = JavaCore.create( this.project );
- final IClasspathEntry[] cp = jproj.getResolvedClasspath( true );
-
- for( int i = 0; i < cp.length; i++ ) {
- if( cp[ i ].getPath().equals( this.entry ) ) {
- return true;
- }
- }
-
- return false;
- }
- }
-
- private static final class ClasspathContainsCondition extends AbstractClasspathCondition {
- public ClasspathContainsCondition( final IProject project, final IPath entry ) {
- super( project, entry );
- }
-
- public boolean check() throws Exception {
- return internalCheck();
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectClasspathRefactoringTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectClasspathRefactoringTests.java
deleted file mode 100644
index 62f17e9a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectClasspathRefactoringTests.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
-
-/**
- * Tests refactoring logic that updates component mappings when source IClasspathEntries are
- * added to/removed from the Java build path.
- */
-public class ProjectClasspathRefactoringTests extends AbstractTests {
-
- public ProjectClasspathRefactoringTests(String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project Classpath Refactoring Tests" );
- suite.addTest(new ProjectClasspathRefactoringTests("testSourcePathAdditionWeb"));
- suite.addTest(new ProjectClasspathRefactoringTests("testSourcePathRemovalWeb"));
- //suite.addTest(new ProjectClasspathRefactoringTests("testSourcePathRenameWeb"));
- suite.addTest(new ProjectClasspathRefactoringTests("testSourcePathAdditionUtil"));
- suite.addTest(new ProjectClasspathRefactoringTests("testSourcePathRemovalUtil"));
- //suite.addTest(new ProjectClasspathRefactoringTests("testSourcePathRenameUtil"));
- suite.addTest(new ProjectClasspathRefactoringTests("testWebContentRename"));
- suite.addTest(new ProjectClasspathRefactoringTests("testEarContentRename"));
- return suite;
- }
-
- public void testSourcePathAdditionWeb() throws Exception {
- testSourcePathAddition(ProjectUtil.createWebProject("TestWeb", null));
- }
-
- public void testSourcePathAdditionUtil() throws Exception {
- testSourcePathAddition(ProjectUtil.createUtilityProject("TestUtil", null));
- }
-
- private static void testSourcePathAddition(final IProject project) throws Exception {
- final IPath srcPath = new Path("src");
- final IPath newSrcPath = new Path("newSrc");
-
- DependencyUtil.verifyComponentMapping(project, srcPath, true);
- DependencyUtil.verifyComponentMapping(project, newSrcPath, false);
-
- assertTrue("Failed to add new source path " + newSrcPath, DependencyUtil.addJavaSrcPath(project, newSrcPath));
-
- DependencyUtil.verifyComponentMapping(project, srcPath, true);
- DependencyUtil.verifyComponentMapping(project, newSrcPath, true);
- }
-
- public void testSourcePathRemovalWeb() throws Exception {
- testSourcePathRemoval(ProjectUtil.createWebProject("TestWeb", null));
- }
-
- public void testSourcePathRemovalUtil() throws Exception {
- testSourcePathRemoval(ProjectUtil.createUtilityProject("TestUtil", null));
- }
-
- private static void testSourcePathRemoval(final IProject project) throws Exception {
- final IPath srcPath = new Path("src");
- DependencyUtil.verifyComponentMapping(project, srcPath, true);
- assertTrue("Failed to remove src path " + srcPath, DependencyUtil.removeJavaSrcPath(project, srcPath));
- DependencyUtil.verifyComponentMapping(project, srcPath, false);
- }
-
- public void testWebContentRename() throws Exception {
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", null);
- final IPath webContent = new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.WEB_CONTENT_FOLDER));
- final IPath newWebContent = new Path("WebContent2");
-
- DependencyUtil.verifyComponentMapping(webProject, webContent, Path.ROOT, true);
- DependencyUtil.verifyComponentMapping(webProject, newWebContent, Path.ROOT, false);
-
- // rename the WebContent
- final IFolder folder = webProject.getFolder(webContent);
- folder.move(webProject.getFullPath().append(newWebContent), true, null);
- DependencyUtil.waitForComponentRefactoringJobs();
-
- DependencyUtil.verifyComponentMapping(webProject, webContent, Path.ROOT, false);
- DependencyUtil.verifyComponentMapping(webProject, newWebContent, Path.ROOT, true);
- }
-
- public void testEarContentRename() throws Exception {
- final IProject earProject = ProjectUtil.createEARProject("TestEAR");
- final IPath earContent = new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.APPLICATION_CONTENT_FOLDER));
- final IPath newEarContent = new Path("EarContent2");
-
- DependencyUtil.verifyComponentMapping(earProject, earContent, Path.ROOT, true);
- DependencyUtil.verifyComponentMapping(earProject, newEarContent, Path.ROOT, false);
-
- // rename the EarContent
- final IFolder folder = earProject.getFolder(earContent);
- folder.move(earProject.getFullPath().append(newEarContent), true, null);
- DependencyUtil.waitForComponentRefactoringJobs();
-
- DependencyUtil.verifyComponentMapping(earProject, earContent, Path.ROOT, false);
- DependencyUtil.verifyComponentMapping(earProject, newEarContent, Path.ROOT, true);
- }
-
-// XXX need to change to execute a refactor->rename
-// public void testSourcePathRenameWeb() throws Exception {
-// testSourcePathRename(ProjectUtil.createWebProject("TestWeb", null));
-// }
-//
-// public void testSourcePathRenameUtil() throws Exception {
-// testSourcePathRename(ProjectUtil.createUtilityProject("TestUtil", null));
-// }
-//
-// private static void testSourcePathRename(final IProject project) throws Exception {
-// final IPath srcPath = new Path("src");
-// final IPath newSrcPath = new Path("newSrc");
-//
-// DependencyUtil.verifyComponentMapping(project, srcPath, true);
-//
-// final IFolder srcFolder = project.getFolder(srcPath);
-// srcFolder.move(newSrcPath, true, null);
-//
-// DependencyUtil.verifyComponentMapping(project, srcPath, false);
-// DependencyUtil.verifyComponentMapping(project, newSrcPath, true);
-// }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectCreationTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectCreationTests.java
deleted file mode 100644
index f60dc2e1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectCreationTests.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyVerificationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-
-/**
- * Tests project creation logic in the ProjectCreationUtil helper class.
- */
-public class ProjectCreationTests extends AbstractTests {
-
- private ProjectCreationTests(final String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project Creation Tests" );
- suite.addTest(new ProjectCreationTests("testEARCreation"));
- suite.addTest(new ProjectCreationTests("testWebCreation"));
- suite.addTest(new ProjectCreationTests("testWebWithEARCreation"));
- suite.addTest(new ProjectCreationTests("testEJBCreation"));
- suite.addTest(new ProjectCreationTests("testEJBWithEARCreation"));
- suite.addTest(new ProjectCreationTests("testUtilCreation"));
- suite.addTest(new ProjectCreationTests("testUtilWithEARCreation"));
- return suite;
- }
-
- public void testEARCreation() throws Exception {
- ProjectUtil.createEARProject("TestEAR");
- }
-
- public void testWebCreation() throws Exception {
- ProjectUtil.createWebProject("TestWeb", null);
- }
-
- public void testWebWithEARCreation() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- DependencyVerificationUtil.verifyEARDependency(earProject, ProjectUtil.createWebProject("TestWeb", earProject.getName()), true);
- }
-
- public void testEJBCreation() throws Exception {
- ProjectUtil.createEJBProject("TestEJB", null);
- }
-
- public void testEJBWithEARCreation() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject ejbProject = ProjectUtil.createEJBProject("TestEJB", earProject.getName());
- DependencyVerificationUtil.verifyEARDependency(earProject, ejbProject, true);
- testEJBClient(ejbProject, earProject);
- }
-
- private void testEJBClient(final IProject ejbProject, final IProject earProject) throws Exception {
- final IProject ejbClient = ProjectUtil.getProject(ejbProject.getName() + "Client");
- // check dependencies from EAR to EJB client
- DependencyVerificationUtil.verifyProjectReference(earProject, ejbClient, true);
- DependencyVerificationUtil.verifyComponentReference(earProject, ejbClient, DependencyVerificationUtil.ROOT, true);
-
- // check dependencies from EJB to EJB client
- //DependencyVerificationUtil.verifyModuleDependency(ejbProject, ejbClient);
- DependencyVerificationUtil.verifyManifestReference(ejbProject, ejbClient.getName() + ".jar", true);
- }
-
- public void testUtilCreation() throws Exception {
- ProjectUtil.createUtilityProject("TestUtil", null);
- }
-
- public void testUtilWithEARCreation() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- DependencyVerificationUtil.verifyEARDependency(earProject, ProjectUtil.createUtilityProject("TestUtil", earProject.getName()), false);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectDependencyTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectDependencyTests.java
deleted file mode 100644
index c83fd920..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectDependencyTests.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyVerificationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-
-/**
- * Tests project creation logic in the DependencyCreationUtil helper class.
- */
-public class ProjectDependencyTests extends AbstractTests {
-
- private ProjectDependencyTests(final String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project Dependency Tests" );
- suite.addTest(new ProjectDependencyTests("testEARWebDependency"));
- suite.addTest(new ProjectDependencyTests("testEARDependencyRemoval"));
- suite.addTest(new ProjectDependencyTests("testEARUtilDependency"));
- suite.addTest(new ProjectDependencyTests("testEAREJBDependency"));
- suite.addTest(new ProjectDependencyTests("testStandaloneWebUtilDependency"));
- suite.addTest(new ProjectDependencyTests("testWebUtilWebInfLibDependency"));
- suite.addTest(new ProjectDependencyTests("testWebEJBModuleDependency"));
- return suite;
- }
-
- public void testEARWebDependency() throws Exception {
- testEARDependency(ProjectUtil.createEARProject("TestEAR"),
- ProjectUtil.createWebProject("TestWeb", null), true);
- }
-
- public void testEARDependencyRemoval() throws Exception {
- final IProject earProject = ProjectUtil.createEARProject("TestEAR");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", null);
- final String moduleURI = testEARDependency(earProject, webProject, true);
- DependencyCreationUtil.removeEARDependency(earProject, webProject);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, webProject, moduleURI);
- }
-
- public void testEARUtilDependency() throws Exception {
- testEARDependency(ProjectUtil.createEARProject("TestEAR"),
- ProjectUtil.createUtilityProject("TestUtil", null), false);
- }
-
- public void testEAREJBDependency() throws Exception {
- testEARDependency(ProjectUtil.createEARProject("TestEAR"),
- ProjectUtil.createEJBProject("TestEJB", null), true);
- }
-
- private String testEARDependency(final IProject earProject, final IProject childProject, final boolean moduleRef) throws Exception {
- DependencyCreationUtil.createEARDependency(earProject, childProject);
- return DependencyVerificationUtil.verifyEARDependency(earProject, childProject, moduleRef);
- }
-
- public void testStandaloneWebUtilDependency() throws Exception {
- final IProject saWeb = ProjectUtil.createWebProject("TestWeb", null);
- final IProject util = ProjectUtil.createUtilityProject("TestUtil", null);
- DependencyCreationUtil.createWebLibDependency(saWeb, util);
- DependencyVerificationUtil.verifyWebLibDependency(saWeb, util);
- }
-
- public void testWebUtilWebInfLibDependency() throws Exception {
- final IProject web = ProjectUtil.createWebProject("TestWeb", null);
- final IProject util = ProjectUtil.createUtilityProject("TestUtil", null);
- final IProject ear = ProjectUtil.createEARProject("TestEAR");
- testEARDependency(ear, web, true);
- testEARDependency(ear, util, false);
- DependencyCreationUtil.createWebLibDependency(web, util);
- DependencyVerificationUtil.verifyWebLibDependency(web, util);
- }
-
- public void testWebEJBModuleDependency() throws Exception {
- final IProject web = ProjectUtil.createWebProject("TestWeb", null);
- final IProject ejb = ProjectUtil.createEJBProject("TestEJB", null);
- final IProject ear = ProjectUtil.createEARProject("TestEAR");
- testEARDependency(ear, web, true);
- testEARDependency(ear, ejb, true);
- DependencyCreationUtil.createModuleDependency(web, ejb);
- DependencyVerificationUtil.verifyModuleDependency(web, ejb);
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectEARRefactoringTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectEARRefactoringTests.java
deleted file mode 100644
index ec963c62..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectEARRefactoringTests.java
+++ /dev/null
@@ -1,292 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyVerificationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Tests the refactoring logic that handles rename/delete refactoring of EAR child
- * projects.
- */
-public class ProjectEARRefactoringTests extends AbstractTests {
-
- public ProjectEARRefactoringTests(String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project EAR Refactoring Tests" );
- //suite.addTest(new ProjectEARRefactoringTests("testDeleteEARWebModule"));
- // XXX this can fail
- //suite.addTest(new ProjectEARRefactoringTests("testDeleteEARWebModuleWithValidation"));
- //suite.addTest(new ProjectEARRefactoringTests("testDeleteEARUtilModule"));
- //suite.addTest(new ProjectEARRefactoringTests("testDeleteEAREJBModule"));
- suite.addTest(new ProjectEARRefactoringTests("testRenameEARWebModule"));
- suite.addTest(new ProjectEARRefactoringTests("testRenameEARUtilModule"));
- //suite.addTest(new ProjectEARRefactoringTests("testRenameEAREJBModule"));
- //suite.addTest(new ProjectEARRefactoringTests("testMultipleEARWebDelete"));
- suite.addTest(new ProjectEARRefactoringTests("testMultipleEARWebRename"));
- //suite.addTest(new ProjectEARRefactoringTests("testMultipleEARUtilDelete"));
- suite.addTest(new ProjectEARRefactoringTests("testMultipleEARUtilRename"));
- //suite.addTest(new ProjectEARRefactoringTests("testDeleteWithEARModuleDependency"));
- suite.addTest(new ProjectEARRefactoringTests("testRenameWithMultipleEARModuleDependency"));
- //suite.addTest(new ProjectEARRefactoringTests("testDependencyRemovalWithMultipleEARModuleDependency"));
- return suite;
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testDeleteEARWebModule() throws Exception {
- DependencyUtil.disableValidation();
-
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject.getName());
- String moduleURI = DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
-
- ProjectUtil.deleteProject(webProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, webProject, moduleURI);
-
- DependencyUtil.enableValidation();
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testDeleteEARWebModuleWithValidation() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject.getName());
- String moduleURI = DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
- ProjectUtil.deleteProject(webProject);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, webProject, moduleURI);
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testDeleteEARUtilModule() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject.getName());
-
- DependencyVerificationUtil.verifyEARDependency(earProject, utilProject, false);
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, utilProject);
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testDeleteEAREJBModule() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject ejbProject = ProjectUtil.createEJBProject("TestEJB", earProject.getName());
-
- final IProject ejbClientProject = ProjectUtil.getProject("TestEJBClient");
- String moduleURI = DependencyVerificationUtil.verifyEARDependency(earProject, ejbProject, true);
-
- DependencyVerificationUtil.verifyEARDependency(earProject, ejbClientProject, false);
- DependencyVerificationUtil.verifyModuleDependency(ejbProject, ejbClientProject);
-
- ProjectUtil.deleteProject(ejbProject);
- ProjectUtil.deleteProject(ejbClientProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, ejbProject, moduleURI);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, ejbClientProject);
- }
-
- public void testRenameEARWebModule() throws Exception {
- DependencyUtil.disableValidation();
-
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject.getName());
- String moduleURI = DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
-
- final IProject newWeb = ProjectUtil.renameProject(webProject, "newWeb");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject, webProject, moduleURI, newWeb);
-
- DependencyUtil.enableValidation();
- }
-
- public void testRenameEARUtilModule() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject.getName());
-
- DependencyVerificationUtil.verifyEARDependency(earProject, utilProject, false);
-
- final IProject newUtil = ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject, utilProject, newUtil);
- }
-
- public void testRenameEAREJBModule() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject ejbProject = ProjectUtil.createEJBProject("TestEJB", earProject.getName());
- final IProject ejbClientProject = ProjectUtil.getProject("TestEJBClient");
-
- String moduleURI = DependencyVerificationUtil.verifyEARDependency(earProject, ejbProject, true);
- DependencyVerificationUtil.verifyEARDependency(earProject, ejbClientProject, false);
-
- final IProject newEJB = ProjectUtil.renameProject(ejbProject, "newEJB");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject, ejbProject, moduleURI, newEJB);
- DependencyVerificationUtil.verifyModuleDependency(newEJB, ejbClientProject);
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testMultipleEARWebDelete() throws Exception {
- DependencyUtil.disableValidation();
-
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject1.getName());
- DependencyCreationUtil.createEARDependency(earProject2, webProject);
-
- final String moduleURI1 = DependencyVerificationUtil.verifyEARDependency(earProject1, webProject, true);
- final String moduleURI2 = DependencyVerificationUtil.verifyEARDependency(earProject2, webProject, true);
-
- ProjectUtil.deleteProject(webProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject1, webProject, moduleURI1);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject2, webProject, moduleURI2);
-
- DependencyUtil.enableValidation();
- }
-
- public void testMultipleEARWebRename() throws Exception {
- DependencyUtil.disableValidation();
-
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject1.getName());
- DependencyCreationUtil.createEARDependency(earProject2, webProject);
-
- final String moduleURI1 = DependencyVerificationUtil.verifyEARDependency(earProject1, webProject, true);
- final String moduleURI2 = DependencyVerificationUtil.verifyEARDependency(earProject2, webProject, true);
-
- final IProject newWeb = ProjectUtil.renameProject(webProject, "newWeb");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject1, webProject, moduleURI1, newWeb);
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject2, webProject, moduleURI2, newWeb);
-
- DependencyUtil.enableValidation();
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testMultipleEARUtilDelete() throws Exception {
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject1.getName());
- DependencyCreationUtil.createEARDependency(earProject2, utilProject);
- DependencyVerificationUtil.verifyEARDependency(earProject1, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject2, utilProject, false);
- ProjectUtil.deleteProject(utilProject);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject1, utilProject);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject2, utilProject);
- }
-
- public void testMultipleEARUtilRename() throws Exception {
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject1.getName());
- DependencyCreationUtil.createEARDependency(earProject2, utilProject);
- DependencyVerificationUtil.verifyEARDependency(earProject1, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject2, utilProject, false);
-
- final IProject newUtil= ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject1, utilProject, newUtil);
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject2, utilProject, newUtil);
- }
-
- // bug 261555 switches us to use LTK refactoring- need to update the delete test cases
- public void _testDeleteWithEARModuleDependency() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject.getName());
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject.getName());
- DependencyCreationUtil.createModuleDependency(webProject, utilProject);
-
- DependencyVerificationUtil.verifyEARDependency(earProject, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
- DependencyVerificationUtil.verifyModuleDependency(webProject, utilProject);
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, utilProject);
- DependencyVerificationUtil.verifyModuleDependencyRemoved(webProject, utilProject);
- DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
- }
-
- public void testRenameWithMultipleEARModuleDependency() throws Exception {
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject ejbProject = ProjectUtil.createEJBProject("TestEJB", earProject1.getName());
- DependencyCreationUtil.createEARDependency(earProject2, ejbProject);
- final IProject webProject1 = ProjectUtil.createWebProject("TestWeb1", earProject1.getName());
- final IProject webProject2 = ProjectUtil.createWebProject("TestWeb2", earProject2.getName());
- DependencyCreationUtil.createModuleDependency(webProject1, ejbProject);
- DependencyCreationUtil.createWebLibDependency(webProject2, ejbProject);
-
- DependencyUtil.waitForJobs(ResourcesPlugin.FAMILY_AUTO_BUILD);
-
- final String moduleURI1 = DependencyVerificationUtil.verifyEARDependency(earProject1, ejbProject, true);
- final String moduleURI2 = DependencyVerificationUtil.verifyEARDependency(earProject2, ejbProject, true);
- DependencyVerificationUtil.verifyEARDependency(earProject1, webProject1, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, webProject2, true);
- DependencyVerificationUtil.verifyModuleDependency(webProject1, ejbProject);
- DependencyVerificationUtil.verifyWebLibDependency(webProject2, ejbProject);
-
- IProject newEJB = ProjectUtil.renameProject(ejbProject, "newEJB");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject1, ejbProject, moduleURI1, newEJB);
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject2, ejbProject, moduleURI2, newEJB);
- DependencyVerificationUtil.verifyModuleDependencyChanged(webProject1, ejbProject, newEJB);
- DependencyVerificationUtil.verifyWebLibDependencyChanged(webProject2, ejbProject, newEJB);
- }
-
- /* XXX only works through the UI right now
- public void testDependencyRemovalWithMultipleEARModuleDependency() throws Exception {
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject1.getName());
- DependencyCreationUtil.createEARDependency(earProject2, utilProject);
- final IProject webProject1 = ProjectUtil.createWebProject("TestWeb1", earProject1.getName());
- final IProject webProject2 = ProjectUtil.createWebProject("TestWeb2", earProject2.getName());
- DependencyCreationUtil.createModuleDependency(webProject1, utilProject);
- DependencyCreationUtil.createModuleDependency(webProject2, utilProject);
-
- // verify all of the dependencies
- DependencyVerificationUtil.verifyEARDependency(earProject1, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject2, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject1, webProject1, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, webProject2, true);
- DependencyVerificationUtil.verifyModuleDependency(webProject1, utilProject);
- DependencyVerificationUtil.verifyModuleDependency(webProject2, utilProject);
-
- // remove the dependency between the util and just EAR1
- DependencyCreationUtil.removeEARDependency(earProject1, utilProject);
-
- // verify the changed dependencies
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject1, utilProject);
- DependencyVerificationUtil.verifyModuleDependencyRemoved(webProject1, utilProject);
-
- // verify the dependencies that should be unchanged
- DependencyVerificationUtil.verifyEARDependency(earProject1, webProject1, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, webProject2, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, utilProject, false);
- DependencyVerificationUtil.verifyWebLibDependency(webProject2, utilProject);
- }
- */
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectModuleRefactoringTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectModuleRefactoringTests.java
deleted file mode 100644
index 7dc8fd92..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectModuleRefactoringTests.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyVerificationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-
-/**
- * Tests the refactoring logic that handles rename/delete refactoring of projects that
- * participate in inter-module dependencies.
- */
-public class ProjectModuleRefactoringTests extends AbstractTests {
-
- public ProjectModuleRefactoringTests(String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project Module Dependency Refactoring Tests" );
- suite.addTest(new ProjectModuleRefactoringTests("testDeleteModuleDependency"));
- suite.addTest(new ProjectModuleRefactoringTests("testRenameModuleDependency"));
- suite.addTest(new ProjectModuleRefactoringTests("testDeleteModuleDependencyWithMarker"));
- suite.addTest(new ProjectModuleRefactoringTests("testRenameModuleDependencyWithMarker"));
- suite.addTest(new ProjectModuleRefactoringTests("testDeleteMultipleDependency"));
- suite.addTest(new ProjectModuleRefactoringTests("testRenameMultipleModuleDependency"));
- return suite;
- }
-
- public void testDeleteModuleDependency() throws Exception {
- final IProject[] projects = setupModuleDependency();
- final IProject earProject = projects[0];
- final IProject webProject = projects[1];
- final IProject utilProject = projects[2];
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, utilProject);
- DependencyVerificationUtil.verifyModuleDependencyRemoved(webProject, utilProject);
- }
-
- public void testDeleteModuleDependencyWithMarker() throws Exception {
- final IProject[] projects = setupModuleDependency();
- final IProject earProject = projects[0];
- final IProject webProject = projects[1];
- final IProject utilProject = projects[2];
-
- // add a marker
- utilProject.createMarker("TEST_MARKER");
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, utilProject);
- DependencyVerificationUtil.verifyModuleDependencyRemoved(webProject, utilProject);
- }
-
- public void testRenameModuleDependency() throws Exception {
- final IProject[] projects = setupModuleDependency();
- final IProject earProject = projects[0];
- final IProject webProject = projects[1];
- final IProject utilProject = projects[2];
-
- final IProject newUtil = ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject, utilProject, newUtil);
- DependencyVerificationUtil.verifyModuleDependencyChanged(webProject, utilProject, newUtil);
- }
-
- public void testRenameModuleDependencyWithMarker() throws Exception {
- final IProject[] projects = setupModuleDependency();
- final IProject earProject = projects[0];
- final IProject webProject = projects[1];
- final IProject utilProject = projects[2];
-
- // add a marker
- utilProject.createMarker("TEST_MARKER");
-
- final IProject newUtil = ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject, utilProject, newUtil);
- DependencyVerificationUtil.verifyModuleDependencyChanged(webProject, utilProject, newUtil);
- }
-
- public void testDeleteMultipleDependency() throws Exception {
- final IProject[] projects = setupMultipleDependency();
- final IProject earProject1 = projects[0];
- final IProject earProject2 = projects[1];
- final IProject webProject = projects[2];
- final IProject ejbProject = projects[3];
- final IProject utilProject = projects[4];
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject1, utilProject);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject2, utilProject);
- DependencyVerificationUtil.verifyModuleDependencyRemoved(webProject, utilProject);
- DependencyVerificationUtil.verifyModuleDependencyRemoved(ejbProject, utilProject);
- }
-
- public void testRenameMultipleModuleDependency() throws Exception {
- final IProject[] projects = setupMultipleDependency();
- final IProject earProject1 = projects[0];
- final IProject earProject2 = projects[1];
- final IProject webProject = projects[2];
- final IProject ejbProject = projects[3];
- final IProject utilProject = projects[4];
-
- final IProject newUtil = ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject1, utilProject, newUtil);
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject2, utilProject, newUtil);
- DependencyVerificationUtil.verifyModuleDependencyChanged(webProject, utilProject, newUtil);
- DependencyVerificationUtil.verifyModuleDependencyChanged(ejbProject, utilProject, newUtil);
- }
-
- private static IProject[] setupModuleDependency() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject.getName());
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject.getName());
- DependencyCreationUtil.createModuleDependency(webProject, utilProject);
- DependencyVerificationUtil.verifyEARDependency(earProject, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
- DependencyVerificationUtil.verifyModuleDependency(webProject, utilProject);
- return new IProject[] {earProject, webProject, utilProject};
- }
-
- private static IProject[] setupMultipleDependency() throws Exception {
- // create the projects
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject1.getName());
-
- // create the dependencies
- DependencyCreationUtil.createEARDependency(earProject2, utilProject);
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject1.getName());
- final IProject ejbProject = ProjectUtil.createEJBProject("TestEJB", earProject2.getName());
- final IProject ejbClientProject = ProjectUtil.getProject("TestEJBClient");
- DependencyCreationUtil.createModuleDependency(webProject, utilProject);
- DependencyCreationUtil.createModuleDependency(ejbProject, utilProject);
-
- // verify the dependencies
- DependencyVerificationUtil.verifyEARDependency(earProject1, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject1, webProject, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject2, ejbProject, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, ejbClientProject, false);
- DependencyVerificationUtil.verifyModuleDependency(webProject, utilProject);
- DependencyVerificationUtil.verifyModuleDependency(ejbProject, utilProject);
-
- return new IProject[] {earProject1, earProject2, webProject, ejbProject, utilProject};
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectServerRefactoringTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectServerRefactoringTests.java
deleted file mode 100644
index b9fa0c12..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectServerRefactoringTests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Tests refactoring logic that updates server instances when associated modules are
- * renamed or deleted.
- */
-public class ProjectServerRefactoringTests extends AbstractTests {
-
- public ProjectServerRefactoringTests(String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project Server Refactoring Tests" );
- //suite.addTest(new ProjectServerRefactoringTests("testEARWebDependency"));
- return suite;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectWebLibRefactoringTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectWebLibRefactoringTests.java
deleted file mode 100644
index fe6c1657..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/ProjectWebLibRefactoringTests.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyCreationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyVerificationUtil;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Tests the refactoring logic that handles rename/delete refactoring of projects that
- * participate in web-inf/lib module dependencies.
- */
-public class ProjectWebLibRefactoringTests extends AbstractTests {
-
- public ProjectWebLibRefactoringTests(String name) {
- super(name);
- }
-
- public static Test suite(){
- final TestSuite suite = new TestSuite();
- suite.setName("Project WEB-INF/lib Dependency Refactoring Tests" );
- suite.addTest(new ProjectWebLibRefactoringTests("testDeleteWebLibDependency"));
- suite.addTest(new ProjectWebLibRefactoringTests("testRenameWebLibDependency"));
- suite.addTest(new ProjectWebLibRefactoringTests("testDeleteMultipleDependency"));
- suite.addTest(new ProjectWebLibRefactoringTests("testRenameMultipleModuleDependency"));
- return suite;
- }
-
- public void testDeleteWebLibDependency() throws Exception {
- final IProject[] projects = setupWebLibDependency();
- final IProject earProject = projects[0];
- final IProject webProject = projects[1];
- final IProject utilProject = projects[2];
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject, utilProject);
- DependencyVerificationUtil.verifyWebLibDependencyRemoved(webProject, utilProject);
- }
-
- public void testRenameWebLibDependency() throws Exception {
- final IProject[] projects = setupWebLibDependency();
- final IProject earProject = projects[0];
- final IProject webProject = projects[1];
- final IProject utilProject = projects[2];
-
- final IProject newUtil = ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject, utilProject, newUtil);
- DependencyVerificationUtil.verifyWebLibDependencyChanged(webProject, utilProject, newUtil);
- }
-
- public void testDeleteMultipleDependency() throws Exception {
- final IProject[] projects = setupMultipleDependency();
- final IProject earProject1 = projects[0];
- final IProject earProject2 = projects[1];
- final IProject webProject1 = projects[2];
- final IProject webProject2 = projects[3];
- final IProject utilProject = projects[4];
-
- ProjectUtil.deleteProject(utilProject);
-
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject1, utilProject);
- DependencyVerificationUtil.verifyEARDependencyRemoved(earProject2, utilProject);
- DependencyVerificationUtil.verifyWebLibDependencyRemoved(webProject1, utilProject);
- DependencyVerificationUtil.verifyWebLibDependencyRemoved(webProject2, utilProject);
- }
-
- public void testRenameMultipleModuleDependency() throws Exception {
- final IProject[] projects = setupMultipleDependency();
- final IProject earProject1 = projects[0];
- final IProject earProject2 = projects[1];
- final IProject webProject1 = projects[2];
- final IProject webProject2 = projects[3];
- final IProject utilProject = projects[4];
-
- final IProject newUtil = ProjectUtil.renameProject(utilProject, "newUtil");
-
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject1, utilProject, newUtil);
- DependencyVerificationUtil.verifyEARDependencyChanged(earProject2, utilProject, newUtil);
- DependencyVerificationUtil.verifyWebLibDependencyChanged(webProject1, utilProject, newUtil);
- DependencyVerificationUtil.verifyWebLibDependencyChanged(webProject2, utilProject, newUtil);
- }
-
- private static IProject[] setupWebLibDependency() throws Exception {
- final IProject earProject = ProjectUtil.getProject("TestEAR");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject.getName());
- final IProject webProject = ProjectUtil.createWebProject("TestWeb", earProject.getName());
- DependencyCreationUtil.createWebLibDependency(webProject, utilProject);
- DependencyVerificationUtil.verifyEARDependency(earProject, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject, webProject, true);
- DependencyVerificationUtil.verifyWebLibDependency(webProject, utilProject);
- return new IProject[] {earProject, webProject, utilProject};
- }
-
- private static IProject[] setupMultipleDependency() throws Exception {
- // create the projects
- final IProject earProject1 = ProjectUtil.getProject("TestEAR1");
- final IProject earProject2 = ProjectUtil.createEARProject("TestEAR2");
- final IProject utilProject = ProjectUtil.createUtilityProject("TestUtil", earProject1.getName());
-
- // create the dependencies
- DependencyCreationUtil.createEARDependency(earProject2, utilProject);
- final IProject webProject1 = ProjectUtil.createWebProject("TestWeb1", earProject1.getName());
- final IProject webProject2 = ProjectUtil.createWebProject("TestWeb2", earProject2.getName());
-
- DependencyCreationUtil.createWebLibDependency(webProject1, utilProject);
- DependencyCreationUtil.createWebLibDependency(webProject2, utilProject);
-
- // verify the dependencies
- DependencyVerificationUtil.verifyEARDependency(earProject1, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject1, webProject1, true);
- DependencyVerificationUtil.verifyEARDependency(earProject2, utilProject, false);
- DependencyVerificationUtil.verifyEARDependency(earProject2, webProject2, true);
- DependencyVerificationUtil.verifyWebLibDependency(webProject1, utilProject);
- DependencyVerificationUtil.verifyWebLibDependency(webProject2, utilProject);
-
- return new IProject[] {earProject1, earProject2, webProject1, webProject2, utilProject};
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyCreationUtil.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyCreationUtil.java
deleted file mode 100644
index 71b0797f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyCreationUtil.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests.util;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.jar.Manifest;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.application.internal.operations.AddComponentToEnterpriseApplicationDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.RemoveComponentFromEnterpriseApplicationDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.UpdateManifestDataModelProperties;
-import org.eclipse.jst.j2ee.application.internal.operations.UpdateManifestDataModelProvider;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifestImpl;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
-import org.eclipse.wst.common.componentcore.internal.operation.CreateReferenceComponentsDataModelProvider;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * Test utility class that programmatically creates J2EE dependencies.
- */
-public class DependencyCreationUtil {
-
- public static void createEARDependency(final IProject earProject, final IProject childProject) throws ExecutionException {
- createEARDependency(earProject, childProject, false);
- }
-
- public static void createEARDependency(final IProject earProject, final IProject childProject, final boolean inLibDir) throws ExecutionException {
- final IDataModel dm = DataModelFactory.createDataModel(new AddComponentToEnterpriseApplicationDataModelProvider());
- IVirtualComponent earComp = ComponentCore.createComponent(earProject);
- IVirtualComponent childComp = ComponentCore.createComponent(childProject);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT, earComp);
- final List depList = new ArrayList();
- depList.add(childComp);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, depList);
- if (inLibDir) {
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH, J2EEConstants.EAR_DEFAULT_LIB_DIR); //$NON-NLS-1$
- } else {
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH, J2EEConstants.EAR_ROOT_DIR); //$NON-NLS-1$
- Map modDeployPathMap = (Map) dm.getProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH_MAP);
- modDeployPathMap.put(childComp, J2EEConstants.EAR_ROOT_DIR);
- }
- dm.getDefaultOperation().execute(null, null);
- ProjectUtil.waitForClasspathUpdate();
- }
-
- public static void removeEARDependency(final IProject earProject, final IProject childProject) throws ExecutionException {
- final IDataModel dm = DataModelFactory.createDataModel(new RemoveComponentFromEnterpriseApplicationDataModelProvider());
- IVirtualComponent earComp = ComponentCore.createComponent(earProject);
- IVirtualComponent childComp = ComponentCore.createComponent(childProject);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT, earComp);
- final List depList = new ArrayList();
- depList.add(childComp);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, depList);
- dm.getDefaultOperation().execute(null, null);
- ProjectUtil.waitForClasspathUpdate();
- }
-
- public static void createModuleDependency(final IProject source, final IProject target) throws ExecutionException, CoreException, IOException {
- createProjectDependency(source, target, false);
- }
-
- public static void createWebLibDependency(final IProject source, final IProject target) throws ExecutionException, CoreException, IOException {
- createProjectDependency(source, target, true);
- }
-
- private static void createProjectDependency(final IProject source, final IProject target, final boolean webLibDep) throws ExecutionException, CoreException, IOException {
- IVirtualComponent sourceComp = ComponentCore.createComponent(source);
- IVirtualComponent targetComp = ComponentCore.createComponent(target);
- if (webLibDep) {
- // add component and project refs
- final IDataModel refdm = DataModelFactory.createDataModel(new CreateReferenceComponentsDataModelProvider());
- final List targetCompList = (List) refdm.getProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST);
- targetCompList.add(targetComp);
- refdm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT, sourceComp);
- refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, targetCompList);
- refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH,"/WEB-INF/lib"); //$NON-NLS-1$
- refdm.getDefaultOperation().execute(null, null);
- } else {
- // just add a manifest ref
- final IVirtualComponent dependentComp = sourceComp;
- final String dependentProjName = source.getName();
- final String refactoredProjName = target.getName();
- final IVirtualFile vf = dependentComp.getRootFolder().getFile(new Path(J2EEConstants.MANIFEST_URI) );
- final IFile manifestmf = vf.getUnderlyingFile();
- final IProgressMonitor monitor = new NullProgressMonitor();
- final IDataModel updateManifestDataModel = DataModelFactory.createDataModel(new UpdateManifestDataModelProvider());
- updateManifestDataModel.setProperty(UpdateManifestDataModelProperties.PROJECT_NAME, dependentProjName);
- updateManifestDataModel.setBooleanProperty(UpdateManifestDataModelProperties.MERGE, false);
- updateManifestDataModel.setProperty(UpdateManifestDataModelProperties.MANIFEST_FILE, manifestmf);
- final ArchiveManifest manifest = getArchiveManifest(manifestmf);
- String[] cp = manifest.getClassPathTokenized();
- List cpList = new ArrayList();
- String newCp = refactoredProjName + ".jar";//$NON-NLS-1$
- for (int i = 0; i < cp.length; i++) {
- if (!cp[i].equals(newCp)) {
- cpList.add(cp[i]);
- }
- }
- cpList.add(newCp);
- updateManifestDataModel.setProperty(UpdateManifestDataModelProperties.JAR_LIST, cpList);
- updateManifestDataModel.getDefaultOperation().execute(monitor, null );
- }
- ProjectUtil.waitForClasspathUpdate();
- if (webLibDep)
- DependencyUtil.waitForComponentRefactoringJobs();
- }
-
- public static ArchiveManifest getArchiveManifest(final IFile manifestFile) throws CoreException, IOException {
- InputStream in = null;
- try {
- in = manifestFile.getContents();
- ArchiveManifest mf = new ArchiveManifestImpl(new Manifest(in));
- return mf;
- } finally {
- if (in != null) {
- try {
- in.close();
- } catch (IOException weTried) {
- //Ignore
- }
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyUtil.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyUtil.java
deleted file mode 100644
index f48fef39..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyUtil.java
+++ /dev/null
@@ -1,281 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests.util;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.jobs.IJobManager;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.refactor.listeners.J2EEElementChangedListener;
-import org.eclipse.jst.j2ee.refactor.listeners.ProjectRefactoringListener;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wst.validation.internal.ConfigurationManager;
-import org.eclipse.wst.validation.internal.GlobalConfiguration;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-/**
- * Various utility methods.
- */
-public class DependencyUtil {
-
- public static final IWorkspace ws = ResourcesPlugin.getWorkspace();
-
- /**
- * Retrieves a unique name.
- * @param prefix
- * @return
- */
- public static String getUniqueName(final String prefix) {
- return prefix + System.currentTimeMillis();
- }
-
- public static void waitForValidationJobs() {
- // Wait for all validation jobs to end
- final IJobManager jobMgr = Platform.getJobManager();
- IProject[] projects = ProjectUtility.getAllProjects();
- for (int i = 0; i < projects.length; i++) {
- final IProject p = projects[i];
- waitForValidationJobs(p);
- }
- }
-
- public static void waitForValidationJobs(final IProject project) {
- // Wait for all validation jobs to end
- final IJobManager jobMgr = Platform.getJobManager();
- final String family = project.getName() + OperationTestCase.VALIDATOR_JOB_FAMILY;
- waitForJobs(family);
- }
-
- public static void waitForProjectRefactoringJobs() {
- waitForJobs(ProjectRefactoringListener.PROJECT_REFACTORING_JOB_FAMILY);
- }
-
- public static void waitForComponentRefactoringJobs() {
- waitForJobs(J2EEElementChangedListener.PROJECT_COMPONENT_UPDATE_JOB_FAMILY);
- }
-
- /**
- * Waits for jobs in the specified family
- * @param family
- */
-
- public static void waitForJobs(final String family) {
- waitForJobs((Object)family);
- }
-
- /**
- * Waits for jobs in the specified family
- * @param family
- */
- public static void waitForJobs(final Object family) {
- final IJobManager jobMgr = Platform.getJobManager();
- for (int i = 0; i < 1000; i++) {
- final Job[] jobs = jobMgr.find(family);
- if (jobs.length > 0) {
- try {
- jobMgr.join(family, null);
- } catch (InterruptedException ie) {
- // make one last check for jobs before exiting
- i = 999;
- continue;
- }
- break;
- }
- try {
- Thread.sleep(10);
- } catch (InterruptedException ie) {
- }
- }
- }
-
- /**
- * Disables all validators (if this is not done, getting error deleting/renaming projects
- * because one of the validators is holding onto web.xml)
- */
- public static void disableValidation() throws InvocationTargetException {
- disableValidation(true);
- }
-
- public static void enableValidation() throws InvocationTargetException {
- disableValidation(false);
- }
-
- private static void disableValidation(final boolean disabled) throws InvocationTargetException {
- final GlobalConfiguration config = new GlobalConfiguration(ConfigurationManager.getManager().getGlobalConfiguration());
- config.setDisableAllValidation(disabled);
- config.passivate();
- config.store();
- }
-
- /**
- * Disables all validators except the specified validator
- * @param project Project on which to disable the validator. Cannot be null.
- * @param validatorToLeaveEnabled Name of the validator to leave enabled
- * @throws CoreException Thrown if an error is encountered disabling the validator.
- */
- public static void disableValidation(final String validatorToLeaveEnabled) throws InvocationTargetException {
- final GlobalConfiguration config = new GlobalConfiguration(ConfigurationManager.getManager().getGlobalConfiguration());
- final List listVmd = new ArrayList();
- ValidatorMetaData[] enabledValidators = config.getEnabledValidators();
-
- // filter out validators to disable
- boolean disabledSomeValidators = false;
- for (int i = 0; i < enabledValidators.length; i++) {
- final String uniqueName = enabledValidators[i].getValidatorUniqueName();
- if (uniqueName.equals(validatorToLeaveEnabled)) {
- listVmd.add(enabledValidators[i]);
- } else {
- disabledSomeValidators = true;
- }
- }
-
- if (disabledSomeValidators) {
- config.setEnabledValidators((ValidatorMetaData[]) listVmd.toArray(new ValidatorMetaData[0]));
- config.passivate();
- config.store();
- }
- }
-
- /**
- * Adds a Java source path
- * @param path project relative path.
- * @throws CoreException
- */
- public static boolean addJavaSrcPath(final IProject project, final IPath path) throws CoreException {
- final IFolder folder = project.getFolder(path);
- if (!folder.exists()) {
- folder.create(true, true, null);
- }
- final IJavaProject jProject = JavaCore.create(project);
- final IPath absolutePath = project.getFullPath().append(path);
- final IClasspathEntry entry = JavaCore.newSourceEntry(absolutePath);
- IClasspathEntry[] cp = jProject.getRawClasspath();
- final List cpList = new ArrayList();
- boolean hasEntry = false;
- for (int i = 0; i < cp.length; i++) {
- final IClasspathEntry cpe = cp[i];
- if (cpe.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
- if (cpe.getPath().equals(absolutePath)) {
- hasEntry = true;
- break;
- }
- }
- cpList.add(cp[i]);
- }
- if (!hasEntry) {
- cpList.add(entry);
- cp = (IClasspathEntry[]) cpList.toArray(new IClasspathEntry[cpList.size()]);
- jProject.setRawClasspath(cp, null);
- waitForComponentRefactoringJobs();
- return true;
- }
- return false;
- }
-
- /**
- * Adds a Java source path
- * @param path project relative path.
- * @throws CoreException
- */
- public static boolean removeJavaSrcPath(final IProject project, final IPath path) throws CoreException {
- final IJavaProject jProject = JavaCore.create(project);
- final IPath absolutePath = project.getFullPath().append(path);
- IClasspathEntry[] cp = jProject.getRawClasspath();
- final List cpList = new ArrayList();
- boolean removedEntry = false;
- for (int i = 0; i < cp.length; i++) {
- final IClasspathEntry cpe = cp[i];
- if (cpe.getEntryKind() != IClasspathEntry.CPE_SOURCE
- || !cpe.getPath().equals(absolutePath)) {
- cpList.add(cp[i]);
- } else {
- removedEntry = true;
- }
- }
- if (removedEntry) {
- cp = (IClasspathEntry[]) cpList.toArray(new IClasspathEntry[cpList.size()]);
- jProject.setRawClasspath(cp, null);
- waitForComponentRefactoringJobs();
- return true;
- }
- return false;
- }
-
- /**
- * Verifies the existence (or absence) of the specified component path mapping.
- * @param project
- * @param projectPath
- * @param runtimePath
- * @param exists
- * @throws CoreException
- */
- public static void verifyComponentMapping(final IProject project, final IPath projectPath, final boolean exists) throws CoreException {
- IPath runtimePath = Path.ROOT;
- if (JavaEEProjectUtilities.isDynamicWebProject(project)) {
- // web projects map to WEB-INF/classes
- runtimePath = new Path(J2EEConstants.WEB_INF_CLASSES);
- }
- verifyComponentMapping(project, projectPath, runtimePath, exists);
-
- }
-
- /**
- * Verifies the existence (or absence) of the specified component path mapping.
- * @param project
- * @param projectPath
- * @param runtimePath
- * @param exists
- * @throws CoreException
- */
- public static void verifyComponentMapping(final IProject project, final IPath projectPath, final IPath runtimePath, final boolean exists) throws CoreException {
- final IVirtualComponent c = ComponentCore.createComponent(project);
- c.create(0, null);
- IVirtualFolder dest = c.getRootFolder();
- if (!runtimePath.equals(Path.ROOT)) {
- dest = dest.getFolder(runtimePath);
- }
- IContainer[] mappedFolders = dest.getUnderlyingFolders();
- boolean hasMapping = false;
- for (int i = 0; i < mappedFolders.length; i++) {
- if (mappedFolders[i].getProjectRelativePath().equals(projectPath)) {
- hasMapping = true;
- break;
- }
- }
- if (exists) {
- Assert.assertTrue("Component mapping from " + projectPath + " to " + dest.toString() + " missing", hasMapping);
- } else {
- Assert.assertFalse("Component mapping from " + projectPath + " to " + dest.toString() + " should not exist", hasMapping);
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyVerificationUtil.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyVerificationUtil.java
deleted file mode 100644
index d6b7159e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/DependencyVerificationUtil.java
+++ /dev/null
@@ -1,330 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests.util;
-
-import java.io.IOException;
-import java.util.Set;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-import org.eclipse.jst.j2ee.project.EarUtilities;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.internal.builder.IDependencyGraph;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-
-/**
- * Test utility class that programmatically verifies J2EE dependencies.
- */
-public class DependencyVerificationUtil {
-
- public static final IPath WEB_INF_LIB = new Path("/WEB-INF/lib"); //$NON-NLS-1$
- public static final IPath ROOT = new Path("/"); //$NON-NLS-1$
-
- /**
- * Verifies the presence (or lack) of dependency between two projects as defined by the
- * DependencyManager.
- * @param source Source project
- * @param target Target project
- * @param hasDep True if a dependency should exist; false if not.
- * @throws Exception
- */
- public static void verifyDependency(final IProject source, final IProject target, final boolean hasDep) {
- Set<IProject> referencingComponents = IDependencyGraph.INSTANCE.getReferencingComponents(target);
- boolean dep = false;
- for (IProject project: referencingComponents) {
- if (project.equals(source)) {
- dep= true;
- break;
- }
- }
- if (hasDep) {
- Assert.assertTrue("DependencyGraphManager does not report dependency between " + source + " and " + target, dep);
- } else {
- Assert.assertFalse("DependencyGraphManager incorrectly reporting dependency between " + source + " and " + target, dep);
- }
- }
-
- /**
- * Verifies the presence (or lack) of a component reference between two projects.
- * @param source Source project
- * @param target Target project
- * @param runtimePath Runtime path of target project; null to not check path.
- * @param hasRef True if a component reference should exist; false if not.
- * @throws Exception
- */
- public static void verifyComponentReference(final IProject source, final IProject target, final IPath runtimePath, final boolean hasRef) {
- IVirtualComponent sourceComp = ComponentCore.createComponent(source);
- IVirtualReference[] refs = sourceComp.getReferences();
- boolean ref = false;
- for (int i = 0; i < refs.length; i++) {
- if (refs[i].getReferencedComponent().getProject().equals(target)) {
- if (runtimePath == null || refs[i].getRuntimePath().equals(runtimePath)) {
- ref = true;
- break;
- }
- }
- }
- if (hasRef) {
- Assert.assertTrue("Source project " + source + " missing component reference to " + target, ref);
- } else {
- Assert.assertFalse("Source project " + source + " still has component reference to " + target, ref);
- }
- }
-
- /**
- * Verifies the presence (or lack) or a static project reference between two projects.
- * @param source Source project.
- * @param target Target project.
- * @param hasRef True if a project reference should exist; false if not.
- * @throws Exception
- */
- public static void verifyProjectReference(final IProject source, final IProject target, final boolean hasRef) throws CoreException {
- final IProjectDescription desc = source.getDescription();
- IProject[] refs = desc.getReferencedProjects();
- boolean ref = false;
- for (int i = 0; i < refs.length; i++) {
- if (refs[i].equals(target)) {
- ref = true;
- break;
- }
- }
- if (hasRef) {
- Assert.assertTrue("Source project " + source + " missing project reference to " + target, ref);
- } else {
- Assert.assertFalse("Source project " + source + " still has project reference to " + target, ref);
- }
- }
-
- /**
- * Verifies the presence (or lack) of the specified MANIFEST.MF entry.
- * @param source Source project
- * @param entry Manifest entry.
- * @param hasEntry True if the entry should exist, false if not.
- * @throws Exception
- */
- public static void verifyManifestReference(final IProject source, final String entry, final boolean hasEntry) throws CoreException, IOException {
- final IVirtualComponent sourceComp = ComponentCore.createComponent(source);
- final IVirtualFile vf = sourceComp.getRootFolder().getFile(new Path(J2EEConstants.MANIFEST_URI) );
- final IFile manifestmf = vf.getUnderlyingFile();
- final ArchiveManifest manifest = DependencyCreationUtil.getArchiveManifest(manifestmf);
- String[] cp = manifest.getClassPathTokenized();
- boolean hasManifestRef = false;
- for (int i = 0; i < cp.length; i++) {
- if (cp[i].equals(entry)) {
- hasManifestRef = true;
- }
- }
- if (hasEntry) {
- Assert.assertTrue("Source project " + source + " missing MANIFEST.MF entry " + entry, hasManifestRef);
- } else {
- Assert.assertFalse("Source project " + source + " still has MANIFEST.MF entry " + entry, hasManifestRef);
- }
- }
-
- /**
- * Verifies the presence of an application.xml reference in the specified EAR project for the
- * specified module project.
- * @param earProject The EAR project.
- * @param moduleProject The module project.
- * @param moduleURI Ignored unless hasRef is false.
- * @param hasRef True if there should be a ref, false if not
- * @return Computed module URI or null if one was passed in.
- * @throws Exception
- */
- public static String verifyApplicationXMLReference(final IProject earProject, final IProject moduleProject, final String moduleURI, final boolean hasRef) throws CoreException {
- EARArtifactEdit earEdit = null;
- try {
- earEdit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- Assert.assertTrue(earEdit != null);
- Application application = earEdit.getApplication();
- if (hasRef) {
- IVirtualComponent moduleComp = ComponentCore.createComponent(moduleProject);
- String computedURI = earEdit.getModuleURI(moduleComp);
- Assert.assertTrue("EAR's application.xml missing module element for " + moduleURI,
- application.getFirstModule(computedURI) != null);
- return computedURI;
- } else {
- Module module = application.getFirstModule(moduleURI);
- Assert.assertTrue("EAR's application.xml should not have a module element for " + moduleURI,
- module == null);
- }
- } finally {
- if (earEdit != null)
- earEdit.dispose();
- }
- return null;
- }
-
- public static void waitForClasspathUpdate() {
- Job [] jobs = Job.getJobManager().find(J2EEComponentClasspathUpdater.MODULE_UPDATE_JOB_NAME);
- if(jobs.length > 0){
- try {
- for (int i = 0; i < jobs.length; i++){
- if(jobs[i].getName().equals(J2EEComponentClasspathUpdater.MODULE_UPDATE_JOB_NAME))
- jobs[i].join();
- }
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- }
-
- /**
- * Verifies that the specified target project is visible (or not visible) to the source project via the Java build path
- * @param source Source project.
- * @param target Target project.
- * @param hasRef True if the target project should be on the resolved classpath, false if not.
- * @throws Exception
- */
- public static void verifyClasspathReference(final IProject source, final IProject target, final boolean hasRef) throws CoreException {
- waitForClasspathUpdate();
- boolean onClasspath = hasClasspathReference(source, target);
- if (hasRef) {
- Assert.assertTrue("Project " + target + " missing from resolved classpath of project " + source, onClasspath);
- } else {
- Assert.assertFalse("Project " + target + " should not be on resolved classpath of project " + source, onClasspath);
- }
- }
-
- public static boolean hasClasspathReference(final IProject source, final IProject target) throws CoreException {
- IJavaProject javaProject = JavaCore.create(source);
- IClasspathEntry[] cp = javaProject.getResolvedClasspath(true); // ignore unresolvable entries
- boolean onClasspath = false;
- for (int i = 0; i < cp.length; i++) {
- if (cp[i].getEntryKind() == IClasspathEntry.CPE_PROJECT
- && cp[i].getPath().equals(target.getFullPath())) {
- onClasspath= true;
- break;
- }
- }
- return onClasspath;
- }
-
-
- public static String verifyEARDependency(final IProject earProject, final IProject childProject, final boolean moduleRef) throws CoreException {
- // .project dep
- verifyProjectReference(earProject, childProject, true);
- // .component dep
-
- IPath runtimePath = ROOT;
- if(EarUtilities.isJEEComponent(ComponentCore.createComponent(earProject)) && JavaEEProjectUtilities.isUtilityProject(childProject)){
- runtimePath = new Path("/lib");
- }
-
- verifyComponentReference(earProject, childProject, runtimePath, true);
- // application.xml ref
- String moduleURI = null;
- if (moduleRef) {
- moduleURI = verifyApplicationXMLReference(earProject, childProject, null, true);
- }
- // DependencyGraphManager
- verifyDependency(earProject, childProject, true);
-
- return moduleURI;
- }
-
- public static void verifyEARDependencyChanged(final IProject earProject, final IProject oldChildProject, final IProject newChildProject) throws CoreException {
- verifyEARDependencyChanged(earProject, oldChildProject, null, newChildProject);
- }
-
- public static void verifyEARDependencyChanged(final IProject earProject, final IProject oldChildProject, final String oldModuleURI, final IProject newChildProject) throws CoreException {
- verifyEARDependency(earProject, newChildProject, oldModuleURI != null);
- verifyEARDependencyRemoved(earProject, oldChildProject, oldModuleURI);
- }
-
- public static void verifyEARDependencyRemoved(final IProject earProject, final IProject childProject) throws CoreException {
- verifyEARDependencyRemoved(earProject, childProject, null);
- }
-
- public static void verifyEARDependencyRemoved(final IProject earProject, final IProject childProject, final String oldModuleURI) throws CoreException {
- // .component dep
- verifyComponentReference(earProject, childProject, ROOT, false);
- // application.xml ref
- if (oldModuleURI != null) {
- verifyApplicationXMLReference(earProject, childProject, oldModuleURI, false);
- }
- // DependencyGraphManager
- verifyDependency(earProject, childProject, false);
- // .project dep
- verifyProjectReference(earProject, childProject, false);
- }
-
- public static void verifyModuleDependency(final IProject source, final IProject target) throws CoreException, IOException {
- // verify MANIFEST.MF dep added
- verifyManifestReference(source, target.getName() + ".jar", true); //$NON-NLS-1$
- // verify classpath ref (will be via "EAR Libraries")
- verifyClasspathReference(source, target, true);
- // DependencyGraphManager only tracks references defined by the .settings/org.eclipse.wst.common.component file
- // References defined via manifests will not be mapped in the IDependencyGraph
- //verifyDependency(source, target, true);
- }
-
- public static void verifyModuleDependencyChanged(final IProject source, final IProject oldTarget, final IProject newTarget) throws CoreException, IOException {
- verifyModuleDependency(source, newTarget);
- verifyModuleDependencyRemoved(source, oldTarget);
- }
-
- public static void verifyModuleDependencyRemoved(final IProject source, final IProject target) throws CoreException, IOException {
- // verify MANIFEST.MF dep removed
- verifyManifestReference(source, target.getName()+ ".jar", false);
- // verify classpath ref removed
- verifyClasspathReference(source, target, false);
- // DependencyGraphManager
- verifyDependency(source, target, false);
- }
-
- public static void verifyWebLibDependency(final IProject source, final IProject target) throws CoreException {
- // .project dep
- verifyProjectReference(source, target, true);
- // .component dep
- verifyComponentReference(source, target, WEB_INF_LIB, true);
- // verify classpath ref (will be via "EAR Libraries")
- verifyClasspathReference(source, target, true);
- // DependencyGraphManager
- verifyDependency(source, target, true);
- }
-
- public static void verifyWebLibDependencyChanged(final IProject source, final IProject oldTarget, final IProject newTarget) throws CoreException {
- verifyWebLibDependency(source, newTarget);
- verifyWebLibDependencyRemoved(source, oldTarget);
- }
-
- public static void verifyWebLibDependencyRemoved(final IProject source, final IProject target) throws CoreException {
- // verify changed .project dep
- verifyProjectReference(source, target, false);
- // .component dep
- verifyComponentReference(source, target, WEB_INF_LIB, false);
- // verify classpath ref removed
- verifyClasspathReference(source, target, false);
- // DependencyGraphManager
- verifyDependency(source, target, false);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/ProjectUtil.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/ProjectUtil.java
deleted file mode 100644
index a5b73b22..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/dependency/tests/util/ProjectUtil.java
+++ /dev/null
@@ -1,382 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc 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:
- * BEA Systems, Inc - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.dependency.tests.util;
-
-import java.util.Map;
-
-import junit.framework.Assert;
-
-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.IProgressMonitor;
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.EARFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.UtilityProjectCreationDataModelProvider;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-
-/**
- * Test utility class that contains code for manipulating projects.
- * DO NOT verify dependencies between EAR and module projects.
- */
-public class ProjectUtil {
-
- public static final IWorkspace ws = ResourcesPlugin.getWorkspace();
-
- /**
- * Gets the project for the given name. Does not test for existence.
- * @param name
- * @return
- */
- public static IProject getProject(final String name) {
- return ws.getRoot().getProject(name);
- }
-
- /**
- * Deletes the specified project if it exists and waits for all refactoring
- * jobs.
- */
- public static void deleteProject(final IProject project)
- throws CoreException, InterruptedException {
- if (!project.exists()) {
- return;
- }
-
- IWorkspaceRunnable workspaceRunnable = new IWorkspaceRunnable() {
- public void run(IProgressMonitor pm) throws CoreException {
- project.delete(true, null);
- }
- };
-
- //waitForValidationJobs();
- ResourcesPlugin.getWorkspace().run(workspaceRunnable, null);
- DependencyUtil.waitForProjectRefactoringJobs();
- ProjectUtil.waitForClasspathUpdate();
- }
-
- /**
- * Renames the specified project if it exists and waits for all refactoring
- * jobs.
- * @param project
- * @param newName
- * @return Renamed project.
- */
- public static IProject renameProject(final IProject project, final String newName)
- throws CoreException, InterruptedException {
- final IProject newProject = getProject(newName);
- Assert.assertFalse("Cannot rename project " + project + ", a project already exists with name " + newName, newProject.exists());
- Assert.assertTrue("Project " + project + " does not exist, cannot rename.", project.exists());
-
- IWorkspaceRunnable workspaceRunnable = new IWorkspaceRunnable() {
- public void run(IProgressMonitor pm) throws CoreException {
- project.move(newProject.getFullPath(), true, null);
- }
- };
-
- //waitForValidationJobs();
- ResourcesPlugin.getWorkspace().run(workspaceRunnable, null);
- DependencyUtil.waitForProjectRefactoringJobs();
- DependencyUtil.waitForComponentRefactoringJobs();
- ProjectUtil.waitForClasspathUpdate();
- return newProject;
- }
-
- /**
- * Creates an EAR project.
- * @param name EAR name.
- * @return The EAR project.
- * @throws Exception
- */
- public static IProject createEARProject(final String name) throws Exception {
- return createEARProject(name, false);
- }
-
- /**
- * Creates an EAR project.
- * @param name EAR name.
- * @param waitForBuildToComplete True if the call should wait for the subsequent build to complete.
- * @return The EAR project.
- * @throws Exception
- */
- public static IProject createEARProject(final String name, final boolean waitForBuildToComplete) throws Exception {
- return createEARProject(name, J2EEVersionConstants.J2EE_1_4_ID, waitForBuildToComplete);
- }
-
- /**
- * Creates an EAR project.
- * @param name EAR name.
- * @param waitForBuildToComplete True if the call should wait for the subsequent build to complete.
- * @param
- * @return The EAR project.
- * @throws Exception
- */
- public static IProject createEARProject(final String name, final int facetVersion, final boolean waitForBuildToComplete) throws Exception {
- final IDataModel dataModel = getEARCreationDataModel(name, facetVersion);
- return createAndVerify(dataModel, name, J2EEProjectUtilities.ENTERPRISE_APPLICATION, null, waitForBuildToComplete);
- }
-
- /**
- * Creates a web project with optional EAR association.
- * @param name Web name.
- * @param earName EAR name; null for no EAR association.
- * @return The Web project.
- * @throws Exception
- */
- public static IProject createWebProject(final String name, final String earName) throws Exception {
- return createWebProject(name, earName, false);
- }
-
-
- /**
- * Creates a web project with optional EAR association.
- * @param name Web name.
- * @param earName EAR name; null for no EAR association.
- * @return The Web project.
- * @throws Exception
- */
- public static IProject createWebProject(final String name, final String earName, final boolean waitForBuildToComplete) throws Exception {
- return createWebProject(name, earName, J2EEVersionConstants.SERVLET_2_4, waitForBuildToComplete);
- }
-
- /**
- * Creates a web project with optional EAR association.
- * @param name Web name.
- * @param earName EAR name; null for no EAR association.
- * @param facetVersion The facet version.
- * @return The Web project.
- * @throws Exception
- */
- public static IProject createWebProject(final String name, final String earName, final int facetVersion, final boolean waitForBuildToComplete) throws Exception {
- final IDataModel dataModel = getWebCreationDataModel(name, earName, facetVersion);
- return createAndVerify(dataModel, name, J2EEProjectUtilities.DYNAMIC_WEB, earName, waitForBuildToComplete);
- }
-
- /**
- * Creates a Utility project with optional EAR association.
- * @param name Util name.
- * @param earName EAR name; null for no EAR association.
- * @return The utility project.
- * @throws Exception
- */
- public static IProject createUtilityProject(final String name, final String earName) throws Exception {
- return createUtilityProject(name, earName, false);
- }
-
- /**
- * Creates a Utility project with optional EAR association.
- * @param name Util name.
- * @param earName EAR name; null for no EAR association.
- * @return The utility project.
- * @throws Exception
- */
- public static IProject createUtilityProject(final String name, final String earName, final boolean waitForBuildToComplete) throws Exception {
- final IDataModel dataModel = getUtilityCreationDataModel(name, earName);
- return createAndVerify(dataModel, name, J2EEProjectUtilities.UTILITY, earName, waitForBuildToComplete);
- }
-
- /**
- * Creates an EJB project with optional EAR association.
- * @param name EJB name.
- * @param earName EAR name; null for no EAR association.
- * @return The EJB project.
- * @throws Exception
- */
- public static IProject createEJBProject(final String name, final String earName) throws Exception {
- return createEJBProject(name, earName, false);
- }
-
- /**
- * Creates an EJB project with optional EAR association.
- * @param name EJB name.
- * @param earName EAR name; null for no EAR association.
- * @return The EJB project.
- * @throws Exception
- */
- public static IProject createEJBProject(final String name, final String earName, final boolean waitForBuildToComplete) throws Exception {
- return createEJBProject(name, earName, J2EEVersionConstants.EJB_2_1_ID, waitForBuildToComplete);
- }
-
- /**
- * Creates an EJB project with optional EAR association.
- * @param name EJB name.
- * @param earName EAR name; null for no EAR association.
- * @param facetVersion The facet version.
- * @return The EJB project.
- * @throws Exception
- */
- public static IProject createEJBProject(final String name, final String earName, final int facetVersion, final boolean waitForBuildToComplete) throws Exception {
- final IDataModel dataModel = getEJBCreationDataModel(name, earName, facetVersion);
- return createAndVerify(dataModel, name, J2EEProjectUtilities.EJB, earName, waitForBuildToComplete);
- }
-
- /**
- * Creates an EJB project with optional EAR association.
- *
- * @param name
- * EJB name.
- * @param earName
- * EAR name; null for no EAR association.
- * @param facetModelProperties
- * this properties will be added to the facet model retrieved by
- * <code> FacetDataModelMap facetMap = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.EJB);</code>
- * This gives you the opportunity to control the creation of the
- * project without introducing new create* methods.
- * @param facetVersion
- * The facet version.
- * @return The EJB project.
- * @throws Exception
- */
- public static IProject createEJBProject(final String name, final String earName,
- Map<String, Object> facetModelProperties, final int facetVersion, final boolean waitForBuildToComplete)
- throws Exception {
- final IDataModel dataModel = getEJBCreationDataModel(name, earName, facetVersion);
- FacetDataModelMap facetMap = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.EJB);
- for (Map.Entry<String, Object> entry : facetModelProperties.entrySet()) {
- facetModel.setProperty(entry.getKey(), entry.getValue());
- }
- return createAndVerify(dataModel, name, J2EEProjectUtilities.EJB, earName, waitForBuildToComplete);
- }
-
- /**
- * Creates an EJB project with optional EAR association.
- * @param name EJB name.
- * @param earName EAR name; null for no EAR association.
- * @param clientName Client name; null for no client.
- * @param facetVersion The facet version.
- * @param waitForBuildToComplete
- * @return The EJB project.
- * @throws Exception
- */
- public static IProject createEJBProject(final String name, final String earName, final String clientName,
- final int facetVersion, final boolean waitForBuildToComplete) throws Exception {
- final IDataModel dataModel = getEJBCreationDataModel(name, earName, facetVersion);
- FacetDataModelMap facetMap = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.EJB);
- facetModel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- // only create client if given a client name, and is added to EAR
- if (clientName != null && earName != null) {
- facetModel.setBooleanProperty(IEjbFacetInstallDataModelProperties.CREATE_CLIENT, true);
- facetModel.setStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_NAME, clientName);
- }
- return createAndVerify(dataModel, name, J2EEProjectUtilities.EJB, earName, waitForBuildToComplete);
- }
-
- private static IDataModel getEARCreationDataModel(final String name, final int facetVersion) {
- final IDataModel model = DataModelFactory.createDataModel(new EARFacetProjectCreationDataModelProvider());
- configure(model, name, J2EEProjectUtilities.ENTERPRISE_APPLICATION, null, facetVersion, false);
- return model;
- }
-
- private static IDataModel getWebCreationDataModel(final String name, final String earName, final int facetVersion) {
- final IDataModel model = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- configure(model, name, J2EEProjectUtilities.DYNAMIC_WEB, earName, facetVersion, facetVersion == J2EEVersionConstants.SERVLET_2_5);
- return model;
- }
-
- private static IDataModel getUtilityCreationDataModel(final String name, final String earName) {
- final IDataModel model = DataModelFactory.createDataModel(new UtilityProjectCreationDataModelProvider());
- configure(model, name, J2EEProjectUtilities.UTILITY, earName, 0, false);
- return model;
- }
-
- private static IDataModel getEJBCreationDataModel(final String name, final String earName, final int facetVersion) {
- final IDataModel model = DataModelFactory.createDataModel(new EjbFacetProjectCreationDataModelProvider());
- configure(model, name, J2EEProjectUtilities.EJB, earName, facetVersion, facetVersion == J2EEVersionConstants.EJB_3_0_ID);
- return model;
- }
-
- private static void configure(final IDataModel model, final String name, final String facet, final String earName, final int facetVersion, final boolean isJEE5) {
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, name);
- final FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetDM = map.getFacetDataModel(facet);
- if (earName != null) {
- facetDM.setBooleanProperty(IJ2EEModuleFacetInstallDataModelProperties.ADD_TO_EAR, true);
- facetDM.setProperty(IJ2EEModuleFacetInstallDataModelProperties.EAR_PROJECT_NAME, earName);
- }
- if (facetVersion != 0) {
- String versionText = J2EEVersionUtil.convertVersionIntToString(facetVersion);
- facetDM.setStringProperty(IFacetDataModelProperties.FACET_VERSION_STR, versionText);
- }
- if (isJEE5) {
- facetDM = map.getFacetDataModel(J2EEProjectUtilities.JAVA);
- facetDM.setStringProperty(IFacetDataModelProperties.FACET_VERSION_STR, J2EEVersionConstants.VERSION_5_0_TEXT);
- }
- }
-
- private static IProject createAndVerify(final IDataModel model, final String projectName, final String type, final String earName, final boolean waitForBuildToComplete) throws Exception {
- // run the data model operation to create the projects
- OperationTestCase.runAndVerify(model,false,true, waitForBuildToComplete);
- // wait for any classpath update jobs
- ProjectUtil.waitForClasspathUpdate();
- // verify the EAR (if one was created)
- verifyProject(earName, J2EEProjectUtilities.ENTERPRISE_APPLICATION);
- // verify the module project
- return verifyProject(projectName, type);
- }
-
- private static IProject verifyProject(final String projectName, final String type) {
- if (projectName != null) {
- final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
- Assert.assertTrue("Failed to create project " + projectName, project.exists());
- Assert.assertTrue("Project not is of type " + type, JavaEEProjectUtilities.isProjectOfType(project, type));
- return project;
- }
- return null;
- }
-
- public static void waitForClasspathUpdate() {
- DependencyVerificationUtil.waitForClasspathUpdate();
- }
-
- private static ClasspathUpdateJobListener listener = new ClasspathUpdateJobListener();
-
- private static class ClasspathUpdateJobListener extends JobChangeAdapter {
-
- public boolean isDone = false;
-
- public ClasspathUpdateJobListener() {
- super();
- Job.getJobManager().addJobChangeListener(this);
- }
-
- public void done(IJobChangeEvent event) {
- Job job = event.getJob();
- if (job.getName().equals(J2EEComponentClasspathUpdater.MODULE_UPDATE_JOB_NAME)) {
- isDone = true;
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditFVTest.java
deleted file mode 100644
index 737fdeae..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditFVTest.java
+++ /dev/null
@@ -1,110 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import java.io.File;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.applicationclient.componentcore.util.AppClientArtifactEdit;
-import org.eclipse.jst.j2ee.client.ApplicationClient;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-public class AppClientArtifactEditFVTest extends TestCase {
-
- private IProject appClientProject;
- private String appClientModuleName;
-
-
- public AppClientArtifactEditFVTest() {
- super();
- if (TestWorkspace.init()) {
- appClientProject = TestWorkspace.getTargetProject(TestWorkspace.APP_CLIENT_PROJECT_NAME);
- appClientModuleName = TestWorkspace.APP_CLIENT_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testCreationDisposeFunction() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- edit.addListener(new EditModelListener() {
-
- public void editModelChanged(EditModelEvent anEvent) {
- pass();
-
- }
- });
- ApplicationClient client = edit.getApplicationClient();
- updateClient(client);
- edit.save(new NullProgressMonitor());
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private void updateClient(ApplicationClient client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
-
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- ApplicationClient appClient = edit.getApplicationClient();
- pass(appClient);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private static void pass(ApplicationClient appClient) {
- boolean pass = appClient.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && appClient.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && appClient.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void validateResource() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- //EList resourceList = wbComponent.getResources();
- //for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
- //}
- } finally {
- if (edit != null) {
- edit.dispose();
- }
-
- }
- }
-
- private ComponentResource createResourceComponent() {
- ComponentResource resourceComponent = ComponentcoreFactory.eINSTANCE.createComponentResource();
- File testFile = TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH.toFile();
- if (testFile.exists()) {
- resourceComponent.setRuntimePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- resourceComponent.setSourcePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- } else {
- fail("Missing: TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH");
- }
- return resourceComponent;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java
deleted file mode 100644
index eb4baa2d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java
+++ /dev/null
@@ -1,580 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.applicationclient.componentcore.util.AppClientArtifactEdit;
-import org.eclipse.jst.j2ee.internal.common.XMLResource;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.frameworks.internal.operations.IOperationHandler;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-public class AppClientArtifactEditTest extends TestCase {
- private IProject appClientProject;
- private String appClientModuleName;
- public static final String EDIT_MODEL_ID = "jst.app_client"; //$NON-NLS-1$
- private AppClientArtifactEdit artifactEditForRead;
- private ArtifactEditModel artifactEditModelForRead;
- private EditModelListener emListener;
-
-
-
- public class ApplicationArtifactTestSub extends AppClientArtifactEdit {
-
- public ApplicationArtifactTestSub(ArtifactEditModel anArtifactEditModel) {
- super(anArtifactEditModel);
- }
-
- protected void addAppClientIfNecessary(XMLResource aResource) {
- super.addAppClientIfNecessary(aResource);
- }
- }
-
- public void testAddCleint() {
- new ApplicationArtifactTestSub(null);
-
- }
-
- private IOperationHandler handler = new IOperationHandler() {
-
-
- public boolean canContinue(String message) {
- return false;
- }
-
-
- public boolean canContinue(String message, String[] items) {
-
- return false;
- }
-
- public int canContinueWithAllCheck(String message) {
-
- return 0;
- }
-
- public int canContinueWithAllCheckAllowCancel(String message) {
-
- return 0;
- }
-
- public void error(String message) {
-
-
- }
-
- public void inform(String message) {
-
-
- }
-
-
- public Object getContext() {
-
- return null;
- }
- };
-
-
-
- public AppClientArtifactEditTest() {
- super();
-
- if (TestWorkspace.init()) {
- appClientProject = TestWorkspace.getTargetProject(TestWorkspace.APP_CLIENT_PROJECT_NAME);
- appClientModuleName = TestWorkspace.APP_CLIENT_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testGetJ2EEVersion() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- int version = edit.getJ2EEVersion();
- Integer integer = new Integer(version);
- assertTrue(integer.equals(TestWorkspace.APP_CLIENT_PROJECT_VERSION));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
-
- public void testGetDeploymentDescriptorResource() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- String uri = edit.getDeploymentDescriptorResource().getURI().toString();
- assertTrue(uri.equals(TestWorkspace.APP_CLIENT_DD_RESOURCE_URI));
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetDeploymentDescriptorRoot() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- EObject object = edit.getDeploymentDescriptorRoot();
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
- public void testCreateModelRoot() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- EObject object = edit.createModelRoot();
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testCreateModelRootint() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- EObject object = edit.createModelRoot(14);
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testAppClientArtifactEditComponentHandleboolean() {
- AppClientArtifactEdit edit = null;
- try {
- edit = new AppClientArtifactEdit(appClientProject, true);
- assertNotNull(edit);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- /*
- * Class under test for void AppClientArtifactEdit(ArtifactEditModel)
- */
- public void testAppClientArtifactEditArtifactEditModel() {
- AppClientArtifactEdit edit = new AppClientArtifactEdit(getArtifactEditModelforRead());
- assertNotNull(edit);
- edit.dispose();
- }
-
- // /////////////////BUG//////////////
-
- public void testGetApplicationClientXmiResource() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- String uri = edit.getApplicationClientXmiResource().getURI().toString();
- // THIS IS A BUG\\ - commmenting out as suggested by DW
- boolean testURI = uri.equals(TestWorkspace.APP_CLIENT_DD_XMI_RESOURCE_URI);
- // assertTrue(uri.equals(TestWorkspace.APP_CLIENT_DD_XMI_RESOURCE_URI));
- } catch (Exception e) {
- // TODO
- }
-
- finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- public void testAddAppClientIfNecessary() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- Resource resource = edit.getDeploymentDescriptorResource();
- AppClientArtifactEdit edit2 = new AppClientArtifactEdit(getArtifactEditModelforRead()) {
- protected void addAppClientIfNecessary(XMLResource aResource) {
- super.addAppClientIfNecessary(aResource);
- }
- };
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- pass(); // protected - not sure if needed
- }
-
- public void testCreateNewModule() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- Module module = edit.createNewModule();
- assertNotNull(module);
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetApplicationClient() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- EObject obj = edit.getApplicationClient();
- assertNotNull(obj);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetAppClientArtifactEditForReadComponentHandle() {
- StructureEdit moduleCore = null;
- AppClientArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForRead(appClientProject);
- WorkbenchComponent wbComponent = moduleCore.getComponent();
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- assertTrue(edit != null);
-
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
-
- }
- }
-
-
- public void testGetAppClientArtifactEditForWriteComponentHandle() {
- StructureEdit moduleCore = null;
- AppClientArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForWrite(appClientProject);
- WorkbenchComponent wbComponent = moduleCore.getComponent();
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
-
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-
- public void testGetAppClientArtifactEditForReadWorkbenchComponent() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetAppClientArtifactEditForWriteWorkbenchComponent() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testIsValidApplicationClientModule() {
- IVirtualComponent component = ComponentCore.createComponent(appClientProject, appClientModuleName);
- assertTrue(ArtifactEdit.isValidEditableModule(component));
- }
-
- public void testSave() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- try {
- edit.save(new NullProgressMonitor());
- } catch (Exception e) {
- fail(e.getMessage());
- }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- assertTrue(true);
- }
-
- public void testSaveIfNecessary() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- try {
- edit.saveIfNecessary(new NullProgressMonitor());
- } catch (Exception e) {
- fail(e.getMessage());
- }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- assertTrue(true);
- }
-
- public void testSaveIfNecessaryWithPrompt() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForWrite(appClientProject);
- try {
- edit.saveIfNecessaryWithPrompt(new NullProgressMonitor(), handler, true);
- } catch (Exception e) {
- fail(e.getMessage());
- }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- pass();
- }
- }
-
- public void testDispose() {
- AppClientArtifactEdit edit;
- try {
- edit = new AppClientArtifactEdit(getArtifactEditModelforRead());
- edit.dispose();
- } catch (Exception e) {
- fail(e.getMessage());
- }
- pass();
- }
-
- // //////////BUG////////////////
-
- public void testGetContentModelRoot() {
- AppClientArtifactEdit edit = null;
- try {
- edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(appClientProject);
- // THIS IS A BUG\\ - commmenting out as suggested by DW
- Object object = edit.getContentModelRoot();
- // assertNotNull(object);
- pass();
- } catch (Exception e) {
- e.printStackTrace();
- // fail(e.getMessage());
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testAddListener() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- try {
- edit.addListener(getEmListener());
- } catch (Exception e) {
- fail(e.getMessage());
- }
- pass();
- edit.dispose();
- }
-
- public EditModelListener getEmListener() {
- if (emListener == null)
- emListener = new EditModelListener() {
- public void editModelChanged(EditModelEvent anEvent) {
- //Default
- }
- };
- return emListener;
- }
-
- public void testRemoveListener() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- try {
- edit.removeListener(getEmListener());
- } catch (Exception e) {
- fail(e.getMessage());
- }
- edit.dispose();
- pass();
- }
-
- public void testHasEditModel() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- assertTrue(edit.hasEditModel(artifactEditModelForRead));
- edit.dispose();
- }
-
- public void testGetArtifactEditModel() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- assertTrue(edit.hasEditModel(artifactEditModelForRead));
- edit.dispose();
- }
-
- public void testObject() {
- pass();
- }
-
- public void testGetClass() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- assertNotNull(edit.getClass());
- edit.dispose();
- }
-
- public void testHashCode() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- int y = -999999999;
- int x = edit.hashCode();
- assertTrue(x != y);
- edit.dispose();
- }
-
- public void testEquals() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- assertTrue(getArtifactEditForRead().equals(artifactEditForRead));
- edit.dispose();
- }
-
- public void testClone() {
- pass();
- }
-
- public void testToString() {
- AppClientArtifactEdit edit = getArtifactEditForRead();
- assertTrue(getArtifactEditForRead().toString() != null);
- edit.dispose();
- }
-
- public void testNotify() {
- try {
- synchronized (getArtifactEditForRead()) {
- artifactEditForRead.notify();
- }
- } catch (Exception e) {
- fail(e.getMessage());
- }
- artifactEditForRead.dispose();
- pass();
- }
-
- public void testNotifyAll() {
- try {
- synchronized (getArtifactEditForRead()) {
- artifactEditForRead.notifyAll();
- }
- } catch (Exception e) {
- fail(e.getMessage());
- } finally {
- artifactEditForRead.dispose();
- }
- pass();
- }
-
-
- public void testWaitlong() {
- long x = 2;
- try {
- synchronized (getArtifactEditForRead()) {
- getArtifactEditForRead().wait(x);
- }
- } catch (Exception e) {
- // fail(e.getMessage());
- } finally {
- artifactEditForRead.dispose();
- }
- pass();
- }
-
-
- public void testWaitlongint() {
- int x = 2;
- try {
- synchronized (getArtifactEditForRead()) {
- getArtifactEditForRead().wait(x);
- }
- } catch (Exception e) {
- // fail(e.getMessage());
- } finally {
- artifactEditForRead.dispose();
- }
- pass();
- }
-
-
- public void testWait() {
- try {
- synchronized (getArtifactEditForRead()) {
- getArtifactEditForRead().wait();
- }
- } catch (Exception e) {
- // fail(e.getMessage());
- } finally {
- artifactEditForRead.dispose();
- }
- pass();
-
- }
-
- public void testFinalize() {
- pass();
- }
-
- public void pass() {
- assertTrue(true);
- }
-
- public ArtifactEditModel getArtifactEditModelforRead() {
- EMFWorkbenchContext context = new EMFWorkbenchContext(appClientProject);
- artifactEditModelForRead = new ArtifactEditModel(EDIT_MODEL_ID, context, true, TestWorkspace.APP_CLIENT_MODULE_URI);
- return artifactEditModelForRead;
- }
-
-
-
- public AppClientArtifactEdit getArtifactEditForRead() {
- artifactEditForRead = new AppClientArtifactEdit(getArtifactEditModelforRead());
- return artifactEditForRead;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/ConnectorArtifactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/ConnectorArtifactEditFVTest.java
deleted file mode 100644
index c0bee8af..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/ConnectorArtifactEditFVTest.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import java.io.File;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.client.ApplicationClient;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.modulecore.util.ConnectorArtifactEdit;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-public class ConnectorArtifactEditFVTest extends TestCase {
- private IProject jcaProject;
- private String jcaModuleName;
-
-
- public ConnectorArtifactEditFVTest() {
- super();
-
- if (TestWorkspace.init()) {
- jcaProject = TestWorkspace.getTargetProject(TestWorkspace.JCA_PROJECT_NAME);
- jcaModuleName = TestWorkspace.JCA_MODULE_NAME;
- } else {
- fail();
-
- }
-
- }
-
- public void testCreationDisposeFunction() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForWrite(jcaProject);
- edit.addListener(new EditModelListener() {
- public void editModelChanged(EditModelEvent anEvent) {
- pass();
- }
- });
- Connector client = edit.getConnector();
- updateClient(client);
- edit.save(new NullProgressMonitor());
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private void updateClient(Connector client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
-
- }
- private static void pass(Connector client) {
- boolean pass = client.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && client.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && client.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForWrite(jcaProject);
- Connector jca = edit.getConnector();
- pass(jca);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private static void pass(ApplicationClient jca) {
- boolean pass = jca.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && jca.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && jca.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void validateResource() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForWrite(jcaProject);
-// EList resourceList = wbComponent.getResources();
-// for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
-// }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private ComponentResource createResourceComponent() {
- ComponentResource resourceComponent = ComponentcoreFactory.eINSTANCE.createComponentResource();
- File testFile = TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH.toFile();
- if (testFile.exists()) {
- resourceComponent.setRuntimePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- resourceComponent.setSourcePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- } else {
- fail("Missing: TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH");
- }
- return resourceComponent;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/ConnectorArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/ConnectorArtifactEditTest.java
deleted file mode 100644
index 3cf9749c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/ConnectorArtifactEditTest.java
+++ /dev/null
@@ -1,243 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.jca.modulecore.util.ConnectorArtifactEdit;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-public class ConnectorArtifactEditTest extends TestCase {
-
- private IProject jcaProject;
- private String jcaModuleName;
-
-
- public ConnectorArtifactEditTest() {
- super();
-
- if (TestWorkspace.init()) {
- jcaProject = TestWorkspace.getTargetProject(TestWorkspace.JCA_PROJECT_NAME);
- jcaModuleName = TestWorkspace.JCA_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testGetJ2EEVersion() {
- IVirtualComponent vc = ComponentCore.createComponent(jcaProject);
- assertTrue(J2EEProjectUtilities.getJ2EEProjectVersion(vc.getProject()).equals(TestWorkspace.JCA_PROJECT_VERSION));
- }
-
- public void testGetDeploymentDescriptorResource() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- String uri = edit.getDeploymentDescriptorResource().getURI().toString();
- assertTrue(uri.equals(TestWorkspace.JCA_DD_RESOURCE_URI));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
- public void testCreateModelRoot() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForWrite(jcaProject);
- EObject object = edit.createModelRoot();
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
- public void testCreateModelRootint() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- EObject object = edit.createModelRoot(14);
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
- public void testConnectorArtifactEditComponentHandleboolean() {
- StructureEdit moduleCore = null;
- WorkbenchComponent wbComponent = null;
- ConnectorArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForWrite(jcaProject);
- wbComponent = moduleCore.getComponent();
- edit = new ConnectorArtifactEdit(jcaProject, true);
- assertNotNull(edit);
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
- }
-
- }
-
- public void testConnectorArtifactEditArtifactEditModel() {
- ConnectorArtifactEdit edit = new ConnectorArtifactEdit(getArtifactEditModelforRead());
- assertNotNull(edit);
- edit.dispose();
- }
-
-
- public void testGetConnectorArtifactEditForReadComponentHandle() {
- StructureEdit moduleCore = null;
- ConnectorArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForRead(jcaProject);
- WorkbenchComponent wbComponent = moduleCore.getComponent();
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- assertTrue(edit != null);
-
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
-
- }
- }
-
-
- public void testGetConnectorArtifactEditForWriteComponentHandle() {
- StructureEdit moduleCore = null;
- ConnectorArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForWrite(jcaProject);
- WorkbenchComponent wbComponent = moduleCore.getComponent();
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForWrite(jcaProject);
-
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-
- public void testGetConnectorArtifactEditForReadWorkbenchComponent() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetConnectorArtifactEditForWriteWorkbenchComponent() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForWrite(jcaProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testIsValidConnectorModule() {
- IVirtualComponent component = ComponentCore.createComponent(jcaProject);
- assertTrue(ArtifactEdit.isValidEditableModule(component));
- }
-
- public void testGetConnectorXmiResource() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- String uri = edit.getDeploymentDescriptorResource().getURI().toString();
- assertTrue(uri.equals(TestWorkspace.JCA_DD_RESOURCE_URI));
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-
- public void testAddApplicationIfNecessary() {
- pass(); // protected method
- }
-
- public void pass() {
- assertTrue(true);
- }
-
- public ArtifactEditModel getArtifactEditModelforRead() {
- EMFWorkbenchContext context = new EMFWorkbenchContext(jcaProject);
- return new ArtifactEditModel(this.toString(), context, true, TestWorkspace.JCA_MODULE_URI);
- }
-
-
-
- public ConnectorArtifactEdit getArtifactEditForRead() {
- return new ConnectorArtifactEdit(getArtifactEditModelforRead());
- }
-
-
-
- public void testGetDeploymentDescriptorRoot() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- Object obj = edit.getDeploymentDescriptorRoot();
- assertNotNull(obj);
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testAddConnectorIfNecessary() {
- pass(); // protected method need to get clarification
- }
-
-
-
- public void testGetConnector() {
- ConnectorArtifactEdit edit = null;
- try {
- edit = ConnectorArtifactEdit.getConnectorArtifactEditForRead(jcaProject);
- Object obj = edit.getConnector();
- assertNotNull(obj);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EARArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EARArtifactEditTest.java
deleted file mode 100644
index 9c079b56..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EARArtifactEditTest.java
+++ /dev/null
@@ -1,347 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.UnresolveableURIException;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-public class EARArtifactEditTest extends TestCase {
-
- private IProject earProject;
- private String earModuleName;
-
- public EARArtifactEditTest() {
- super();
-
- if (TestWorkspace.init()) {
- earProject = TestWorkspace.getTargetProject(TestWorkspace.EAR_PROJECT_NAME);
- earModuleName = TestWorkspace.EAR_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testGetJ2EEVersion() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- int version = edit.getJ2EEVersion();
- Integer integer = new Integer(version);
- assertTrue(integer.equals(TestWorkspace.EAR_PROJECT_VERSION));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetJ2EEModuleReferences() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- IVirtualReference[] j2eeModuleRefs = edit.getJ2EEModuleReferences();
- assertTrue(j2eeModuleRefs.length>0);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetDeploymentDescriptorResource() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- String uri = edit.getDeploymentDescriptorResource().getURI().toString();
- assertTrue(uri.equals(TestWorkspace.EAR_DD_RESOURCE_URI));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- public void testCreateModelRoot() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForWrite(earProject);
- EObject object = edit.createModelRoot();
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-
- public void testCreateModelRootint() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- EObject object = edit.createModelRoot(14);
- assertNotNull(object);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-
- public void testEARArtifactEditComponentHandleboolean() {
- StructureEdit moduleCore = null;
- WorkbenchComponent wbComponent = null;
- EnterpriseArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForWrite(earProject);
- wbComponent = moduleCore.getComponent();
- edit = new EARArtifactEdit(earProject, true);
- assertNotNull(edit);
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
- }
-
- }
-
- public void testEARArtifactEditArtifactEditModel() {
- EnterpriseArtifactEdit edit = new EARArtifactEdit(getArtifactEditModelforRead());
- assertNotNull(edit);
- edit.dispose();
- }
-
-
- public void testGetEARArtifactEditForReadComponentHandle() {
- StructureEdit moduleCore = null;
- EnterpriseArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForRead(earProject);
- WorkbenchComponent wbComponent = moduleCore.getComponent();
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- assertTrue(edit != null);
-
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
-
- }
- }
-
-
- public void testGetEARArtifactEditForWriteComponentHandle() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForWrite(earProject);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-
- public void testGetEARArtifactEditForReadWorkbenchComponent() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
- public void testGetEARArtifactEditForWriteWorkbenchComponent() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForWrite(earProject);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- public void testIsValidEARModule() {
- IVirtualComponent component = null;
- try {
- component = ComponentCore.createComponent(earProject, earModuleName);
- EARArtifactEdit.isValidEARModule(component);
- } catch (UnresolveableURIException e) {
- e.printStackTrace();
- }
- boolean isValid = ArtifactEdit.isValidEditableModule(component);
- assertTrue(isValid);
- }
-
- public void testIsValidEAREditableModule() {
- IVirtualComponent component = null;
- try {
- component = ComponentCore.createComponent(earProject, earModuleName);
- EARArtifactEdit.isValidEARModule(component);
- } catch (UnresolveableURIException e) {
- e.printStackTrace();
- }
- boolean isValid = ArtifactEdit.isValidEditableModule(component);
- assertTrue(isValid);
- }
-
- public void testGetApplicationXmiResource() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- String uri = edit.getApplicationXmiResource().getURI().toString();
- assertTrue(uri.equals(TestWorkspace.EAR_DD_RESOURCE_URI));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
-
- }
- }
-
- public void testGetApplication() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- edit.createModelRoot();
- EObject obj = edit.getApplication();
- assertNotNull(obj);
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
-
- }
- }
-
- public void testAddApplicationIfNecessary() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
-
- // /Bug
- /*
- * assertTrue(edit.uriExists(TestWorkspace.EJB_MODULE_URI.toString()));
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- pass(); // protected method
- }
-
- // ///////////////BUG Workbench Module not initalized\\\\\\\\\\\\\\\\\\\\\\
- public void testUriExists() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- boolean uriExist = edit.uriExists(TestWorkspace.EJB_MODULE_URI.toString());
- // /Bug
- /*
- * assertTrue(edit.uriExists(TestWorkspace.EJB_MODULE_URI.toString()));
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- // ///////////////////BUG ClassCastException \\\\\\\\\\\\\\\\\\\\
-
- public void testGetWorkbenchUtilModules() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- edit.getUtilityModuleReferences();
- // //////////////classcast exception
- /*
- * assertNotNull(edit.getWorkbenchUtilModules(wbComponent));
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- // ///////////////////BUG ClassCastException \\\\\\\\\\\\\\\\\\\\
- public void testGetWorkbenchJ2EEModules() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForRead(earProject);
- edit.getJ2EEModuleReferences();
- // classCast
- // assertNotNull(edit.getWorkbenchJ2EEModules(wbComponent));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
-
-
- }
- }
-
- public void pass() {
- assertTrue(true);
- }
-
- public ArtifactEditModel getArtifactEditModelforRead() {
- EMFWorkbenchContext context = new EMFWorkbenchContext(earProject);
- return new ArtifactEditModel(this.toString(), context, true, TestWorkspace.APP_CLIENT_MODULE_URI);
- }
-
-
-
- public EnterpriseArtifactEdit getArtifactEditForRead() {
- return new EARArtifactEdit(getArtifactEditModelforRead());
- }
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EJBArtifactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EJBArtifactEditFVTest.java
deleted file mode 100644
index 752f429f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EJBArtifactEditFVTest.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import java.io.File;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.ejb.EJBJar;
-import org.eclipse.jst.j2ee.ejb.componentcore.util.EJBArtifactEdit;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-public class EJBArtifactEditFVTest extends TestCase {
-
- private IProject ejbProject;
- private String ejbModuleName;
-
- public EJBArtifactEditFVTest() {
- super();
-
- if (TestWorkspace.init()) {
- ejbProject = TestWorkspace.getTargetProject(TestWorkspace.EJB_PROJECT_NAME);
- ejbModuleName = TestWorkspace.EJB_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testCreationDisposeFunction() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(ejbProject);
- edit.addListener(new EditModelListener() {
- public void editModelChanged(EditModelEvent anEvent) {
- pass();
- }
- });
- EJBJar client = edit.getEJBJar();
- updateClient(client);
- edit.save(new NullProgressMonitor());
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private void updateClient(EJBJar client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
-
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(ejbProject);
- EJBJar ejb = edit.getEJBJar();
- pass(ejb);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private static void pass(EJBJar ejb) {
- boolean pass = ejb.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && ejb.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && ejb.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void validateResource() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(ejbProject);
-// EList resourceList = wbComponent.getResources();
-// for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
-// }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private ComponentResource createResourceComponent() {
- ComponentResource resourceComponent = ComponentcoreFactory.eINSTANCE.createComponentResource();
- File testFile = TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH.toFile();
- if (testFile.exists()) {
- resourceComponent.setRuntimePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- resourceComponent.setSourcePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- } else {
- fail("Missing: TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH");
- }
- return resourceComponent;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EJBArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EJBArtifactEditTest.java
deleted file mode 100644
index 159a9e72..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EJBArtifactEditTest.java
+++ /dev/null
@@ -1,345 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.ejb.EJBJar;
-import org.eclipse.jst.j2ee.ejb.componentcore.util.EJBArtifactEdit;
-import org.eclipse.jst.j2ee.internal.common.XMLResource;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-public class EJBArtifactEditTest extends TestCase {
-
- private IProject ejbProject;
- private String ejbModuleName;
-
- public EJBArtifactEditTest() {
- super();
-
- if (TestWorkspace.init()) {
- ejbProject = TestWorkspace.getTargetProject(TestWorkspace.EJB_PROJECT_NAME);
- ejbModuleName = TestWorkspace.EJB_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testGetJ2EEVersion() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- String version = new Integer(edit.getJ2EEVersion()).toString();
- assertTrue(version.equals(TestWorkspace.EJB_PROJECT_VERSION));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetDeploymentDescriptorResource() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- String uri = edit.getDeploymentDescriptorResource().getURI().toString();
- assertTrue(uri.equals(TestWorkspace.EJB_DD_RESOURCE_URI));
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- // /////BUG in PlatformURL\\\\\\\\\\\
-
- public void testGetDeploymentDescriptorRoot() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- edit.getDeploymentDescriptorRoot();
- // /////BUG in PlatformURL\\\\\\\\\\\turning test off////
- /*
- * EObject object = edit.getDeploymentDescriptorRoot(); assertNotNull(object);
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- // /////////////BUG in PlatformURL\\\\\\\\\\\
-
-
- public void testCreateModelRoot() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(ejbProject);
- edit.createModelRoot();
- // ////BUG turning off\\\\\\\\\\\\\
- /*
- * EObject object = edit.createModelRoot(); assertNotNull(object);
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for EObject createModelRoot(int)
- */
- // ///////////////BUG in PlatformURLModuleConnection
- public void testCreateModelRootint() {
- EnterpriseArtifactEdit edit = null;
- try {
- // ///////BUG in PlatformURLModuleConnection
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- edit.createModelRoot(14);
- /*
- * EObject object = edit.createModelRoot(14); assertNotNull(object);
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for void EJBArtifactEdit(ComponentHandle, boolean)
- */
- public void testEJBArtifactEditComponentHandleboolean() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = new EJBArtifactEdit(ejbProject, true);
- assertNotNull(edit);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- /*
- * Class under test for void EJBArtifactEdit(ArtifactEditModel)
- */
- public void testEJBArtifactEditArtifactEditModel() {
- EnterpriseArtifactEdit edit = new EJBArtifactEdit(getArtifactEditModelforRead());
- assertNotNull(edit);
- edit.dispose();
- }
-
- public void testGetEJBJarXmiResource() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- String uri = edit.getEJBJarXmiResource().toString();
- // THIS IS A BUG\\ - commmenting out as suggested by DW
- // assertTrue(uri.equals(TestWorkspace.EJB_DD_XMI_RESOURCE_URI));
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- // //////////////Bug turning test off\\\\\\\\\\\
-
- public void testHasEJBClientJARProject() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- edit.hasEJBClientJARProject();
- // /////BUG\\\\\\\\\\\
- // boolean bool = edit.hasEJBClientJARProject(ejbProject);
- // assertEquals(bool, true);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testCreateNewModule() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- Module module = edit.createNewModule();
- assertNotNull(module);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- // /////////////////bug\\\\\\\\\\\\\
-
- public void testGetEJBClientJarModule() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- edit.getEJBClientJarModule();
- // /////////bug\\\\\\\\
- // WorkbenchComponent comp = edit.getEJBClientJarModule(ejbProject);
- // assertNotNull(comp);
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetEJBJar() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- EJBJar jar = edit.getEJBJar();
- assertNotNull(jar);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetDeploymenyDescriptorType() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- int type = edit.getDeploymentDescriptorType();
- assertTrue(type >= 0);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testAddEJBJarIfNecessary() {
- EnterpriseArtifactEdit test = new EJBArtifactEdit(getArtifactEditModelforRead()) {
- protected void addEJBJarIfNecessary(XMLResource aResource) {
- // TODO add test
- super.addEJBJarIfNecessary(aResource);
- }
-
- public void test() {
- addEJBJarIfNecessary(null);
- }
- };
-
- }
-
- /*
- * Class under test for EJBArtifactEdit getEJBArtifactEditForRead(ComponentHandle)
- */
- public void testGetEJBArtifactEditForReadComponentHandle() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- /*
- * Class under test for EJBArtifactEdit getEJBArtifactEditForWrite(ComponentHandle)
- */
- public void testGetEJBArtifactEditForWriteComponentHandle() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(ejbProject);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for EJBArtifactEdit getEJBArtifactEditForRead(WorkbenchComponent)
- */
- public void testGetEJBArtifactEditForReadWorkbenchComponent() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- /*
- * Class under test for EJBArtifactEdit getEJBArtifactEditForWrite(WorkbenchComponent)
- */
- public void testGetEJBArtifactEditForWriteWorkbenchComponent() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(ejbProject);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- public void testIsValidEJBModule() {
- IVirtualComponent component = ComponentCore.createComponent(ejbProject,ejbModuleName);
- boolean valid = ArtifactEdit.isValidEditableModule(component);
- assertTrue(valid);
- }
-
- public ArtifactEditModel getArtifactEditModelforRead() {
- EMFWorkbenchContext context = new EMFWorkbenchContext(ejbProject);
- return new ArtifactEditModel(this.toString(), context, true, TestWorkspace.APP_CLIENT_MODULE_URI);
- }
-
- public EnterpriseArtifactEdit getArtifactEditForRead() {
- return new EJBArtifactEdit(getArtifactEditModelforRead());
- }
-
- public void pass() {
- assertTrue(true);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EarArtiFactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EarArtiFactEditFVTest.java
deleted file mode 100644
index c4b35686..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EarArtiFactEditFVTest.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import java.io.File;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.client.ApplicationClient;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-public class EarArtiFactEditFVTest extends TestCase {
-
-
-
- private IProject earProject;
- private String earModuleName;
-
- public EarArtiFactEditFVTest() {
- super();
-
- if (TestWorkspace.init()) {
- earProject = TestWorkspace.getTargetProject(TestWorkspace.EAR_PROJECT_NAME);
- earModuleName = TestWorkspace.EAR_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testCreationDisposeFunction() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForWrite(earProject);
- edit.addListener(new EditModelListener() {
- public void editModelChanged(EditModelEvent anEvent) {
- pass();
- }
- });
- Application client = edit.getApplication();
- updateClient(client);
- edit.save(new NullProgressMonitor());
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private void updateClient(Application client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
-
- }
- private static void pass(Application client) {
- boolean pass = client.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && client.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && client.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- EARArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForWrite(earProject);
- Application ear = edit.getApplication();
- pass(ear);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private static void pass(ApplicationClient ear) {
- boolean pass = ear.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && ear.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && ear.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void validateResource() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = EARArtifactEdit.getEARArtifactEditForWrite(earProject);
-// EList resourceList = wbComponent.getResources();
-// for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
-// }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private ComponentResource createResourceComponent() {
- ComponentResource resourceComponent = ComponentcoreFactory.eINSTANCE.createComponentResource();
- File testFile = TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH.toFile();
- if (testFile.exists()) {
- resourceComponent.setRuntimePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- resourceComponent.setSourcePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
- } else {
- fail("Missing: TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH");
- }
- return resourceComponent;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EnterpriseArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EnterpriseArtifactEditTest.java
deleted file mode 100644
index 951b53a1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/EnterpriseArtifactEditTest.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit;
-import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-public class EnterpriseArtifactEditTest extends TestCase {
-
- private IProject earProject;
- private String earModuleName;
-
- public EnterpriseArtifactEditTest() {
- super();
- if (TestWorkspace.init()) {
- earProject = TestWorkspace.getTargetProject(TestWorkspace.EAR_PROJECT_NAME);
- earModuleName = TestWorkspace.EAR_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testEnterpriseArtifactEditComponentHandleboolean() {
- StructureEdit moduleCore = null;
- WorkbenchComponent wbComponent = null;
- EnterpriseArtifactEdit edit = null;
- try {
- moduleCore = StructureEdit.getStructureEditForWrite(earProject);
- wbComponent = moduleCore.getComponent();
- edit = new EARArtifactEdit(earProject, true);
- assertNotNull(edit);
- } finally {
- if (moduleCore != null) {
- moduleCore.dispose();
- edit.dispose();
- }
- }
- }
-
- public void testEnterpriseArtifactEditArtifactEditModel() {
- EnterpriseArtifactEdit edit = new EARArtifactEdit(getArtifactEditModelforRead());
- assertNotNull(edit);
- edit.dispose();
- }
-
-
- //////////BUG
-
- public void testGetDeploymentDescriptorRoot() {
- EnterpriseArtifactEdit edit = null;
- try {
- edit = new EARArtifactEdit(earProject,true);
- edit.getDeploymentDescriptorRoot();
- //////////////////////////BUG\\\\\\\\\\\
- //assertNotNull(edit.getDeploymentDescriptorRoot());
- } catch (Exception e) {
- // TODO fail();
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public ArtifactEditModel getArtifactEditModelforRead() {
- EMFWorkbenchContext context = new EMFWorkbenchContext(earProject);
- return new ArtifactEditModel(this.toString(), context, true, TestWorkspace.APP_CLIENT_MODULE_URI);
- }
-
-
-
- public EnterpriseArtifactEdit getArtifactEditForRead() {
- return new EARArtifactEdit(getArtifactEditModelforRead());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/J2EEArtifactEditAPIAllTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/J2EEArtifactEditAPIAllTest.java
deleted file mode 100644
index 588c614f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/J2EEArtifactEditAPIAllTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.common.frameworks.artifactedit.tests.ArtifactEditAPITests;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-public class J2EEArtifactEditAPIAllTest extends TestSuite {
-
-
-
- public static Test suite() {
- return new ArtifactEditAPITests();
- }
-
- public J2EEArtifactEditAPIAllTest() {
- super();
- addTest(new SimpleTestSuite(AppClientArtifactEditTest.class));
- //addTest(new SimpleTestSuite(AppClientArtifactEditFVTest.class));
- addTest(new SimpleTestSuite(ConnectorArtifactEditTest.class));
- //addTest(new SimpleTestSuite(ConnectorArtifactEditFVTest.class));
- addTest(new SimpleTestSuite(EARArtifactEditTest.class));
- //addTest(new SimpleTestSuite(EarArtiFactEditFVTest.class));
- addTest(new SimpleTestSuite(WebArtifactEditTest.class));
- //addTest(new SimpleTestSuite(WebArtifactEditFVTest.class));
- addTest(new SimpleTestSuite(EJBArtifactEditTest.class));
- //addTest(new SimpleTestSuite(EJBArtifactEditFVTest.class));
- addTest(new SimpleTestSuite(EnterpriseArtifactEditTest.class));
- addTest(new SimpleTestSuite(WSDDArtifactEditFVTest.class));
-
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/JaxRPCMapArtifactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/JaxRPCMapArtifactEditFVTest.java
deleted file mode 100644
index 68ec6e58..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/JaxRPCMapArtifactEditFVTest.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.internal.webservice.componentcore.util.JaxRPCMapArtifactEdit;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServices;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-
-public class JaxRPCMapArtifactEditFVTest extends TestCase {
-
- private IProject webProject;
- private String webModuleName;
- private String serverContextData = TestWorkspace.WEB_SERVER_CONTEXT_ROOT + "Test";
-
- public JaxRPCMapArtifactEditFVTest() {
- super();
- if (TestWorkspace.init()) {
- webProject = TestWorkspace.getTargetProject(TestWorkspace.WEB_PROJECT_NAME);
- webModuleName = TestWorkspace.WEB_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- private void updateClient(WebServices client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
-
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- JaxRPCMapArtifactEdit jaxedit = null;
- WebArtifactEdit webedit = null;
-
- IVirtualComponent comp = ComponentCore.createComponent(webProject,webModuleName);
-
- jaxedit = JaxRPCMapArtifactEdit.getJaxRPCMapArtifactEditForRead(comp);
- jaxedit.getDeploymentDescriptorRoot("WebArtifactEditTest/WebArtifactEditModule/WebContent/WEB-INF/testmap.xml");
- jaxedit.dispose();
- webedit = WebArtifactEdit.getWebArtifactEditForWrite(comp);
- WebApp webapp = webedit.getWebApp();
- webedit.saveIfNecessary(null);
- webedit.dispose();
- }
-
- private static void pass(WebServices webservice) {
- boolean pass = webservice.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) &&
- webservice.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) &&
- webservice.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void validateResource() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
-// EList resourceList = wbComponent.getResources();
-// for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
-// }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
-
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/TestWorkspace.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/TestWorkspace.java
deleted file mode 100644
index ece9eba2..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/TestWorkspace.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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.jst.j2ee.flexible.project.apitests.artifactedit;
-
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.etools.common.test.apitools.ProjectUnzipUtil;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-
-
-public class TestWorkspace {
-
- public static final String EAR_PROJECT_NAME = "EARArtifactEditTest"; //$NON-NLS-1$
- public static final String EAR_MODULE_NAME = "EARArtifactModule";//$NON-NLS-1$
- public static final String EAR_PROJECT_VERSION = "1.4"; //$NON-NLS-1$
- public static final String EAR_DD_RESOURCE_URI = "platform:/resource/EARArtifactModule/EARArtifactModule/META-INF/application.xml"; //$NON-NLS-1$
- public static final String EAR_DD_XMI_RESOURCE_URI = "platform:/resource//EARArtifactEditTest/EARArtifactModule/ejbModule/META-INF/ejb-jar.xmi";//$NON-NLS-1$
- public static final URI EAR_MODULE_URI = URI.createURI("module:/resource/EARArtifactEditTest/EARArtifactModule");
-
- public static final String APP_CLIENT_PROJECT_NAME = "ApplicationClientArtifactEditTest"; //$NON-NLS-1$
- public static final String APP_CLIENT_MODULE_NAME = "ApplicationClientModule"; //$NON-NLS-1$
- public static final String APP_CLIENT_PROJECT_VERSION = "1.4";//$NON-NLS-1$
- public static final String APP_CLIENT_DD_RESOURCE_URI = "platform:/resource/ApplicationClientModule/ApplicationClientModule/appClientModule/META-INF/application-client.xml";//$NON-NLS-1$
- public static final String APP_CLIENT_DD_XMI_RESOURCE_URI = "platform:/resource/ApplicationClientModule/ApplicationClientModule/appClientModule/META-INF/application-client.xmi";//$NON-NLS-1$
- public static final URI APP_CLIENT_MODULE_URI = URI.createURI("module:/resource/ApplicationClientArtifactEditTest/ApplicationClientModule");//$NON-NLS-1$
-
- public static final String EJB_PROJECT_NAME = "EJBArtifactEditTest"; //$NON-NLS-1$
- public static final String EJB_MODULE_NAME = "EJBArtifactEditModule";//$NON-NLS-1$
- public static final String EJB_PROJECT_VERSION = "2.1"; //$NON-NLS-1$
- public static final String EJB_DD_RESOURCE_URI = "platform:/resource/EARArtifactEditTest/EARArtifactModule/META-INF/application.xml";//$NON-NLS-1$
- public static final String EJB_DD_XMI_RESOURCE_URI = "platform:/resource/EARArtifactEditTest/EARArtifactModule/META-INF/application.xmi";//$NON-NLS-1$
- public static final URI EJB_MODULE_URI = URI.createURI("module:/resource/EARArtifactEditTest/EARArtifactModule");
-
- public static final String WEB_PROJECT_NAME = "WebArtifactEditTest"; //$NON-NLS-1$
- public static final String WEB_MODULE_NAME = "WebArtifactEditModule"; //$NON-NLS-1$
- public static final String WEB_PROJECT_VERSION = "2.4";//$NON-NLS-1$
- public static final String WEB_DD_RESOURCE_URI = "platform:/resource/WebArtifactEditModule/WebArtifactEditModule/WebContent/WEB-INF/web.xml";//$NON-NLS-1$
- public static final String WEB_DD_XMI_RESOURCE_URI = "platform:/resource/WebArtifactEditModule/WebArtifactEditModule/WebContent/WEB-INF/web.xmi";//$NON-NLS-1$
- public static final URI WEB_MODULE_URI = URI.createURI("module:/resource/WebArtifactEditTest/WebArtifactEditModule");
- public static final String WEB_SERVER_CONTEXT_ROOT = "WebContent";
-
- public static final String JCA_PROJECT_NAME = "JCAArtifactEditTest"; //$NON-NLS-1$
- public static final String JCA_MODULE_NAME = "JCAArtifactEditTestModule";//$NON-NLS-1$
- public static final String JCA_PROJECT_VERSION = "1.5"; //$NON-NLS-1$
- public static final String JCA_DD_RESOURCE_URI = "platform:/resource/JCAArtifactEditTestModule/JCAArtifactEditTestModule/connectorModule/META-INF/ra.xml";//$NON-NLS-1$
- public static final URI JCA_MODULE_URI = URI.createURI("module:/resource/JCAArtifactEditTest/JCAArtifactEditModule");
-
- public static final String FVT_DESCRIPTION = "FVT Description Test";
- public static final String FVT_DISPLAY_NAME = "FVT DisplayName Test";
- public static final String FVT_LARGE_ICON = "fvtLargeIcon.gif";
- public static IPath workspaceLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation();
- public static String ARTIFACT_EDIT_FVT_RESOURCE_PATH_NAME = "/ArtifactEditFunctionTestResource.txt";
- public static IPath ARTIFACT_EDIT_FVT_RESOURCE_PATH = workspaceLocation.append(ARTIFACT_EDIT_FVT_RESOURCE_PATH_NAME);
-
- private static Path zipFilePath = new Path("/TestData/GenralArtifactTest/J2EEArtifactEditTestProjects.zip");
- private static String[] projectNames = new String[]{EAR_PROJECT_NAME, APP_CLIENT_PROJECT_NAME, EJB_PROJECT_NAME, WEB_PROJECT_NAME, JCA_PROJECT_NAME};
- private boolean isValidWorkspace;
-
-
-
-
- public static final String META_INF = "META-INF"; //$NON-NLS-1$
- public static final String WEB_INF = "WEB-INF"; //$NON-NLS-1$
-
- public static IProject getTargetProject(String projectName) {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
- }
-
- public static boolean createProjects() {
- IPath localZipPath = getLocalPath();
- ProjectUnzipUtil util = new ProjectUnzipUtil(localZipPath, projectNames);
- return util.createProjects();
- }
-
- private static IPath getLocalPath() {
- URL url = HeadlessTestsPlugin.getDefault().find(zipFilePath);
- try {
- url = Platform.asLocalURL(url);
- } catch (IOException e) {
- e.printStackTrace();
- }
- return new Path(url.getPath());
- }
-
- public static boolean init() {
- // revisit
- IProject project = getTargetProject(APP_CLIENT_PROJECT_NAME);
- if (project.exists())
- return true;
- else
- return createProjects();
-
- }
-
- public boolean isValidWorkspace() {
- return isValidWorkspace;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WSDDArtifactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WSDDArtifactEditFVTest.java
deleted file mode 100644
index 2975fe86..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WSDDArtifactEditFVTest.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.internal.webservice.componentcore.util.WSDDArtifactEdit;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.jst.j2ee.webservice.wsdd.WebServices;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-public class WSDDArtifactEditFVTest extends TestCase {
-
- private IProject webProject;
- private String webModuleName;
- private String serverContextData = TestWorkspace.WEB_SERVER_CONTEXT_ROOT + "Test";
-
- public WSDDArtifactEditFVTest() {
- super();
- if (TestWorkspace.init()) {
- webProject = TestWorkspace.getTargetProject(TestWorkspace.WEB_PROJECT_NAME);
- webModuleName = TestWorkspace.WEB_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testCreationDisposeFunction() {
- WSDDArtifactEdit edit = null;
- try {
- edit = WSDDArtifactEdit.getWSDDArtifactEditForWrite(webProject);
- edit.addListener(new EditModelListener() {
- public void editModelChanged(EditModelEvent anEvent) {
- pass();
- }
- });
- WebServices client = edit.getWebServices();
- updateClient(client);
- edit.save(new NullProgressMonitor());
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private void updateClient(WebServices client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
-
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- WSDDArtifactEdit edit = null;
- try {
- edit = WSDDArtifactEdit.getWSDDArtifactEditForWrite(webProject);
- WebServices web = edit.getWebServices();
- pass(web);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private static void pass(WebServices webservice) {
- boolean pass = webservice.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) &&
- webservice.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) &&
- webservice.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
- private void validateResource() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
-// EList resourceList = wbComponent.getResources();
-// for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
-// }
- } finally {
- if (edit != null) {
- edit.dispose();
- }
-
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WebArtifactEditFVTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WebArtifactEditFVTest.java
deleted file mode 100644
index 295bf365..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WebArtifactEditFVTest.java
+++ /dev/null
@@ -1,152 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-import org.eclipse.wst.server.core.model.IModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-
-public class WebArtifactEditFVTest extends TestCase {
-
- private IProject webProject;
-// private String serverContextData = TestWorkspace.WEB_SERVER_CONTEXT_ROOT + "Test"; //$NON-NLS-1$
-
- public WebArtifactEditFVTest() {
- super();
- if (TestWorkspace.init()) {
- webProject = TestWorkspace.getTargetProject(TestWorkspace.WEB_PROJECT_NAME);
- } else {
- fail();
-
- }
- }
-
- public void testCreationDisposeFunction() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
- edit.addListener(new EditModelListener() {
- public void editModelChanged(EditModelEvent anEvent) {
- pass();
- }
- });
- WebApp client = edit.getWebApp();
- updateClient(client);
- edit.save(new NullProgressMonitor());
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testDeployableResourceGather() {
- IVirtualComponent webComp = ComponentCore.createComponent(webProject);
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(webProject, webComp);
- try {
- IModuleResource[] resources = deployable.members();
- assertTrue(resources.length>1);
- int numOfModuleResourceFolders = 0;
- for (int i=0; i<resources.length; i++) {
- if (resources[i] instanceof IModuleFolder)
- numOfModuleResourceFolders++;
- }
- assertTrue(numOfModuleResourceFolders==2);
- } catch (Exception e) {
- fail(e.getMessage());
- }
- }
-
- private void updateClient(WebApp client) {
- client.setDescription(TestWorkspace.FVT_DESCRIPTION);
- client.setDisplayName(TestWorkspace.FVT_DISPLAY_NAME);
- client.setLargeIcon(TestWorkspace.FVT_LARGE_ICON);
- }
-
- private void pass() {
- assertTrue(true);
- }
-
- public void testPersistenceFunction() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
- WebApp web = edit.getWebApp();
-
-
- Filter filter = WebapplicationFactory.eINSTANCE.createFilter();
- filter.setName("WoohooFilter"); //$NON-NLS-1$
- filter.setFilterClassName("wtp.test.WhooHoo"); //$NON-NLS-1$
-
- ParamValue value = CommonFactory.eINSTANCE.createParamValue();
- value.setName("Param1"); //$NON-NLS-1$
- value.setValue("Value1"); //$NON-NLS-1$
- List initParams = new ArrayList();
- initParams.add(value);
-
- if (initParams != null) {
- filter.getInitParamValues().addAll(initParams);
- }
-
- EList filters = web.getFilters();
-
- filters.add(filter);
- edit.saveIfNecessary(null);
-
- pass(web);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- private static void pass(WebApp web) {
- boolean pass = web.getDescription().equals(TestWorkspace.FVT_DESCRIPTION) && web.getDisplayName().equals(TestWorkspace.FVT_DISPLAY_NAME) && web.getLargeIcon().equals(TestWorkspace.FVT_LARGE_ICON);
- assertTrue(pass);
- }
-
-// private void validateResource() {
-// WebArtifactEdit edit = null;
-// try {
-// ComponentHandle handle = ComponentHandle.create(webProject,webModuleName);
-// edit = WebArtifactEdit.getWebArtifactEditForWrite(handle);
-//// EList resourceList = wbComponent.getResources();
-//// for (Iterator iter = resourceList.iterator(); iter.hasNext();) {
-//// }
-// } finally {
-// if (edit != null) {
-// edit.dispose();
-// }
-// }
-// }
-
-// private ComponentResource createResourceComponent() {
-// ComponentResource resourceComponent = ComponentcoreFactory.eINSTANCE.createComponentResource();
-// File testFile = TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH.toFile();
-// if (testFile.exists()) {
-// resourceComponent.setRuntimePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
-// resourceComponent.setSourcePath(TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH);
-// } else {
-// fail("Missing: TestWorkspace.ARTIFACT_EDIT_FVT_RESOURCE_PATH"); //$NON-NLS-1$
-// }
-// return resourceComponent;
-// }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WebArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WebArtifactEditTest.java
deleted file mode 100644
index c3d3046e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/WebArtifactEditTest.java
+++ /dev/null
@@ -1,414 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.apitests.artifactedit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationFactoryImpl;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.UnresolveableURIException;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.componentcore.internal.ReferencedComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-public class WebArtifactEditTest extends TestCase {
-
- private IProject webProject;
- private String webModuleName;
- private String serverContextData = TestWorkspace.WEB_SERVER_CONTEXT_ROOT + "Test";
-
- public WebArtifactEditTest() {
- super();
- if (TestWorkspace.init()) {
- webProject = TestWorkspace.getTargetProject(TestWorkspace.WEB_PROJECT_NAME);
- webModuleName = TestWorkspace.WEB_MODULE_NAME;
- } else {
- fail();
-
- }
- }
-
- public void testGetJ2EEVersion() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.getWebApp().setDescription("test");
- int version = edit.getJ2EEVersion();
- Integer integer = new Integer(version);
- assertTrue(integer.equals(TestWorkspace.WEB_PROJECT_VERSION));
-
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
-
-
- public void testGetDeploymentDescriptorResource() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- String uri = edit.getDeploymentDescriptorResource().getURI().toString();
- // assertTrue(uri.equals(TestWorkspace.WEB_DD_RESOURCE_URI));
- } catch (Exception e) {
- // todo
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetDeploymentDescriptorRoot() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.getDeploymentDescriptorRoot();
- // /////BUG in PlatformURL\\\\\\\\\\\turning test off////
- EObject object = edit.getDeploymentDescriptorRoot();
- assertNotNull(object);
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for EObject createModelRoot()
- */
- public void testCreateModelRoot() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
- edit.createModelRoot();
- // ////BUG turning off\\\\\\\\\\\\\
- /*
- * EObject object = edit.createModelRoot(); assertNotNull(object);
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for EObject createModelRoot(int)
- */
- public void testCreateModelRootint() {
- WebArtifactEdit edit = null;
- try {
- // ///////BUG in PlatformURLModuleConnection
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.createModelRoot(14);
- /*
- * EObject object = edit.createModelRoot(14); assertNotNull(object);
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for void WebArtifactEdit(ComponentHandle, boolean)
- */
- public void testWebArtifactEditComponentHandleboolean() {
- WebArtifactEdit edit = null;
- try {
- edit = new WebArtifactEdit(webProject, true);
- assertNotNull(edit);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
-
- }
-
- /*
- * Class under test for WebArtifactEdit getWebArtifactEditForRead(ComponentHandle)
- */
- public void testGetWebArtifactEditForReadComponentHandle() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- /*
- * Class under test for ArtifactEdit getWebArtifactEditForWrite(ComponentHandle)
- */
- public void testGetWebArtifactEditForWriteComponentHandle() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
- /*
- * Class under test for WebArtifactEdit getWebArtifactEditForRead(WorkbenchComponent)
- */
- public void testGetWebArtifactEditForReadWorkbenchComponent() {
- }
-
- /*
- * Class under test for WebArtifactEdit getWebArtifactEditForWrite(WorkbenchComponent)
- */
- public void testGetWebArtifactEditForWriteWorkbenchComponent() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- assertTrue(edit != null);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testIsValidWebModule() {
- IVirtualComponent component = null;
- try {
- component = ComponentCore.createComponent(webProject);
- WebArtifactEdit.isValidWebModule(component);
- } catch (UnresolveableURIException e) {
- fail();
- }
- ArtifactEdit.isValidEditableModule(component);
- assertTrue(ArtifactEdit.isValidEditableModule(component));
- }
-
- public void testIsValidEditModule() {
- IVirtualComponent component = null;
- try {
- component = ComponentCore.createComponent(webProject);
- WebArtifactEdit.isValidWebModule(component);
- } catch (UnresolveableURIException e) {
- fail();
- }
- ArtifactEdit.isValidEditableModule(component);
- assertTrue(ArtifactEdit.isValidEditableModule(component));
- }
-
- /*
- * Class under test for void WebArtifactEdit(ArtifactEditModel)
- */
- public void testWebArtifactEditArtifactEditModel() {
- WebArtifactEdit edit = new WebArtifactEdit(getArtifactEditModelforRead());
- assertNotNull(edit);
- edit.dispose();
- }
-
- /*
- * Class under test for void WebArtifactEdit(ModuleCoreNature, WorkbenchComponent, boolean)
- */
- public void testWebArtifactEditModuleCoreNatureWorkbenchComponentboolean() {
- WebArtifactEdit edit = null;
- try {
- edit = new WebArtifactEdit(webProject, true);
- assertNotNull(edit);
- } catch (Exception e) {
- fail();
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetServletVersion() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- assertTrue(edit.getServletVersion() == 24);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testAddWebAppIfNecessary() {
- }
-
- public void testGetJSPVersion() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- assertTrue(edit.getJSPVersion() == 20);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetDeploymentDescriptorPath() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.getDeploymentDescriptorPath();
- assertNotNull(edit.getDeploymentDescriptorPath());
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetLibModules() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.getLibModules();
- // //bug module in editmodel never initialized\\\\
- // assertNotNull(edit.getLibModules());
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- // ////////////Bug\\\\\\\\\\\\\\\\\\\\\\\
-
- public void testAddLibModules() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- ReferencedComponent refComp = ComponentcoreFactory.eINSTANCE.createReferencedComponent();
- edit.addLibModules(new ReferencedComponent[]{refComp});
- // ///////////////bug\\\\\\\ owner---WebArtifactEdit -> referenceComponents() != null
- // needs to insure owner
- /*
- * ReferencedComponent refComp =
- * ComponentcoreFactoryImpl.eINSTANCE.createReferencedComponent();
- * edit.addLibModules(new ReferencedComponent[]{refComp});
- * assertTrue(edit.getLibModules().length > 0);
- */
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public void testGetServerContextRoot() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.getServerContextRoot();
- // /////////////////////BUG/////////////////////
- // //edit.getServerContextRoot();
- // assertTrue(edit.getServerContextRoot().equals(TestWorkspace.WEB_SERVER_CONTEXT_ROOT));
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- // ////////////////BUG////////////////////////////////
-
- public void testSetServerContextRoot() {
- WebArtifactEdit edit = null;
- try {
- edit = WebArtifactEdit.getWebArtifactEditForRead(webProject);
- edit.setServerContextRoot(serverContextData);
- // /////////////////////BUG/////////////////////
- // //edit.getServerContextRoot();
- // edit.setServerContextRoot(serverContextData);
- // String testData = edit.getServerContextRoot();
- // assertTrue(testData.equals(serverContextData));
- } catch (Exception e) {
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
- }
-
- public ArtifactEditModel getArtifactEditModelforRead() {
- EMFWorkbenchContext context = new EMFWorkbenchContext(webProject);
- return new ArtifactEditModel(this.toString(), context, true, TestWorkspace.APP_CLIENT_MODULE_URI);
- }
-
- public WebArtifactEdit getArtifactEditForRead() {
- return new WebArtifactEdit(getArtifactEditModelforRead());
- }
-
- public void testCreateServlet() {
- WebArtifactEdit edit = null;
- try {
- WebapplicationFactoryImpl factory = new WebapplicationFactoryImpl();
- edit = WebArtifactEdit.getWebArtifactEditForWrite(webProject);
- WebApp webapp = edit.getWebApp();
- Servlet servlet = factory.createServlet();
- ServletType servletType = factory.createServletType();
- servlet.setWebType(servletType);
- servlet.setServletName("servletDescriptor._name");
- servletType.setClassName("servletDescriptor._className");
- // if(servletDescriptor._displayName != null){
- servlet.setDisplayName("servletDescriptor._displayName");
- // }
-
- webapp.getServlets().add(servlet);
- webapp.setDescription("test");
- edit.save(new NullProgressMonitor());
- /*
- * if(servletDescriptor._loadOnStartup != null){
- * servlet.setLoadOnStartup(servletDescriptor._loadOnStartup); }
- * if(servletDescriptor._params != null){ Properties properties =
- * servlet.getParamsAsProperties(); properties.putAll(servletDescriptor._params); }
- */
- } catch (Exception e) {
- e.printStackTrace();
- // TODO
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- assertTrue(edit != null);
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/ArchiveComponentCreationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/ArchiveComponentCreationTest.java
deleted file mode 100644
index e8c2dfe5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/ArchiveComponentCreationTest.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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.jst.j2ee.flexible.project.fvtests;
-
-import java.util.ArrayList;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.resources.VirtualArchiveComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-
-public class ArchiveComponentCreationTest extends TestCase {
-
-
- public static Test suite() {
- return new TestSuite(ArchiveComponentCreationTest.class);
- }
-
- public ArchiveComponentCreationTest() {
- super();
- }
-
- public ArchiveComponentCreationTest(String name) {
- super(name);
- }
-
-
- public void testCreateWebComponent() throws Exception {
- createWebComponent(24, "TestWeb" ); //$NON-NLS-1$
- }
-
-
- private void createWebComponent(int j2eeVersion, String aModuleName) throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, aModuleName);
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel webModel = map.getFacetDataModel(J2EEProjectUtilities.DYNAMIC_WEB);
- webModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- IProject project = ProjectUtilities.getProject(aModuleName);
- if( project.exists()){
- IVirtualComponent component = ComponentCore.createComponent(project);
- createArchiveComponent(component);
- }
- }
-
- public void createArchiveComponent(IVirtualComponent component){
-
- IPath path = new Path("JUNIT_HOME/junit.jar"); //$NON-NLS-1$
-
-
- IPath resolvedPath = JavaCore.getResolvedVariablePath(path);
-
- java.io.File file = new java.io.File(resolvedPath.toOSString());
- if( file.isFile() && file.exists()){
- String type = VirtualArchiveComponent.VARARCHIVETYPE + IPath.SEPARATOR;
-
- IVirtualComponent archive = ComponentCore.createArchiveComponent( component.getProject(), type +
- path.toString());
-
- ArrayList vlist = new ArrayList();
- IVirtualReference[] oldrefs = component.getReferences();
- for (int j = 0; j < oldrefs.length; j++) {
- IVirtualReference ref = oldrefs[j];
- vlist.add(ref);
- }
-
- IVirtualReference ref = ComponentCore.createReference( component, archive, new Path("/WEB-INF/lib") ); //$NON-NLS-1$
- vlist.add(ref);
-
- IVirtualReference[] refs = new IVirtualReference[vlist.size()];
- for (int j = 0; j < vlist.size(); j++) {
- IVirtualReference tmpref = (IVirtualReference) vlist.get(j);
- refs[j] = tmpref;
- }
- component.setReferences(refs);
- }
- }
- }
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/EJBArtifactEditFvTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/EJBArtifactEditFvTest.java
deleted file mode 100644
index 5c54d2da..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/EJBArtifactEditFvTest.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package org.eclipse.jst.j2ee.flexible.project.fvtests;
-import junit.framework.TestCase;
-
-public class EJBArtifactEditFvTest extends TestCase {
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/EJBDeployTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/EJBDeployTest.java
deleted file mode 100644
index 076b8c82..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/EJBDeployTest.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.flexible.project.fvtests;
-import junit.framework.Test;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.jem.util.emf.workbench.ProjectResourceSet;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties;
-import org.eclipse.jst.common.project.facet.JavaFacetInstallDataModelProvider;
-import org.eclipse.jst.j2ee.archive.emftests.GeneralEMFPopulationTest;
-import org.eclipse.jst.j2ee.earcreation.IEarFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.internal.operations.NewSessionBeanClassDataModelProvider;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties;
-import org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.impl.WTPResourceFactoryRegistry;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wst.server.core.model.IModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-
-public class EJBDeployTest extends GeneralEMFPopulationTest {
-
- private static final String PROJECTNAME = "TestNewModels";
- public static final String PACKAGE = "test"; //$NON-NLS-1$
- public static final String SESSION_BEAN_NAME = "TestSessionBean"; //$NON-NLS-1$
- public EJBDeployTest(String name) {
- super(name);
- }
-
-
- public static Test suite() {
- return new SimpleTestSuite(EJBDeployTest.class);
- }
-
-
-
-
- private void createProject(IProjectDescription description,
- IProject projectHandle, IProgressMonitor monitor)
- throws CoreException, OperationCanceledException {
- try {
- monitor.beginTask("", 2000); //$NON-NLS-1$
-
- projectHandle.create(description, new SubProgressMonitor(monitor,
- 1000));
-
- if (monitor.isCanceled())
- throw new OperationCanceledException();
-
- projectHandle.open(new SubProgressMonitor(monitor, 1000));
-
- } finally {
- monitor.done();
- }
- }
-
-
-public void testEJBDeployment() throws Exception {
-
- String projName = "TestEE5EjbProject";//$NON-NLS-1$
- createEjbProject(projName);
-
- IProject project = getProject(projName);
- // Create Session bean
- createSessionBean(projName);
-
-
- boolean found = false;
- IVirtualComponent component = ComponentCore.createComponent(project);
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(project, component);
- try {
- if (deployable.isSingleRootStructure()) {
- IModuleResource[] members = deployable.members();
- for (int i=0; i<members.length; i++) {
- IModuleResource packageFolder = members[i];
- String name = packageFolder.getName();
- if (name.equals(PACKAGE)) {
- IModuleResource[] javaMembers = ((IModuleFolder)packageFolder).members();
- for (int j = 0; j < javaMembers.length; j++) {
- IModuleResource javaResource = javaMembers[j];
- if (javaMembers[j].getName().equals("TestSessionBean.class"))
- found = true;
- }
- }
- }
- }
- assertTrue("Can't find class files in ejb deployment",found);
-
- }catch (CoreException e) {
- fail(e.getMessage());
- }
-
-
-
-
-}
-
-
-private void createSessionBean(String projName) throws ExecutionException {
- IDataModel dm = DataModelFactory.createDataModel(NewSessionBeanClassDataModelProvider.class);
- dm.setProperty(INewJavaClassDataModelProperties.PROJECT_NAME, projName);
- dm.setProperty(INewJavaClassDataModelProperties.JAVA_PACKAGE, PACKAGE);
- dm.setProperty(INewJavaClassDataModelProperties.CLASS_NAME, SESSION_BEAN_NAME);
- IStatus operationStatus = dm.getDefaultOperation().execute(new NullProgressMonitor(), null);
- try {
- Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD,null);
- } catch (OperationCanceledException e) {
- e.printStackTrace();
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
-}
-private ProjectResourceSet getResourceSet(String projName) {
- IProject proj = getProject(projName);
- return (ProjectResourceSet)WorkbenchResourceHelperBase.getResourceSet(proj);
- }
-
-
- private IProject createEjbProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IEjbFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.EJB_3_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEjbFacetInstallDataModelProperties.EJB);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.EJB);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- map.add(setupJavaInstallAction(projName,J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.EJB_CONTENT_FOLDER)));
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
- private IProject createEarProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IEarFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.JEE_5_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
- protected IDataModel setupJavaInstallAction(String aProjectName, String srcFolder) {
- IDataModel dm = DataModelFactory.createDataModel(new JavaFacetInstallDataModelProvider());
- dm.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, aProjectName);
- String jVersion = "5.0";
- dm.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, jVersion); //$NON-NLS-1$
- dm.setStringProperty(IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME, srcFolder); //$NON-NLS-1$
- return dm;
- }
- private void addVersionProperties(IDataModel dataModel, String projName, IProjectFacetVersion fv, String facetString){
-
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel model = (IDataModel) map.get(facetString);
- model.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- model.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, fv);
-
- }
-
-
- public IProject getProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECTNAME);
- }
- public IProject getProject(String projName) {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- }
-
-
- private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
- WTPResourceFactoryRegistry registry = (WTPResourceFactoryRegistry) resSet.getResourceFactoryRegistry();
- registry.registerLastFileSegment(uri.lastSegment(), factory);
- }
- private ResourceSet getResourceSet() {
- ResourceSet set = new ResourceSetImpl();
- set.setResourceFactoryRegistry(WTPResourceFactoryRegistry.INSTANCE);
- return set;
- }
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/J2EEFlexProjDeployablePerfTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/J2EEFlexProjDeployablePerfTest.java
deleted file mode 100644
index d3187c7e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/J2EEFlexProjDeployablePerfTest.java
+++ /dev/null
@@ -1,89 +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.jst.j2ee.flexible.project.fvtests;
-
-import java.io.IOException;
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.etools.common.test.apitools.ProjectUnzipUtil;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.server.core.util.ModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class J2EEFlexProjDeployablePerfTest extends TestCase {
-
- private static String[] projectNames = new String[]{"war"}; //$NON-NLS-1$;
- private static Path zipFilePath = new Path("/TestData/GenralArtifactTest/perfWAR.zip"); //$NON-NLS-1$
-
- public static Test suite() {
- return new TestSuite(J2EEFlexProjDeployablePerfTest.class);
- }
- public void testMembersPerformance() {
- ProjectUnzipUtil util = new ProjectUnzipUtil(getLocalPath(), projectNames);
- util.createProjects();
- IProject project = ProjectUtilities.getProject(projectNames[0]);
- IVirtualComponent component = ComponentCore.createComponent(project);
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(project, component);
- try {
- IModuleResource[] members = deployable.members();
- assertTrue(members.length==3);
- int verified = 0;
- for (int i=0; i<members.length; i++) {
- String name = members[i].getName();
- if (name.equals("META-INF")) {
- IModuleResource manifest = ((ModuleFolder)members[i]).members()[0];
- assertTrue(manifest.getModuleRelativePath().toString().equals("META-INF"));
- assertTrue(manifest.getName().equals("MANIFEST.MF"));
- verified++;
- } else if (name.equals("WEB-INF")) {
- IModuleResource[] webInf = ((ModuleFolder)members[i]).members();
- assertTrue(webInf.length==2);
- for (int j=0; j<webInf.length; j++) {
- IModuleResource webResource = webInf[j];
- assertTrue(webResource.getModuleRelativePath().toString().equals("WEB-INF"));
- assertTrue(webResource.getName().equals("web.xml") || webResource.getName().equals("classes"));
- }
- verified++;
- } else if (name.equals("pkg0")) {
- assertTrue(((ModuleFolder)members[i]).members().length>0);
- verified++;
- }
- }
- assertTrue(verified==3);
- } catch (CoreException e) {
- e.printStackTrace();
- fail(e.getMessage());
- }
- }
-
- private static IPath getLocalPath() {
- URL url = HeadlessTestsPlugin.getDefault().find(zipFilePath);
- try {
- url = Platform.asLocalURL(url);
- } catch (IOException e) {
- e.printStackTrace();
- }
- return new Path(url.getPath());
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/PortedComponentCreationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/PortedComponentCreationTest.java
deleted file mode 100644
index 1fc76ef7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/PortedComponentCreationTest.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 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.jst.j2ee.flexible.project.fvtests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.applicationclient.internal.creation.AppClientFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.jca.project.facet.ConnectorFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.EARFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-
-public class PortedComponentCreationTest extends TestCase {
-
- public static String DEFAULT_PROJECT_NAME = "Flexible";
-
- public static Test suite() {
- return new TestSuite(PortedComponentCreationTest.class);
- }
-
- public PortedComponentCreationTest() {
- super();
- }
-
- public PortedComponentCreationTest(String name) {
- super(name);
- }
-
- /*
- public void testCreateFlexibleProject() throws Exception {
- IDataModel dataModel = DataModelFactory.createDataModel(new FlexibleProjectCreationDataModelProvider());
- dataModel.setProperty(IFlexibleProjectCreationDataModelProperties.PROJECT_NAME, DEFAULT_PROJECT_NAME + "_");
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
- */
-
-
-// public void testCreateJavaUtiltyComponent() throws Exception {
-// //createFlexibleJavaProject(DEFAULT_PROJECT_NAME + "_JavaUtil");
-// createJavaUtilComponent(DEFAULT_PROJECT_NAME + "_JavaUtil", DEFAULT_PROJECT_NAME + "_JavaUtil");
-// }
-//
-// public void testCreateConnectorComponent() throws Exception {
-// // createFlexibleJavaProject(DEFAULT_PROJECT_NAME + "_ConnectorProject");
-// createConnectorComponent(15, "TestConnector", DEFAULT_PROJECT_NAME + "_ConnectorProject");
-// }
-//
-//
-// public void testCreateWebComponent() throws Exception {
-// // createFlexibleJavaProject(DEFAULT_PROJECT_NAME+"_WebProject");
-// createWebComponent(24, "TestWeb", DEFAULT_PROJECT_NAME+"_WebProject");
-// }
-//
-// public void testCreateAppClientComponent() throws Exception {
-// // createFlexibleJavaProject(DEFAULT_PROJECT_NAME+"_AppClientProject");
-// createAppClientComponent(14, "TestAppClient", DEFAULT_PROJECT_NAME+"_AppClientProject");
-// }
-//
-// public void testCreateEjbComponent() throws Exception {
-// // createFlexibleJavaProject(DEFAULT_PROJECT_NAME+"_EJBProject");
-// createEjbComponent(21, "TestEJB", DEFAULT_PROJECT_NAME+"_EJBProject");
-// }
-//
-// public void testCreateEARComponent() throws Exception {
-// // createFlexibleJavaProject(DEFAULT_PROJECT_NAME+"_EARProject");
-// createEARComponent(14, "TestEAR", DEFAULT_PROJECT_NAME+"_EARProject");
-// }
-
- private void createConnectorComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new ConnectorFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName);
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel jcaModel = map.getFacetDataModel(J2EEProjectUtilities.JCA);
- jcaModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- private void createWebComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName);
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel webModel = map.getFacetDataModel(J2EEProjectUtilities.DYNAMIC_WEB);
- webModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- private void createAppClientComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new AppClientFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName);
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel appClientModel = map.getFacetDataModel(J2EEProjectUtilities.APPLICATION_CLIENT);
- appClientModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- private void createEjbComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new EjbFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName);
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel ejbModel = map.getFacetDataModel(J2EEProjectUtilities.EJB);
- ejbModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- private void createEARComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new EARFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName);
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel earModel = map.getFacetDataModel(J2EEProjectUtilities.ENTERPRISE_APPLICATION);
- earModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- public void testCreateWebComponentWithUserDefinedFolders() throws Exception {
- IDataModel model = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, "TestWeb24"); //$NON-NLS-1$
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel webModel = map.getFacetDataModel(J2EEProjectUtilities.DYNAMIC_WEB);
- webModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,24);
- webModel.setBooleanProperty(IJ2EEModuleFacetInstallDataModelProperties.ADD_TO_EAR,false);
- webModel.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER,"web"); //$NON-NLS-1$
- webModel.setStringProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, "src"); //$NON-NLS-1$
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- public void testCreateAppClientComponentWithUserDefinedFolders() throws Exception{
- IDataModel model = DataModelFactory.createDataModel(new AppClientFacetProjectCreationDataModelProvider());
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, "TestApp15"); //$NON-NLS-1$
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel appClientModel = map.getFacetDataModel(J2EEProjectUtilities.APPLICATION_CLIENT);
- appClientModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,14);
- appClientModel.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER, "src"); //$NON-NLS-1$
- appClientModel.setBooleanProperty(IJ2EEModuleFacetInstallDataModelProperties.ADD_TO_EAR, false);
- model.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java
deleted file mode 100644
index 53d56e23..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/fvtests/WebDeployTest.java
+++ /dev/null
@@ -1,120 +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.jst.j2ee.flexible.project.fvtests;
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.Arrays;
-import java.util.List;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.etools.common.test.apitools.ProjectUnzipUtil;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.model.IModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class WebDeployTest extends TestCase {
-
- private static String[] projectNames = new String[]{"TestDeploy","TestDeployUtil","TestDeployWeb","TestWebLibProject","TestExternalJar"}; //$NON-NLS-1$;
- private static Path zipFilePath = new Path("/TestData/WebDeployTests/WebDeployTest.zip"); //$NON-NLS-1$
-
- public static Test suite() {
- return new TestSuite(WebDeployTest.class);
- }
- public void testMembersDeployment() {
- ProjectUnzipUtil util = new ProjectUnzipUtil(getLocalPath(), projectNames);
- util.createProjects();
-
- //hari: we're getting the web project here
- IProject project = ProjectUtilities.getProject(projectNames[2]);
- IVirtualComponent component = ComponentCore.createComponent(project);
- J2EEFlexProjDeployable deployable = new J2EEFlexProjDeployable(project, component);
- try {
- IModuleResource[] members = deployable.members();
- assertTrue(members.length==2);
-
- for (int i=0; i<members.length; i++) {
- String name = members[i].getName();
- if (name.equals("META-INF")) {
- IModuleResource manifest = ((IModuleFolder)members[i]).members()[0];
- assertTrue(manifest.getModuleRelativePath().toString().equals("META-INF"));
- assertTrue(manifest.getName().equals("MANIFEST.MF"));
-
- } else if (name.equals("WEB-INF")) {
- IModuleResource[] webInf = ((IModuleFolder)members[i]).members();
- assertTrue(webInf.length==3);
- for (int j=0; j<webInf.length; j++) {
- IModuleResource webResource = webInf[j];
- assertTrue(webResource.getModuleRelativePath().toString().equals("WEB-INF"));
- if (webResource.getName().equals("lib")){
- IModuleResource[] webresMembers = ((IModuleFolder)webResource).members();
- {
- //finds only smokeEJB.jar here...
- assertTrue(webresMembers.length==0);
-// //Check that the names match the 3 names we expect
-// for (int k = 0; k < webresMembers.length; k++){
-// String localName = webresMembers[k].getName();
-// assertTrue (localName.equals("SmokeEJB.jar") || localName.equals("AutoWorldEJB512.jar"));
-// }
- }
- }
- }
- }
- }
-
- // get child modules on the deployable should return the utility modules which are not
- // on the manifest but are web lib projects
- IModule[] childModules = deployable.getChildModules();
- assertEquals(3, childModules.length);
- List childURIs = Arrays.asList(new String[] {
- "WEB-INF/lib/SmokeEJB.jar",
- "WEB-INF/lib/TestWebLibProject.jar",
- "WEB-INF/lib/AutoWorldEJB512.jar",
- });
-
- for (int l = 0; l < childModules.length; l++){
- String uri = deployable.getURI(childModules[l]);
- if( !childURIs.contains(uri))
- fail("URI " + uri + " is not an expected child module uri result");
- }
-
- } catch (CoreException e) {
- e.printStackTrace();
- fail(e.getMessage());
- }
-
-
-
- }
-
- private static IPath getLocalPath() {
- URL url = HeadlessTestsPlugin.getDefault().find(zipFilePath);
- try {
- url = Platform.asLocalURL(url);
- } catch (IOException e) {
- e.printStackTrace();
- }
- return new Path(url.getPath());
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/tests/FlexibleProjectEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/tests/FlexibleProjectEditTest.java
deleted file mode 100644
index 95579fc3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/tests/FlexibleProjectEditTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Created on Feb 14, 2005
- */
-package org.eclipse.jst.j2ee.flexible.project.tests;
-
-import junit.framework.TestCase;
-
-/**
- * @author vijayb
- */
-public class FlexibleProjectEditTest extends TestCase {
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/project/facet/tests/EjbProjectFacetCreationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/project/facet/tests/EjbProjectFacetCreationTest.java
deleted file mode 100644
index cf64d67f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/project/facet/tests/EjbProjectFacetCreationTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.jst.j2ee.project.facet.tests;
-import junit.framework.Test;
-import junit.framework.TestCase;
-
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-public class EjbProjectFacetCreationTest extends TestCase {
-
-
- public EjbProjectFacetCreationTest(String name) {
- super(name);
- }
-
- public EjbProjectFacetCreationTest() {
- super();
- }
- public static Test suite() {
- return new SimpleTestSuite(EjbProjectFacetCreationTest.class);
- }
-
- public void testEjbCreation() throws Exception {
-
- IDataModel dm = DataModelFactory.createDataModel( new EjbFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, "TestEJBFacet"); //$NON-NLS-1$
- dm.getDefaultOperation().execute(null, null);
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/project/facet/tests/ProjectFacetCreationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/project/facet/tests/ProjectFacetCreationTest.java
deleted file mode 100644
index 544159df..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/project/facet/tests/ProjectFacetCreationTest.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package org.eclipse.jst.j2ee.project.facet.tests;
-import java.util.HashSet;
-import java.util.Set;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject.Action;
-import org.eclipse.wst.common.project.facet.core.runtime.IRuntime;
-import org.eclipse.wst.common.project.facet.core.runtime.RuntimeManager;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-public class ProjectFacetCreationTest extends TestCase {
-
-
- public ProjectFacetCreationTest(String name) {
- super(name);
- }
-
- public ProjectFacetCreationTest() {
- super();
- }
- public static Test suite() {
- return new SimpleTestSuite(ProjectFacetCreationTest.class);
- }
-
- public void testWebCreation() throws Exception {
- IFacetedProject facetProj = ProjectFacetsManager.create("SampleWebProject",null,new NullProgressMonitor());
- // Set runtime if available
- setRuntime(facetProj);
-
- Set actions = new HashSet();
-
- //Setting up the java and web install action
- actions.add(setupJavaInstallAction());
- actions.add(setupWebInstallAction());
-
-
- facetProj.modify( actions,null);
-
- IVirtualComponent comp = ComponentCore.createComponent(facetProj.getProject());
- assertTrue(JavaEEProjectUtilities.isDynamicWebProject(comp.getProject()));
-
- }
-
- private IFacetedProject.Action setupWebInstallAction() {
- IProjectFacetVersion webfacetversion = ProjectFacetsManager.getProjectFacet( "jst.web" ).getVersion( "2.4" );
-
- IFacetedProject.Action action = new IFacetedProject.Action( Action.Type.INSTALL, webfacetversion, null );
- return action;
- }
-
- private IFacetedProject.Action setupJavaInstallAction() {
- IProjectFacetVersion webfacetversion = ProjectFacetsManager.getProjectFacet( "jst.java" ).getVersion( "1.4" );
- IFacetedProject.Action action = new IFacetedProject.Action( Action.Type.INSTALL, webfacetversion, null );
- return action;
- }
-
- protected void setRuntime(IFacetedProject facetProj) throws CoreException {
- //Setting the runtime
-// RuntimeManager.bridge();
- try {
- IRuntime runtime = RuntimeManager.getRuntime("org.eclipse.jst.server.tomcat");
- facetProj.setRuntime(runtime,null);
- } catch (IllegalArgumentException ex) {
- System.out.println("Runtime not found: org.eclipse.jst.server.tomcat");
- }
-
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/AutomatedBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/AutomatedBVT.java
deleted file mode 100644
index eaa08c64..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/AutomatedBVT.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Created on Apr 1, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.jst.j2ee.tests.bvt;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.AllPluginTests;
-
-
-/**
- * @author jsholl
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class AutomatedBVT extends TestSuite {
-
- public static String baseDirectory = System.getProperty("user.dir") + java.io.File.separatorChar + "TestData" + java.io.File.separatorChar;
-
- static {
- try {
- IPluginDescriptor pluginDescriptor = Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.jst.j2ee.tests");
- URL url = pluginDescriptor.getInstallURL();
- AutomatedBVT.baseDirectory = Platform.asLocalURL(url).getFile() + "TestData"+ java.io.File.separatorChar;
- } catch (Exception e) {
- System.err.println("Using working directory since a workspace URL could not be located.");
- }
- }
-
- public static int unimplementedMethods;
-
- public static void main(String[] args) {
- unimplementedMethods = 0;
- TestRunner.run(suite());
- if (unimplementedMethods > 0) {
- System.out.println("\nCalls to warnUnimpl: " + unimplementedMethods);
- }
- }
-
- public AutomatedBVT() {
- super();
- TestSuite suite = (TestSuite) AutomatedBVT.suite();
- for (int i = 0; i < suite.testCount(); i++) {
- addTest(suite.testAt(i));
- }
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.jst.j2ee.test.bvt");
- suite.addTest(AllPluginTests.suite());
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/AutomatedBVTEclipse.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/AutomatedBVTEclipse.java
deleted file mode 100644
index 28536333..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/AutomatedBVTEclipse.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Created on Mar 25, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.tests.bvt;
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.Platform;
-
-/**
- * @author jsholl
- */
-public class AutomatedBVTEclipse extends AutomatedBVT {
-
- public AutomatedBVTEclipse(){
- super();
- IPluginDescriptor pluginDescriptor = Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.jst.j2ee.tests");
- URL url = pluginDescriptor.getInstallURL();
- try {
- AutomatedBVT.baseDirectory = Platform.asLocalURL(url).getFile() + "TestData"+ java.io.File.separatorChar;
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/CoreInfrastructureBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/CoreInfrastructureBVT.java
deleted file mode 100644
index 50b1e26c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/CoreInfrastructureBVT.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.j2ee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class CoreInfrastructureBVT extends TestSuite {
-
- public CoreInfrastructureBVT(){
- super();
- addTest(org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.SourceFolderUpdateTest.suite());
- addTest(org.eclipse.jst.j2ee.tests.modulecore.AllTests.suite());
- addTest(org.eclipse.jst.j2ee.dependency.tests.AllTests.suite());
- addTest(org.eclipse.jst.j2ee.classpath.tests.AllTests.suite());
- addTest(org.eclipse.wtp.j2ee.headless.tests.web.container.WebAppLibrariesContainerTests.suite());
- addTest(org.eclipse.jst.j2ee.defect.tests.DefectVerificationTestsSuite.suite());
- addTest(org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.HeaderParserTests.suite());
- }
-
- public static Test suite(){
- return new CoreInfrastructureBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/EJBBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/EJBBVT.java
deleted file mode 100644
index cf500590..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/EJBBVT.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.j2ee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class EJBBVT extends TestSuite {
-
- public EJBBVT() {
- super();
- addTest(org.eclipse.wtp.j2ee.headless.tests.ejb.operations.AllTests.suite());
- }
-
- public static Test suite(){
- return new EJBBVT();
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/EnterpriseBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/EnterpriseBVT.java
deleted file mode 100644
index 297d8c09..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/EnterpriseBVT.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.j2ee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class EnterpriseBVT extends TestSuite {
-
- public EnterpriseBVT(){
- super();
- addTest(org.eclipse.wtp.j2ee.headless.tests.jca.operations.AllTests.suite());
- addTest(org.eclipse.wtp.j2ee.headless.tests.ear.operations.AllTests.suite());
- addTest(org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AllTests.suite());
- addTest(org.eclipse.wtp.j2ee.headless.tests.utility.operations.AllTests.suite());
- }
-
- public static Test suite(){
- return new EnterpriseBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/ExtendedModelProviderBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/ExtendedModelProviderBVT.java
deleted file mode 100644
index 06a9fe97..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/ExtendedModelProviderBVT.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.j2ee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class ExtendedModelProviderBVT extends TestSuite {
-
- public ExtendedModelProviderBVT() {
- super();
- addTest(org.eclipse.jst.common.annotations.tests.AnnotationProviderTest.suite());
- addTest(org.eclipse.jst.jee.model.tests.AllAnnotationModelTests.suite());
- addTest(org.eclipse.jst.jee.model.mergers.tests.MergersTestSuite.suite());
- }
-
- public static Test suite(){
- return new ExtendedModelProviderBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/ModelProviderBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/ModelProviderBVT.java
deleted file mode 100644
index f5651b9f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/ModelProviderBVT.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.j2ee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class ModelProviderBVT extends TestSuite {
-
- public ModelProviderBVT(){
- super();
- addTest(org.eclipse.jst.jee.model.tests.JEE5ModelTest.suite());
- addTest(org.eclipse.jst.jee.model.tests.JEE6ModelTest.suite());
- addTest(org.eclipse.jst.jee.model.tests.ModelProviderTest.suite());
- }
-
- public static Test suite(){
- return new ModelProviderBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/WebBVT.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/WebBVT.java
deleted file mode 100644
index 029df533..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/bvt/WebBVT.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.j2ee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class WebBVT extends TestSuite {
-
- public WebBVT() {
- super();
- addTest(org.eclipse.wtp.j2ee.headless.tests.web.operations.AllTests.suite());
- }
- public static Test suite(){
- return new WebBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/AllTests.java
deleted file mode 100644
index e0cc1db9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/AllTests.java
+++ /dev/null
@@ -1,55 +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
- *******************************************************************************/
-/*
- * Created on Feb 18, 2005
- */
-package org.eclipse.jst.j2ee.tests.modulecore;
-
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.project.facet.tests.EjbProjectFacetCreationTest;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeType;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-import org.eclipse.wst.server.core.ServerCore;
-
-public class AllTests extends TestSuite {
-
- public static IRuntime JONAS_TOMCAT_RUNTIME = createJONASRuntime();
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("ModuleCore Tests");
- //addTest(ProjectFacetCreationTest.suite());
- addTest(EjbProjectFacetCreationTest.suite());
- }
- public static IRuntime createJONASRuntime() {
- String s = "D:/JOnAS-4.3.2/lib";
- if (s == null || s.length() == 0)
- return null;
- try {
- IRuntimeType rt = ServerCore.findRuntimeType("org.eclipse.jst.server.core.runtimeType");
- IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
- wc.setLocation(new Path(s));
- return wc.save(true, null);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/FlexibleProjectBuilderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/FlexibleProjectBuilderTest.java
deleted file mode 100644
index c76bd466..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/FlexibleProjectBuilderTest.java
+++ /dev/null
@@ -1,259 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 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.jst.j2ee.tests.modulecore;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceDescription;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.componentcore.internal.ProjectComponents;
-import org.eclipse.wst.common.componentcore.internal.ReferencedComponent;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-public class FlexibleProjectBuilderTest extends TestCase {
- public static final String MODULE__RESOURCE_URI_PROTOCOL = "module:/resource/";
- private IProject project;
- private EMFWorkbenchContext emfContext;
-
- public FlexibleProjectBuilderTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- // return new TestSuite(ModuleEditModelTest.class);
- TestSuite suite = new TestSuite();
- suite.addTest(new FlexibleProjectBuilderTest("testFlexibleProjectBuilderOutput"));
- return suite;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see junit.framework.TestCase#setUp()
- */
- public void setUp() throws Exception {
- IWorkspaceDescription desc = ResourcesPlugin.getWorkspace().getDescription();
- desc.setAutoBuilding(false);
- ResourcesPlugin.getWorkspace().setDescription(desc);
- getProjectForWebModuleAndLocalWebLib().delete(true, null);
- getProjectForRemoteWebLib().delete(true, null);
- super.setUp();
- }
-
- /**
- *
- */
- public void testFlexibleProjectBuilderOutput() throws Exception {
- setupContent();
- buildProjects();
- }
-
-
- /**
- *
- */
- private void buildProjects() {
- try {
- ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD, null);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public void setupContent() throws Exception {
- StructureEdit localModuleCore = null;
- try {
- getProjectForWebModuleAndLocalWebLib();
-
- IProject containingProject = StructureEdit.getContainingProject(getWebModuleURI());
- localModuleCore = StructureEdit.getStructureEditForWrite(containingProject);
-
- createLocalModules(localModuleCore);
-
- // will setup and handle creating the modules model
- getProjectForRemoteWebLib();
-
- WorkbenchComponent webModule = localModuleCore.getComponent();
-
- addDependentModule(webModule, new Path("WEB-INF/lib"), getLocalWebLibraryModuleURI());
- addDependentModule(webModule, new Path("WEB-INF/lib"), getRemoteWebLibraryModuleURI());
-
- localModuleCore.saveIfNecessary(null);
-
- } finally {
- if (localModuleCore != null)
- localModuleCore.dispose();
- }
-
- }
-
- public IProject getProjectForWebModuleAndLocalWebLib() throws Exception {
- return getWebProject(getWebModuleAndLocalWebLibModuleProjectName());
- }
-
- public IProject getProjectForRemoteWebLib() throws Exception {
- return getJavaProject(getRemoteWebLibModuleProjectName());
- }
-
- public String getWebModuleAndLocalWebLibModuleProjectName() {
- return "MyModulesProject"; //$NON-NLS-1$
- }
-
- public String getRemoteWebLibModuleProjectName() {
- return "RemoteWebLibProject"; //$NON-NLS-1$
- }
-
- public IProject getWebProject(String aProjectName) throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- if (!project.exists())
- project = createWebProject(aProjectName);
- return project;
- }
-
- public IProject getJavaProject(String aProjectName) throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- if (!project.exists()) {
- // createJavaProject(aProjectName);
- }
- return project;
- }
-
- public IProject createWebProject(String aProjectName) throws Exception {
-
- project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- if (!project.exists()) {
- IDataModel dataModel = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- dataModel.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, aProjectName);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
- return ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- }
-
- // public IProject createJavaProject(String aProjectName) throws Exception {
- //
- // project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- // if (!project.exists()) {
- // IDataModel dataModel = DataModelFactory.createDataModel(new
- // TestJavaProjectCreationDataModelProvider());
- // dataModel.setProperty(ITestJavaProjectCreationProperties.PROJECT_NAME, aProjectName);
- // dataModel.getDefaultOperation().execute(new NullProgressMonitor(),null);
- // project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- // ModuleCoreNature.addModuleCoreNatureIfNecessary(project, null);
- //
- // ModuleStructuralModel structuralModel = null;
- // try {
- // structuralModel =
- // ModuleCoreNature.getModuleCoreNature(project).getModuleStructuralModelForWrite(this);
- // structuralModel.prepareProjectModulesIfNecessary();
- // StructureEdit moduleCore = (StructureEdit)
- // structuralModel.getAdapter(StructureEdit.ADAPTER_TYPE);
- // String deployedName = aProjectName + ".jar";
- // URI moduleURI = URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + aProjectName + IPath.SEPARATOR
- // + deployedName);
- // WorkbenchComponent utilityModule = addWorkbenchModule(moduleCore.getComponentModelRoot(),
- // deployedName, moduleURI);
- // IResource sourceFolder = project.getFolder("src");
- // addResource(utilityModule, sourceFolder, "/"); //$NON-NLS-1$
- // structuralModel.saveIfNecessary(this);
- // } finally {
- // if (structuralModel != null)
- // structuralModel.releaseAccess(this);
- // }
- // }
- // return ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- // }
-
- public void addResource(WorkbenchComponent aModule, IResource aSourceFile, String aDeployPath) {
- ComponentResource resource = ComponentcoreFactory.eINSTANCE.createComponentResource();
- resource.setSourcePath(aSourceFile.getFullPath());
- resource.setRuntimePath(new Path(aDeployPath));
- aModule.getResources().add(resource);
- }
-
- public WorkbenchComponent addWorkbenchModule(ProjectComponents theModules, String aDeployedName, URI aHandle) {
- WorkbenchComponent module = ComponentcoreFactory.eINSTANCE.createWorkbenchComponent();
- module.setName(aDeployedName);
- theModules.getComponents().add(module);
- return module;
- }
-
- public void addDependentModule(WorkbenchComponent aModule, IPath aDeployedPath, URI aHandle) {
- ReferencedComponent aClasspathDependentModule = ComponentcoreFactory.eINSTANCE.createReferencedComponent();
- aClasspathDependentModule.setRuntimePath(aDeployedPath);
- aClasspathDependentModule.setHandle(aHandle);
- aModule.getReferencedComponents().add(aClasspathDependentModule);
- }
-
- public void createLocalModules(StructureEdit moduleCore) throws Exception {
-
- ProjectComponents projectModules = moduleCore.getComponentModelRoot();
-
- WorkbenchComponent webLibraryModule = addWorkbenchModule(projectModules, getLocalWebLibraryDeployedName(), getLocalWebLibraryModuleURI());
- IFolder localWebLibrary = getProjectForWebModuleAndLocalWebLib().getFolder(getLocalWebLibraryFolderName());
- if (!localWebLibrary.exists())
- localWebLibrary.create(true, true, null);
- addResource(webLibraryModule, localWebLibrary, "/");
- }
-
- public URI getWebModuleURI() {
- return URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getWebModuleAndLocalWebLibModuleProjectName() + IPath.SEPARATOR + getWebModuleDeployedName());
- }
-
- public URI getLocalWebLibraryModuleURI() {
- return URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getWebModuleAndLocalWebLibModuleProjectName() + IPath.SEPARATOR + getLocalWebLibraryDeployedName());
- }
-
- public URI getRemoteWebLibraryModuleURI() {
- return URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getRemoteWebLibModuleProjectName() + IPath.SEPARATOR + getRemoteWebLibraryDeployedName());
- }
-
- public String getWebModuleDeployedName() {
- return getWebModuleAndLocalWebLibModuleProjectName() + ".war"; //$NON-NLS-1$
- }
-
- public String getLocalWebLibraryDeployedName() {
- return "LocalWebLibrary.jar"; //$NON-NLS-1$
- }
-
- public String getRemoteWebLibraryDeployedName() {
- return getRemoteWebLibModuleProjectName() + ".jar"; //$NON-NLS-1$
- }
-
- public String getModulesFolder() {
- return "MyWebModule"; //$NON-NLS-1$
- }
-
- public String getTestResourcePath() {
- return "WEB-INF/web.xml"; //$NON-NLS-1$
- }
-
- public String getLocalWebLibraryFolderName() {
- return "WebLibraryContents";
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/ModuleStructuralModelTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/ModuleStructuralModelTest.java
deleted file mode 100644
index 1152d78c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/tests/modulecore/ModuleStructuralModelTest.java
+++ /dev/null
@@ -1,409 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 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.jst.j2ee.tests.modulecore;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.wst.common.componentcore.ModuleCoreNature;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.internal.ArtifactEditModel;
-import org.eclipse.wst.common.componentcore.internal.ComponentResource;
-import org.eclipse.wst.common.componentcore.internal.ComponentcoreFactory;
-import org.eclipse.wst.common.componentcore.internal.ProjectComponents;
-import org.eclipse.wst.common.componentcore.internal.ReferencedComponent;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.componentcore.internal.impl.ArtifactEditModelFactory;
-import org.eclipse.wst.common.componentcore.internal.impl.PlatformURLModuleConnection;
-import org.eclipse.wst.common.componentcore.internal.impl.ResourceTreeRoot;
-import org.eclipse.wst.common.componentcore.internal.util.SourcePathProvider;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext;
-
-/**
- * <p>
- * The following class is experimental until fully documented.
- * </p>
- */
-public class ModuleStructuralModelTest extends TestCase {
-
- public static final String MODULE__RESOURCE_URI_PROTOCOL = "module:/resource/";
- private IProject project;
- private EMFWorkbenchContext emfContext;
-
- public interface IModuleTypesConstants {
- String MODULE_TYPE_WEB = "org.eclipse.jst.modules.web"; //$NON-NLS-1$
- }
-
-
- public ModuleStructuralModelTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- // return new TestSuite(ModuleEditModelTest.class);
- TestSuite suite = new TestSuite();
- suite.addTest(new ModuleStructuralModelTest("testResolveDependentModule"));
- return suite;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see junit.framework.TestCase#setUp()
- */
- public void setUp() throws Exception {
- getProjectForWebModuleAndLocalWebLib().delete(true, null);
- getProjectForRemoteWebLib().delete(true, null);
- setupContent();
- super.setUp();
- }
-
- /**
- *
- */
- public void testResourceTree() throws Exception {
- StructureEdit moduleCore = null;
- try {
- /* We need to find the project */
- moduleCore = StructureEdit.getStructureEditForRead(StructureEdit.getContainingProject(getWebModuleURI()));
-
- WorkbenchComponent module = moduleCore.getWorkbenchModules()[0];
- ResourceTreeRoot sourceRoot = new ResourceTreeRoot(module, SourcePathProvider.INSTANCE);
- ComponentResource[] resources = sourceRoot.findModuleResources(URI.createURI("/WebContent/WEB-INF/web.xml"));
- System.out.println(resources[0] != null ? resources[0].getSourcePath().toString() : "NOT FOUND");
-
- } finally {
- if (moduleCore != null)
- moduleCore.dispose();
- }
-
- }
-
- public void testResolveDependentModule() throws Exception {
-
- StructureEdit moduleCore = null;
- try {
- IProject containingProject = StructureEdit.getContainingProject(getWebModuleURI());
- moduleCore = StructureEdit.getStructureEditForRead(containingProject);
- WorkbenchComponent[] modules = moduleCore.getWorkbenchModules();
- ProjectComponents pm = moduleCore.getComponentModelRoot();
- Class clazz = moduleCore.getClass();
- String name = StructureEdit.getDeployedName(getWebModuleURI());
- List dependentModules = null;
- for (int i = 0; i < modules.length; i++) {
- System.out.println("Module: " + modules[i].getName());
- List list = modules[i].getResources();
- for (int j = 0; j < list.size(); j++) {
- ComponentResource wmr = (ComponentResource) list.get(j);
- IResource er = StructureEdit.getEclipseResource(wmr);
- }
- // test modulecore API
- dependentModules = modules[i].getReferencedComponents();
- for (int dependentIndex = 0; dependentIndex < dependentModules.size(); dependentIndex++) {
- ReferencedComponent dependentModule = (ReferencedComponent) dependentModules.get(dependentIndex);
- WorkbenchComponent resolvedModule = moduleCore.findComponentByURI(dependentModule.getHandle());
- System.out.println("\tDependentModule: " + resolvedModule.getName() + " in " + resolvedModule.getHandle());
- boolean b = moduleCore.isLocalDependency(dependentModule);
- }
- }
- } finally {
- if (moduleCore != null)
- moduleCore.dispose();
- }
- }
-
- public void testLoadResource() throws Exception {
-
- ArtifactEditModel artifactModel = null;
- try {
- URI moduleURI = URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getWebModuleAndLocalWebLibModuleProjectName() + "/" + getWebModuleAndLocalWebLibModuleProjectName() + ".war");
- artifactModel = getNature(getProjectForWebModuleAndLocalWebLib()).getArtifactEditModelForRead(moduleURI, this);
- WebArtifactEdit editUtility = (WebArtifactEdit) artifactModel.getAdapter(WebArtifactEdit.ADAPTER_TYPE);
-
- WebApp webApp = (WebApp) editUtility.getDeploymentDescriptorRoot();
- if (webApp == null)
- System.out.println("Read failed.");
- else
- System.out.println("Found WebApp: " + webApp.getDisplayName());
- } finally {
- if (artifactModel != null)
- artifactModel.releaseAccess(this);
- }
- }
-
- public void testURIAPI() throws Exception {
- URI uri = URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getWebModuleAndLocalWebLibModuleProjectName() + IPath.SEPARATOR + getWebModuleDeployedName() + ".war" + IPath.SEPARATOR + getTestResourcePath());
- System.out.println("URI : \"" + uri.toString() + "\"" + " with scheme \"" + uri.scheme() + "\" has " + uri.segmentCount() + " segments. They are ...");
- String[] segments = uri.segments();
- for (int i = 0; i < segments.length; i++)
- System.out.println("[" + i + "]: " + segments[i]);
-
-
- /* Determine if the URI is for a resource or binary module */
-
- if (PlatformURLModuleConnection.RESOURCE_MODULE.equals(segments[0])) {
- StructureEdit moduleCore = null;
- try {
- moduleCore = StructureEdit.getStructureEditForRead(StructureEdit.getContainingProject(uri));
- ComponentResource[] resource = moduleCore.findResourcesByRuntimePath(uri);
- System.out.println(resource != null ? resource[0].getSourcePath().toString() : "NOT FOUND");
- } finally {
- if (moduleCore != null)
- moduleCore.dispose();
- }
- } else if (PlatformURLModuleConnection.BINARY_MODULE.equals(segments[0])) {
-
- }
- }
-
- public void testLoadingDocument() throws Exception {
- ArtifactEditModelFactory factory = new ArtifactEditModelFactory();
-
- URI moduleURI = URI.createURI(PlatformURLModuleConnection.MODULE_PROTOCOL + IPath.SEPARATOR + getWebModuleAndLocalWebLibModuleProjectName() + IPath.SEPARATOR + getWebModuleDeployedName());
- URI ddURI = URI.createURI(IPath.SEPARATOR + "WEB-INF" + IPath.SEPARATOR + "web.xml");
-
- Map params = new HashMap();
- params.put(ArtifactEditModelFactory.PARAM_MODULE_URI, moduleURI);
- EMFWorkbenchContext context = createEMFWorkbenchContext();
- ArtifactEditModel editModel = (ArtifactEditModel) factory.createEditModelForWrite(IModuleTypesConstants.MODULE_TYPE_WEB, context, params);
- Resource ddResource = editModel.getResource(ddURI);
- EObject rootObject = (EObject) ddResource.getContents().get(0);
- if (rootObject == null)
- System.out.println("Read failed.");
- else
- System.out.println("Found WebApp: " + ((WebApp) rootObject).getDisplayName());
-
- }
-
- public void setupContent() throws Exception {
- StructureEdit localModuleCore = null;
- try {
- getProjectForWebModuleAndLocalWebLib();
-
- IProject containingProject = StructureEdit.getContainingProject(getWebModuleURI());
- localModuleCore = StructureEdit.getStructureEditForWrite(containingProject);
-
- createLocalModules(localModuleCore);
-
- // will setup and handle creating the modules model
- getProjectForRemoteWebLib();
-
- WorkbenchComponent webModule = localModuleCore.getComponent();
-
- addDependentModule(webModule, new Path("WEB-INF/lib"), getLocalWebLibraryModuleURI());
- addDependentModule(webModule, new Path("WEB-INF/lib"), getRemoteWebLibraryModuleURI());
-
- localModuleCore.saveIfNecessary(null);
-
- } finally {
- if (localModuleCore != null)
- localModuleCore.dispose();
- }
-
- }
-
- public void createLocalModules(StructureEdit moduleCore) throws Exception {
-
- ProjectComponents projectModules = moduleCore.getComponentModelRoot();
-
- WorkbenchComponent webLibraryModule = addWorkbenchModule(projectModules, getLocalWebLibraryDeployedName(), getLocalWebLibraryModuleURI());
- IFolder localWebLibrary = getProjectForWebModuleAndLocalWebLib().getFolder(getLocalWebLibraryFolderName());
- if (!localWebLibrary.exists())
- localWebLibrary.create(true, true, null);
- addResource(webLibraryModule, localWebLibrary, "/");
- }
-
- public IFile getModuleRelativeFile(String aModuleRelativePath) throws Exception {
- return getProjectForWebModuleAndLocalWebLib().getFile(new Path(getModulesFolder() + IPath.SEPARATOR + aModuleRelativePath));
- }
-
- public void addResource(WorkbenchComponent aModule, IResource aSourceFile, String aDeployPath) {
- ComponentResource resource = ComponentcoreFactory.eINSTANCE.createComponentResource();
- resource.setSourcePath(aSourceFile.getFullPath());
- resource.setRuntimePath(new Path(aDeployPath));
- aModule.getResources().add(resource);
- }
-
- public WorkbenchComponent addWorkbenchModule(ProjectComponents theModules, String aDeployedName, URI aHandle) {
- WorkbenchComponent module = ComponentcoreFactory.eINSTANCE.createWorkbenchComponent();
- module.setName(aDeployedName);
- theModules.getComponents().add(module);
- return module;
- }
-
- public void addDependentModule(WorkbenchComponent aModule, IPath aDeployedPath, URI aHandle) {
- ReferencedComponent aClasspathDependentModule = ComponentcoreFactory.eINSTANCE.createReferencedComponent();
- aClasspathDependentModule.setRuntimePath(aDeployedPath);
- aClasspathDependentModule.setHandle(aHandle);
- aModule.getReferencedComponents().add(aClasspathDependentModule);
- }
-
-
- public EMFWorkbenchContext createEMFWorkbenchContext() throws Exception {
- if (emfContext == null)
- emfContext = new EMFWorkbenchContext(getProjectForWebModuleAndLocalWebLib());
- return emfContext;
- }
-
- public IProject getProjectForWebModuleAndLocalWebLib() throws Exception {
- return getWebProject(getWebModuleAndLocalWebLibModuleProjectName());
- }
-
- public IProject getProjectForRemoteWebLib() throws Exception {
- return getJavaProject(getRemoteWebLibModuleProjectName());
- }
-
- public IProject getWebProject(String aProjectName) throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- if (!project.exists())
- project = createWebProject(aProjectName);
- return project;
- }
-
- public IProject getJavaProject(String aProjectName) throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- if (!project.exists()) {
- // createJavaProject(aProjectName);
- }
- return project;
- }
-
- public IProject createWebProject(String aProjectName) throws Exception {
-
- project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- if (!project.exists()) {
- IDataModel dataModel = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- dataModel.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, aProjectName);
- // dataModel.setProperty(WebComponentCreationDataModel.IS_FLEXIBLE_PROJECT,
- // Boolean.TRUE);
- // dataModel.setProperty(IWebComponentCreationDataModelProperties.ADD_TO_EAR,
- // Boolean.FALSE);
- // dataModel.setProperty(WebComponentCreationDataModel.ADD_SERVER_TARGET,
- // Boolean.FALSE);
- // dataModel.setProperty(WebModuleCreationDataModel.SERVER_TARGET_ID,
- // AllPluginTests.JONAS_SERVER.getId());
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
- return ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- }
-
- // public IProject createJavaProject(String aProjectName) throws Exception {
- //
- // project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- // if (!project.exists()) {
- // IDataModel dataModel = DataModelFactory.createDataModel(new
- // TestJavaProjectCreationDataModelProvider());
- // dataModel.setProperty(ITestJavaProjectCreationProperties.PROJECT_NAME, aProjectName);
- // dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- // project = ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- // ModuleCoreNature.addModuleCoreNatureIfNecessary(project, null);
- //
- // ModuleStructuralModel structuralModel = null;
- // try {
- // structuralModel =
- // ModuleCoreNature.getModuleCoreNature(project).getModuleStructuralModelForWrite(this);
- // structuralModel.prepareProjectModulesIfNecessary();
- // StructureEdit moduleCore = (StructureEdit)
- // structuralModel.getAdapter(StructureEdit.ADAPTER_TYPE);
- // String deployedName = aProjectName + ".jar";
- // URI moduleURI = URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + aProjectName + IPath.SEPARATOR
- // + deployedName);
- // WorkbenchComponent utilityModule = addWorkbenchModule(moduleCore.getComponentModelRoot(),
- // deployedName, moduleURI);
- // IResource sourceFolder = project.getFolder("src");
- // addResource(utilityModule, sourceFolder, "/"); //$NON-NLS-1$
- // structuralModel.saveIfNecessary(this);
- // } finally {
- // if (structuralModel != null)
- // structuralModel.releaseAccess(this);
- // }
- // }
- // return ResourcesPlugin.getWorkspace().getRoot().getProject(aProjectName);
- // }
-
- public ModuleCoreNature getNature(IProject aProject) {
- try {
- return (ModuleCoreNature) aProject.getNature(ModuleCoreNature.MODULE_NATURE_ID);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- return null;
- }
-
- public URI getWebModuleURI() {
- return URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getWebModuleAndLocalWebLibModuleProjectName() + IPath.SEPARATOR + getWebModuleDeployedName());
- }
-
- public URI getLocalWebLibraryModuleURI() {
- return URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getWebModuleAndLocalWebLibModuleProjectName() + IPath.SEPARATOR + getLocalWebLibraryDeployedName());
- }
-
- public URI getRemoteWebLibraryModuleURI() {
- return URI.createURI(MODULE__RESOURCE_URI_PROTOCOL + getRemoteWebLibModuleProjectName() + IPath.SEPARATOR + getRemoteWebLibraryDeployedName());
- }
-
- public String getWebModuleAndLocalWebLibModuleProjectName() {
- return "MyModulesProject"; //$NON-NLS-1$
- }
-
- public String getRemoteWebLibModuleProjectName() {
- return "RemoteWebLibProject"; //$NON-NLS-1$
- }
-
- public String getWebModuleDeployedName() {
- return getWebModuleAndLocalWebLibModuleProjectName() + ".war"; //$NON-NLS-1$
- }
-
- public String getLocalWebLibraryDeployedName() {
- return "LocalWebLibrary.jar"; //$NON-NLS-1$
- }
-
- public String getRemoteWebLibraryDeployedName() {
- return getRemoteWebLibModuleProjectName() + ".jar"; //$NON-NLS-1$
- }
-
- public String getModulesFolder() {
- return "MyWebModule"; //$NON-NLS-1$
- }
-
- public String getTestResourcePath() {
- return "WEB-INF/web.xml"; //$NON-NLS-1$
- }
-
- public String getLocalWebLibraryFolderName() {
- return "WebLibraryContents";
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/CreateModelFromXmlTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/CreateModelFromXmlTest.java
deleted file mode 100644
index 63441777..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/CreateModelFromXmlTest.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class CreateModelFromXmlTest extends TestCase {
-
- private static IFacetedProject facetedProject;
- private EJBJar fixture;
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite();
- setUpProject();
- suite.addTestSuite(CreateModelFromXmlTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- facetedProject = AbstractTest.createEjbProject(CreateModelFromXmlTest.class.getSimpleName());
- createProjectContent();
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(CreateModelFromXmlTest.class.getSimpleName());
- }
-
- private static void createProjectContent() throws Exception {
- setEjbJarXmlContent();
- }
-
- private static void setEjbJarXmlContent() throws IOException, CoreException {
- IFile file = facetedProject.getProject().getFile(new Path("ejbModule/META-INF/ejb-jar.xml"));
- String content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<ejb-jar version=\"3.0\" xmlns=\"http://java.sun.com/xml/ns/javaee\" "
- + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
- + "xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\">"
- + "<enterprise-beans>" + " <session>" + " <ejb-name>com.sap.SessionBean</ejb-name>"
- + " <ejb-class>com.sap.SessionBean</ejb-class>" + " <session-type>Stateless</session-type>"
- + " </session>" + " </enterprise-beans>" + "</ejb-jar>";
-
- ByteArrayOutputStream stream = new ByteArrayOutputStream();
- stream.write(content.getBytes());
- file.setContents(new ByteArrayInputStream(stream.toByteArray()), IResource.FORCE, new NullProgressMonitor());
- }
-
- /**
- * @throws java.lang.Exception
- */
- // @Before
- public void setUp() throws Exception {
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- fixture = (EJBJar) provider.getModelObject();
- }
-
- // @Test
- public void testGetBeans() {
- assertEquals(new Integer(1), new Integer(fixture.getEnterpriseBeans().getSessionBeans().size()));
- }
-
- // @Test
- public void testSessionBean() {
- SessionBean bean = (SessionBean) fixture.getEnterpriseBeans().getSessionBeans().get(0);
- assertEquals("com.sap.SessionBean", bean.getEjbName());
- assertEquals("com.sap.SessionBean", bean.getEjbClass());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/DeleteProjectTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/DeleteProjectTest.java
deleted file mode 100644
index 6849cab1..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/DeleteProjectTest.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * This is a test for deleting a project and updating the model providers.
- *
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class DeleteProjectTest extends TestCase {
-
- public static TestSuite suite() {
- TestSuite suite = new TestSuite(DeleteProjectTest.class);
- return suite;
- }
-
- private static void createProjectContent(IFacetedProject facetedProject) throws CoreException {
- IJavaProject javaProject = JavaCore.create(facetedProject.getProject());
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createSessionBean(fragment);
- createSessionBeanLocal(fragment);
- createBeanWithName(fragment);
- }
-
- private static void createBeanWithName(IPackageFragment fragment) throws JavaModelException {
- String content = String.format("package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless(name=\"%s\") public class BeanWithName implements SessionBeanLocal {}", "beanWithName");
- fragment.createCompilationUnit("BeanWithName.java", content, true, null);
- }
-
- private static void createSessionBeanLocal(IPackageFragment fragment) throws JavaModelException {
- fragment.createCompilationUnit("SessionBeanLocal.java", "package com.sap;" + "import javax.ejb.Local;"
- + "@Local public interface SessionBeanLocal {}", true, null);
- }
-
- private static void createSessionBean(IPackageFragment fragment) throws JavaModelException {
- fragment.createCompilationUnit("SessionBean.java", "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class SessionBean implements SessionBeanLocal {}", true, null);
- }
-
- /**
- * The same instance of the model provider is preserved during deleting the
- * project. After the project is deleted the instance of the IModelProvider
- * must return <code>null</code> for model object
- *
- * @throws Exception
- */
- // @Test
- public void testDeleteProjectSameProvider() throws Exception {
- IProject project = ProjectUtil.createEJBProject(DeleteProjectTest.class.getSimpleName()
- + "testDeleteProjectSameProvider", null, J2EEVersionConstants.EJB_3_0_ID, true);
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- createProjectContent(facetedProject);
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- EJBJar firstModel = (EJBJar) provider.getModelObject();
- assertNotNull(firstModel);
- assertEquals(firstModel, provider.getModelObject());
-
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.deleteProject(facetedProject.getProject().getName());
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
-
- try {
- EJBJar secondModel = (EJBJar) provider.getModelObject();
- fail("IllegalStateException expected because the project is deleted and can not be accessed.");
- } catch (IllegalStateException e) {
- }
- }
-
- // @Test(expected = IllegalArgumentException.class)
- public void testProviderForNonExistingProject() {
- IProject nonExistingProject = ResourcesPlugin.getWorkspace().getRoot().getProject(
- "testProviderForNonExistingProject");
- assertFalse(nonExistingProject.exists());
- IModelProvider modelProvider = ModelProviderManager.getModelProvider(nonExistingProject);
- assertNull(modelProvider);
- }
-
- /**
- * Get the model for a project. Close the project. Get the model from the
- * same model provider. The model should be null because the project is
- * closed.
- *
- * @throws Exception
- */
- // @Test
- public void testCloseProjectSameProvider() throws Exception {
- IProject project = ProjectUtil.createEJBProject(DeleteProjectTest.class.getSimpleName() + "testClose", null,
- J2EEVersionConstants.EJB_3_0_ID, true);
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- createProjectContent(facetedProject);
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- EJBJar firstModel = (EJBJar) provider.getModelObject();
- assertNotNull(firstModel);
- assertEquals(firstModel, provider.getModelObject());
-
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.closeProject(facetedProject.getProject().getName());
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
- try {
- EJBJar secondModel = (EJBJar) provider.getModelObject();
- fail("IllegalStateExceptino expected because the project is deleted and can not be accessed.");
- } catch (IllegalStateException e) {
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJB3MergedModelProviderFactoryTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJB3MergedModelProviderFactoryTest.java
deleted file mode 100644
index 199b6cef..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJB3MergedModelProviderFactoryTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.jee.model.internal.Ejb3MergedModelProviderFactory;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class EJB3MergedModelProviderFactoryTest extends TestCase {
-
- private Ejb3MergedModelProviderFactory fixture;
-
- public static Test suite() {
- TestSuite suite = new TestSuite(EJB3MergedModelProviderFactoryTest.class);
- return suite;
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- fixture = new Ejb3MergedModelProviderFactory();
- }
-
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- public void testCreateForProject() {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- this.getClass().getSimpleName() + this.getName());
- IModelProvider provider = fixture.create(project);
- assertNotNull(provider);
- }
-
- public void testSameProjectDisposedProvider() {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- this.getClass().getSimpleName() + this.getName());
- IModelProvider provider = fixture.create(project);
- assertFalse(provider.equals(fixture.create(project)));
- assertNotSame(provider, fixture.create(project));
- }
-
- /**
- * Same provider must be returned for the same project.
- *
- * @throws Exception
- */
- public void testSameProject() throws Exception {
- IProject project = ProjectUtil.createEJBProject(this.getClass().getSimpleName() + this.getName(), null,
- J2EEVersionConstants.EJB_3_0_ID, true);
- IModelProvider provider = fixture.create(project);
- provider.getModelObject();
- IModelProvider secondProvider = fixture.create(project);
- assertEquals(provider.getModelObject(), secondProvider.getModelObject());
- assertEquals(provider, secondProvider);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJB3MergedModelProviderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJB3MergedModelProviderTest.java
deleted file mode 100644
index 5cfda8a0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJB3MergedModelProviderTest.java
+++ /dev/null
@@ -1,338 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.ejb.internal.operations.AddSessionBeanOperation;
-import org.eclipse.jst.j2ee.ejb.internal.operations.INewSessionBeanClassDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.internal.operations.NewSessionBeanClassDataModelProvider;
-import org.eclipse.jst.j2ee.ejb.internal.operations.StateType;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.ejb.archiveoperations.EjbClientJarCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.archiveoperations.IEjbClientJarCreationDataModelProperties;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.jee.model.internal.Ejb3ModelProvider;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class EJB3MergedModelProviderTest extends AbstractAnnotationModelTest {
-
- private static final String EJB_PROJECT_NAME = EJB3MergedModelProviderTest.class.getSimpleName();
- private static final String EAR_PROJECT_NAME = EJB_PROJECT_NAME + "ear";
- private static final String CLIENT_NAME = EJB_PROJECT_NAME + "Client";
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(EJB3MergedModelProviderTest.class);
- setUpProject();
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- ProjectUtil.createEARProject(EAR_PROJECT_NAME);
- IProject project = ProjectUtil.createEJBProject(EJB_PROJECT_NAME, EAR_PROJECT_NAME, CLIENT_NAME,
- J2EEVersionConstants.EJB_3_0_ID, true);
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- IProject clientProject = ResourcesPlugin.getWorkspace().getRoot().getProject(CLIENT_NAME);
- createProjectContent(facetedProject.getProject());
- createClientProjectContent(clientProject);
- }
-
- private static void createClientProjectContent(IProject clientProject) throws Exception {
- IJavaProject javaProject = JavaCore.create(clientProject);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- comFolder.getFolder("sap").create(true, true, null);
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createSessionBeanLocal(fragment);
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(EJB3MergedModelProviderTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- comFolder.getFolder("sap").create(true, true, null);
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createSessionBean(fragment);
- }
-
- // @Before
- public void setUp() throws Exception {
- super.setUp();
- if (facetedProject == null)
- return;
- fixture = ModelProviderManager.getModelProvider(facetedProject.getProject());
- clientProject = ResourcesPlugin.getWorkspace().getRoot().getProject(CLIENT_NAME);
- }
-
- // @After
- public void tearDown() throws Exception {
- }
-
- // @Test
- public void testAddBeanWithOperation() throws Exception {
- final String ejbProjectName = this.getClass().getSimpleName() + this.getName();
- final String clientName = ejbProjectName + "Client";
- IProject project = ProjectUtil.createEJBProject(ejbProjectName, ejbProjectName + "ear", clientName,
- J2EEVersionConstants.EJB_3_0_ID, true);
- IDataModelOperation operation = createBeanOperation("testAddBeanWithOperation", "com.sap", project.getName());
- IModelProvider provider = ModelProviderManager.getModelProvider(project);
-
- EJBJar result = (EJBJar) provider.getModelObject();
- assertEquals(new Integer(0), new Integer(result.getEnterpriseBeans().getSessionBeans().size()));
- executeAndWait(operation, provider);
-
- result = (EJBJar) provider.getModelObject();
- assertEquals(new Integer(1), new Integer(result.getEnterpriseBeans().getSessionBeans().size()));
- assertNotNull(TestUtils.getSessionBean(result, "testAddBeanWithOperation"));
- }
-
- // @Test
- public void testAddBeanWithOperationPreserveListeners() throws Exception {
- final String ejbProjectName = this.getClass().getSimpleName() + this.getName();
- IProject project = ProjectUtil.createEJBProject(ejbProjectName, null, J2EEVersionConstants.EJB_3_0_ID, true);
- IModelProvider provider = ModelProviderManager.getModelProvider(project);
- IDataModelOperation operation = createBeanOperation("testAddBeanWithOperationPreserveListeners1", "com.sap",
- project.getName());
- SynchronousModelChangedListener preservedListener = new SynchronousModelChangedListener(2);
- provider.addListener(preservedListener);
- executeAndWait(operation, provider);
- assertNotNull(TestUtils.getSessionBean((EJBJar) provider.getModelObject(),
- "testAddBeanWithOperationPreserveListeners1"));
-
- int oldReceivedEvents = preservedListener.getReceivedEvents().size();
- operation = createBeanOperation("testAddBeanWithOperationPreserveListeners2", "com.sap", project.getName());
- executeAndWait(operation, provider);
- assertNotNull(TestUtils.getSessionBean((EJBJar) provider.getModelObject(),
- "testAddBeanWithOperationPreserveListeners2"));
- assertTrue(preservedListener.getReceivedEvents().size() > oldReceivedEvents);
- }
-
- // /**
- // * Execute an operation on the model. Change the dd. The listeners should
- // * not be removed. https://bugs.eclipse.org/bugs/show_bug.cgi?id=241496
- // *
- // * @throws Exception
- // */
- // public void testPreserveListenersChangeDD() throws Exception {
- // final String ejbProjectName = this.getClass().getSimpleName() +
- // this.getName();
- // final IProject project = createEjbProjectWithoutClient(ejbProjectName,
- // ejbProjectName + "ear");
- // final IDataModel model = createModelEjbProjectWithClient(ejbProjectName);
- // SynchronousModelChangedListener preserveListener = new
- // SynchronousModelChangedListener(2);
- //
- // IModelProvider provider = ModelProviderManager.getModelProvider(project);
- // provider.addListener(preserveListener);
- // IFile ejbJarXml = project.getFile("ejbModule/META-INF/ejb-jar.xml");
- // String content = TestUtils.getFileContent(ejbJarXml);
- // executeAndWait(model.getDefaultOperation(), provider);
- // assertNotNull(((EJBJar) provider.getModelObject()).getEjbClientJar());
- //
- // int oldEventsSize = preserveListener.getReceivedEvents().size();
- // AbstractTest.saveFile(ejbJarXml, content);
- // assertTrue(preserveListener.waitForEvents());
- // assertTrue(preserveListener.getReceivedEvents().size() > oldEventsSize);
- // assertNull(((EJBJar) provider.getModelObject()).getEjbClientJar());
- // provider.removeListener(preserveListener);
- // }
-
- private IDataModel createModelEjbProjectWithClient(final String ejbProjectName) {
- final IDataModel model = DataModelFactory.createDataModel(new EjbClientJarCreationDataModelProvider());
- model.setProperty(IEjbClientJarCreationDataModelProperties.EJB_PROJECT_NAME, ejbProjectName);
- model.setProperty(IEjbClientJarCreationDataModelProperties.PROJECT_NAME, CLIENT_NAME + "newName");
- return model;
- }
-
- private IProject createEjbProjectWithoutClient(final String ejbProjectName, final String earProjectName)
- throws Exception {
- Map<String, Object> facetModelProperties = new HashMap<String, Object>();
- facetModelProperties.put(IEjbFacetInstallDataModelProperties.CREATE_CLIENT, false);
- facetModelProperties.put(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- final IProject project = ProjectUtil.createEJBProject(ejbProjectName, earProjectName, facetModelProperties,
- J2EEVersionConstants.EJB_3_0_ID, true);
- return project;
- }
-
- public void testCreateClientProjectWithOperation() throws Exception {
- final String ejbProjectName = this.getClass().getSimpleName() + this.getName();
- final IProject project = createEjbProjectWithoutClient(ejbProjectName, ejbProjectName + "ear");
- final IModelProvider provider = new Ejb3ModelProvider(project);
- provider.getModelObject();
- final IDataModel model = createModelEjbProjectWithClient(ejbProjectName);
-
- executeAndWait(model.getDefaultOperation(), provider);
-
- EJBJar result = (EJBJar) provider.getModelObject();
- assertEquals(CLIENT_NAME + "newNameClient" + ".jar", result.getEjbClientJar());
- }
-
- private void executeAndWait(IDataModelOperation operation, IModelProvider provider) throws InterruptedException,
- ExecutionException {
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- operation.execute(null, null);
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
- }
-
- // @Test
- // public void testChangeClientProject() throws Exception {
- // final String ejbProjectName = this.getClass().getSimpleName() +
- // this.getName();
- // final String clientName = ejbProjectName + "Client";
- // IProject project = ProjectUtil.createEJBProject(ejbProjectName,
- // ejbProjectName + "ear", clientName,
- // J2EEVersionConstants.EJB_3_0_ID, true);
- //
- // IFile dd =
- // facetedProject.getProject().getFile("ejbModule/META-INF/ejb-jar.xml");
- // final String ddWithClient = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- // +
- // "<ejb-jar xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://java.sun.com/xml/ns/javaee\" xmlns:ejb=\"http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\" version=\"3.0\">"
- // + "<ejb-client-jar>" + clientName + ".jar</ejb-client-jar></ejb-jar>";
- // final String ddNoClient = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- // +
- // "<ejb-jar xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://java.sun.com/xml/ns/javaee\" xmlns:ejb=\"http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\" version=\"3.0\">"
- // + "</ejb-jar>";
- // // load the model
- // IModelProvider provider = ModelProviderManager.getModelProvider(project);
- //
- // EJBJar result = (EJBJar) provider.getModelObject();
- // /*
- // * From now on the model provider should not listener for changes in
- // * the client project since it is not described in the deployment
- // * descriptor.
- // */
- // saveFileAndUpdate(dd, ddNoClient, provider);
- //
- // /*
- // * Change the interface. The model should not be updated.
- // */
- // final String remoteInterface = "package com.sap;" +
- // "import javax.ejb.Remote;"
- // + "@Remote public interface SessionBeanLocal {}";
- // IFile interfaceFile =
- // clientProject.getFile("ejbModule/com/sap/SessionBeanLocal.java");
- // SynchronousModelChangedListener listener = new
- // SynchronousModelChangedListener(1);
- // provider.addListener(listener);
- // AbstractTest.saveFile(interfaceFile, remoteInterface);
- // assertFalse(listener.waitForEvents());
- // provider.removeListener(listener);
- // result = (EJBJar) provider.getModelObject();
- // SessionBean bean = TestUtils.getSessionBean(result, "SessionBean");
- // assertEquals(new Integer(1), new
- // Integer(bean.getBusinessLocals().size()));
- // assertTrue(bean.getBusinessRemotes().isEmpty());
- //
- // /*
- // * The deployment descriptor is changed. The bean should now contain the
- // * interface in the remotes list
- // */
- // saveFileAndUpdate(dd, ddWithClient, provider);
- // bean = TestUtils.getSessionBean(result, "SessionBean");
- // assertEquals(new Integer(1), new
- // Integer(bean.getBusinessRemotes().size()));
- // assertTrue(bean.getBusinessLocals().isEmpty());
- //
- // // revet the changes
- // saveFileAndUpdate(facetedProject.getProject().getFile("ejbModule/com/sap/SessionBean.java"),
- // beanContent);
- // saveFileAndUpdate(interfaceFile, localInterfaceContent);
- // }
-
-// /**
-// * Create an ejb project with a client project. Add a session bean to the
-// * project. After creating the ejb project a client project is created. The
-// * modify method of the provider is called passing a runnable for setting
-// * the ejbClient. This is the current implementation of how a client is
-// * create.
-// *
-// * The test doing exactly this. Create an ear project. Create and ejb
-// * project with a client project. Check that the model nows about the
-// * ejbClient project. Then add a session bean to the ejb project. The
-// * listener must be notified.
-// *
-// * @throws Exception
-// */
-// public void testAddSessionBean() throws Exception {
-// final String ejbProjectName = this.getClass().getSimpleName() + this.getName();
-//
-// // create the project
-// ProjectUtil.createEARProject(ejbProjectName + "ear", true);
-// IProject project = ProjectUtil.createEJBProject(ejbProjectName, ejbProjectName + "ear", ejbProjectName
-// + "client", J2EEVersionConstants.EJB_3_0_ID, true);
-// IFolder comFolder = project.getFolder("ejbModule/com");
-// comFolder.create(true, true, null);
-// comFolder.getFolder("sap").create(true, true, null);
-//
-// // get the model provider
-// IModelProvider provider = ModelProviderManager.getModelProvider(project);
-// EJBJar result = (EJBJar) provider.getModelObject();
-// assertEquals(ejbProjectName + "Client.jar", result.getEjbClientJar());
-// IDataModelOperation operation = createBeanOperation("testAddSessionBeanClientExists", "com.sap", project
-// .getName());
-// executeAndWait(operation, provider);
-//
-// result = (EJBJar) provider.getModelObject();
-// assertNotNull(TestUtils.getSessionBean(result, "testAddSessionBeanClientExists"));
-// }
-
- protected IDataModelOperation createBeanOperation(String className, String javaPackage, String projectName) {
- NewSessionBeanClassDataModelProvider dataProvider = new NewSessionBeanClassDataModelProvider();
- IDataModel dataModel = DataModelFactory.createDataModel(dataProvider);
- dataModel.setStringProperty(INewSessionBeanClassDataModelProperties.CLASS_NAME, className);
- dataModel.setStringProperty(INewSessionBeanClassDataModelProperties.STATE_TYPE, StateType.STATELESS.toString());
- dataModel.setStringProperty(INewSessionBeanClassDataModelProperties.EJB_NAME, className);
- dataModel.setStringProperty(INewSessionBeanClassDataModelProperties.JAVA_PACKAGE, javaPackage);
- dataModel.setStringProperty(INewSessionBeanClassDataModelProperties.PROJECT_NAME, projectName);
- AddSessionBeanOperation operation = new AddSessionBeanOperation(dataModel);
- return operation;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJBAnnotationReaderWithClientTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJBAnnotationReaderWithClientTest.java
deleted file mode 100644
index 6acd8fef..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EJBAnnotationReaderWithClientTest.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.EJBAnnotationReader;
-import org.eclipse.jst.jee.model.internal.common.AbstractAnnotationModelProvider;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-
-/**
- * Test the cases for an EJBProject that has a client project connected with it.
- * The test is for EJBAnnotationReader.
- *
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class EJBAnnotationReaderWithClientTest extends AbstractAnnotationModelTest {
-
- private static final String ejbProjectName = EJBAnnotationReaderWithClientTest.class.getSimpleName();
- private static final String earProjectName = ejbProjectName + "ear";
- private static final String clientName = ejbProjectName + "Client";
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(EJBAnnotationReaderWithClientTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(ejbProjectName);
- if (!project.exists())
- {
- ProjectUtil.createEARProject(ejbProjectName + "ear", true);
- project = ProjectUtil.createEJBProject(ejbProjectName, earProjectName, clientName,
- J2EEVersionConstants.EJB_3_0_ID, true);
- IProject clientProject = ResourcesPlugin.getWorkspace().getRoot().getProject(clientName);
- createProjectContent(project);
- createClientProjectContent(clientProject);
- }
- }
-
- private static void createClientProjectContent(IProject clientProject) throws Exception {
- IJavaProject javaProject = JavaCore.create(clientProject);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- comFolder.getFolder("sap").create(true, true, null);
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(EjbAnnotationReaderTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- comFolder.getFolder("sap").create(true, true, null);
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- clientProject = ResourcesPlugin.getWorkspace().getRoot().getProject(clientName);
- fixture = new EJBAnnotationReader(facetedProject, clientProject);
- }
-
- // @After
- @Override
- protected void tearDown() throws Exception {
- ((AbstractAnnotationModelProvider) fixture).dispose();
- }
-
- // @Test
- public void testLocalInterfaceInClient() throws Exception {
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testLocalInterfaceInClient.java");
- IFile interfaceFile = clientProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String beanContent = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testLocalInterfaceInClient implements InterfaceForAddedBean {}";
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
-
- // add the bean
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testLocalInterfaceInClient");
- assertNotNull(result);
- assertEquals("InterfaceForAddedBean", result.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testLocalInterfaceInClient");
- assertNotNull(result);
- assertEquals("com.sap.InterfaceForAddedBean", result.getBusinessLocals().get(0));
-
- // revert the change
- deleteFileAndUpdate(beanFile);
- // the bean is delete. Not update will occur on the annotation reader
- AbstractTest.deleteFile(interfaceFile);
- }
-
- /**
- * The two beans are in the ejb project. The interface is in the client
- * project. Change this interface to remote.
- *
- * @throws Exception
- */
- // @Test
- public void testLocalToRemoteInterfaceInClient() throws Exception {
- IFile bean1File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testLocalToRemoteInterfaceInClient1.java");
- IFile bean2File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testLocalToRemoteInterfaceInClient2.java");
- IFile interfaceFile = clientProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String bean1Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testLocalToRemoteInterfaceInClient1 implements InterfaceForAddedBean {}";
- final String bean2Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testLocalToRemoteInterfaceInClient2 implements InterfaceForAddedBean {}";
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result1 = TestUtils.getSessionBean(getEJBJar(), "testLocalToRemoteInterfaceInClient1");
- assertEquals("InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- SessionBean result2 = TestUtils.getSessionBean(getEJBJar(), "testLocalToRemoteInterfaceInClient2");
- assertEquals("InterfaceForAddedBean", result2.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
-
- // change the interface to remote
- final String interfaceContentRemote = "package com.sap;" + "import javax.ejb.Remote"
- + "@Remote public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContentRemote);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testLocalToRemoteInterfaceInClient1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessRemotes().get(0));
- result2 = TestUtils.getSessionBean(getEJBJar(), "testLocalToRemoteInterfaceInClient2");
- assertEquals("com.sap.InterfaceForAddedBean", result2.getBusinessRemotes().get(0));
- assertTrue(result1.getBusinessLocals().isEmpty());
- assertTrue(result2.getBusinessLocals().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(bean1File);
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testLocalToRemoteInterfaceInClient1"));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testLocalToRemoteInterfaceInClient2"));
- AbstractTest.deleteFile(interfaceFile);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/Ejb3ModelProviderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/Ejb3ModelProviderTest.java
deleted file mode 100644
index f1391782..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/Ejb3ModelProviderTest.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import java.util.Collection;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.model.IModelProviderEvent;
-import org.eclipse.jst.javaee.core.Description;
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.jee.model.internal.Ejb3ModelProvider;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class Ejb3ModelProviderTest extends TestCase {
-
- private static final String EAR_PROJECT_NAME = "earProject";
- private static final String EJB_PROJECT_NAME = "ejbProject";
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(Ejb3ModelProviderTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- }
-
- /**
- * A notification should be send after a modification on the model.
- * @throws Exception
- */
- public void testModifyOnlyModelWithOperation() throws Exception {
- ProjectUtil.createEARProject(EAR_PROJECT_NAME);
- IProject project = ProjectUtil.createEJBProject(EJB_PROJECT_NAME, EAR_PROJECT_NAME,
- J2EEVersionConstants.EJB_3_0_ID, true);
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- final Ejb3ModelProvider modelProvider = new Ejb3ModelProvider(facetedProject.getProject());
- assertNotNull(modelProvider.getModelObject());
- modelProvider.addListener(listener);
- modelProvider.modify(new Runnable() {
- public void run() {
- EJBJar modelObject = (EJBJar) modelProvider.getModelObject();
- changeModelObject(modelObject);
- }
-
- private void changeModelObject(EJBJar modelObject) {
- Description description = JavaeeFactory.eINSTANCE.createDescription();
- modelObject.getDescriptions().add(description);
- }
- }, null);
- assertTrue(listener.waitForEvents());
- Collection<IModelProviderEvent> events = listener.getReceivedEvents();
- assertEquals(1, events.size());
- modelProvider.removeListener(listener);
- }
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- setUpProject();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbAnnotationFactoryTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbAnnotationFactoryTest.java
deleted file mode 100644
index 4474d022..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbAnnotationFactoryTest.java
+++ /dev/null
@@ -1,303 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.javaee.core.EjbLocalRef;
-import org.eclipse.jst.javaee.core.InjectionTarget;
-import org.eclipse.jst.javaee.core.ResourceRef;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.RemoveMethodType;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.javaee.ejb.SessionType;
-import org.eclipse.jst.javaee.ejb.TransactionType;
-import org.eclipse.jst.jee.model.internal.EjbAnnotationFactory;
-import org.eclipse.jst.jee.model.internal.common.Result;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationFactoryTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-
-/**
- * Contains tests for {@link EjbAnnotationFactory}. This class includes test
- * that do not depend on resolving types. Negative tests are also included here.
- *
- * @author Kiril Mitov k.mitov@sap.com
- */
-public class EjbAnnotationFactoryTest extends AbstractAnnotationFactoryTest {
-
- public static TestSuite suite() {
- TestSuite suite = new TestSuite(EjbAnnotationFactoryTest.class);
- return suite;
- }
-
- /**
- * The content of the annotation is not valid.It should be an array.
- *
- * @throws JavaModelException
- */
- // @Test
- public void testNotArrayLocal() throws JavaModelException {
- final String beanContent = "package com.sap; "
- + "@Stateless @Local(value = java.util.List.class) public class testNotArrayLocal {}";
- IType type = createCompilationUnit("testNotArrayLocal", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean bean = (SessionBean) result.getMainObject();
- assertTrue(bean.getBusinessLocals().isEmpty());
- }
-
- /**
- * The content of the annotation is not valid.It should be an array.
- *
- * @throws JavaModelException
- */
- // @Test
- public void testNotArrayRemote() throws JavaModelException {
- final String beanContent = "package com.sap; "
- + "@Stateless @Remote(value = java.util.List.class) public class testNotArrayRemote {}";
- IType type = createCompilationUnit("testNotArrayRemote", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean bean = (SessionBean) result.getMainObject();
- assertTrue(bean.getBusinessRemotes().isEmpty());
- }
-
- // @Test
- public void testNotArrayEjbs() throws JavaModelException {
- final String beanContent = "package com.sap; "
- + "@Stateless @EJBs(value = @EJB()) public class testNotArrayEjbs {}";
- IType type = createCompilationUnit("testNotArrayEjbs", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean bean = (SessionBean) result.getMainObject();
- assertTrue(bean.getEjbLocalRefs().isEmpty());
- }
-
- // @Test
- public void testNotArrayResources() throws JavaModelException {
- final String beanContent = "package com.sap; "
- + "@Stateless @Resources(value = @Resource(type = \"java.lang.Comparable\")) public class testNotArrayResources {}";
- IType type = createCompilationUnit("testNotArrayResources", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean bean = (SessionBean) result.getMainObject();
- assertTrue(bean.getResourceRefs().isEmpty());
- }
-
- // @Test
- public void testNotArrayDeclareRoles() throws JavaModelException {
- final String beanContent = "package com.sap; "
- + "@Stateless @DeclareRoles(value = \"role1\") public class testNotArrayDeclareRoles {}";
- IType type = createCompilationUnit("testNotArrayDeclareRoles", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean bean = (SessionBean) result.getMainObject();
- assertTrue(bean.getSecurityRoleRefs().isEmpty());
- }
-
- // @Test
- public void testNotArrayActivationConfig() throws JavaModelException {
- final String beanContent = "package com.sap; "
- + "@MessageDriven(activationConfig = "
- + "@ActivationConfigProperty(propertyName = \"name1\", propertyValue = \"value1\"),"
- + "@ActivationConfigProperty(propertyName = \"name2\", propertyValue = \"value2\")) public class testNotArrayActivationConfig {}";
- IType type = createCompilationUnit("testNotArrayActivationConfig", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- MessageDrivenBean bean = (MessageDrivenBean) result.getMainObject();
- assertNull(bean.getActivationConfig());
- }
-
- // @Test
- public void testTimeout() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testTimeout implements SessionBeanLocal{"
- + "@Timeout public void timeoutMethod1(javax.ejb.Timer timer) {}"
- + "@Timeout public void timeoutMethod2(javax.ejb.Timer timer) {}"
- + "@Timeout public void timeoutMethod3() {}" + "}";
- IType type = createCompilationUnit("testTimeout", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean.getTimeoutMethod());
- assertEquals("timeoutMethod2", sessionBean.getTimeoutMethod().getMethodName());
- assertEquals("javax.ejb.Timer", sessionBean.getTimeoutMethod().getMethodParams().getMethodParams().get(0));
- }
-
- // @Test
- public void testTimeoutStateful() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateful public class testTimeoutStateful implements SessionBeanLocal{"
- + "@Timeout public void timeoutMethod(javax.ejb.Timer timer) {}" + "}";
- IType type = createCompilationUnit("testTimeoutStateful", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertNull(sessionBean.getTimeoutMethod());
- }
-
- // @Test
- public void testSingleton() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Singleton public class testSingleton implements SessionBeanLocal{}";
- IType type = createCompilationUnit("testSingleton", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertTrue(sessionBean.getSessionType() == SessionType.SINGLETON_LITERAL);
- }
-
- // @Test
- public void testTransactionManagementBean() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateful @TransactionManagement(value = TransactionManagementType.BEAN) "
- + "public class testTransactionManagementBean implements SessionBeanLocal{" + "}";
- IType type = createCompilationUnit("testTransactionManagementBean", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals(TransactionType.BEAN_LITERAL, sessionBean.getTransactionType());
-
- }
-
- // @Test
- public void testTransactionManagementContainer() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateful @TransactionManagement(value = TransactionManagementType.CONTAINER) "
- + "public class testTransactionManagementContainer implements SessionBeanLocal{" + "}";
- IType type = createCompilationUnit("testTransactionManagementContainer", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals(TransactionType.CONTAINER_LITERAL, sessionBean.getTransactionType());
- }
-
- // @Test
- public void testTransactionManagementContainerMDB() throws Exception {
- final String beanContent = "package com.sap;"
- + "@MessageDriven @TransactionManagement(value = TransactionManagementType.CONTAINER) "
- + "public class testTransactionManagementContainerMDB {" + "}";
- IType type = createCompilationUnit("testTransactionManagementContainerMDB", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- MessageDrivenBean messageBean = (MessageDrivenBean) result.getMainObject();
- assertNotNull(messageBean);
- assertEquals(TransactionType.CONTAINER_LITERAL, messageBean.getTransactionType());
- }
-
- // @Test
- public void testTransactionManagementStaticImportContainer() throws Exception {
- final String beanContent = "package com.sap; " + "import static TransactionManagementType.CONTAINER;"
- + "@Stateful @TransactionManagement(value = CONTAINER) "
- + "public class testTransactionManagementStaticImportContainer implements SessionBeanLocal{" + "}";
- IType type = createCompilationUnit("testTransactionManagementStaticImportContainer", beanContent)
- .findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertEquals(TransactionType.CONTAINER_LITERAL, sessionBean.getTransactionType());
- }
-
- // @Test
- public void testRemoveMethod() throws Exception {
- final String beanContent = "package com.sap"
- + "@Stateful public class testRemoveMethod implements SessionBeanLocal {"
- + "@Remove public void removeMethod1() {}"
- + "@Remove(retainIfException = true) public void removeMethod2() {}"
- + "@Remove(retainIfException = true) public void removeMethodParam(java.lang.String str) {}" + "}";
- IType type = createCompilationUnit("testRemoveMethod", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- RemoveMethodType method1 = TestUtils.findRemoveMethodByName(sessionBean, "removeMethod1");
- RemoveMethodType method2 = TestUtils.findRemoveMethodByName(sessionBean, "removeMethod2");
- assertNotNull(method1);
- assertNotNull(method2);
- assertFalse(method1.isRetainIfException());
- assertTrue(method2.isRetainIfException());
- assertEquals(new Integer(2), new Integer(sessionBean.getRemoveMethods().size()));
- }
-
- // @Test
- public void testRemoveMethodOnStateless() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testRemoveMethodOnStateless implements SessionBeanLocal {"
- + "@Remove public void removeMethod1() {}" + "}";
- IType type = createCompilationUnit("testRemoveMethodOnStateless", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertTrue(sessionBean.getRemoveMethods().isEmpty());
- }
-
- // @Test
- public void testDeclareRolesOnMessageDrivenBean() throws Exception {
- final String beanContent = "package com.sap;" + "@DeclareRoles(value = {\"role1\", \"role2\"}) "
- + "@MessageDriven public class testDeclareRolesOnMessageDrivenBean implements SessionBeanLocal {}";
- IType type = createCompilationUnit("testDeclareRolesOnMessageDrivenBean", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- MessageDrivenBean bean = (MessageDrivenBean) result.getMainObject();
- assertNotNull(bean);
- }
-
- public void testEjbRefName() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testEjbRefName implements SessionBeanLocal {"
- + "@EJB(name=\"refName\") private SessionBeanLocal field;" + "}";
- IType type = createCompilationUnit("testEjbRefName", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals(1, sessionBean.getEjbLocalRefs().size());
- EjbLocalRef ref = (EjbLocalRef) sessionBean.getEjbLocalRefs().get(0);
- assertEquals(1, ref.getInjectionTargets().size());
- assertInjectionTarget("refName", "", (InjectionTarget) ref.getInjectionTargets().get(0));
- }
-
- public void testEjbRefNameWithSlash() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testEjbRefNameWithSlash implements SessionBeanLocal {"
- + "@EJB(name=\"refClass/refName\") private SessionBeanLocal field;" + "}";
- IType type = createCompilationUnit("testEjbRefNameWithSlash", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals(1, sessionBean.getEjbLocalRefs().size());
- EjbLocalRef ref = (EjbLocalRef) sessionBean.getEjbLocalRefs().get(0);
- assertEquals(1, ref.getInjectionTargets().size());
- assertInjectionTarget("refName", "refClass", (InjectionTarget) ref.getInjectionTargets().get(0));
- }
-
- public void testResourceRefName() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testResourceRefName implements SessionBeanLocal {"
- + "@Resource(name=\"refName\") private SessionBeanLocal field;" + "}";
- IType type = createCompilationUnit("testResourceRefName", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals(1, sessionBean.getResourceRefs().size());
- ResourceRef ref = (ResourceRef) sessionBean.getResourceRefs().get(0);
- assertEquals(1, ref.getInjectionTargets().size());
- assertInjectionTarget("refName", "", (InjectionTarget) ref.getInjectionTargets().get(0));
- }
-
- public void testResourceRefNameWithSlash() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testResourceRefNameWithSlash implements SessionBeanLocal {"
- + "@Resource(name=\"refClass/refName\") private SessionBeanLocal field;" + "}";
- IType type = createCompilationUnit("testResourceRefNameWithSlash", beanContent).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals(1, sessionBean.getResourceRefs().size());
- ResourceRef ref = (ResourceRef) sessionBean.getResourceRefs().get(0);
- assertEquals(1, ref.getInjectionTargets().size());
- assertInjectionTarget("refName", "refClass", (InjectionTarget) ref.getInjectionTargets().get(0));
- }
-
- private void assertInjectionTarget(String targetName, String targetClass, InjectionTarget target) {
- assertEquals(targetClass, target.getInjectionTargetClass());
- assertEquals(targetName, target.getInjectionTargetName());
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbAnnotationReaderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbAnnotationReaderTest.java
deleted file mode 100644
index 57d8a66e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbAnnotationReaderTest.java
+++ /dev/null
@@ -1,932 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2007 by SAP AG, Walldorf. http://www.sap.com All rights
- * reserved.
- *
- * This software is the confidential and proprietary information of SAP AG,
- * Walldorf. You shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement you entered
- * into with SAP.
- *
- * $Id: EjbAnnotationReaderTest.java,v 1.7 2010/11/23 14:01:47 jsholl Exp $
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import java.util.List;
-
-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.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.javaee.ejb.ActivationConfigProperty;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.EnterpriseBeans;
-import org.eclipse.jst.javaee.ejb.InitMethodType;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.RemoveMethodType;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.EJBAnnotationReader;
-import org.eclipse.jst.jee.model.internal.common.AbstractAnnotationModelProvider;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.tests.ProjectUtility;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class EjbAnnotationReaderTest extends AbstractAnnotationModelTest {
-
- private static String BEAN_WITH_NAME = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless(name=\"%s\") public class BeanWithName implements SessionBeanLocal {}";
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(EjbAnnotationReaderTest.class);
- return suite;
- }
-
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- EjbAnnotationReaderTest.class.getSimpleName());
- if (!project.exists()) {
- project = ProjectUtil.createEJBProject(EjbAnnotationReaderTest.class.getSimpleName(), null,
- J2EEVersionConstants.EJB_3_0_ID, true);
- createProjectContent(project);
- }
- }
-
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(EjbAnnotationReaderTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createSessionBean(fragment);
- createSessionBeanLocal(fragment);
- createBeanWithName(fragment);
- createMessageDrivenBean(fragment);
- createInvalidCompilationUnit(fragment);
- }
-
- private static void createBeanWithName(IPackageFragment fragment) throws JavaModelException {
- String content = String.format(BEAN_WITH_NAME, "beanWithName");
- fragment.createCompilationUnit("BeanWithName.java", content, true, null);
- }
-
- /**
- * The word "class" is missed and the compilation unit does not contain a
- * valid type.
- *
- * @param fragment
- * @throws Exception
- */
- private static void createInvalidCompilationUnit(IPackageFragment fragment) throws Exception {
- final String content = "package com.sap;"
- + "@Stateless public InvalidCompilationUnit implements SessionBeanLocal {}";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("InvalidCompilationUnit.java"));
- AbstractTest.saveFile(file, content);
- }
-
- private static void createMessageDrivenBean(IPackageFragment fragment) throws Exception {
- final String content = "package com.sap;" + "import javax.ejb.MessageDriven;"
- + "@MessageDriven public class MessageDrivenBean {}";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("MessageDrivenBean.java"));
- AbstractTest.saveFile(file, content);
- }
-
- @Override
- protected void setUp() throws Exception {
- ProjectUtility.deleteAllProjects();
- setUpProject();
- super.setUp();
- fixture = new EJBAnnotationReader(facetedProject, clientProject);
- }
-
- @Override
- protected void tearDown() throws Exception {
- ((AbstractAnnotationModelProvider) fixture).dispose();
- }
-
- // @Test(expected = IllegalArgumentException.class)
- public void testCerateReaderWithNullProject() {
- try {
- new EJBAnnotationReader(null, null);
- fail("IllegalArgumentException expected");
- } catch (IllegalArgumentException e) {
- }
- }
-
- public void testLoadForEmptyProject() throws Exception {
- String projectName = EjbAnnotationReaderTest.class.getSimpleName() + "testLoadForEmptyProject";
- IProject emptyProject = ProjectUtil.createEJBProject(projectName, null, J2EEVersionConstants.EJB_3_0_ID, true);
- IModelProvider provider = new EJBAnnotationReader(ProjectFacetsManager.create(emptyProject), null);
- EJBJar ejbJar = (EJBJar) provider.getModelObject();
- assertNull(ejbJar.getEnterpriseBeans());
- AbstractTest.deleteProject(projectName);
- }
-
- public void testNullEnterpriseBeanAfterDelete() throws Exception {
- final String projectName = EjbAnnotationReaderTest.class.getSimpleName() + "testNullEnterpriseBeanAfterDelete";
- IProject oneBeanProject = ProjectUtil
- .createEJBProject(projectName, null, J2EEVersionConstants.EJB_3_0_ID, true);
- facetedProject = ProjectFacetsManager.create(oneBeanProject);
- fixture = new EJBAnnotationReader(facetedProject, clientProject);
-
- IFile beanFile = oneBeanProject.getFile("ejbModule/testNullEnterpriseBeanAfterDelete.java");
- assertFalse(beanFile.exists());
- final String content = "import javax.ejb.Stateless;"
- + "@Stateless public class testNullEnterpriseBeanAfterDelete implements SessionBeanLocal {}";
- // add the file
- saveFileAndUpdate(beanFile, content);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testNullEnterpriseBeanAfterDelete");
- assertNotNull(result);
- // delete the file
- deleteFileAndUpdate(beanFile);
- assertNull(getEJBJar().getEnterpriseBeans());
- AbstractTest.deleteProject(projectName);
- }
-
- // @Test
- public void testGetSessionBeans() {
- EnterpriseBeans beans = getEJBJar().getEnterpriseBeans();
- assertNotNull(beans);
- assertEquals(new Integer(2), new Integer(beans.getSessionBeans().size()));
- assertEquals(new Integer(1), new Integer(getEJBJar().getEnterpriseBeans().getMessageDrivenBeans().size()));
- }
-
- // @Test
- public void testSessionBeanName() {
- List<SessionBean> beans = getEJBJar().getEnterpriseBeans().getSessionBeans();
- SessionBean bean = TestUtils.getSessionBean(getEJBJar(), "SessionBean");
- assertEquals("com.sap.SessionBean", bean.getEjbClass());
- assertEquals("SessionBean", bean.getEjbName());
- }
-
- // @Test
- public void testMessageDrivenBean() {
- MessageDrivenBean bean = TestUtils.getMessageDrivenBean(getEJBJar(), "MessageDrivenBean");
- assertNotNull(bean);
- assertEquals("com.sap.MessageDrivenBean", bean.getEjbClass());
- assertEquals("MessageDrivenBean", bean.getEjbName());
- }
-
- // @Test
- public void testBeanWithName() {
- SessionBean bean = TestUtils.getSessionBean(getEJBJar(), "beanWithName");
- assertNotNull(bean);
- assertEquals("com.sap.BeanWithName", bean.getEjbClass());
- assertEquals("beanWithName", bean.getEjbName());
- }
-
- // @Test
- public void testChange() throws Exception {
- IFile file = facetedProject.getProject().getFile("ejbModule/com/sap/BeanWithName.java");
- final String newContent = String.format(BEAN_WITH_NAME, "newBeanName");
-
- saveFileAndUpdate(file, newContent);
-
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "newBeanName");
- assertNotNull(result);
-
- // revert the change
- final String oldContent = String.format(BEAN_WITH_NAME, "beanWithName");
- saveFileAndUpdate(file, oldContent);
- assertNotNull(TestUtils.getSessionBean(getEJBJar(), "beanWithName"));
- }
-
- // @Test
- public void testDeleteBean() throws Exception {
- IFile file = facetedProject.getProject().getFile("ejbModule/com/sap/BeanWithName.java");
- deleteFileAndUpdate(file);
- assertEquals(new Integer(1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "beanWithName"));
-
- // revert the change
- final String content = String.format(BEAN_WITH_NAME, "beanWithName");
- saveFileAndUpdate(file, content);
- assertNotNull(TestUtils.getSessionBean(getEJBJar(), "beanWithName"));
- }
-
- // @Test
- public void testAddDeleteSessionBean() throws Exception {
- int oldSize = getEJBJar().getEnterpriseBeans().getSessionBeans().size();
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testAddDeleteSessionBean.java");
- assertFalse(beanFile.exists());
- final String content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAddDeleteSessionBean implements SessionBeanLocal {}";
- // add the file
- saveFileAndUpdate(beanFile, content);
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteSessionBean");
- assertNotNull(result);
-
- // delete the file
- deleteFileAndUpdate(beanFile);
- assertEquals(new Integer(oldSize), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddDeleteSessionBean"));
- }
-
- // @Test
- public void testEventsNumber1() throws Exception {
- final String content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testEventsNumber1 implements SessionBeanLocal {}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testEventsNumber1.java");
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- getFixture().addListener(listener);
- saveFileAndUpdate(beanFile, content);
- assertTrue(listener.waitForEvents());
- getFixture().removeListener(listener);
- assertEquals(new Integer(1), new Integer(listener.getReceivedEvents().size()));
- }
-
- // @Test
- public void testEventsNumber2() throws Exception {
- final String content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testEventsNumber2 implements SessionBeanLocal {}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testEventsNumber2.java");
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(2);
- getFixture().addListener(listener);
- saveFileAndUpdate(beanFile, content);
- assertFalse(listener.waitForEvents());
- getFixture().removeListener(listener);
- assertEquals(new Integer(1), new Integer(listener.getReceivedEvents().size()));
-
- }
-
- // @Test
- public void testDispose() throws Exception {
- AbstractAnnotationModelProvider reader = new EJBAnnotationReader(facetedProject, null);
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- reader.addListener(listener);
- reader.dispose();
- assertTrue(listener.waitForEvents());
- }
-
- // @Test
- public void testAddBeanThenInterface() throws Exception {
- int oldSize = getEJBJar().getEnterpriseBeans().getSessionBeans().size();
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testAddBeanThenInterface.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String beanContent = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAddBeanThenInterface implements InterfaceForAddedBean {}";
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
-
- // add the bean
- saveFileAndUpdate(beanFile, beanContent);
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenInterface");
- assertNotNull(result);
- assertEquals("InterfaceForAddedBean", result.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface
- saveFileAndUpdate(interfaceFile, interfaceContent);
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenInterface");
- assertNotNull(result);
- assertEquals("com.sap.InterfaceForAddedBean", result.getBusinessLocals().get(0));
-
- // revert the change
- deleteFileAndUpdate(beanFile);
- // the bean is delete. Not update will occur on the annotation reader
- AbstractTest.deleteFile(interfaceFile);
- }
-
- // @Test
- public void testAddBeanThenInterfaceThenRemote() throws Exception {
- int oldSize = getEJBJar().getEnterpriseBeans().getSessionBeans().size();
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAddBeanThenInterfaceThenRemote.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String beanContent = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAddBeanThenInterfaceThenRemote implements InterfaceForAddedBean {}";
-
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenInterfaceThenRemote");
- assertNotNull(result);
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- assertEquals("InterfaceForAddedBean", result.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenInterfaceThenRemote");
- assertNotNull(result);
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- assertEquals("com.sap.InterfaceForAddedBean", result.getBusinessLocals().get(0));
- assertTrue(result.getBusinessRemotes().isEmpty());
-
- // change the interface to remote
- final String interfaceContentRemote = "package com.sap;" + "import javax.ejb.Remote"
- + "@Remote public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContentRemote);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenInterfaceThenRemote");
- assertNotNull(result);
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getSessionBeans().size()));
- assertEquals("com.sap.InterfaceForAddedBean", result.getBusinessRemotes().get(0));
- assertTrue(result.getBusinessLocals().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenInterfaceThenRemote"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
- // @Test
- public void testAddBeanThenRemoteThenLocal() throws Exception {
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testAddBeanThenRemoteThenLocal.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String beanContent = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAddBeanThenRemoteThenLocal implements InterfaceForAddedBean {}";
-
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenRemoteThenLocal");
- assertNotNull(result);
- assertEquals("InterfaceForAddedBean", result.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to remote interfaces.
- final String interfaceContent = "package com.sap;" + "@Remote public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenRemoteThenLocal");
- assertNotNull(result);
- assertEquals("com.sap.InterfaceForAddedBean", result.getBusinessRemotes().get(0));
- assertTrue(result.getBusinessLocals().isEmpty());
-
- // change the interface to local
- final String interfaceContentRemote = "package com.sap;" + "import javax.ejb.Remote"
- + "@Local public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContentRemote);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenRemoteThenLocal");
- assertNotNull(result);
- assertEquals("com.sap.InterfaceForAddedBean", result.getBusinessLocals().get(0));
- assertTrue(result.getBusinessRemotes().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddBeanThenRemoteThenLocal"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
- /**
- * Add a bean. Then add a local interface. The interface has a local
- * annotation. Change the annotation of the interface to remote. The two
- * beans should be rebuilded and the interface should now be in the remote
- * business interfaces.
- *
- * @throws Exception
- * @throws InterruptedException
- */
- // @Test
- public void testAdd2BeansThenInterfaceThenRemote() throws InterruptedException, Exception {
- IFile bean1File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote1.java");
- IFile bean2File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote2.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String bean1Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
- final String bean2Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote2 implements InterfaceForAddedBean {}";
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- SessionBean result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("InterfaceForAddedBean", result2.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
-
- // change the interface to remote
- final String interfaceContentRemote = "package com.sap;" + "import javax.ejb.Remote"
- + "@Remote public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContentRemote);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessRemotes().get(0));
- result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("com.sap.InterfaceForAddedBean", result2.getBusinessRemotes().get(0));
- assertTrue(result1.getBusinessLocals().isEmpty());
- assertTrue(result2.getBusinessLocals().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(bean1File);
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1"));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
- // @Test
- public void testBeanWithSourceAndBinaryInterface() throws Exception {
- final String beanContent = "package com.sap; "
- + "@Stateless @Local({java.util.List.class, SessionBeanLocal.class}) public class testBeanWithSourceAndBinaryInterface {}";
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testBeanWithSourceAndBinaryInterface.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testBeanWithSourceAndBinaryInterface");
- assertNotNull(result);
-
- assertTrue(result.getBusinessLocals().contains("com.sap.SessionBeanLocal"));
- assertTrue(result.getBusinessLocals().contains("java.util.List"));
-
- // revert the change
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testBeanWithSourceAndBinaryInterface"));
- }
-
- // @Test
- public void testAddDeleteMessageBean() throws Exception {
- int oldSize = getEJBJar().getEnterpriseBeans().getMessageDrivenBeans().size();
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- IFile file = facetedProject.getProject().getFile("ejbModule/com/sap/AddedMessageBean.java");
- assertFalse(file.exists());
- final String content = "package com.sap;" + "import javax.ejb.MessageDriven;"
- + "@MessageDriven public class AddedMessageBean {}";
- getFixture().addListener(listener);
-
- // add the file
- AbstractTest.saveFile(file, content);
- assertTrue(listener.waitForEvents());
- getFixture().removeListener(listener);
-
- assertEquals(new Integer(oldSize + 1), new Integer(getEJBJar().getEnterpriseBeans().getMessageDrivenBeans()
- .size()));
- MessageDrivenBean result = TestUtils.getMessageDrivenBean(getEJBJar(), "AddedMessageBean");
- assertNotNull(result);
-
- // delete the file
- listener = new SynchronousModelChangedListener(1);
- getFixture().addListener(listener);
- AbstractTest.deleteFile(file);
- assertTrue(listener.waitForEvents());
- getFixture().removeListener(listener);
-
- assertEquals(new Integer(oldSize), new Integer(getEJBJar().getEnterpriseBeans().getMessageDrivenBeans().size()));
- assertNull(TestUtils.getMessageDrivenBean(getEJBJar(), "AddedMessageBean"));
- }
-
- // @Test
- public void testAddDeleteLocalHome() throws Exception {
- final String beanContent = "package com.sap; "
- + "@Stateless @LocalHome(value = LocalHomeInterface.class) public class testAddDeleteLocalHome {}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testAddDeleteLocalHome.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteLocalHome");
- assertNotNull(result);
- assertEquals("LocalHomeInterface", result.getLocalHome());
-
- final String interfaceContent = "package com.sap; " + "public interface LocalHomeInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/LocalHomeInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteLocalHome");
- assertNotNull(result);
- assertEquals("com.sap.LocalHomeInterface", result.getLocalHome());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteLocalHome");
- assertNotNull(result);
- assertEquals("LocalHomeInterface", result.getLocalHome());
- deleteFileAndUpdate(beanFile);
-
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddDeleteLocalHome"));
- }
-
- // @Test
- public void testAddDeleteHome() throws Exception {
- final String beanContent = "package com.sap; import javax.ejb.RemoteHome;"
- + "@Stateless @RemoteHome(value = HomeInterface.class) public class testAddDeleteHome {}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testAddDeleteHome.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteHome");
- assertNotNull(result);
- assertEquals("HomeInterface", result.getHome());
-
- final String interfaceContent = "package com.sap; " + "public interface HomeInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/HomeInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteHome");
- assertNotNull(result);
- assertEquals("com.sap.HomeInterface", result.getHome());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteHome");
- assertNotNull(result);
- assertEquals("HomeInterface", result.getHome());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddDeleteHome"));
- }
-
- // @Test
- public void testRemoveMethod() throws Exception {
- final String beanContent = "package com.sap"
- + "@Stateful public class testRemoveMethod implements SessionBeanLocal {"
- + "@Remove public void removeMethod1() {}"
- + "@Remove(retainIfException = true) public void removeMethod2() {}"
- + "@Remove(retainIfException = true) public void removeMethodParam(java.lang.String str) {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testRemoveMethod.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testRemoveMethod");
- assertNotNull(result);
- RemoveMethodType method1 = TestUtils.findRemoveMethodByName(result, "removeMethod1");
- RemoveMethodType method2 = TestUtils.findRemoveMethodByName(result, "removeMethod2");
- assertNotNull(method1);
- assertNotNull(method2);
- assertFalse(method1.isRetainIfException());
- assertTrue(method2.isRetainIfException());
- assertEquals(new Integer(2), new Integer(result.getRemoveMethods().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testRemoveMethod"));
- }
-
- // @Test
- public void testRemoveMethodOnStateless() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testRemoveMethodOnStateless implements SessionBeanLocal {"
- + "@Remove public void removeMethod1() {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testRemoveMethodOnStateless.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testRemoveMethodOnStateless");
- assertNotNull(result);
- assertTrue(result.getRemoveMethods().isEmpty());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testRemoveMethodOnStateless"));
- }
-
- // @Test
- public void testInitMetod() throws Exception {
- final String beanContent = "package com.sap"
- + "@Stateful @RemoteHome(value = java.lang.Comparable.class) public class testInitMetod implements SessionBeanLocal {"
- + "@Init public void createMethod1() {}" + "@Init public void createMethod2(String arg0) {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testInitMetod.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testInitMetod");
- assertNotNull(result);
- InitMethodType method1 = TestUtils.findInitMethodByName(result, "createMethod1");
- assertNotNull(method1);
- InitMethodType method2 = TestUtils.findInitMethodByName(result, "createMethod2");
- assertNotNull(method2);
- assertEquals(new Integer(1), new Integer(method2.getBeanMethod().getMethodParams().getMethodParams().size()));
- assertEquals("String", method2.getBeanMethod().getMethodParams().getMethodParams().get(0).toString());
- assertEquals(new Integer(2), new Integer(result.getInitMethods().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testInitMethod"));
- }
-
- // @Test
- public void testInitMetodStateless() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless @RemoteHome(value = java.lang.Comparable.class) public class testInitMetodStateless implements SessionBeanLocal {"
- + "@Init public void createMethod1() {}" + "@Init public void createMethod2(String arg0) {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testInitMetodStateless.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testInitMetodStateless");
- assertNotNull(result);
- assertEquals(new Integer(0), new Integer(result.getInitMethods().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testInitMetodStateless"));
- }
-
- // @Test
- public void testActivationConfigProperty() throws Exception {
- final String beanContent = "package com.sap;" + "@MessageDriven(activationConfig = { "
- + "@ActivationConfigProperty(propertyName = \"name1\", propertyValue = \"value1\"),"
- + "@ActivationConfigProperty(propertyName = \"name2\", propertyValue = \"value2\") })"
- + "public class testActivationConfigProperty {}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testActivationConfigProperty.java");
- saveFileAndUpdate(beanFile, beanContent);
- MessageDrivenBean result = TestUtils.getMessageDrivenBean(getEJBJar(), "testActivationConfigProperty");
- assertNotNull(result);
- ActivationConfigProperty property1 = TestUtils.findActivationConfigProperty(result, "name1");
- ActivationConfigProperty property2 = TestUtils.findActivationConfigProperty(result, "name2");
- assertEquals("value1", property1.getActivationConfigPropertyValue());
- assertEquals("value2", property2.getActivationConfigPropertyValue());
- assertEquals(new Integer(2), new Integer(result.getActivationConfig().getActivationConfigProperties().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testActivationConfigProperty"));
- }
-
- // @Test
- public void testMoveBeanFile() throws Exception {
- IFile file = facetedProject.getProject().getFile("ejbModule/com/sap/testMoveBeanFile.java");
- final String content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testMoveBeanFile implements SessionBeanLocal {}";
-
- // add the file
- saveFileAndUpdate(file, content);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testMoveBeanFile");
- assertNotNull(result);
-
- // move the file to a place out of the classpath
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- getFixture().addListener(listener);
- file.move(facetedProject.getProject().getFullPath().append("testMoveBeanFile.java"), true,
- new NullProgressMonitor());
- assertTrue(listener.waitForEvents());
- getFixture().removeListener(listener);
-
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testMoveBeanFile"));
-
- // rever the change
- AbstractTest.deleteFile(facetedProject.getProject().getFile("testMoveBeanFile.java"));
- }
-
- // @Test
- public void testMoveBeanFileToMetainf() throws Exception {
- IFile file = facetedProject.getProject().getFile("ejbModule/com/sap/testMoveBeanFileToMetainf.java");
- final String content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testMoveBeanFileToMetainf implements SessionBeanLocal {}";
-
- // add the file
- saveFileAndUpdate(file, content);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testMoveBeanFileToMetainf");
- assertNotNull(result);
-
- // move the file to a place out of the classpath
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- getFixture().addListener(listener);
- IFolder metainfFolder = facetedProject.getProject().getFolder("ejbModule/META-INF");
- file
- .move(metainfFolder.getFullPath().append("testMoveBeanFileToMetainf.java"), true,
- new NullProgressMonitor());
- assertTrue(listener.waitForEvents());
- getFixture().removeListener(listener);
-
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testMoveBeanFileToMetainf"));
-
- // revert the change
- AbstractTest.deleteFile(facetedProject.getProject()
- .getFile("ejbModule/META-INF/testMoveBeanFileToMetainf.java"));
- }
-
- /**
- * Add a bean. Then add a local interface. The interface has a local
- * annotation. Change the annotation of the interface to remote. The two
- * beans should be rebuilded and the interface should now be in the remote
- * business interfaces.
- *
- * @throws Exception
- * @throws InterruptedException
- */
- // @Test
- public void testAdd2BeansThenInterfaceThenRemoteThenOverrideWithLocal() throws InterruptedException, Exception {
- IFile bean1File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote1.java");
- IFile bean2File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote2.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String bean1Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean1Content2 = "package com.sap;"
- + "import javax.ejb.Stateless;"
- + "@Stateless @Local({InterfaceForAddedBean.class}) public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean2Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote2 implements InterfaceForAddedBean {}";
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- SessionBean result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("InterfaceForAddedBean", result2.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
-
- // change the interface to remote
- final String interfaceContentRemote = "package com.sap;" + "import javax.ejb.Remote"
- + "@Remote public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContentRemote);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessRemotes().get(0));
- result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("com.sap.InterfaceForAddedBean", result2.getBusinessRemotes().get(0));
- assertTrue(result1.getBusinessLocals().isEmpty());
- assertTrue(result2.getBusinessLocals().isEmpty());
-
- saveFileAndUpdate(bean1File, bean1Content2);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- assertTrue(result1.getBusinessRemotes().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(bean1File);
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1"));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
- /**
- * Add a bean. Then add a local interface. The interface has a local
- * annotation. Change the annotation of the interface to remote. The two
- * beans should be rebuilded and the interface should now be in the remote
- * business interfaces.
- *
- * @throws Exception
- * @throws InterruptedException
- */
- // @Test
- public void testAdd2BeansThenInterfaceThenLocalThenOverrideWithRemote() throws InterruptedException, Exception {
- IFile bean1File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote1.java");
- IFile bean2File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote2.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String bean1Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean1Content2 = "package com.sap;"
- + "import javax.ejb.Stateless;"
- + "@Stateless @Remote({InterfaceForAddedBean.class}) public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean2Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote2 implements InterfaceForAddedBean {}";
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- SessionBean result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("InterfaceForAddedBean", result2.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
-
- // change the interface to remote
-
- saveFileAndUpdate(bean1File, bean1Content2);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessRemotes().get(0));
- assertTrue(result1.getBusinessLocals().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(bean1File);
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1"));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
- /**
- * Add a bean. Then add a local interface. The interface has a local
- * annotation. Change the annotation of the interface to remote. The two
- * beans should be rebuilded and the interface should now be in the remote
- * business interfaces.
- *
- * @throws Exception
- * @throws InterruptedException
- */
- // @Test
- public void testAdd2BeansThenInterfaceThenLocalThenOverrideWithLocal() throws InterruptedException, Exception {
- IFile bean1File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote1.java");
- IFile bean2File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote2.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String bean1Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean1Content2 = "package com.sap;"
- + "import javax.ejb.Stateless;"
- + "@Stateless @Local({InterfaceForAddedBean.class}) public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean2Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote2 implements InterfaceForAddedBean {}";
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- SessionBean result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("InterfaceForAddedBean", result2.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
-
- // change the interface to remote
-
- saveFileAndUpdate(bean1File, bean1Content2);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- assertTrue(result1.getBusinessRemotes().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(bean1File);
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1"));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
- /**
- * Add a bean. Then add a local interface. The interface has a local
- * annotation. Change the annotation of the interface to remote. The two
- * beans should be rebuilded and the interface should now be in the remote
- * business interfaces.
- *
- * @throws Exception
- * @throws InterruptedException
- */
- // @Test
- public void testAdd2BeansThenInterfaceThenRemoteThenOverrideWithRemote() throws InterruptedException, Exception {
- IFile bean1File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote1.java");
- IFile bean2File = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAdd2BeansThenInterfaceThenRemote2.java");
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InterfaceForAddedBean.java");
-
- final String bean1Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean1Content2 = "package com.sap;"
- + "import javax.ejb.Stateless;"
- + "@Stateless @Remote({InterfaceForAddedBean.class}) public class testAdd2BeansThenInterfaceThenRemote1 implements InterfaceForAddedBean {}";
-
- final String bean2Content = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class testAdd2BeansThenInterfaceThenRemote2 implements InterfaceForAddedBean {}";
- // add the bean. The interface is in the local list.
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("InterfaceForAddedBean", result1.getBusinessLocals().get(0));
- SessionBean result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("InterfaceForAddedBean", result2.getBusinessLocals().get(0));
-
- // add interface. The bean should now resolve the interface and add it
- // to local interfaces.
- final String interfaceContent = "package com.sap;" + "public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContent);
-
- // change the interface to remote
- final String interfaceContentRemote = "package com.sap;" + "import javax.ejb.Remote"
- + "@Remote public interface InterfaceForAddedBean {} ";
- saveFileAndUpdate(interfaceFile, interfaceContentRemote);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessRemotes().get(0));
- result2 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2");
- assertEquals("com.sap.InterfaceForAddedBean", result2.getBusinessRemotes().get(0));
- assertTrue(result1.getBusinessLocals().isEmpty());
- assertTrue(result2.getBusinessLocals().isEmpty());
-
- saveFileAndUpdate(bean1File, bean1Content2);
- result1 = TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1");
- assertEquals("com.sap.InterfaceForAddedBean", result1.getBusinessRemotes().get(0));
- assertTrue(result1.getBusinessLocals().isEmpty());
-
- // revert the change
- deleteFileAndUpdate(bean1File);
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote1"));
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAdd2BeansThenInterfaceThenRemote2"));
- AbstractTest.deleteFile(interfaceFile);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbReferenceTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbReferenceTest.java
deleted file mode 100644
index 301db9d5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/EjbReferenceTest.java
+++ /dev/null
@@ -1,371 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.javaee.core.EjbLocalRef;
-import org.eclipse.jst.javaee.core.InjectionTarget;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.EJBAnnotationReader;
-import org.eclipse.jst.jee.model.internal.common.AbstractAnnotationModelProvider;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class EjbReferenceTest extends AbstractAnnotationModelTest {
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(EjbReferenceTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(EjbReferenceTest.class.getSimpleName());
- if (!project.exists())
- {
- project = ProjectUtil.createEJBProject(EjbReferenceTest.class.getSimpleName(), null,
- J2EEVersionConstants.EJB_3_0_ID, true);
- createProjectContent(project);
- }
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(EjbReferenceTest.class.getSimpleName());
- }
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- fixture = new EJBAnnotationReader(facetedProject, clientProject);
- }
-
- // @After
- @Override
- protected void tearDown() throws Exception {
- ((AbstractAnnotationModelProvider) fixture).dispose();
- }
-
- // @Test
- public void testAddDeleteInterfaceEjbOnFieldAnnotation() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless " + " public class AddedBean {"
- + "@EJB(beanInterface = InjectionInterface.class) " + "private InjectionInterface bean1;" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/AddedBean.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "AddedBean");
- assertNotNull(result);
- assertEquals(new Integer(1), new Integer(result.getEjbLocalRefs().size()));
- EjbLocalRef ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("InjectionInterface", ref.getLocal());
- assertEquals(new Integer(1), new Integer(ref.getInjectionTargets().size()));
- InjectionTarget injectionTarget = (InjectionTarget) ref.getInjectionTargets().get(0);
- assertEquals("com.sap.AddedBean", injectionTarget.getInjectionTargetClass());
- assertEquals("bean1", injectionTarget.getInjectionTargetName());
-
- final String interfaceContent = "package com.sap;" + "public interface InjectionInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InjectionInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "AddedBean");
- ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("com.sap.InjectionInterface", ref.getLocal());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "AddedBean");
- ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("InjectionInterface", ref.getLocal());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "AddedBean"));
- }
-
- // @Test
- public void testManyEjbFields() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless " + " public class testManyEjbFields {"
- + "@EJB(beanInterface = InjectionInterface.class) private InjectionInterface bean1;"
- + "@EJB() private InjectionInterface bean2;"
- + "@EJB(beanInterface = Collection.class) private String invalideBean;"
- + "@EJB(beanInterface = Collection.class) private int simpelType;" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testManyEjbFields.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testManyEjbFields");
- assertNotNull(result);
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
- EjbLocalRef bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testManyEjbFields/bean1");
- assertNotNull(bean1Reference);
- assertEquals("InjectionInterface", bean1Reference.getLocal());
- assertEquals("InjectionInterface", bean1Reference.getLocalHome());
- EjbLocalRef bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testManyEjbFields/bean2");
- assertNotNull(bean2Reference);
- assertEquals("InjectionInterface", bean2Reference.getLocalHome());
- assertEquals("InjectionInterface", bean2Reference.getLocal());
-
- // add the interface
- final String interfaceContent = "package com.sap;" + "public interface InjectionInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InjectionInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testManyEjbFields");
- assertNotNull(result);
- bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbFields/bean1");
- bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbFields/bean2");
- assertEquals("com.sap.InjectionInterface", bean1Reference.getLocal());
- assertEquals("com.sap.InjectionInterface", bean1Reference.getLocalHome());
- assertEquals("com.sap.InjectionInterface", bean2Reference.getLocalHome());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testManyEjbFields");
- bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbFields/bean1");
- bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbFields/bean2");
- assertEquals("InjectionInterface", bean1Reference.getLocal());
- assertEquals("InjectionInterface", bean1Reference.getLocalHome());
- assertEquals("InjectionInterface", bean2Reference.getLocalHome());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testManyEjbFields"));
- }
-
- // @Test
- public void testAddDeleteInterfaceEjbOnMethodAnnotation() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless "
- + " public class testAddDeleteInterfaceEjbOnMethodAnnotation {"
- + "@EJB(beanInterface = InjectionInterface.class) public void setBean1(InjectionInterface inter) {}"
- + "private InjectionInterface bean1;" + "}";
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAddDeleteInterfaceEjbOnMethodAnnotation.java");
- // add the bean file
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceEjbOnMethodAnnotation");
- assertNotNull(result);
- assertEquals(new Integer(1), new Integer(result.getEjbLocalRefs().size()));
- EjbLocalRef ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("InjectionInterface", ref.getLocal());
- assertEquals(new Integer(1), new Integer(ref.getInjectionTargets().size()));
- InjectionTarget injectionTarget = (InjectionTarget) ref.getInjectionTargets().get(0);
- assertEquals("com.sap.testAddDeleteInterfaceEjbOnMethodAnnotation", injectionTarget.getInjectionTargetClass());
- assertEquals("bean1", injectionTarget.getInjectionTargetName());
-
- // add interface
- final String interfaceContent = "package com.sap;" + "public interface InjectionInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InjectionInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceEjbOnMethodAnnotation");
- ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("com.sap.InjectionInterface", ref.getLocal());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceEjbOnMethodAnnotation");
- ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("InjectionInterface", ref.getLocal());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceEjbOnMethodAnnotation"));
- }
-
- // @Test
- public void testManyEjbMethods() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless " + " public class testManyEjbMethods {"
- + "@EJB(beanInterface = InjectionInterface.class) public void setBean1(InjectionInterface bean1){};"
- + "@EJB() public void setBean2(InjectionInterface bean2){};"
- + "@EJB(beanInterface = Collection.class) public void setInvalideBean(String invalideBean) {};" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testManyEjbMethods.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testManyEjbMethods");
- assertNotNull(result);
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
- EjbLocalRef bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testManyEjbMethods/bean1");
- assertNotNull(bean1Reference);
- assertEquals("InjectionInterface", bean1Reference.getLocal());
- assertEquals("InjectionInterface", bean1Reference.getLocalHome());
- EjbLocalRef bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testManyEjbMethods/bean2");
- assertNotNull(bean2Reference);
- assertEquals("InjectionInterface", bean2Reference.getLocalHome());
- assertEquals("InjectionInterface", bean2Reference.getLocal());
-
- // add the interface
- final String interfaceContent = "package com.sap;" + "public interface InjectionInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InjectionInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testManyEjbMethods");
- assertNotNull(result);
- bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbMethods/bean1");
- bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbMethods/bean2");
- assertEquals("com.sap.InjectionInterface", bean1Reference.getLocal());
- assertEquals("com.sap.InjectionInterface", bean1Reference.getLocalHome());
- assertEquals("com.sap.InjectionInterface", bean2Reference.getLocalHome());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testManyEjbMethods");
- bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbMethods/bean1");
- bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "com.sap.testManyEjbMethods/bean2");
- assertEquals("InjectionInterface", bean1Reference.getLocal());
- assertEquals("InjectionInterface", bean1Reference.getLocalHome());
- assertEquals("InjectionInterface", bean2Reference.getLocalHome());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testManyEjbMethods"));
- }
-
- // @Test
- public void testEjbOnMethodAndFieldsOfMessageBean() throws Exception {
- final String beanContent = "package com.sap;" + "@MessageDriven "
- + " public class testEjbOnMethodAndFieldsOfMessageBean {"
- + "@EJB(beanInterface = InjectionInterface.class) public void setBean1(InjectionInterface bean1){};"
- + "@EJB() public InjectionInterface bean2;" + "}";
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testEjbOnMethodAndFieldsOfMessageBean.java");
- saveFileAndUpdate(beanFile, beanContent);
- MessageDrivenBean result = TestUtils.getMessageDrivenBean(getEJBJar(), "testEjbOnMethodAndFieldsOfMessageBean");
- assertNotNull(result);
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
- EjbLocalRef bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testEjbOnMethodAndFieldsOfMessageBean/bean1");
- assertNotNull(bean1Reference);
- assertEquals("InjectionInterface", bean1Reference.getLocal());
- assertEquals("InjectionInterface", bean1Reference.getLocalHome());
- EjbLocalRef bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testEjbOnMethodAndFieldsOfMessageBean/bean2");
- assertNotNull(bean2Reference);
- assertEquals("InjectionInterface", bean2Reference.getLocalHome());
- assertEquals("InjectionInterface", bean2Reference.getLocal());
-
- // add the interface
- final String interfaceContent = "package com.sap;" + "public interface InjectionInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/InjectionInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getMessageDrivenBean(getEJBJar(), "testEjbOnMethodAndFieldsOfMessageBean");
- assertNotNull(result);
- bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testEjbOnMethodAndFieldsOfMessageBean/bean1");
- bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testEjbOnMethodAndFieldsOfMessageBean/bean2");
- assertEquals("com.sap.InjectionInterface", bean1Reference.getLocal());
- assertEquals("com.sap.InjectionInterface", bean1Reference.getLocalHome());
- assertEquals("com.sap.InjectionInterface", bean2Reference.getLocalHome());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getMessageDrivenBean(getEJBJar(), "testEjbOnMethodAndFieldsOfMessageBean");
- bean1Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testEjbOnMethodAndFieldsOfMessageBean/bean1");
- bean2Reference = TestUtils.findLocalRefByName(result.getEjbLocalRefs(),
- "com.sap.testEjbOnMethodAndFieldsOfMessageBean/bean2");
- assertEquals("InjectionInterface", bean1Reference.getLocal());
- assertEquals("InjectionInterface", bean1Reference.getLocalHome());
- assertEquals("InjectionInterface", bean2Reference.getLocalHome());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testEjbOnMethodAndFieldsOfMessageBean"));
- }
-
- // @Test
- public void testAddDeleteBeanInterfaceOnEjbAnnotation() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless @EJB(name=\"refName\", beanInterface = BeanInterface.class, "
- + "beanName=\"beanName\", mappedName=\"mappedName\")"
- + " public class testAddDeleteBeanInterfaceOnEjbAnnotation {}";
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAddDeleteBeanInterfaceOnEjbAnnotation.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteBeanInterfaceOnEjbAnnotation");
- assertNotNull(result);
- assertEquals(new Integer(1), new Integer(result.getEjbLocalRefs().size()));
- EjbLocalRef ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("BeanInterface", ref.getLocal());
-
- final String interfaceContent = "package com.sap;" + "public interface BeanInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/BeanInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteBeanInterfaceOnEjbAnnotation");
- ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("com.sap.BeanInterface", ref.getLocal());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteBeanInterfaceOnEjbAnnotation");
- ref = (EjbLocalRef) result.getEjbLocalRefs().get(0);
- assertEquals("BeanInterface", ref.getLocal());
-
- deleteFileAndUpdate(beanFile);
- assertFalse(beanFile.exists());
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddDeleteBeanInterfaceOnEjbAnnotation"));
- }
-
- // @Test
- public void testAddDeleteInterfaceOnEjbsAnnotation() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless " + "@EJBs(value = { "
- + "@EJB(name=\"comparable\", beanInterface = java.lang.Comparable.class, beanName = \"beanName\"), "
- + "@EJB(name=\"nonResolved\", beanInterface = BeanInterface.class) }) "
- + " public class testAddDeleteInterfaceOnEjbsAnnotation {}";
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testAddDeleteInterfaceOnEjbsAnnotation.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceOnEjbsAnnotation");
- assertNotNull(result);
- EjbLocalRef comparable = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "comparable");
- assertNotNull(comparable);
- assertEquals("java.lang.Comparable", comparable.getLocal());
- EjbLocalRef nonResolved = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "nonResolved");
- assertNotNull(nonResolved);
- assertEquals("BeanInterface", nonResolved.getLocal());
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
-
- final String interfaceContent = "package com.sap;" + "public interface BeanInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/BeanInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceOnEjbsAnnotation");
- nonResolved = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "nonResolved");
- assertEquals("com.sap.BeanInterface", nonResolved.getLocal());
-
- // revert the change
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceOnEjbsAnnotation");
- nonResolved = TestUtils.findLocalRefByName(result.getEjbLocalRefs(), "nonResolved");
- assertEquals("BeanInterface", nonResolved.getLocal());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testAddDeleteInterfaceOnEjbsAnnotation"));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/GenerateDDTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/GenerateDDTest.java
deleted file mode 100644
index c117ef6e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/GenerateDDTest.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-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.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.jst.jee.project.facet.ICreateDeploymentFilesDataModelProperties;
-import org.eclipse.jst.jee.project.facet.IEJBCreateDeploymentFilesDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class GenerateDDTest extends TestCase {
-
- private static final String EJB_JAR_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- + "<ejb-jar xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
- + "xmlns=\"http://java.sun.com/xml/ns/javaee\" "
- + "xmlns:ejb=\"http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\" "
- + "xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee "
- + "http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\" version=\"3.0\">" + "<enterprise-beans>"
- + " <session>" + " <ejb-name>NMTOKEN</ejb-name>" + " </session>" + " </enterprise-beans></ejb-jar>";
-
- private IModelProvider fixture = null;
-
- private IProject project = null;
-
- public static Test suite() {
- TestSuite suite = new TestSuite(GenerateDDTest.class);
- return suite;
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- project = ProjectUtil.createEJBProject(GenerateDDTest.class.getSimpleName(), null,
- J2EEVersionConstants.EJB_3_0_ID, true);
- fixture = ModelProviderManager.getModelProvider(project);
- }
-
- protected void tearDown() throws Exception {
- ProjectUtil.deleteProject(project);
- super.tearDown();
- }
-
- /**
- * Generated the deployment descriptor.
- *
- * @throws InterruptedException
- */
- public void testGenerateDD() throws Exception {
- IFile file = project.getFile("ejbModule/META-INF/ejb-jar.xml");
- assertFalse(file.exists());
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- fixture.addListener(listener);
-
- IDataModel dataModel = DataModelFactory.createDataModel(IEJBCreateDeploymentFilesDataModelProperties.class);
- dataModel.setProperty(ICreateDeploymentFilesDataModelProperties.TARGET_PROJECT, project);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- listener.waitForEvents();
- fixture.removeListener(listener);
- assertEquals(new Integer(1), new Integer(listener.getReceivedEvents().size()));
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/LifecycleAnnotationsTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/LifecycleAnnotationsTest.java
deleted file mode 100644
index ee917ac0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/LifecycleAnnotationsTest.java
+++ /dev/null
@@ -1,209 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.javaee.core.LifecycleCallback;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.common.Result;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationFactoryTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class LifecycleAnnotationsTest extends AbstractAnnotationFactoryTest {
-
- private IFacetedProject facetedProject;
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(LifecycleAnnotationsTest.class);
- return suite;
- }
-
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- facetedProject =ProjectFacetsManager.create(ResourcesPlugin.getWorkspace().getRoot().getProject(this.getClass().getSimpleName()));
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(LifecycleAnnotationsTest.class.getSimpleName());
- if (!project.exists())
- {
- project = ProjectUtil.createEJBProject(LifecycleAnnotationsTest.class.getSimpleName(), null,
- J2EEVersionConstants.EJB_3_0_ID, true);
- createProjectContent(project);
- }
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(LifecycleAnnotationsTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @Test
- public void testPostActivate() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateful public class testPostActivate implements SessionBeanLocal{"
- + "@PostActivate public void postActivateMethod() {}"
- + "@PostActivate protected void protectedMethod() {}" + "@PostActivate void defaultMethod() {}"
- + "@PostActivate private void privateMethod() {}"
- + "@PostActivate public String returnTypeMethod() {return null;}"
- + "@PostActivate public void paramMethod(String param) {}"
- + "@PostActivate public void exceptionMethod() throws Exception {}"
- + "@PostActivate public final void finalMethod() {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testPostActivate.java");
- AbstractTest.saveFile(beanFile, beanContent);
- IType type = JavaCore.createCompilationUnitFrom(beanFile).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals("testPostActivate", sessionBean.getEjbName());
- LifecycleCallback postActivateMethod = TestUtils.findLifecycleMethod(sessionBean.getPostActivates(),
- "postActivateMethod");
- assertEquals("com.sap.testPostActivate", postActivateMethod.getLifecycleCallbackClass());
- LifecycleCallback protectedMethod = TestUtils.findLifecycleMethod(sessionBean.getPostActivates(),
- "protectedMethod");
- assertEquals("com.sap.testPostActivate", protectedMethod.getLifecycleCallbackClass());
- LifecycleCallback defaultMethod = TestUtils
- .findLifecycleMethod(sessionBean.getPostActivates(), "defaultMethod");
- assertEquals("com.sap.testPostActivate", defaultMethod.getLifecycleCallbackClass());
- LifecycleCallback privateMethod = TestUtils
- .findLifecycleMethod(sessionBean.getPostActivates(), "privateMethod");
- assertEquals("com.sap.testPostActivate", privateMethod.getLifecycleCallbackClass());
- assertEquals(new Integer(4), new Integer(sessionBean.getPostActivates().size()));
-
- }
-
- // @Test
- public void testPrePassivate() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateful public class testPrePassivate implements SessionBeanLocal{"
- + "@PrePassivate public void prePassivateMethod() {}"
- + "@PrePassivate protected void protectedMethod() {}" + "@PrePassivate void defaultMethod() {}"
- + "@PrePassivate private void privateMethod() {}"
- + "@PrePassivate public String returnTypeMethod() {return null;}"
- + "@PrePassivate public void paramMethod(String param) {}"
- + "@PrePassivate public void exceptionMethod() throws Exception {}"
- + "@PrePassivate public final void finalMethod() {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testPrePassivate.java");
- AbstractTest.saveFile(beanFile, beanContent);
- IType type = JavaCore.createCompilationUnitFrom(beanFile).findPrimaryType();
-
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- LifecycleCallback postActivateMethod = TestUtils.findLifecycleMethod(sessionBean.getPrePassivates(),
- "prePassivateMethod");
- assertEquals("com.sap.testPrePassivate", postActivateMethod.getLifecycleCallbackClass());
- LifecycleCallback protectedMethod = TestUtils.findLifecycleMethod(sessionBean.getPrePassivates(),
- "protectedMethod");
- assertEquals("com.sap.testPrePassivate", protectedMethod.getLifecycleCallbackClass());
- LifecycleCallback defaultMethod = TestUtils
- .findLifecycleMethod(sessionBean.getPrePassivates(), "defaultMethod");
- assertEquals("com.sap.testPrePassivate", defaultMethod.getLifecycleCallbackClass());
- LifecycleCallback privateMethod = TestUtils
- .findLifecycleMethod(sessionBean.getPrePassivates(), "privateMethod");
- assertEquals("com.sap.testPrePassivate", privateMethod.getLifecycleCallbackClass());
- assertEquals(new Integer(4), new Integer(sessionBean.getPrePassivates().size()));
- }
-
- // @Test
- public void testPostConstruct() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testPostConstruct implements SessionBeanLocal {"
- + "@PostConstruct public void publicMethod() {}"
- + "@PostConstruct public static void staticMethod() {}"
- + "@PostConstruct public final void finalMethod(){}" + "@PostConstruct public String returnType() {}"
- + "@PostConstruct public void paramMethod(String param) {}"
- + "@PostConstruct public void throwExpception() throws Exception {};" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testPostConstruct.java");
- AbstractTest.saveFile(beanFile, beanContent);
- IType type = JavaCore.createCompilationUnitFrom(beanFile).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- assertEquals("testPostConstruct", sessionBean.getEjbName());
- LifecycleCallback callback = TestUtils.findLifecycleMethod(sessionBean.getPostConstructs(), "publicMethod");
- assertEquals("com.sap.testPostConstruct", callback.getLifecycleCallbackClass());
- assertEquals(new Integer(1), new Integer(sessionBean.getPostConstructs().size()));
-
- }
-
- // @Test
- public void testPreDestroy() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless public class testPreDestroy implements SessionBeanLocal {"
- + "@PreDestroy public void publicMethod() {}" + "@PreDestroy public static void staticMethod() {}"
- + "@PreDestroy public final void finalMethod(){}" + "@PreDestroy public String returnType() {}"
- + "@PreDestroy public void paramMethod(String param) {}"
- + "@PreDestroy public void throwExpception() throws Exception {};" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testPreDestroy.java");
- AbstractTest.saveFile(beanFile, beanContent);
- IType type = JavaCore.createCompilationUnitFrom(beanFile).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- SessionBean sessionBean = (SessionBean) result.getMainObject();
- assertNotNull(sessionBean);
- LifecycleCallback callback = TestUtils.findLifecycleMethod(sessionBean.getPreDestroys(), "publicMethod");
- assertEquals("com.sap.testPreDestroy", callback.getLifecycleCallbackClass());
- assertEquals(new Integer(1), new Integer(sessionBean.getPreDestroys().size()));
- }
-
- // @Test
- public void testLifecycleOnMessageDriven() throws Exception {
- final String beanContent = "package com.sap;"
- + "@MessageDriven public class testLifecycleOnMessageDriven implements SessionBeanLocal {"
- + "@PostConstruct public void postConstructMethod() {}"
- + "@PreDestroy public void preDestroyMethod() {}" + "}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testLifecycleOnMessageDriven.java");
- AbstractTest.saveFile(beanFile, beanContent);
- IType type = JavaCore.createCompilationUnitFrom(beanFile).findPrimaryType();
- Result result = fixture.createJavaeeObject(type);
- MessageDrivenBean mdb = (MessageDrivenBean) result.getMainObject();
- assertNotNull(mdb);
- LifecycleCallback callback1 = TestUtils.findLifecycleMethod(mdb.getPostConstructs(), "postConstructMethod");
- assertNotNull(callback1);
- assertEquals("com.sap.testLifecycleOnMessageDriven", callback1.getLifecycleCallbackClass());
- LifecycleCallback callback2 = TestUtils.findLifecycleMethod(mdb.getPreDestroys(), "preDestroyMethod");
- assertNotNull(callback2);
- assertEquals("com.sap.testLifecycleOnMessageDriven", callback2.getLifecycleCallbackClass());
- assertEquals(new Integer(1), new Integer(mdb.getPreDestroys().size()));
- assertEquals(new Integer(1), new Integer(mdb.getPostConstructs().size()));
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/NotifyCloseProjectTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/NotifyCloseProjectTest.java
deleted file mode 100644
index 117c7ba0..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/NotifyCloseProjectTest.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.IModelProviderEvent;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class NotifyCloseProjectTest extends TestCase {
-
- public static Test suite() {
- TestSuite suite = new TestSuite(NotifyCloseProjectTest.class);
- return suite;
- }
-
- /**
- * Get the model for a project. Close the project. Get the model from the
- * same model provider. The model should be null because the project is
- * closed.
- *
- * @throws Exception
- */
- // @Test
- public void testCloseEjbProject() throws Exception {
- IFacetedProject facetedProject = AbstractTest.createEjbProject(NotifyCloseProjectTest.class.getSimpleName()
- + "testCloseEjbProject");
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- provider.getModelObject();
-
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.closeProject(facetedProject.getProject().getName());
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
- assertEquals(new Integer(1), new Integer(listener.getReceivedEvents().size()));
- IModelProviderEvent event = listener.getReceivedEvents().iterator().next();
- assertTrue(event.getEventCode() == IModelProviderEvent.UNLOADED_RESOURCE);
- }
-
- /**
- * Get the model for a project. Close the project. Get the model from the
- * same model provider. The model should be null because the project is
- * closed.
- *
- * @throws Exception
- */
- // @Test
- public void testCloseWebProject() throws Exception {
- IFacetedProject facetedProject = AbstractTest.createWebProject(NotifyCloseProjectTest.class.getSimpleName()
- + "testCloseWebProject");
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- provider.getModelObject();
-
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.closeProject(facetedProject.getProject().getName());
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
- assertEquals(new Integer(1), new Integer(listener.getReceivedEvents().size()));
- IModelProviderEvent event = listener.getReceivedEvents().iterator().next();
- assertTrue(event.getEventCode() == IModelProviderEvent.UNLOADED_RESOURCE);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/ResourceReferenceTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/ResourceReferenceTest.java
deleted file mode 100644
index bab4154b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/ResourceReferenceTest.java
+++ /dev/null
@@ -1,278 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.javaee.core.Description;
-import org.eclipse.jst.javaee.core.ResAuthType;
-import org.eclipse.jst.javaee.core.ResSharingScopeType;
-import org.eclipse.jst.javaee.core.ResourceRef;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.EJBAnnotationReader;
-import org.eclipse.jst.jee.model.internal.common.AbstractAnnotationModelProvider;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class ResourceReferenceTest extends AbstractAnnotationModelTest {
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(ResourceReferenceTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(ResourceReferenceTest.class.getSimpleName());
- if (!project.exists())
- {
- IFacetedProject facetedProject = AbstractTest.createEjbProject(ResourceReferenceTest.class.getSimpleName());
- createProjectContent(facetedProject.getProject());
- }
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
-// AbstractTest.deleteProject(facetedProject.getProject().getName());
- }
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- fixture = new EJBAnnotationReader(facetedProject, clientProject);
- }
-
- // @After
- public void tearDown() throws Exception {
- ((AbstractAnnotationModelProvider) fixture).dispose();
- }
-
- //@Test
- public void testResource() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless "
- + "@Resource(name =\"withNotDefaults\", mappedName = \"mappedName\", shareable = false, "
- + "type = java.lang.Comparable.class, "
- + "authenticationType = AuthenticationType.CONTAINER, description = \"description\")"
- + "public class testResource implements SessionBeanLocal{}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testResource.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResource");
- assertNotNull(result);
- ResourceRef ref = TestUtils.findResourceRefByName(result.getResourceRefs(), "withNotDefaults");
- assertNotNull(ref);
- assertEquals("description", ((Description) ref.getDescriptions().get(0)).getValue());
- assertEquals("mappedName", ref.getMappedName());
- assertEquals(ResSharingScopeType.UNSHAREABLE_LITERAL, ref.getResSharingScope());
- assertEquals(ResAuthType.CONTAINER_LITERAL, ref.getResAuth());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResource"));
- }
-
- //@Test
- public void testResourcesDefaults() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless "
- + "@Resource(name =\"withDefaults\", mappedName = \"mappedName\","
- + "type = java.lang.Comparable.class, " + "description = \"description\")"
- + "public class testResourcesDefaults implements SessionBeanLocal{}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testResourcesDefaults.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResourcesDefaults");
- assertNotNull(result);
- ResourceRef ref = TestUtils.findResourceRefByName(result.getResourceRefs(), "withDefaults");
- assertNotNull(ref);
- assertEquals("description", ((Description) ref.getDescriptions().get(0)).getValue());
- assertEquals("mappedName", ref.getMappedName());
- assertEquals("java.lang.Comparable", ref.getResType());
- assertEquals(ResSharingScopeType.SHAREABLE_LITERAL, ref.getResSharingScope());
- assertEquals(ResAuthType.APPLICATION_LITERAL, ref.getResAuth());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResourcesDefaults"));
- }
-
- //@Test
- public void testResources() throws Exception {
- final String beanContent = "package com.sap;"
- + "@Stateless "
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "public class testResources implements SessionBeanLocal{}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testResources.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResources");
- assertNotNull(result);
- assertNotNull(TestUtils.findResourceRefByName(result.getResourceRefs(), "withNotDefaults"));
- assertNotNull(TestUtils.findResourceRefByName(result.getResourceRefs(), "withDefaults"));
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResources"));
- }
-
- //@Test
- public void testResourceUnresolved() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless " + "@Resource(name =\"withNotDefaults\","
- + "type = ResourceInterface.class)"
- + "public class testResourceUnresolved implements SessionBeanLocal{}";
- // add the bean.
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testResourceUnresolved.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResourceUnresolved");
- assertNotNull(result);
- ResourceRef ref = TestUtils.findResourceRefByName(result.getResourceRefs(), "withNotDefaults");
- assertNotNull(ref);
- assertEquals("ResourceInterface", ref.getResType());
-
- // add the interface. The name should be resolved
- final String interfaceContent = "package com.sap;" + "public interface ResourceInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/ResourceInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testResourceUnresolved");
- assertNotNull(result);
- ref = TestUtils.findResourceRefByName(result.getResourceRefs(), "withNotDefaults");
- assertNotNull(ref);
- assertEquals("com.sap.ResourceInterface", ref.getResType());
-
- // delete the file. The name is now not resolved.
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testResourceUnresolved");
- assertNotNull(result);
- ref = TestUtils.findResourceRefByName(result.getResourceRefs(), "withNotDefaults");
- assertNotNull(ref);
- assertEquals("ResourceInterface", ref.getResType());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResourceUnresolved"));
- }
-
- //@Test
- public void testResourceOnField() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless "
- + "public class testResourceOnField implements SessionBeanLocal{"
- + "@Resource(type = java.lang.Comparable.class) private java.lang.Comparable valid;"
- + "@Resource(type = java.lang.Comparable.class) private int simpleType;"
- + "@Resource private java.lang.Comparable validButWithoutType;}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testResourceOnField.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResourceOnField");
- assertNotNull(result);
- ResourceRef ref1 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnField/valid");
- assertNotNull(ref1);
- assertEquals("java.lang.Comparable", ref1.getResType());
- ResourceRef ref2 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnField/validButWithoutType");
- assertNotNull(ref2);
- assertEquals("java.lang.Comparable", ref2.getResType());
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResourceOnField"));
- }
-
- //@Test
- public void testResourceOnMethod() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless "
- + "public class testResourceOnMethod implements SessionBeanLocal{"
- + "@Resource(type = java.lang.Comparable.class) public void validMethod(Comparable arg0){};"
- + "@Resource(type = java.lang.Comparable.class) private void simpleType(int arg0) {};"
- + "@Resource public void validButWithoutType(Comparable arg0){};"
- + "@Resource public void twoParams(Comparable arg0, Comparable arg1} {};}";
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testResourceOnMethod.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResourceOnMethod");
- assertNotNull(result);
- ResourceRef ref1 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethod/validMethod");
- assertNotNull(ref1);
- ResourceRef ref2 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethod/validButWithoutType");
- assertNotNull(ref2);
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResourceOnMethod"));
- }
-
- //@Test
- public void testResourceOnMethodAndFieldUnresolved() throws Exception {
- final String beanContent = "package com.sap;" + "@Stateless "
- + "public class testResourceOnMethodAndFieldUnresolved implements SessionBeanLocal{"
- + "@Resource(type = ResourceInterface.class) public void validMethod(ResourceInterface arg0){};"
- + "@Resource private ResourceInterface valid;}";
- IFile beanFile = facetedProject.getProject().getFile(
- "ejbModule/com/sap/testResourceOnMethodAndFieldUnresolved.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testResourceOnMethodAndFieldUnresolved");
- assertNotNull(result);
- ResourceRef ref1 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethodAndFieldUnresolved/validMethod");
- assertEquals("ResourceInterface", ref1.getResType());
- ResourceRef ref2 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethodAndFieldUnresolved/valid");
- assertEquals("ResourceInterface", ref2.getResType());
-
- // add the interface. The name should be resolved
- final String interfaceContent = "package com.sap;" + "public interface ResourceInterface {}";
- IFile interfaceFile = facetedProject.getProject().getFile("ejbModule/com/sap/ResourceInterface.java");
- saveFileAndUpdate(interfaceFile, interfaceContent);
- result = TestUtils.getSessionBean(getEJBJar(), "testResourceOnMethodAndFieldUnresolved");
- assertNotNull(result);
- ref1 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethodAndFieldUnresolved/validMethod");
- ref2 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethodAndFieldUnresolved/valid");
- assertEquals("com.sap.ResourceInterface", ref1.getResType());
- assertEquals("com.sap.ResourceInterface", ref1.getResType());
-
- // delete the file. The name is now not resolved.
- deleteFileAndUpdate(interfaceFile);
- result = TestUtils.getSessionBean(getEJBJar(), "testResourceOnMethodAndFieldUnresolved");
- ref1 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethodAndFieldUnresolved/validMethod");
- ref2 = TestUtils.findResourceRefByName(result.getResourceRefs(),
- "com.sap.testResourceOnMethodAndFieldUnresolved/valid");
- assertEquals("ResourceInterface", ref1.getResType());
- assertEquals("ResourceInterface", ref2.getResType());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testResourceOnMethodAndFieldUnresolved"));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/SecurityRolesTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/SecurityRolesTest.java
deleted file mode 100644
index c0f07b69..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/ejb/tests/SecurityRolesTest.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.ejb.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.core.SecurityRoleRef;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.SecurityIdentityType;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.EJBAnnotationReader;
-import org.eclipse.jst.jee.model.internal.common.AbstractAnnotationModelProvider;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class SecurityRolesTest extends AbstractAnnotationModelTest {
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(SecurityRolesTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(SecurityRolesTest.class.getSimpleName());
- if (!project.exists())
- {
- project = ProjectUtil.createEJBProject(SecurityRolesTest.class.getSimpleName(), null, J2EEVersionConstants.EJB_3_0_ID, true);
- createProjectContent(project);
- }
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(SecurityRolesTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("ejbModule/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- fixture = new EJBAnnotationReader(facetedProject, clientProject);
- }
-
- // @After
- @Override
- protected void tearDown() throws Exception {
- ((AbstractAnnotationModelProvider) fixture).dispose();
- }
-
- // @Test
- public void testDeclareRoles() throws Exception {
- final String beanContent = "package com.sap;" + "@DeclareRoles(value = {\"role1\", \"role2\"}) "
- + "@Stateless public class testDeclareRoles implements SessionBeanLocal {}";
-
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testDeclareRoles.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testDeclareRoles");
- SecurityRole role1 = TestUtils
- .findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1");
- SecurityRole role2 = TestUtils
- .findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role2");
- assertNotNull(role1);
- assertNotNull(role2);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "role1");
- assertNotNull(role1Ref);
- SecurityRoleRef role2Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "role2");
- assertNotNull(role2Ref);
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getSessionBean(getEJBJar(), "testDeclareRoles"));
- assertNull(TestUtils.findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1"));
- assertNull(TestUtils.findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role2"));
- }
-
- // @Test
- public void testDeclareRoleOnManyBeans() throws Exception {
- final String bean1Content = "package com.sap;" + "@DeclareRoles(value = {\"role1\"}) "
- + "@Stateless public class testDeclareRoleOnManyBeans1 implements SessionBeanLocal {}";
- final String bean2Content = "package com.sap;" + "@DeclareRoles(value = {\"role1\"}) "
- + "@Stateless public class testDeclareRoleOnManyBeans2 implements SessionBeanLocal {}";
-
- IFile bean1File = facetedProject.getProject().getFile("ejbModule/com/sap/testDeclareRoleOnManyBeans1.java");
- IFile bean2File = facetedProject.getProject().getFile("ejbModule/com/sap/testDeclareRoleOnManyBeans2.java");
- saveFileAndUpdate(bean1File, bean1Content);
- saveFileAndUpdate(bean2File, bean2Content);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testDeclareRoleOnManyBeans1");
- SecurityRole role1 = TestUtils
- .findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1");
- assertNotNull(role1);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "role1");
- assertNotNull(role1Ref);
-
- deleteFileAndUpdate(bean1File);
- assertNotNull(TestUtils.findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1"));
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1"));
- }
-
- // @Test
- public void testRunAs() throws Exception {
- final String beanContent = "package com.sap;" + "@DeclareRoles(value = {\"role1\"}) @RunAs(value = \"role1\") "
- + "@Stateless public class testRunAs implements SessionBeanLocal {}";
-
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testRunAs.java");
- saveFileAndUpdate(beanFile, beanContent);
- SessionBean result = TestUtils.getSessionBean(getEJBJar(), "testRunAs");
- SecurityRole role1 = TestUtils
- .findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1");
- assertNotNull(role1);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "role1");
- assertNotNull(role1Ref);
- SecurityIdentityType identity = (SecurityIdentityType) result.getSecurityIdentities();
- assertNotNull(identity);
- RunAs runAs = identity.getRunAs();
- assertNotNull(runAs);
- assertEquals("role1", runAs.getRoleName());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.findSecurityRole(getEJBJar().getAssemblyDescriptor().getSecurityRoles(), "role1"));
- }
-
- // @Test
- public void testRunAsMessageBean() throws Exception {
- final String beanContent = "package com.sap;" + "@RunAs(value = \"role1\") "
- + "@MessageDriven public class testRunAsMessageBean implements SessionBeanLocal {}";
-
- IFile beanFile = facetedProject.getProject().getFile("ejbModule/com/sap/testRunAsMessageBean.java");
- saveFileAndUpdate(beanFile, beanContent);
- MessageDrivenBean result = TestUtils.getMessageDrivenBean(getEJBJar(), "testRunAsMessageBean");
- SecurityIdentityType identity = (SecurityIdentityType) result.getSecurityIdentity();
- assertNotNull(identity);
- RunAs runAs = identity.getRunAs();
- assertNotNull(runAs);
- assertEquals("role1", runAs.getRoleName());
-
- deleteFileAndUpdate(beanFile);
- assertNull(TestUtils.getMessageDrivenBean(getEJBJar(), "testRunAsMessageBean"));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/AssemblyDescriptorMergerTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/AssemblyDescriptorMergerTest.java
deleted file mode 100644
index 5e1f1238..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/AssemblyDescriptorMergerTest.java
+++ /dev/null
@@ -1,232 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.ejb.AssemblyDescriptor;
-import org.eclipse.jst.javaee.ejb.EjbFactory;
-import org.eclipse.jst.jee.model.internal.mergers.AssemblyDescriptorMerger;
-import org.eclipse.jst.jee.model.internal.mergers.ModelException;
-
-
-/**
- * Tests Assembly descriptor merger.
- *
- * @author Dimitar Giormov
- *
- */
-public class AssemblyDescriptorMergerTest extends TestCase{
-
- /**
- * Tests the merger with empty list of security roles.
- *
- * @throws ModelException
- */
-// @Test
- public void testEmptySecurityRoleCase() throws ModelException{
- AssemblyDescriptor descriptorBase = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptor descriptorToMerge = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptorMerger result = new AssemblyDescriptorMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 0);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 0);
- }
-
- /**
- * Tests the merger with Base security role only.
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseBase() throws ModelException{
- AssemblyDescriptor descriptorBase = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
-
- descriptorBase.getSecurityRoles().add(role);
- AssemblyDescriptor descriptorToMerge = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptorMerger result = new AssemblyDescriptorMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 0);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with toMerge security role only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseToMerge() throws ModelException{
- AssemblyDescriptor descriptorBase = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptor descriptorToMerge = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
-
- descriptorToMerge.getSecurityRoles().add(role);
-
- AssemblyDescriptorMerger result = new AssemblyDescriptorMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 1);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with one and the same security role.
- * The result should be non merged 1 security role.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseSameRole() throws ModelException{
- AssemblyDescriptor descriptorBase = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptor descriptorToMerge = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
- descriptorBase.getSecurityRoles().add(role);
- descriptorToMerge.getSecurityRoles().add(role);
-
- AssemblyDescriptorMerger result = new AssemblyDescriptorMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 1);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with variety of security roles.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseComplex() throws ModelException{
- AssemblyDescriptor descriptorBase = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptor descriptorToMerge = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- SecurityRole role0 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role1 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role2 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role3 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role4 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role5 = JavaeeFactory.eINSTANCE.createSecurityRole();
- role0.setRoleName("test1");
- role1.setRoleName("test2");
- role2.setRoleName("test3");
- role3.setRoleName("test4");
- role4.setRoleName("test5");
- role5.setRoleName("test6");
-
-
-
- descriptorBase.getSecurityRoles().add(role1);
- descriptorBase.getSecurityRoles().add(role3);
- descriptorBase.getSecurityRoles().add(role4);
- descriptorBase.getSecurityRoles().add(role5);
-
-
- descriptorToMerge.getSecurityRoles().add(role0);
- descriptorToMerge.getSecurityRoles().add(role1);
- descriptorToMerge.getSecurityRoles().add(role2);
-
-
-
-
- AssemblyDescriptorMerger result = new AssemblyDescriptorMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 6);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 3);
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role0.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role1.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role2.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role3.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role4.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role5.getRoleName()));
- }
-
- private boolean containsSecRole(List list, String roleName) {
-
-
- for (Object object : list) {
- SecurityRole role = (SecurityRole) object;
- if(roleName == null){
- if(roleName == role.getRoleName()){
- return true;
- }
- } else if(roleName.equals(role.getRoleName())){
- return true;
- }
- }
- return false;
- }
-
- /**
- * Tests the merger with variety of security roles. In addition one of the roles has no name.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseComplexWithoutName() throws ModelException{
- AssemblyDescriptor descriptorBase = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- AssemblyDescriptor descriptorToMerge = EjbFactory.eINSTANCE.createAssemblyDescriptor();
- SecurityRole role0 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role1 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role2 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role3 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role4 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role5 = JavaeeFactory.eINSTANCE.createSecurityRole();
- role0.setRoleName("test1");
- role2.setRoleName("test3");
- role3.setRoleName("test4");
- role4.setRoleName("test5");
- role5.setRoleName("test6");
-
-
-
- descriptorBase.getSecurityRoles().add(role1);
- descriptorBase.getSecurityRoles().add(role3);
- descriptorBase.getSecurityRoles().add(role4);
- descriptorBase.getSecurityRoles().add(role5);
-
-
- descriptorToMerge.getSecurityRoles().add(role0);
- descriptorToMerge.getSecurityRoles().add(role1);
- descriptorToMerge.getSecurityRoles().add(role2);
-
-
-
-
- AssemblyDescriptorMerger result = new AssemblyDescriptorMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 6);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 3);
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role0.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), null));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role2.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role3.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role4.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role5.getRoleName()));
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/EjbJarMergerTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/EjbJarMergerTest.java
deleted file mode 100644
index 163292f7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/EjbJarMergerTest.java
+++ /dev/null
@@ -1,630 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.EJBRelation;
-import org.eclipse.jst.javaee.ejb.EJBRelationshipRole;
-import org.eclipse.jst.javaee.ejb.EjbFactory;
-import org.eclipse.jst.javaee.ejb.EntityBean;
-import org.eclipse.jst.javaee.ejb.InterceptorType;
-import org.eclipse.jst.javaee.ejb.InterceptorsType;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.RelationshipRoleSourceType;
-import org.eclipse.jst.javaee.ejb.Relationships;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.mergers.EjbJarMerger;
-import org.eclipse.jst.jee.model.internal.mergers.ModelException;
-
-/**
- * Tester class for EjbJar artifact.
- *
- * Base suffix means that the base object has some info and toMerge is empty:
- * nothing should be merged
- *
- * ToMerge suffix means that the base is empty object and toMerge has some info:
- * all from merge should be present in base.
- *
- * Same suffix means that the information in merge and base is one and the same:
- * no merge should occurred and additional checks for doubling of the elements
- * are present.
- *
- * Complex suffix means variety of information is present in base and to merge:
- * consistent information combined by base and toMerge should be available at
- * the end.
- *
- * ComplexOverlapped suffix means variety of information is present in base and
- * to merge: consistent information combined by base and toMerge should be
- * available at the end. There are artifacts with one and the same name and
- * different values: values should be merged into base.
- *
- *
- * @author Dimitar Giormov
- *
- */
-public class EjbJarMergerTest extends TestCase {
-
- /**
- * Empty Ejb Jars test without enterprise beans tag
- *
- * @throws ModelException
- */
- // @Test
- public void testZeroMerge() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- (new EjbJarMerger(base, merge, 0)).process();
- assertNull(base.getEnterpriseBeans());
- assertNull(merge.getEnterpriseBeans());
- }
-
- /**
- * Empty Ejb Jars test with enterprise beans tag on toMerge
- *
- * @throws ModelException
- */
- // @Test
- public void testZeroMerge2() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- }
-
- /**
- * Empty Ejb Jars test with enterprise beans tag on base
- *
- * @throws ModelException
- */
- // @Test
- public void testZeroMerge3() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNull(merge.getEnterpriseBeans());
- }
-
- /**
- * Base suffix means that the base object has some info and toMerge is
- * empty: nothing should be merged
- *
- * @throws ModelException
- */
- // @Test
- public void testSesionBeansBase() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- SessionBean sessionBean = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean.setEjbName("name");
- base.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getSessionBeans().size());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and toMerge has some
- * info: all from merge should be present in base.
- *
- * @throws ModelException
- */
- // @Test
- public void testSesionBeansMerge() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- SessionBean sessionBean = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean.setEjbName("name");
- merge.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getSessionBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getSessionBeans().size());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one and the
- * same: no merge should occurred and additional checks for doubling of the
- * elements are present.
- *
- * @throws ModelException
- */
- // @Test
- public void testSesionBeansMergeSameBean() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- SessionBean sessionBean = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean.setEjbName("name");
- base.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- merge.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getSessionBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getSessionBeans().size());
- assertNotNull(getSessionBean("name", base.getEnterpriseBeans().getSessionBeans()));
-
- }
-
- private SessionBean getSessionBean(String name, List enterpriseBeans) {
- for (Object bean : enterpriseBeans) {
- SessionBean sBean = (SessionBean) bean;
- if (sBean.getEjbName().equals(name)) {
- return sBean;
- }
-
- }
- return null;
- }
-
- /**
- * Complex suffix means variety of information is present in base and to
- * merge: consistent information combined by base and toMerge should be
- * available at the end.
- *
- * @throws Exception
- */
- public void testSessionBeanComplex() throws Exception {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- SessionBean sessionBean = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean.setEjbName("name");
- SessionBean sessionBean1 = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean1.setEjbName("name1");
- SessionBean sessionBean2 = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean2.setEjbName("name2");
- SessionBean sessionBean3 = EjbFactory.eINSTANCE.createSessionBean();
- sessionBean3.setEjbName("name3");
- base.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- base.getEnterpriseBeans().getSessionBeans().add(sessionBean1);
- base.getEnterpriseBeans().getSessionBeans().add(sessionBean3);
-
- merge.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- merge.getEnterpriseBeans().getSessionBeans().add(sessionBean2);
-
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(4, base.getEnterpriseBeans().getSessionBeans().size());
- assertEquals(2, merge.getEnterpriseBeans().getSessionBeans().size());
- assertNotNull(getSessionBean("name", base.getEnterpriseBeans().getSessionBeans()));
- assertNotNull(getSessionBean("name1", base.getEnterpriseBeans().getSessionBeans()));
- assertNotNull(getSessionBean("name2", base.getEnterpriseBeans().getSessionBeans()));
- assertNotNull(getSessionBean("name3", base.getEnterpriseBeans().getSessionBeans()));
- }
-
- // MDB
-
- /**
- * Base suffix means that the base object has some info and toMerge is
- * empty: nothing should be merged
- *
- * @throws ModelException
- */
- // @Test
- public void testMdbBeansBase() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- MessageDrivenBean sessionBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- sessionBean.setEjbName("name");
- base.getEnterpriseBeans().getMessageDrivenBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getMessageDrivenBeans().size());
-
- }
-
- /**
- * @throws ModelException
- */
- // @Test
- public void tesMdbBeansMerge() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- MessageDrivenBean sessionBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- sessionBean.setEjbName("name");
- merge.getEnterpriseBeans().getMessageDrivenBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getMessageDrivenBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getMessageDrivenBeans().size());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one and the
- * same: no merge should occurred and additional checks for doubling of the
- * elements are present.
- *
- * @throws ModelException
- */
- // @Test
- public void testMdbBeansMergeSameBean() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- MessageDrivenBean sessionBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- sessionBean.setEjbName("name");
- base.getEnterpriseBeans().getMessageDrivenBeans().add(sessionBean);
- merge.getEnterpriseBeans().getMessageDrivenBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getMessageDrivenBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getMessageDrivenBeans().size());
- assertNotNull(getMdbBean("name", base.getEnterpriseBeans().getMessageDrivenBeans()));
-
- }
-
- private MessageDrivenBean getMdbBean(String name, List enterpriseBeans) {
- for (Object bean : enterpriseBeans) {
- MessageDrivenBean sBean = (MessageDrivenBean) bean;
- if (sBean.getEjbName().equals(name)) {
- return sBean;
- }
-
- }
- return null;
- }
-
- /**
- * Complex suffix means variety of information is present in base and to
- * merge: consistent information combined by base and toMerge should be
- * available at the end.
- *
- * @throws Exception
- */
- public void testMdbBeanComplex() throws Exception {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- MessageDrivenBean messageBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- messageBean.setEjbName("name");
- MessageDrivenBean messageBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- messageBean1.setEjbName("name1");
- MessageDrivenBean messageBean2 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- messageBean2.setEjbName("name2");
- MessageDrivenBean messageBean3 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- messageBean3.setEjbName("name3");
- base.getEnterpriseBeans().getMessageDrivenBeans().add(messageBean);
- base.getEnterpriseBeans().getMessageDrivenBeans().add(messageBean1);
- base.getEnterpriseBeans().getMessageDrivenBeans().add(messageBean3);
-
- merge.getEnterpriseBeans().getMessageDrivenBeans().add(messageBean);
- merge.getEnterpriseBeans().getMessageDrivenBeans().add(messageBean2);
-
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(4, base.getEnterpriseBeans().getMessageDrivenBeans().size());
- assertEquals(2, merge.getEnterpriseBeans().getMessageDrivenBeans().size());
- assertNotNull(getMdbBean("name", base.getEnterpriseBeans().getMessageDrivenBeans()));
- assertNotNull(getMdbBean("name1", base.getEnterpriseBeans().getMessageDrivenBeans()));
- assertNotNull(getMdbBean("name2", base.getEnterpriseBeans().getMessageDrivenBeans()));
- assertNotNull(getMdbBean("name3", base.getEnterpriseBeans().getMessageDrivenBeans()));
- }
-
- // Entities
-
- /**
- * Base suffix means that the base object has some info and toMerge is
- * empty: nothing should be merged
- *
- * @throws ModelException
- */
- // @Test
- public void testEntityBeansBase() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- EntityBean sessionBean = EjbFactory.eINSTANCE.createEntityBean();
- sessionBean.setEjbName("name");
- base.getEnterpriseBeans().getEntityBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getEntityBeans().size());
-
- }
-
- /**
- * * ToMerge suffix means that the base is empty object and toMerge has some
- * info: all from merge should be present in base.
- *
- * @throws ModelException
- */
- // @Test
- public void testEntityBeansMerge() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- EntityBean sessionBean = EjbFactory.eINSTANCE.createEntityBean();
- sessionBean.setEjbName("name");
- merge.getEnterpriseBeans().getEntityBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getEntityBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getEntityBeans().size());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one and the
- * same: no merge should occurred and additional checks for doubling of the
- * elements are present.
- *
- * @throws ModelException
- */
- // @Test
- public void testEntityBeansMergeSameBean() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- EntityBean sessionBean = EjbFactory.eINSTANCE.createEntityBean();
- sessionBean.setEjbName("name");
- base.getEnterpriseBeans().getEntityBeans().add(sessionBean);
- merge.getEnterpriseBeans().getEntityBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(1, base.getEnterpriseBeans().getEntityBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getEntityBeans().size());
- assertNotNull(getEntityBean("name", base.getEnterpriseBeans().getEntityBeans()));
-
- }
-
- private EntityBean getEntityBean(String name, List enterpriseBeans) {
- for (Object bean : enterpriseBeans) {
- EntityBean sBean = (EntityBean) bean;
- if (sBean.getEjbName().equals(name)) {
- return sBean;
- }
-
- }
- return null;
- }
-
- /**
- *
- * Complex suffix means variety of information is present in base and to
- * merge: consistent information combined by base and toMerge should be
- * available at the end.
- *
- * @throws Exception
- */
- public void testEntityBeanComplex() throws Exception {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- EntityBean entityBean = EjbFactory.eINSTANCE.createEntityBean();
- entityBean.setEjbName("name");
- EntityBean entityBean1 = EjbFactory.eINSTANCE.createEntityBean();
- entityBean1.setEjbName("name1");
- EntityBean entityBean2 = EjbFactory.eINSTANCE.createEntityBean();
- entityBean2.setEjbName("name2");
- EntityBean entityBean3 = EjbFactory.eINSTANCE.createEntityBean();
- entityBean3.setEjbName("name3");
- base.getEnterpriseBeans().getEntityBeans().add(entityBean);
- base.getEnterpriseBeans().getEntityBeans().add(entityBean1);
- base.getEnterpriseBeans().getEntityBeans().add(entityBean3);
-
- merge.getEnterpriseBeans().getEntityBeans().add(entityBean);
- merge.getEnterpriseBeans().getEntityBeans().add(entityBean2);
-
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(4, base.getEnterpriseBeans().getEntityBeans().size());
- assertEquals(2, merge.getEnterpriseBeans().getEntityBeans().size());
- assertNotNull(getEntityBean("name", base.getEnterpriseBeans().getEntityBeans()));
- assertNotNull(getEntityBean("name1", base.getEnterpriseBeans().getEntityBeans()));
- assertNotNull(getEntityBean("name2", base.getEnterpriseBeans().getEntityBeans()));
- assertNotNull(getEntityBean("name3", base.getEnterpriseBeans().getEntityBeans()));
- }
-
- // @Test
- public void testGenericCopyBase() throws Exception {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- // Interceptors
- InterceptorsType interceptorsType = EjbFactory.eINSTANCE.createInterceptorsType();
- InterceptorType type = EjbFactory.eINSTANCE.createInterceptorType();
- interceptorsType.getInterceptors().add(type);
- type.setInterceptorClass("test");
- base.setInterceptors(interceptorsType);
-
- // Relationships
- Relationships relationships = EjbFactory.eINSTANCE.createRelationships();
- EJBRelation relation = EjbFactory.eINSTANCE.createEJBRelation();
- EJBRelationshipRole relationshipRole = EjbFactory.eINSTANCE.createEJBRelationshipRole();
- RelationshipRoleSourceType roleSourceType = EjbFactory.eINSTANCE.createRelationshipRoleSourceType();
- roleSourceType.setEjbName("testEjbName");
- String roleName = "RelationshpiRoleName";
- relationshipRole.setEjbRelationshipRoleName("nm");
- relationshipRole.setRelationshipRoleSource(roleSourceType);
- relation.getEjbRelationshipRoles().add(relationshipRole);
- relation.setEjbRelationName(roleName);
- relationships.getEjbRelations().add(relation);
- base.setRelationships(relationships);
- // Client jar
- String clientJar = "ejbClientJar";
- base.setEjbClientJar(clientJar);
-
- // version
- String version = "99";
- base.setVersion(version);
-
- (new EjbJarMerger(base, merge, 0)).process();
- // Interceptors
- assertNotNull(base.getInterceptors());
- assertNotNull(base.getInterceptors().getInterceptors());
- assertEquals(1, base.getInterceptors().getInterceptors().size());
- assertEquals("test", ((InterceptorType) base.getInterceptors().getInterceptors().get(0)).getInterceptorClass());
-
- // Relationships
- assertNotNull(base.getRelationships());
- assertNotNull(base.getRelationships().getEjbRelations());
- assertEquals(1, base.getRelationships().getEjbRelations().size());
- assertEquals(roleName, ((EJBRelation) base.getRelationships().getEjbRelations().get(0)).getEjbRelationName());
- // Client jar
- assertEquals(clientJar, base.getEjbClientJar());
-
- }
-
- // @Test
- public void testGenericCopyMerge() throws Exception {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
-
- // Interceptors
- InterceptorsType interceptorsType = EjbFactory.eINSTANCE.createInterceptorsType();
- InterceptorType type = EjbFactory.eINSTANCE.createInterceptorType();
- interceptorsType.getInterceptors().add(type);
- type.setInterceptorClass("test");
- merge.setInterceptors(interceptorsType);
-
- // Relationships
- Relationships relationships = EjbFactory.eINSTANCE.createRelationships();
- EJBRelation relation = EjbFactory.eINSTANCE.createEJBRelation();
- EJBRelationshipRole relationshipRole = EjbFactory.eINSTANCE.createEJBRelationshipRole();
- RelationshipRoleSourceType roleSourceType = EjbFactory.eINSTANCE.createRelationshipRoleSourceType();
- roleSourceType.setEjbName("testEjbName");
- String roleName = "RelationshpiRoleName";
- relationshipRole.setEjbRelationshipRoleName("nm");
- relationshipRole.setRelationshipRoleSource(roleSourceType);
- relation.getEjbRelationshipRoles().add(relationshipRole);
- relation.setEjbRelationName(roleName);
- relationships.getEjbRelations().add(relation);
- merge.setRelationships(relationships);
- // Client jar
- String clientJar = "ejbClientJar";
- merge.setEjbClientJar(clientJar);
-
- (new EjbJarMerger(base, merge, 0)).process();
-
- // Interceptors
- assertNotNull(base.getInterceptors());
- assertNotNull(base.getInterceptors().getInterceptors());
- assertEquals(1, base.getInterceptors().getInterceptors().size());
- assertEquals("test", ((InterceptorType) base.getInterceptors().getInterceptors().get(0)).getInterceptorClass());
- // Relationships
- assertNotNull(base.getRelationships());
- assertNotNull(base.getRelationships().getEjbRelations());
- assertEquals(1, base.getRelationships().getEjbRelations().size());
- assertEquals(roleName, ((EJBRelation) base.getRelationships().getEjbRelations().get(0)).getEjbRelationName());
- // Client jar
- assertEquals(clientJar, base.getEjbClientJar());
-
- }
-
-
- /**
- * Tests weather the merger will ignore incorrect bean (ejbName is missing)
- * Session beans
- *
- * @throws ModelException
- */
- // @Test
- public void testSesionBeansNullNameMerge() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- SessionBean sessionBean = EjbFactory.eINSTANCE.createSessionBean();
- base.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- merge.getEnterpriseBeans().getSessionBeans().add(sessionBean);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(0, base.getEnterpriseBeans().getSessionBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getSessionBeans().size());
-
- }
-
-
-
- /**
- * Tests weather the merger will ignore incorrect bean (ejbName is missing)
- * For MdBeans
- *
- * @throws ModelException
- */
- // @Test
- public void testMdBeansNullNameMergeSameBean() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- MessageDrivenBean mdb = EjbFactory.eINSTANCE.createMessageDrivenBean();
- base.getEnterpriseBeans().getMessageDrivenBeans().add(mdb);
- merge.getEnterpriseBeans().getMessageDrivenBeans().add(mdb);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(0, base.getEnterpriseBeans().getMessageDrivenBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getMessageDrivenBeans().size());
-
- }
-
-
-
- /**
- * Tests weather the merger will ignore incorrect bean (ejbName is missing)
- * EntityBeans
- *
- * @throws ModelException
- */
- // @Test
- public void testEntityBeansNullNameMerge() throws ModelException {
- EJBJar base = EjbFactory.eINSTANCE.createEJBJar();
- EJBJar merge = EjbFactory.eINSTANCE.createEJBJar();
- base.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- merge.setEnterpriseBeans(EjbFactory.eINSTANCE.createEnterpriseBeans());
- EntityBean entity = EjbFactory.eINSTANCE.createEntityBean();
- base.getEnterpriseBeans().getEntityBeans().add(entity);
- merge.getEnterpriseBeans().getEntityBeans().add(entity);
- (new EjbJarMerger(base, merge, 0)).process();
- assertNotNull(base.getEnterpriseBeans());
- assertNotNull(merge.getEnterpriseBeans());
- assertEquals(0, base.getEnterpriseBeans().getEntityBeans().size());
- assertEquals(1, merge.getEnterpriseBeans().getEntityBeans().size());
-
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/JndiRefsTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/JndiRefsTest.java
deleted file mode 100644
index 1571f842..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/JndiRefsTest.java
+++ /dev/null
@@ -1,2068 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.core.EjbLocalRef;
-import org.eclipse.jst.javaee.core.EjbRef;
-import org.eclipse.jst.javaee.core.EjbRefType;
-import org.eclipse.jst.javaee.core.EnvEntry;
-import org.eclipse.jst.javaee.core.EnvEntryType;
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.MessageDestinationRef;
-import org.eclipse.jst.javaee.core.MessageDestinationUsageType;
-import org.eclipse.jst.javaee.core.PersistenceContextRef;
-import org.eclipse.jst.javaee.core.PersistenceContextType;
-import org.eclipse.jst.javaee.core.PersistenceUnitRef;
-import org.eclipse.jst.javaee.core.ResAuthType;
-import org.eclipse.jst.javaee.core.ResSharingScopeType;
-import org.eclipse.jst.javaee.core.ResourceEnvRef;
-import org.eclipse.jst.javaee.core.ResourceRef;
-import org.eclipse.jst.javaee.core.ServiceRef;
-import org.eclipse.jst.javaee.ejb.EjbFactory;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.jee.model.internal.mergers.JNDIRefsMerger;
-
-/**
- * Tester class for JNDI references artifacts.
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- *
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- *
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- *
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- *
- *
- * @author Dimitar Giormov
- *
- */
-public class JndiRefsTest extends TestCase{
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testResourceEnvRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceEnvRef envRefBase = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefBase.setMappedName("mapped1");
- envRefBase.setResourceEnvRefName("refName1");
- envRefBase.setResourceEnvRefType("type1");
-
- ResourceEnvRef envRefToMerge = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefToMerge.setMappedName("mapped2");
- envRefToMerge.setResourceEnvRefName("refName2");
- envRefToMerge.setResourceEnvRefType("type2");
-
- beanBase.getResourceEnvRefs().add(envRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceEnvRefs().size());
- assertEquals("mapped1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getResourceEnvRefName());
- assertEquals("type1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getResourceEnvRefType());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testResourceEnvRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceEnvRef envRefBase = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefBase.setMappedName("mapped1");
- envRefBase.setResourceEnvRefName("refName1");
- envRefBase.setResourceEnvRefType("type1");
-
- ResourceEnvRef envRefToMerge = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefToMerge.setMappedName("mapped2");
- envRefToMerge.setResourceEnvRefName("refName2");
- envRefToMerge.setResourceEnvRefType("type2");
-
- beanToMerge.getResourceEnvRefs().add(envRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceEnvRefs().size());
- assertEquals("mapped1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getResourceEnvRefName());
- assertEquals("type1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getResourceEnvRefType());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testResourceEnvRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceEnvRef envRefBase = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefBase.setMappedName("mapped1");
- envRefBase.setResourceEnvRefName("refName1");
- envRefBase.setResourceEnvRefType("type1");
-
- ResourceEnvRef envRefToMerge = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefToMerge.setMappedName("mapped2");
- envRefToMerge.setResourceEnvRefName("refName2");
- envRefToMerge.setResourceEnvRefType("type2");
-
- beanBase.getResourceEnvRefs().add(envRefBase);
- beanToMerge.getResourceEnvRefs().add(envRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceEnvRefs().size());
- assertEquals("mapped1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getResourceEnvRefName());
- assertEquals("type1", ((ResourceEnvRef)beanBase.getResourceEnvRefs().get(0)).getResourceEnvRefType());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testResourceEnvRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceEnvRef envRefBase = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefBase.setMappedName("mapped1");
- envRefBase.setResourceEnvRefName("refName1");
- envRefBase.setResourceEnvRefType("type1");
-
- ResourceEnvRef envRefToMerge = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefToMerge.setMappedName("mapped2");
- envRefToMerge.setResourceEnvRefName("refName2");
- envRefToMerge.setResourceEnvRefType("type2");
-
- beanBase.getResourceEnvRefs().add(envRefBase);
- beanToMerge.getResourceEnvRefs().add(envRefBase);
- beanToMerge.getResourceEnvRefs().add(envRefToMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getResourceEnvRefs().size());
-
- ResourceEnvRef test = getResEnvRef(beanBase.getResourceEnvRefs(), "refName1");
- ResourceEnvRef test2 = getResEnvRef(beanBase.getResourceEnvRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals("type1", test.getResourceEnvRefType());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals("type2", test2.getResourceEnvRefType());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testResourceEnvRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceEnvRef envRefBase = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefBase.setResourceEnvRefName("refName1");
-
- ResourceEnvRef envRefToMerge = JavaeeFactory.eINSTANCE.createResourceEnvRef();
- envRefToMerge.setMappedName("mapped2");
- envRefToMerge.setResourceEnvRefName("refName1");
- envRefToMerge.setResourceEnvRefType("type2");
-
- beanBase.getResourceEnvRefs().add(envRefBase);
- beanToMerge.getResourceEnvRefs().add(envRefBase);
- beanToMerge.getResourceEnvRefs().add(envRefToMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceEnvRefs().size());
-
- ResourceEnvRef test = getResEnvRef(beanBase.getResourceEnvRefs(), "refName1");
- assertEquals("type2", test.getResourceEnvRefType());
- assertEquals("mapped2", test.getMappedName());
-
- }
-
- private ResourceEnvRef getResEnvRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- ResourceEnvRef ref = (ResourceEnvRef) object;
- if(name.equals(ref.getResourceEnvRefName())){
- return ref;
- }
- }
- return null;
- }
-
-
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testResourceRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceRef resRefBase = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefBase.setMappedName("mapped1");
- resRefBase.setResRefName("refName1");
- resRefBase.setResType("type1");
- resRefBase.setResAuth(ResAuthType.APPLICATION_LITERAL);
- resRefBase.setResSharingScope(ResSharingScopeType.SHAREABLE_LITERAL);
-
-
- ResourceRef resRefToMerge = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefToMerge.setMappedName("mapped2");
- resRefToMerge.setResRefName("refName2");
- resRefToMerge.setResType("type2");
- resRefToMerge.setResAuth(ResAuthType.CONTAINER_LITERAL);
- resRefToMerge.setResSharingScope(ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- beanBase.getResourceRefs().add(resRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceRefs().size());
- assertEquals("mapped1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getResRefName());
- assertEquals("type1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getResType());
- assertEquals(ResAuthType.APPLICATION_LITERAL, ((ResourceRef)beanBase.getResourceRefs().get(0)).getResAuth());
- assertEquals(ResSharingScopeType.SHAREABLE_LITERAL, ((ResourceRef)beanBase.getResourceRefs().get(0)).getResSharingScope());
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testResourceRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceRef resRefBase = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefBase.setMappedName("mapped1");
- resRefBase.setResRefName("refName1");
- resRefBase.setResType("type1");
- resRefBase.setResAuth(ResAuthType.APPLICATION_LITERAL);
- resRefBase.setResSharingScope(ResSharingScopeType.SHAREABLE_LITERAL);
-
- ResourceRef resRefToMerge = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefToMerge.setMappedName("mapped2");
- resRefToMerge.setResRefName("refName2");
- resRefToMerge.setResType("type2");
- resRefToMerge.setResAuth(ResAuthType.CONTAINER_LITERAL);
- resRefToMerge.setResSharingScope(ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- beanToMerge.getResourceRefs().add(resRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceRefs().size());
- assertEquals("mapped1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getResRefName());
- assertEquals("type1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getResType());
- assertEquals(ResAuthType.APPLICATION_LITERAL, ((ResourceRef)beanBase.getResourceRefs().get(0)).getResAuth());
- assertEquals(ResSharingScopeType.SHAREABLE_LITERAL, ((ResourceRef)beanBase.getResourceRefs().get(0)).getResSharingScope());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testResourceRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceRef resRefBase = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefBase.setMappedName("mapped1");
- resRefBase.setResRefName("refName1");
- resRefBase.setResType("type1");
- resRefBase.setResAuth(ResAuthType.APPLICATION_LITERAL);
- resRefBase.setResSharingScope(ResSharingScopeType.SHAREABLE_LITERAL);
-
-
- ResourceRef resRefToMerge = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefToMerge.setMappedName("mapped2");
- resRefToMerge.setResRefName("refName2");
- resRefToMerge.setResType("type2");
- resRefToMerge.setResAuth(ResAuthType.CONTAINER_LITERAL);
- resRefToMerge.setResSharingScope(ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- beanBase.getResourceRefs().add(resRefBase);
- beanToMerge.getResourceRefs().add(resRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceRefs().size());
- assertEquals("mapped1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getResRefName());
- assertEquals("type1", ((ResourceRef)beanBase.getResourceRefs().get(0)).getResType());
- assertEquals(ResAuthType.APPLICATION_LITERAL, ((ResourceRef)beanBase.getResourceRefs().get(0)).getResAuth());
- assertEquals(ResSharingScopeType.SHAREABLE_LITERAL, ((ResourceRef)beanBase.getResourceRefs().get(0)).getResSharingScope());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testResourceRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceRef resRefBase = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefBase.setMappedName("mapped1");
- resRefBase.setResRefName("refName1");
- resRefBase.setResType("type1");
- resRefBase.setResAuth(ResAuthType.APPLICATION_LITERAL);
- resRefBase.setResSharingScope(ResSharingScopeType.SHAREABLE_LITERAL);
-
- ResourceRef resRefToMerge = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefToMerge.setMappedName("mapped2");
- resRefToMerge.setResRefName("refName2");
- resRefToMerge.setResType("type2");
- resRefToMerge.setResAuth(ResAuthType.CONTAINER_LITERAL);
- resRefToMerge.setResSharingScope(ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- beanBase.getResourceRefs().add(resRefBase);
- beanToMerge.getResourceRefs().add(resRefBase);
- beanToMerge.getResourceRefs().add(resRefToMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getResourceRefs().size());
-
- ResourceRef test = getResRef(beanBase.getResourceRefs(), "refName1");
- ResourceRef test2 = getResRef(beanBase.getResourceRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals("type1", test.getResType());
- assertEquals(ResAuthType.APPLICATION_LITERAL, test.getResAuth());
- assertEquals(ResSharingScopeType.SHAREABLE_LITERAL, test.getResSharingScope());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals("type2", test2.getResType());
- assertEquals(ResAuthType.CONTAINER_LITERAL, test2.getResAuth());
- assertEquals(ResSharingScopeType.UNSHAREABLE_LITERAL, test2.getResSharingScope());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testResourceRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ResourceRef envRefBase = JavaeeFactory.eINSTANCE.createResourceRef();
- envRefBase.setResRefName("refName1");
-
- ResourceRef resRefToMerge = JavaeeFactory.eINSTANCE.createResourceRef();
- resRefToMerge.setMappedName("mapped2");
- resRefToMerge.setResRefName("refName1");
- resRefToMerge.setResType("type2");
- resRefToMerge.setResAuth(ResAuthType.CONTAINER_LITERAL);
- resRefToMerge.setResSharingScope(ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- beanBase.getResourceRefs().add(envRefBase);
- beanToMerge.getResourceRefs().add(envRefBase);
- beanToMerge.getResourceRefs().add(resRefToMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getResourceRefs().size());
-
- ResourceRef test = getResRef(beanBase.getResourceRefs(), "refName1");
- assertEquals("type2", test.getResType());
- assertEquals("mapped2", test.getMappedName());
- assertEquals(ResAuthType.CONTAINER_LITERAL, test.getResAuth());
- assertEquals(ResSharingScopeType.UNSHAREABLE_LITERAL, test.getResSharingScope());
-
- }
-
- private ResourceRef getResRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- ResourceRef ref = (ResourceRef) object;
- if(name.equals(ref.getResRefName())){
- return ref;
- }
- }
- return null;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testServiceRefBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ServiceRef serviceRefBase = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefBase.setMappedName("mapped1");
- serviceRefBase.setServiceRefName("refName1");
- // ServiceRefHandlerChains chains = JavaeeFactory.eINSTANCE.createServiceRefHandlerChains();
- // ServiceRefHandlerChain chain = JavaeeFactory.eINSTANCE.createServiceRefHandlerChain();
- // chains.getHandlerChains().add(chain);
- // chain.
- // resRefBase.setHandlerChains(chains);
- serviceRefBase.setServiceInterface("interface1");
- serviceRefBase.setWsdlFile("file1");
-
-
- ServiceRef serviceRefMerge = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefMerge.setMappedName("mapped2");
- serviceRefMerge.setServiceRefName("refName2");
- serviceRefMerge.setServiceInterface("interface2");
- serviceRefMerge.setWsdlFile("file2");
-
- beanBase.getServiceRefs().add(serviceRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getServiceRefs().size());
- assertEquals("mapped1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getServiceRefName());
- assertEquals("interface1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getServiceInterface());
- assertEquals("file1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getWsdlFile());
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testServiceRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ServiceRef serviceRefBase = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefBase.setMappedName("mapped1");
- serviceRefBase.setServiceRefName("refName1");
- serviceRefBase.setServiceInterface("interface1");
- serviceRefBase.setWsdlFile("file1");
-
- ServiceRef serviceRefMerge = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefMerge.setMappedName("mapped2");
- serviceRefMerge.setServiceRefName("refName2");
- serviceRefMerge.setServiceInterface("interface2");
- serviceRefMerge.setWsdlFile("file2");
-
- beanToMerge.getServiceRefs().add(serviceRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getServiceRefs().size());
- assertEquals("mapped1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getServiceRefName());
- assertEquals("interface1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getServiceInterface());
- assertEquals("file1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getWsdlFile());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testServiceRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ServiceRef serviceRefBase = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefBase.setMappedName("mapped1");
- serviceRefBase.setServiceRefName("refName1");
- serviceRefBase.setServiceInterface("interface1");
- serviceRefBase.setWsdlFile("file1");
-
-
- ServiceRef resRefToMerge = JavaeeFactory.eINSTANCE.createServiceRef();
- resRefToMerge.setMappedName("mapped2");
- resRefToMerge.setServiceRefName("refName2");
- resRefToMerge.setServiceInterface("interface2");
- resRefToMerge.setWsdlFile("file2");
-
- beanBase.getServiceRefs().add(serviceRefBase);
- beanToMerge.getServiceRefs().add(serviceRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getServiceRefs().size());
- assertEquals("mapped1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getMappedName());
- assertEquals("refName1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getServiceRefName());
- assertEquals("interface1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getServiceInterface());
- assertEquals("file1", ((ServiceRef)beanBase.getServiceRefs().get(0)).getWsdlFile());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testServiceRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ServiceRef serviceRefBase = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefBase.setMappedName("mapped1");
- serviceRefBase.setServiceRefName("refName1");
- serviceRefBase.setServiceInterface("interface1");
- serviceRefBase.setWsdlFile("file1");
-
- ServiceRef serviceRefMerge = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefMerge.setMappedName("mapped2");
- serviceRefMerge.setServiceRefName("refName2");
- serviceRefMerge.setServiceInterface("interface2");
- serviceRefMerge.setWsdlFile("file2");
-
- beanBase.getServiceRefs().add(serviceRefBase);
- beanToMerge.getServiceRefs().add(serviceRefBase);
- beanToMerge.getServiceRefs().add(serviceRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getServiceRefs().size());
-
- ServiceRef test = getServiceRef(beanBase.getServiceRefs(), "refName1");
- ServiceRef test2 = getServiceRef(beanBase.getServiceRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals("interface1", test.getServiceInterface());
- assertEquals("file1", test.getWsdlFile());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals("interface2", test2.getServiceInterface());
- assertEquals("file2", test2.getWsdlFile());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testServiceRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- ServiceRef serviceRefBase = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefBase.setServiceRefName("refName1");
-
- ServiceRef serviceRefMerge = JavaeeFactory.eINSTANCE.createServiceRef();
- serviceRefMerge.setMappedName("mapped2");
- serviceRefMerge.setServiceRefName("refName1");
- serviceRefMerge.setServiceInterface("interface2");
- serviceRefMerge.setWsdlFile("file2");
-
- beanBase.getServiceRefs().add(serviceRefBase);
- beanToMerge.getServiceRefs().add(serviceRefBase);
- beanToMerge.getServiceRefs().add(serviceRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getServiceRefs().size());
-
- ServiceRef test = getServiceRef(beanBase.getServiceRefs(), "refName1");
- assertEquals("interface2", test.getServiceInterface());
- assertEquals("mapped2", test.getMappedName());
- assertEquals("file2", test.getWsdlFile());
-
- }
-
- private ServiceRef getServiceRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- ServiceRef ref = (ServiceRef) object;
- if(name.equals(ref.getServiceRefName())){
- return ref;
- }
- }
- return null;
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testPersistenceUnitRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceUnitRef persistenceUnitRefBase = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefBase.setMappedName("mapped1");
- persistenceUnitRefBase.setPersistenceUnitRefName("refName1");
- persistenceUnitRefBase.setPersistenceUnitName("type1");
-
-
- PersistenceUnitRef persistenceUnitRefMerge = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefMerge.setMappedName("mapped2");
- persistenceUnitRefMerge.setPersistenceUnitRefName("refName2");
- persistenceUnitRefMerge.setPersistenceUnitName("type2");
-
- beanBase.getPersistenceUnitRefs().add(persistenceUnitRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceUnitRefs().size());
- assertEquals("mapped1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getMappedName());
- assertEquals("refName1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getPersistenceUnitRefName());
- assertEquals("type1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getPersistenceUnitName());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testPersistenceUnitRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceUnitRef persistenceUnitRefBase = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefBase.setMappedName("mapped1");
- persistenceUnitRefBase.setPersistenceUnitRefName("refName1");
- persistenceUnitRefBase.setPersistenceUnitName("type1");
-
- PersistenceUnitRef persistenceUnitRefMerge = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefMerge.setMappedName("mapped2");
- persistenceUnitRefMerge.setPersistenceUnitRefName("refName2");
- persistenceUnitRefMerge.setPersistenceUnitName("type2");
-
- beanToMerge.getPersistenceUnitRefs().add(persistenceUnitRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceUnitRefs().size());
- assertEquals("mapped1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getMappedName());
- assertEquals("refName1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getPersistenceUnitRefName());
- assertEquals("type1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getPersistenceUnitName());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testPersistenceUnitRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceUnitRef persistenceUnitRefBase = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefBase.setMappedName("mapped1");
- persistenceUnitRefBase.setPersistenceUnitRefName("refName1");
- persistenceUnitRefBase.setPersistenceUnitName("type1");
-
- PersistenceUnitRef persistenceUnitRefMerge = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefMerge.setMappedName("mapped2");
- persistenceUnitRefMerge.setPersistenceUnitRefName("refName2");
- persistenceUnitRefMerge.setPersistenceUnitName("type2");
-
- beanBase.getPersistenceUnitRefs().add(persistenceUnitRefBase);
- beanToMerge.getPersistenceUnitRefs().add(persistenceUnitRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceUnitRefs().size());
- assertEquals("mapped1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getMappedName());
- assertEquals("refName1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getPersistenceUnitRefName());
- assertEquals("type1", ((PersistenceUnitRef)beanBase.getPersistenceUnitRefs().get(0)).getPersistenceUnitName());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testPersistenceUnitRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceUnitRef persistenceUnitRefBase = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefBase.setMappedName("mapped1");
- persistenceUnitRefBase.setPersistenceUnitRefName("refName1");
- persistenceUnitRefBase.setPersistenceUnitName("type1");
-
- PersistenceUnitRef persistenceUnitRefMerge = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefMerge.setMappedName("mapped2");
- persistenceUnitRefMerge.setPersistenceUnitRefName("refName2");
- persistenceUnitRefMerge.setPersistenceUnitName("type2");
-
- beanBase.getPersistenceUnitRefs().add(persistenceUnitRefBase);
- beanToMerge.getPersistenceUnitRefs().add(persistenceUnitRefBase);
- beanToMerge.getPersistenceUnitRefs().add(persistenceUnitRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getPersistenceUnitRefs().size());
-
- PersistenceUnitRef test = getPersistUnitRef(beanBase.getPersistenceUnitRefs(), "refName1");
- PersistenceUnitRef test2 = getPersistUnitRef(beanBase.getPersistenceUnitRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals("type1", test.getPersistenceUnitName());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals("type2", test2.getPersistenceUnitName());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testPersistenceUnitRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceUnitRef persistenceUnitRefBase = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefBase.setPersistenceUnitRefName("refName1");
-
- PersistenceUnitRef persistenceUnitRefMerge = JavaeeFactory.eINSTANCE.createPersistenceUnitRef();
- persistenceUnitRefMerge.setMappedName("mapped2");
- persistenceUnitRefMerge.setPersistenceUnitRefName("refName1");
- persistenceUnitRefMerge.setPersistenceUnitName("type2");
-
- beanBase.getPersistenceUnitRefs().add(persistenceUnitRefBase);
- beanToMerge.getPersistenceUnitRefs().add(persistenceUnitRefBase);
- beanToMerge.getPersistenceUnitRefs().add(persistenceUnitRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceUnitRefs().size());
-
- PersistenceUnitRef test = getPersistUnitRef(beanBase.getPersistenceUnitRefs(), "refName1");
- assertEquals("type2", test.getPersistenceUnitName());
- assertEquals("mapped2", test.getMappedName());
-
- }
-
- private PersistenceUnitRef getPersistUnitRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- PersistenceUnitRef ref = (PersistenceUnitRef) object;
- if(name.equals(ref.getPersistenceUnitRefName())){
- return ref;
- }
- }
- return null;
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testPersistenceContextRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceContextRef persistenceContextRefBase = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefBase.setMappedName("mapped1");
- persistenceContextRefBase.setPersistenceContextRefName("refName1");
- persistenceContextRefBase.setPersistenceContextType(PersistenceContextType.EXTENDED_LITERAL);
-
- PersistenceContextRef persistenceContextRefMerge = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefMerge.setMappedName("mapped2");
- persistenceContextRefMerge.setPersistenceContextRefName("refName2");
- persistenceContextRefMerge.setPersistenceContextType(PersistenceContextType.TRANSACTION_LITERAL);
-
- beanBase.getPersistenceContextRefs().add(persistenceContextRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceContextRefs().size());
- assertEquals("mapped1", ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getMappedName());
- assertEquals("refName1", ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getPersistenceContextRefName());
- assertEquals(PersistenceContextType.EXTENDED_LITERAL, ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getPersistenceContextType());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testPersistenceContextRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceContextRef persistenceContextRefBase = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefBase.setMappedName("mapped1");
- persistenceContextRefBase.setPersistenceContextRefName("refName1");
- persistenceContextRefBase.setPersistenceContextType(PersistenceContextType.EXTENDED_LITERAL);
-
- PersistenceContextRef persistenceContextRefMerge = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefMerge.setMappedName("mapped2");
- persistenceContextRefMerge.setPersistenceContextRefName("refName2");
- persistenceContextRefMerge.setPersistenceContextType(PersistenceContextType.TRANSACTION_LITERAL);
-
- beanToMerge.getPersistenceContextRefs().add(persistenceContextRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceContextRefs().size());
- assertEquals("mapped1", ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getMappedName());
- assertEquals("refName1", ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getPersistenceContextRefName());
- assertEquals(PersistenceContextType.EXTENDED_LITERAL, ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getPersistenceContextType());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testPersistenceContextRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceContextRef persistenceContextRefBase = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefBase.setMappedName("mapped1");
- persistenceContextRefBase.setPersistenceContextRefName("refName1");
- persistenceContextRefBase.setPersistenceContextType(PersistenceContextType.EXTENDED_LITERAL);
-
- PersistenceContextRef persistenceContextRefMerge = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefMerge.setMappedName("mapped2");
- persistenceContextRefMerge.setPersistenceContextRefName("refName2");
- persistenceContextRefMerge.setPersistenceContextType(PersistenceContextType.TRANSACTION_LITERAL);
-
- beanBase.getPersistenceContextRefs().add(persistenceContextRefBase);
- beanToMerge.getPersistenceContextRefs().add(persistenceContextRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceContextRefs().size());
- assertEquals("mapped1", ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getMappedName());
- assertEquals("refName1", ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getPersistenceContextRefName());
- assertEquals(PersistenceContextType.EXTENDED_LITERAL, ((PersistenceContextRef)beanBase.getPersistenceContextRefs().get(0)).getPersistenceContextType());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testPersistenceContextRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceContextRef persistenceContextRefBase = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefBase.setMappedName("mapped1");
- persistenceContextRefBase.setPersistenceContextRefName("refName1");
- persistenceContextRefBase.setPersistenceContextType(PersistenceContextType.EXTENDED_LITERAL);
-
- PersistenceContextRef persistenceContextRefMerge = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefMerge.setMappedName("mapped2");
- persistenceContextRefMerge.setPersistenceContextRefName("refName2");
- persistenceContextRefMerge.setPersistenceContextType(PersistenceContextType.TRANSACTION_LITERAL);
-
- beanBase.getPersistenceContextRefs().add(persistenceContextRefBase);
- beanToMerge.getPersistenceContextRefs().add(persistenceContextRefBase);
- beanToMerge.getPersistenceContextRefs().add(persistenceContextRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getPersistenceContextRefs().size());
-
- PersistenceContextRef test = getPersistenceCintextRef(beanBase.getPersistenceContextRefs(), "refName1");
- PersistenceContextRef test2 = getPersistenceCintextRef(beanBase.getPersistenceContextRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals(PersistenceContextType.EXTENDED_LITERAL, test.getPersistenceContextType());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals(PersistenceContextType.TRANSACTION_LITERAL, test2.getPersistenceContextType());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testPersistenceContextRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- PersistenceContextRef persistenceContextRefBase = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefBase.setPersistenceContextRefName("refName1");
-
- PersistenceContextRef persistenceContextRefMerge = JavaeeFactory.eINSTANCE.createPersistenceContextRef();
- persistenceContextRefMerge.setMappedName("mapped2");
- persistenceContextRefMerge.setPersistenceContextRefName("refName1");
- persistenceContextRefMerge.setPersistenceContextType(PersistenceContextType.TRANSACTION_LITERAL);
-
- beanBase.getPersistenceContextRefs().add(persistenceContextRefBase);
- beanToMerge.getPersistenceContextRefs().add(persistenceContextRefBase);
- beanToMerge.getPersistenceContextRefs().add(persistenceContextRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getPersistenceContextRefs().size());
-
- PersistenceContextRef test = getPersistenceCintextRef(beanBase.getPersistenceContextRefs(), "refName1");
- assertEquals(PersistenceContextType.TRANSACTION_LITERAL, test.getPersistenceContextType());
- assertEquals("mapped2", test.getMappedName());
-
- }
-
- private PersistenceContextRef getPersistenceCintextRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- PersistenceContextRef ref = (PersistenceContextRef) object;
- if(name.equals(ref.getPersistenceContextRefName())){
- return ref;
- }
- }
- return null;
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testMessageDestinationRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- MessageDestinationRef messageDestRefBase = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefBase.setMappedName("mapped1");
- messageDestRefBase.setMessageDestinationRefName("refName1");
- messageDestRefBase.setMessageDestinationType("type1");
- messageDestRefBase.setMessageDestinationLink("link1");
- messageDestRefBase.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_LITERAL);
-
- MessageDestinationRef messageDestRefMerge = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefMerge.setMappedName("mapped2");
- messageDestRefMerge.setMessageDestinationRefName("refName2");
- messageDestRefMerge.setMessageDestinationType("type2");
- messageDestRefMerge.setMessageDestinationLink("link2");
- messageDestRefMerge.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL);
-
- beanBase.getMessageDestinationRefs().add(messageDestRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getMessageDestinationRefs().size());
- assertEquals("mapped1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMappedName());
- assertEquals("refName1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationRefName());
- assertEquals("type1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationType());
- assertEquals("link1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationLink());
- assertEquals(MessageDestinationUsageType.CONSUMES_LITERAL, ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationUsage());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testMessageDestinationRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- MessageDestinationRef messageDestRefBase = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefBase.setMappedName("mapped1");
- messageDestRefBase.setMessageDestinationRefName("refName1");
- messageDestRefBase.setMessageDestinationType("type1");
- messageDestRefBase.setMessageDestinationLink("link1");
- messageDestRefBase.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_LITERAL);
-
- MessageDestinationRef messageDestRefMerge = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefMerge.setMappedName("mapped2");
- messageDestRefMerge.setMessageDestinationRefName("refName2");
- messageDestRefMerge.setMessageDestinationType("type2");
- messageDestRefMerge.setMessageDestinationLink("link2");
- messageDestRefMerge.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL);
-
-
- beanToMerge.getMessageDestinationRefs().add(messageDestRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getMessageDestinationRefs().size());
- assertEquals("mapped1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMappedName());
- assertEquals("refName1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationRefName());
- assertEquals("type1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationType());
- assertEquals("link1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationLink());
- assertEquals(MessageDestinationUsageType.CONSUMES_LITERAL, ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationUsage());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testMessageDestinationRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- MessageDestinationRef messageDestRefBase = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefBase.setMappedName("mapped1");
- messageDestRefBase.setMessageDestinationRefName("refName1");
- messageDestRefBase.setMessageDestinationType("type1");
- messageDestRefBase.setMessageDestinationLink("link1");
- messageDestRefBase.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_LITERAL);
-
- MessageDestinationRef messageDestRefMerge = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefMerge.setMappedName("mapped2");
- messageDestRefMerge.setMessageDestinationRefName("refName2");
- messageDestRefMerge.setMessageDestinationType("type2");
- messageDestRefMerge.setMessageDestinationLink("link2");
- messageDestRefMerge.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL);
-
-
- beanBase.getMessageDestinationRefs().add(messageDestRefBase);
- beanToMerge.getMessageDestinationRefs().add(messageDestRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getMessageDestinationRefs().size());
- assertEquals("mapped1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMappedName());
- assertEquals("refName1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationRefName());
- assertEquals("type1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationType());
- assertEquals("link1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationLink());
- assertEquals(MessageDestinationUsageType.CONSUMES_LITERAL, ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationUsage());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testMessageDestinationRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- MessageDestinationRef messageDestRefBase = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefBase.setMappedName("mapped1");
- messageDestRefBase.setMessageDestinationRefName("refName1");
- messageDestRefBase.setMessageDestinationType("type1");
- messageDestRefBase.setMessageDestinationLink("link1");
- messageDestRefBase.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_LITERAL);
-
- MessageDestinationRef messageDestRefMerge = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefMerge.setMappedName("mapped2");
- messageDestRefMerge.setMessageDestinationRefName("refName2");
- messageDestRefMerge.setMessageDestinationType("type2");
- messageDestRefMerge.setMessageDestinationLink("link2");
- messageDestRefMerge.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL);
-
-
- beanBase.getMessageDestinationRefs().add(messageDestRefBase);
- beanToMerge.getMessageDestinationRefs().add(messageDestRefBase);
- beanToMerge.getMessageDestinationRefs().add(messageDestRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getMessageDestinationRefs().size());
-
- MessageDestinationRef test = getMessageRef(beanBase.getMessageDestinationRefs(), "refName1");
- MessageDestinationRef test2 = getMessageRef(beanBase.getMessageDestinationRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals("type1", test.getMessageDestinationType());
- assertEquals("link1", ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationLink());
- assertEquals(MessageDestinationUsageType.CONSUMES_LITERAL, ((MessageDestinationRef)beanBase.getMessageDestinationRefs().get(0)).getMessageDestinationUsage());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals("type2", test2.getMessageDestinationType());
- assertEquals("link2", test2.getMessageDestinationLink());
- assertEquals(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL, test2.getMessageDestinationUsage());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testMessageDestinationRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- MessageDestinationRef messageDestRefBase = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefBase.setMessageDestinationRefName("refName1");
-
- MessageDestinationRef messageDestRefMerge = JavaeeFactory.eINSTANCE.createMessageDestinationRef();
- messageDestRefMerge.setMappedName("mapped2");
- messageDestRefMerge.setMessageDestinationRefName("refName1");
- messageDestRefMerge.setMessageDestinationType("type2");
- messageDestRefMerge.setMessageDestinationLink("link2");
- messageDestRefMerge.setMessageDestinationUsage(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL);
-
-
- beanBase.getMessageDestinationRefs().add(messageDestRefBase);
- beanToMerge.getMessageDestinationRefs().add(messageDestRefBase);
- beanToMerge.getMessageDestinationRefs().add(messageDestRefMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getMessageDestinationRefs().size());
-
- MessageDestinationRef test = getMessageRef(beanBase.getMessageDestinationRefs(), "refName1");
- assertEquals("type2", test.getMessageDestinationType());
- assertEquals("mapped2", test.getMappedName());
- assertEquals("link2", test.getMessageDestinationLink());
- assertEquals(MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL, test.getMessageDestinationUsage());
-
- }
-
- private MessageDestinationRef getMessageRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- MessageDestinationRef ref = (MessageDestinationRef) object;
- if(name.equals(ref.getMessageDestinationRefName())){
- return ref;
- }
- }
- return null;
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testEjbRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbRef ejbRefBase = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefBase.setMappedName("mapped1");
- ejbRefBase.setEjbRefName("refName1");
- ejbRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbRefBase.setEjbLink("link1");
- ejbRefBase.setHome("home1");
- ejbRefBase.setRemote("remote1");
-
- EjbRef ejbRefToMerge = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefToMerge.setMappedName("mapped2");
- ejbRefToMerge.setEjbRefName("refName2");
- ejbRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbRefToMerge.setEjbLink("link2");
- ejbRefToMerge.setHome("home2");
- ejbRefToMerge.setRemote("remote2");
-
- beanBase.getEjbRefs().add(ejbRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbRefs().size());
- assertEquals("mapped1", ((EjbRef)beanBase.getEjbRefs().get(0)).getMappedName());
- assertEquals("refName1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbRefName());
- assertEquals(EjbRefType.SESSION_LITERAL, ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbRefType());
- assertEquals("link1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbLink());
- assertEquals("home1", ((EjbRef)beanBase.getEjbRefs().get(0)).getHome());
- assertEquals("remote1", ((EjbRef)beanBase.getEjbRefs().get(0)).getRemote());
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testEjbRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbRef ejbRefBase = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefBase.setMappedName("mapped1");
- ejbRefBase.setEjbRefName("refName1");
- ejbRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbRefBase.setEjbLink("link1");
- ejbRefBase.setHome("home1");
- ejbRefBase.setRemote("remote1");
-
- EjbRef ejbRefToMerge = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefToMerge.setMappedName("mapped2");
- ejbRefToMerge.setEjbRefName("refName2");
- ejbRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbRefToMerge.setEjbLink("link2");
- ejbRefToMerge.setHome("home2");
- ejbRefToMerge.setRemote("remote2");
-
-
- beanToMerge.getEjbRefs().add(ejbRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbRefs().size());
- assertEquals("mapped1", ((EjbRef)beanBase.getEjbRefs().get(0)).getMappedName());
- assertEquals("refName1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbRefName());
- assertEquals(EjbRefType.SESSION_LITERAL, ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbRefType());
- assertEquals("link1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbLink());
- assertEquals("home1", ((EjbRef)beanBase.getEjbRefs().get(0)).getHome());
- assertEquals("remote1", ((EjbRef)beanBase.getEjbRefs().get(0)).getRemote());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testEjbRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbRef ejbRefBase = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefBase.setMappedName("mapped1");
- ejbRefBase.setEjbRefName("refName1");
- ejbRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbRefBase.setEjbLink("link1");
- ejbRefBase.setHome("home1");
- ejbRefBase.setRemote("remote1");
-
- EjbRef ejbRefToMerge = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefToMerge.setMappedName("mapped2");
- ejbRefToMerge.setEjbRefName("refName2");
- ejbRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbRefToMerge.setEjbLink("link2");
- ejbRefToMerge.setHome("home2");
- ejbRefToMerge.setRemote("remote2");
-
-
- beanBase.getEjbRefs().add(ejbRefBase);
- beanToMerge.getEjbRefs().add(ejbRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbRefs().size());
- assertEquals("mapped1", ((EjbRef)beanBase.getEjbRefs().get(0)).getMappedName());
- assertEquals("refName1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbRefName());
- assertEquals(EjbRefType.SESSION_LITERAL, ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbRefType());
- assertEquals("link1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbLink());
- assertEquals("home1", ((EjbRef)beanBase.getEjbRefs().get(0)).getHome());
- assertEquals("remote1", ((EjbRef)beanBase.getEjbRefs().get(0)).getRemote());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testEjbRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbRef ejbRefBase = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefBase.setMappedName("mapped1");
- ejbRefBase.setEjbRefName("refName1");
- ejbRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbRefBase.setEjbLink("link1");
- ejbRefBase.setHome("home1");
- ejbRefBase.setRemote("remote1");
-
- EjbRef ejbRefToMerge = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefToMerge.setMappedName("mapped2");
- ejbRefToMerge.setEjbRefName("refName2");
- ejbRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbRefToMerge.setEjbLink("link2");
- ejbRefToMerge.setHome("home2");
- ejbRefToMerge.setRemote("remote2");
-
-
- beanBase.getEjbRefs().add(ejbRefBase);
- beanToMerge.getEjbRefs().add(ejbRefBase);
- beanToMerge.getEjbRefs().add(ejbRefToMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getEjbRefs().size());
-
- EjbRef test = getEjbRef(beanBase.getEjbRefs(), "refName1");
- EjbRef test2 = getEjbRef(beanBase.getEjbRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals(EjbRefType.SESSION_LITERAL, test.getEjbRefType());
- assertEquals("link1", ((EjbRef)beanBase.getEjbRefs().get(0)).getEjbLink());
- assertEquals("home1", test.getHome());
- assertEquals("remote1", test.getRemote());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals(EjbRefType.ENTITY_LITERAL, test2.getEjbRefType());
- assertEquals("link2", test2.getEjbLink());
- assertEquals("home2", test2.getHome());
- assertEquals("remote2", test2.getRemote());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testEjbRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- SessionBean beanToLink = EjbFactory.eINSTANCE.createSessionBean();
-
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
- beanToLink.setEjbName("name");
-
- EjbRef ejbRefBase = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefBase.setEjbRefName("refName1");
-
- EjbRef ejbRefToMerge = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefToMerge.setMappedName("mapped2");
- ejbRefToMerge.setEjbRefName("refName1");
- ejbRefToMerge.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbRefToMerge.setEjbLink("link2");
- ejbRefToMerge.setHome("home2");
- ejbRefToMerge.setRemote("remote2");
-
-
- EjbRef ejbRefToLink = JavaeeFactory.eINSTANCE.createEjbRef();
- ejbRefToLink.setEjbRefName("refName199");
- ejbRefToLink.setEjbLink("link2");
-
-
- beanBase.getEjbRefs().add(ejbRefBase);
- beanToMerge.getEjbRefs().add(ejbRefBase);
- beanToMerge.getEjbRefs().add(ejbRefToMerge);
- beanToLink.getEjbRefs().add(ejbRefToLink);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbRefs().size());
-
- EjbRef test = getEjbRef(beanBase.getEjbRefs(), "refName1");
- assertEquals(EjbRefType.SESSION_LITERAL, test.getEjbRefType());
- assertEquals("mapped2", test.getMappedName());
- assertEquals("link2", test.getEjbLink());
- assertEquals("home2", test.getHome());
- assertEquals("remote2", test.getRemote());
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- }
-
- private EjbRef getEjbRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- EjbRef ref = (EjbRef) object;
- if(name.equals(ref.getEjbRefName())){
- return ref;
- }
- }
- return null;
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testEjbLocalRefsBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbLocalRef ejbLocalRefBase = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefBase.setMappedName("mapped1");
- ejbLocalRefBase.setEjbRefName("refName1");
- ejbLocalRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbLocalRefBase.setEjbLink("link1");
- ejbLocalRefBase.setLocalHome("home1");
- ejbLocalRefBase.setLocal("remote1");
-
- EjbLocalRef ejbLocalRefToMerge = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefToMerge.setMappedName("mapped2");
- ejbLocalRefToMerge.setEjbRefName("refName2");
- ejbLocalRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbLocalRefToMerge.setEjbLink("link2");
- ejbLocalRefToMerge.setLocalHome("home2");
- ejbLocalRefToMerge.setLocal("remote2");
-
- beanBase.getEjbLocalRefs().add(ejbLocalRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbLocalRefs().size());
- assertEquals("mapped1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getMappedName());
- assertEquals("refName1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbRefName());
- assertEquals(EjbRefType.SESSION_LITERAL, ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbRefType());
- assertEquals("link1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbLink());
- assertEquals("home1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getLocalHome());
- assertEquals("remote1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getLocal());
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testEjbLocalRefsMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbLocalRef envRefBase = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- envRefBase.setMappedName("mapped1");
- envRefBase.setEjbRefName("refName1");
- envRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- envRefBase.setEjbLink("link1");
- envRefBase.setLocalHome("home1");
- envRefBase.setLocal("remote1");
-
- EjbLocalRef ejbLocalRefToMerge = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefToMerge.setMappedName("mapped2");
- ejbLocalRefToMerge.setEjbRefName("refName2");
- ejbLocalRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbLocalRefToMerge.setEjbLink("link2");
- ejbLocalRefToMerge.setLocalHome("home2");
- ejbLocalRefToMerge.setLocal("remote2");
-
-
- beanToMerge.getEjbLocalRefs().add(envRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbLocalRefs().size());
- assertEquals("mapped1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getMappedName());
- assertEquals("refName1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbRefName());
- assertEquals(EjbRefType.SESSION_LITERAL, ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbRefType());
- assertEquals("link1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbLink());
- assertEquals("home1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getLocalHome());
- assertEquals("remote1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getLocal());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testEjbLocalRefsSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbLocalRef ejbLocalRefBase = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefBase.setMappedName("mapped1");
- ejbLocalRefBase.setEjbRefName("refName1");
- ejbLocalRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbLocalRefBase.setEjbLink("link1");
- ejbLocalRefBase.setLocalHome("home1");
- ejbLocalRefBase.setLocal("remote1");
-
- EjbLocalRef ejbLocalRefToMerge = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefToMerge.setMappedName("mapped2");
- ejbLocalRefToMerge.setEjbRefName("refName2");
- ejbLocalRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbLocalRefToMerge.setEjbLink("link2");
- ejbLocalRefToMerge.setLocalHome("home2");
- ejbLocalRefToMerge.setLocal("remote2");
-
-
- beanBase.getEjbLocalRefs().add(ejbLocalRefBase);
- beanToMerge.getEjbLocalRefs().add(ejbLocalRefBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbLocalRefs().size());
- assertEquals("mapped1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getMappedName());
- assertEquals("refName1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbRefName());
- assertEquals(EjbRefType.SESSION_LITERAL, ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbRefType());
- assertEquals("link1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbLink());
- assertEquals("home1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getLocalHome());
- assertEquals("remote1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getLocal());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testEjbLocalRefsComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EjbLocalRef ejbLocalRefBase = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefBase.setMappedName("mapped1");
- ejbLocalRefBase.setEjbRefName("refName1");
- ejbLocalRefBase.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbLocalRefBase.setEjbLink("link1");
- ejbLocalRefBase.setLocalHome("home1");
- ejbLocalRefBase.setLocal("remote1");
-
- EjbLocalRef ejbLocalRefToMerge = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefToMerge.setMappedName("mapped2");
- ejbLocalRefToMerge.setEjbRefName("refName2");
- ejbLocalRefToMerge.setEjbRefType(EjbRefType.ENTITY_LITERAL);
- ejbLocalRefToMerge.setEjbLink("link2");
- ejbLocalRefToMerge.setLocalHome("home2");
- ejbLocalRefToMerge.setLocal("remote2");
-
-
- beanBase.getEjbLocalRefs().add(ejbLocalRefBase);
- beanToMerge.getEjbLocalRefs().add(ejbLocalRefBase);
- beanToMerge.getEjbLocalRefs().add(ejbLocalRefToMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getEjbLocalRefs().size());
-
- EjbLocalRef test = getEjbLocalRef(beanBase.getEjbLocalRefs(), "refName1");
- EjbLocalRef test2 = getEjbLocalRef(beanBase.getEjbLocalRefs(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals(EjbRefType.SESSION_LITERAL, test.getEjbRefType());
- assertEquals("link1", ((EjbLocalRef)beanBase.getEjbLocalRefs().get(0)).getEjbLink());
- assertEquals("home1", test.getLocalHome());
- assertEquals("remote1", test.getLocal());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals(EjbRefType.ENTITY_LITERAL, test2.getEjbRefType());
- assertEquals("link2", test2.getEjbLink());
- assertEquals("home2", test2.getLocalHome());
- assertEquals("remote2", test2.getLocal());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testEjbLocalRefsComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- SessionBean beanToLink = EjbFactory.eINSTANCE.createSessionBean();
-
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
- beanToLink.setEjbName("name");
-
- EjbLocalRef ejbLocalRefBase = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefBase.setEjbRefName("refName1");
-
- EjbLocalRef ejbLocalRefToMerge = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefToMerge.setMappedName("mapped2");
- ejbLocalRefToMerge.setEjbRefName("refName1");
- ejbLocalRefToMerge.setEjbRefType(EjbRefType.SESSION_LITERAL);
- ejbLocalRefToMerge.setEjbLink("link2");
- ejbLocalRefToMerge.setLocalHome("home2");
- ejbLocalRefToMerge.setLocal("remote2");
-
-
- EjbLocalRef ejbLocalRefToLink = JavaeeFactory.eINSTANCE.createEjbLocalRef();
- ejbLocalRefToLink.setEjbRefName("refName199");
- ejbLocalRefToLink.setEjbLink("link2");
-
-
- beanBase.getEjbLocalRefs().add(ejbLocalRefBase);
- beanToMerge.getEjbLocalRefs().add(ejbLocalRefBase);
- beanToMerge.getEjbLocalRefs().add(ejbLocalRefToMerge);
- beanToLink.getEjbLocalRefs().add(ejbLocalRefToLink);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEjbLocalRefs().size());
-
- EjbLocalRef test = getEjbLocalRef(beanBase.getEjbLocalRefs(), "refName1");
- assertEquals(EjbRefType.SESSION_LITERAL, test.getEjbRefType());
- assertEquals("mapped2", test.getMappedName());
- assertEquals("link2", test.getEjbLink());
- assertEquals("home2", test.getLocalHome());
- assertEquals("remote2", test.getLocal());
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- }
-
- private EjbLocalRef getEjbLocalRef(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- EjbLocalRef ref = (EjbLocalRef) object;
- if(name.equals(ref.getEjbRefName())){
- return ref;
- }
- }
- return null;
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testEnvEntrysBase() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EnvEntry envEntryBase = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryBase.setMappedName("mapped1");
- envEntryBase.setEnvEntryName("refName1");
- envEntryBase.setEnvEntryType(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL);
- envEntryBase.setEnvEntryValue("true");
-
-
- EnvEntry envEntryMerge = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryMerge.setMappedName("mapped2");
- envEntryMerge.setEnvEntryName("refName2");
- envEntryMerge.setEnvEntryType(EnvEntryType.JAVA_LANG_BYTE_LITERAL);
- envEntryMerge.setEnvEntryValue("00");
-
- beanBase.getEnvEntries().add(envEntryBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEnvEntries().size());
- assertEquals("mapped1", ((EnvEntry)beanBase.getEnvEntries().get(0)).getMappedName());
- assertEquals("refName1", ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryName());
- assertEquals(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL.getLiteral(), ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryType());
- assertEquals("true", ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryValue());
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testEnvEntrysMerge() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EnvEntry envEntryBase = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryBase.setMappedName("mapped1");
- envEntryBase.setEnvEntryName("refName1");
- envEntryBase.setEnvEntryType(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL);
- envEntryBase.setEnvEntryValue("true");
-
- EnvEntry envEntryMerge = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryMerge.setMappedName("mapped2");
- envEntryMerge.setEnvEntryName("refName2");
- envEntryMerge.setEnvEntryType(EnvEntryType.JAVA_LANG_BYTE_LITERAL);
- envEntryMerge.setEnvEntryValue("00");
-
- beanToMerge.getEnvEntries().add(envEntryBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEnvEntries().size());
- assertEquals("mapped1", ((EnvEntry)beanBase.getEnvEntries().get(0)).getMappedName());
- assertEquals("refName1", ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryName());
- assertEquals(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL.getLiteral(), ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryType());
- assertEquals("true", ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryValue());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testEnvEntrysSame() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EnvEntry envEntryBase = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryBase.setMappedName("mapped1");
- envEntryBase.setEnvEntryName("refName1");
- envEntryBase.setEnvEntryType(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL);
- envEntryBase.setEnvEntryValue("true");
-
-
- EnvEntry envEntryMerge = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryMerge.setMappedName("mapped2");
- envEntryMerge.setEnvEntryName("refName2");
- envEntryMerge.setEnvEntryType(EnvEntryType.JAVA_LANG_BYTE_LITERAL);
- envEntryMerge.setEnvEntryValue("00");
-
- beanBase.getEnvEntries().add(envEntryBase);
- beanToMerge.getEnvEntries().add(envEntryBase);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEnvEntries().size());
- assertEquals("mapped1", ((EnvEntry)beanBase.getEnvEntries().get(0)).getMappedName());
- assertEquals("refName1", ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryName());
- assertEquals(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL.getLiteral(), ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryType());
- assertEquals("true", ((EnvEntry)beanBase.getEnvEntries().get(0)).getEnvEntryValue());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testEnvEntrysComplex() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EnvEntry envEntryBase = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryBase.setMappedName("mapped1");
- envEntryBase.setEnvEntryName("refName1");
- envEntryBase.setEnvEntryType(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL);
- envEntryBase.setEnvEntryValue("true");
-
- EnvEntry envEntryMerge = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryMerge.setMappedName("mapped2");
- envEntryMerge.setEnvEntryName("refName2");
- envEntryMerge.setEnvEntryType(EnvEntryType.JAVA_LANG_BYTE_LITERAL);
- envEntryMerge.setEnvEntryValue("00");
-
- beanBase.getEnvEntries().add(envEntryBase);
- beanToMerge.getEnvEntries().add(envEntryBase);
- beanToMerge.getEnvEntries().add(envEntryMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(2, beanBase.getEnvEntries().size());
-
- EnvEntry test = getEnvEntry(beanBase.getEnvEntries(), "refName1");
- EnvEntry test2 = getEnvEntry(beanBase.getEnvEntries(), "refName2");
- assertEquals("mapped1", test.getMappedName());
- assertEquals(EnvEntryType.JAVA_LANG_BOOLEAN_LITERAL.getLiteral(), test.getEnvEntryType());
- assertEquals("true", test.getEnvEntryValue());
-
- assertEquals("mapped2", test2.getMappedName());
- assertEquals(EnvEntryType.JAVA_LANG_BYTE_LITERAL.getLiteral(), test2.getEnvEntryType());
- assertEquals("00", test2.getEnvEntryValue());
-
- }
-
- /**
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- * @throws Exception
- */
- //@Test
- public void testEnvEntrysComplexOverlapped() throws Exception {
- SessionBean beanBase = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean beanToMerge = EjbFactory.eINSTANCE.createSessionBean();
-
- beanBase.setEjbName("name");
- beanToMerge.setEjbName("name");
-
- EnvEntry envEntryBase = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryBase.setEnvEntryName("refName1");
-
- EnvEntry envEntryMerge = JavaeeFactory.eINSTANCE.createEnvEntry();
- envEntryMerge.setMappedName("mapped2");
- envEntryMerge.setEnvEntryName("refName1");
- envEntryMerge.setEnvEntryType(EnvEntryType.JAVA_LANG_BYTE_LITERAL);
- envEntryMerge.setEnvEntryValue("00");
-
- beanBase.getEnvEntries().add(envEntryBase);
- beanToMerge.getEnvEntries().add(envEntryBase);
- beanToMerge.getEnvEntries().add(envEntryMerge);
-
- (new JNDIRefsMerger(beanBase, beanToMerge, 0)).process();
-
- assertEquals(1, beanBase.getEnvEntries().size());
-
- EnvEntry test = getEnvEntry(beanBase.getEnvEntries(), "refName1");
- assertEquals(EnvEntryType.JAVA_LANG_BYTE_LITERAL.getLiteral(), test.getEnvEntryType());
- assertEquals("mapped2", test.getMappedName());
- assertEquals("00", test.getEnvEntryValue());
-
- }
-
- private EnvEntry getEnvEntry(List refs, String name){
- if (name == null){
- return null;
- }
- for (Object object : refs) {
- EnvEntry ref = (EnvEntry) object;
- if(name.equals(ref.getEnvEntryName())){
- return ref;
- }
- }
- return null;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/MdbMergerTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/MdbMergerTest.java
deleted file mode 100644
index 258e2afc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/MdbMergerTest.java
+++ /dev/null
@@ -1,721 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.ejb.ActivationConfig;
-import org.eclipse.jst.javaee.ejb.ActivationConfigProperty;
-import org.eclipse.jst.javaee.ejb.EjbFactory;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.MethodParams;
-import org.eclipse.jst.javaee.ejb.NamedMethodType;
-import org.eclipse.jst.javaee.ejb.SecurityIdentityType;
-import org.eclipse.jst.javaee.ejb.TransactionType;
-import org.eclipse.jst.jee.model.internal.mergers.MessageDrivenBeanMerger;
-import org.eclipse.jst.jee.model.internal.mergers.ModelException;
-
-/**
- * Tester class for MessageDrivenBean artifact.
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- *
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- *
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- *
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- *
- *
- * @author Dimitar Giormov
- *
- */
-public class MdbMergerTest extends TestCase {
-
-
- /**
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testActivationConfigPropComplex() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
- ActivationConfig base = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean.setActivationConfig(base);
- ActivationConfig merge = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean1.setActivationConfig(merge);
- ActivationConfigProperty property = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property.setActivationConfigPropertyName("n1");
- property.setActivationConfigPropertyValue("v1");
- base.getActivationConfigProperties().add(property);
-
- ActivationConfigProperty property1 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property1.setActivationConfigPropertyName("n2");
- property1.setActivationConfigPropertyValue("v2");
- base.getActivationConfigProperties().add(property1);
-
- ActivationConfigProperty property2 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property2.setActivationConfigPropertyName("n3");
- property2.setActivationConfigPropertyValue("v3");
- base.getActivationConfigProperties().add(property2);
-
- ActivationConfigProperty property3 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property3.setActivationConfigPropertyName("n3");
- property3.setActivationConfigPropertyValue("v1");
- merge.getActivationConfigProperties().add(property3);
-
- ActivationConfigProperty property4 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property4.setActivationConfigPropertyName("n4");
- property4.setActivationConfigPropertyValue("v4");
- merge.getActivationConfigProperties().add(property4);
- ActivationConfigProperty property5 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property5.setActivationConfigPropertyName("n5");
- property5.setActivationConfigPropertyValue("v6");
- merge.getActivationConfigProperties().add(property5);
-
- ActivationConfigProperty property6 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property6.setActivationConfigPropertyName("n6");
- property6.setActivationConfigPropertyValue("v6");
- base.getActivationConfigProperties().add(property6);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertEquals(mdbBean.getActivationConfig().getActivationConfigProperties().size(), 6);
- assertEquals(mdbBean1.getActivationConfig().getActivationConfigProperties().size(), 3);
- assertTrue(checkActivationConfProp("n1", "v1", base.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n2", "v2", base.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n3", "v3", base.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n4", "v4", base.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n5", "v6", base.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n6", "v6", base.getActivationConfigProperties()));
-
- }
-
-
- /**
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testActivationConfigPropComplex2() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
- ActivationConfig base = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean.setActivationConfig(base);
- ActivationConfig merge = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean1.setActivationConfig(merge);
- ActivationConfigProperty property = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property.setActivationConfigPropertyName("n1");
- property.setActivationConfigPropertyValue("v1");
- base.getActivationConfigProperties().add(property);
-
- ActivationConfigProperty property1 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property1.setActivationConfigPropertyName("n2");
- property1.setActivationConfigPropertyValue("v2");
- base.getActivationConfigProperties().add(property1);
-
- ActivationConfigProperty property2 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property2.setActivationConfigPropertyName("n3");
- property2.setActivationConfigPropertyValue("v3");
- base.getActivationConfigProperties().add(property2);
-
- ActivationConfigProperty property3 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property3.setActivationConfigPropertyName("n3");
- property3.setActivationConfigPropertyValue("v1");
- merge.getActivationConfigProperties().add(property3);
-
- ActivationConfigProperty property4 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property4.setActivationConfigPropertyName("n4");
- property4.setActivationConfigPropertyValue("v4");
- merge.getActivationConfigProperties().add(property4);
- ActivationConfigProperty property5 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property5.setActivationConfigPropertyName("n5");
- property5.setActivationConfigPropertyValue("v6");
- merge.getActivationConfigProperties().add(property5);
-
- ActivationConfigProperty property6 = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property6.setActivationConfigPropertyName("n6");
- property6.setActivationConfigPropertyValue("v6");
- base.getActivationConfigProperties().add(property6);
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
-
- assertEquals(mdbBean.getActivationConfig().getActivationConfigProperties().size(), 4);
- assertEquals(mdbBean1.getActivationConfig().getActivationConfigProperties().size(), 6);
- assertTrue(checkActivationConfProp("n1", "v1", merge.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n2", "v2", merge.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n3", "v1", merge.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n4", "v4", merge.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n5", "v6", merge.getActivationConfigProperties()));
- assertTrue(checkActivationConfProp("n6", "v6", merge.getActivationConfigProperties()));
-
- }
-
- private boolean checkActivationConfProp(String key, String value, List properties){
- for (Object acProp : properties) {
- ActivationConfigProperty p = (ActivationConfigProperty) acProp;
- if (p.getActivationConfigPropertyName().equals(key) && p.getActivationConfigPropertyValue().equals(value)){
- return true;
- }
- }
- return false;
-
- }
-
-
-
- /**
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testActivationConfigPropBase() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
- ActivationConfig base = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean.setActivationConfig(base);
- ActivationConfig merge = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean1.setActivationConfig(merge);
- ActivationConfigProperty property = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property.setActivationConfigPropertyName("n1");
- property.setActivationConfigPropertyValue("v1");
- base.getActivationConfigProperties().add(property);
-
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertEquals(mdbBean.getActivationConfig().getActivationConfigProperties().size(), 1);
- assertEquals(mdbBean1.getActivationConfig().getActivationConfigProperties().size(), 0);
- assertTrue(checkActivationConfProp("n1", "v1", base.getActivationConfigProperties()));
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testActivationConfigPropMerge() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
- ActivationConfig base = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean.setActivationConfig(base);
- ActivationConfig merge = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean1.setActivationConfig(merge);
- ActivationConfigProperty property = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property.setActivationConfigPropertyName("n1");
- property.setActivationConfigPropertyValue("v1");
- merge.getActivationConfigProperties().add(property);
-
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertEquals(mdbBean.getActivationConfig().getActivationConfigProperties().size(), 1);
- assertEquals(mdbBean1.getActivationConfig().getActivationConfigProperties().size(), 1);
- assertTrue(checkActivationConfProp("n1", "v1", base.getActivationConfigProperties()));
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testActivationConfigPropSameBean() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
- ActivationConfig base = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean.setActivationConfig(base);
- ActivationConfig merge = EjbFactory.eINSTANCE.createActivationConfig();
- mdbBean1.setActivationConfig(merge);
- ActivationConfigProperty property = EjbFactory.eINSTANCE.createActivationConfigProperty();
- property.setActivationConfigPropertyName("n1");
- property.setActivationConfigPropertyValue("v1");
- base.getActivationConfigProperties().add(property);
- merge.getActivationConfigProperties().add(property);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertEquals(mdbBean.getActivationConfig().getActivationConfigProperties().size(), 1);
- assertEquals(mdbBean1.getActivationConfig().getActivationConfigProperties().size(), 1);
- assertTrue(checkActivationConfProp("n1", "v1", base.getActivationConfigProperties()));
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- //Timeout
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutComplexNoParams() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
-
- mdbBean.setTimeoutMethod(base);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertNotNull(mdbBean.getTimeoutMethod());
- assertNotNull(mdbBean.getTimeoutMethod().getMethodName().equals(value));
- assertNull(mdbBean.getTimeoutMethod().getMethodParams());
-
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutComplexWithParams() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- params.getMethodParams().add("java.lang.String");
- base.setMethodParams(params);
-
- NamedMethodType merge = EjbFactory.eINSTANCE.createNamedMethodType();
- merge.setMethodName(value);
-
- mdbBean.setTimeoutMethod(base);
- mdbBean1.setTimeoutMethod(merge);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertNotNull(mdbBean.getTimeoutMethod());
- assertNotNull(mdbBean.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(mdbBean.getTimeoutMethod().getMethodParams());
- assertEquals(1, mdbBean.getTimeoutMethod().getMethodParams().getMethodParams().size());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutComplexWithParams2() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- String string = "java.lang.String";
- params.getMethodParams().add(string);
- base.setMethodParams(params);
-
- NamedMethodType merge = EjbFactory.eINSTANCE.createNamedMethodType();
- merge.setMethodName(value);
-
- mdbBean.setTimeoutMethod(base);
- mdbBean1.setTimeoutMethod(merge);
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
-
- assertNotNull(mdbBean.getTimeoutMethod());
- assertNotNull(mdbBean.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(mdbBean.getTimeoutMethod().getMethodParams());
- assertNotNull(mdbBean.getTimeoutMethod().getMethodParams().getMethodParams().get(0).equals(string));
-
- }
-
- /**
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testTimeOutBase() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- String string = "java.lang.String";
- params.getMethodParams().add(string);
- base.setMethodParams(params);
-
- mdbBean.setTimeoutMethod(base);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
-
- assertNotNull(mdbBean.getTimeoutMethod());
- assertNotNull(mdbBean.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(mdbBean.getTimeoutMethod().getMethodParams());
- assertNotNull(mdbBean.getTimeoutMethod().getMethodParams().getMethodParams().get(0).equals(string));
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutMerge() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- String string = "java.lang.String";
- params.getMethodParams().add(string);
- base.setMethodParams(params);
-
- mdbBean.setTimeoutMethod(base);
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
-
- assertNotNull(mdbBean.getTimeoutMethod());
- assertNotNull(mdbBean1.getTimeoutMethod());
- assertNotNull(mdbBean1.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(mdbBean1.getTimeoutMethod().getMethodParams());
- assertNotNull(mdbBean1.getTimeoutMethod().getMethodParams().getMethodParams().get(0).equals(string));
- }
-
- /**
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentityBase() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
- mdbBean1.setSecurityIdentity(type);
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertNotNull(mdbBean1.getSecurityIdentity().getUseCallerIdentity());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentityMerge() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
- mdbBean1.setSecurityIdentity(type);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
- assertNotNull(mdbBean.getSecurityIdentity().getUseCallerIdentity());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentitySame() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
- mdbBean1.setSecurityIdentity(type);
- mdbBean.setSecurityIdentity(type);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
- assertNotNull(mdbBean.getSecurityIdentity().getUseCallerIdentity());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentityComplex() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
-
- SecurityIdentityType type2 = EjbFactory.eINSTANCE.createSecurityIdentityType();
- RunAs createRunAs = JavaeeFactory.eINSTANCE.createRunAs();
- createRunAs.setRoleName("ttt");
- type2.setRunAs(createRunAs);
-
- mdbBean1.setSecurityIdentity(type);
- mdbBean.setSecurityIdentity(type2);
-
- (new MessageDrivenBeanMerger(mdbBean, mdbBean1, 0)).process();
- assertNull(mdbBean.getSecurityIdentity().getUseCallerIdentity());
- assertNotNull(mdbBean.getSecurityIdentity().getRunAs().getRoleName());
-
-
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeBase() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean1.setTransactionType(TransactionType.BEAN_LITERAL);
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals(TransactionType.BEAN_LITERAL, mdbBean1.getTransactionType());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeMerge() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean.setTransactionType(TransactionType.BEAN_LITERAL);
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals(TransactionType.BEAN_LITERAL, mdbBean1.getTransactionType());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeSame() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean1.setTransactionType(TransactionType.BEAN_LITERAL);
- mdbBean.setTransactionType(TransactionType.BEAN_LITERAL);
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals(TransactionType.BEAN_LITERAL, mdbBean1.getTransactionType());
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeComplex() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean1.setTransactionType(TransactionType.CONTAINER_LITERAL);
- mdbBean.setTransactionType(TransactionType.BEAN_LITERAL);
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals(TransactionType.CONTAINER_LITERAL, mdbBean1.getTransactionType());
-
- }
-
-
- /**
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testMessagingTypeBase() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean1.setMessagingType("test");
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals("test", mdbBean1.getMessagingType());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testMessagingTypeMerge() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean.setMessagingType("test");
-
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals("test", mdbBean1.getMessagingType());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testMessagingTypeSame() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean1.setMessagingType("test");
- mdbBean.setMessagingType("test");
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals("test", mdbBean1.getMessagingType());
- }
-
- /**
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testMessagingTypeComplex() throws ModelException{
- MessageDrivenBean mdbBean = EjbFactory.eINSTANCE.createMessageDrivenBean();
- MessageDrivenBean mdbBean1 = EjbFactory.eINSTANCE.createMessageDrivenBean();
- mdbBean.setEjbName("name");
- mdbBean1.setEjbName("name");
- mdbBean1.setMessagingType("zero");
- mdbBean.setMessagingType("test");
- (new MessageDrivenBeanMerger(mdbBean1, mdbBean, 0)).process();
- assertEquals("zero", mdbBean1.getMessagingType());
-
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/MergersTestSuite.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/MergersTestSuite.java
deleted file mode 100644
index 5073ef38..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/MergersTestSuite.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author Dimitar Giormov
- *
- */
-//@SuiteClasses({ EjbJarMergerTest.class, SessionMergerTest.class, MdbMergerTest.class, AssemblyDescriptorMergerTest.class, JndiRefsTest.class, WebAppMergerTest.class })
-//@RunWith(Suite.class)
-public class MergersTestSuite {
-
- public static Test suite() {
- TestSuite suite = new TestSuite(MergersTestSuite.class.getName());
- suite.addTestSuite(EjbJarMergerTest.class);
- suite.addTestSuite(SessionMergerTest.class);
- suite.addTestSuite(MdbMergerTest.class);
- suite.addTestSuite(AssemblyDescriptorMergerTest.class);
- suite.addTestSuite(JndiRefsTest.class);
- suite.addTestSuite(WebAppMergerTest.class);
- suite.addTestSuite(WebApp3MergerTest.class);
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/SessionMergerTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/SessionMergerTest.java
deleted file mode 100644
index e275c9f6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/SessionMergerTest.java
+++ /dev/null
@@ -1,1212 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.core.SecurityRoleRef;
-import org.eclipse.jst.javaee.ejb.EjbFactory;
-import org.eclipse.jst.javaee.ejb.InitMethodType;
-import org.eclipse.jst.javaee.ejb.MethodParams;
-import org.eclipse.jst.javaee.ejb.NamedMethodType;
-import org.eclipse.jst.javaee.ejb.RemoveMethodType;
-import org.eclipse.jst.javaee.ejb.SecurityIdentityType;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.javaee.ejb.TransactionType;
-import org.eclipse.jst.jee.model.internal.mergers.ModelException;
-import org.eclipse.jst.jee.model.internal.mergers.SessionBeanMerger;
-
-/**
- * Tester class for SessionBean artifact.
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- *
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- *
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- *
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- *
- *
- * @author Dimitar Giormov
- *
- */
-public class SessionMergerTest extends TestCase{
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutComplexNoParams() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
-
- baseBean1.setTimeoutMethod(base);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertNotNull(baseBean1.getTimeoutMethod());
- assertNotNull(baseBean1.getTimeoutMethod().getMethodName().equals(value));
- assertNull(baseBean1.getTimeoutMethod().getMethodParams());
-
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutComplexWithParams() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- params.getMethodParams().add("java.lang.String");
- base.setMethodParams(params);
-
- NamedMethodType merge = EjbFactory.eINSTANCE.createNamedMethodType();
- merge.setMethodName(value);
-
- baseBean1.setTimeoutMethod(base);
- toMergeBean1.setTimeoutMethod(merge);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertNotNull(baseBean1.getTimeoutMethod());
- assertNotNull(baseBean1.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(baseBean1.getTimeoutMethod().getMethodParams());
- assertEquals(1, baseBean1.getTimeoutMethod().getMethodParams().getMethodParams().size());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutComplexWithParams2() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- String string = "java.lang.String";
- params.getMethodParams().add(string);
- base.setMethodParams(params);
-
- NamedMethodType merge = EjbFactory.eINSTANCE.createNamedMethodType();
- merge.setMethodName(value);
-
- baseBean1.setTimeoutMethod(base);
- toMergeBean1.setTimeoutMethod(merge);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(baseBean1.getTimeoutMethod());
- assertNotNull(baseBean1.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(baseBean1.getTimeoutMethod().getMethodParams());
- assertNotNull(baseBean1.getTimeoutMethod().getMethodParams().getMethodParams().get(0).equals(string));
-
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testTimeOutBase() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- String string = "java.lang.String";
- params.getMethodParams().add(string);
- base.setMethodParams(params);
-
- baseBean1.setTimeoutMethod(base);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertNotNull(baseBean1.getTimeoutMethod());
- assertNotNull(baseBean1.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(baseBean1.getTimeoutMethod().getMethodParams());
- assertNotNull(baseBean1.getTimeoutMethod().getMethodParams().getMethodParams().get(0).equals(string));
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testTimeOutMerge() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- NamedMethodType base = EjbFactory.eINSTANCE.createNamedMethodType();
- String value = "getMethod";
- base.setMethodName(value);
- MethodParams params = EjbFactory.eINSTANCE.createMethodParams();
- String string = "java.lang.String";
- params.getMethodParams().add(string);
- base.setMethodParams(params);
-
- baseBean1.setTimeoutMethod(base);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(baseBean1.getTimeoutMethod());
- assertNotNull(toMergeBean1.getTimeoutMethod());
- assertNotNull(toMergeBean1.getTimeoutMethod().getMethodName().equals(value));
- assertNotNull(toMergeBean1.getTimeoutMethod().getMethodParams());
- assertNotNull(toMergeBean1.getTimeoutMethod().getMethodParams().getMethodParams().get(0).equals(string));
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentityBase() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
- toMergeBean1.setSecurityIdentities(type);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
- assertNotNull(toMergeBean1.getSecurityIdentities().getUseCallerIdentity());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentityMerge() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
- toMergeBean1.setSecurityIdentities(type);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
- assertNotNull(baseBean1.getSecurityIdentities().getUseCallerIdentity());
- }
-
- /**
- *
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentitySame() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
- toMergeBean1.setSecurityIdentities(type);
- baseBean1.setSecurityIdentities(type);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
- assertNotNull(baseBean1.getSecurityIdentities().getUseCallerIdentity());
-
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testSecurityIdentityComplex() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- SecurityIdentityType type = EjbFactory.eINSTANCE.createSecurityIdentityType();
- type.setUseCallerIdentity(JavaeeFactory.eINSTANCE.createEmptyType());
-
- SecurityIdentityType type2 = EjbFactory.eINSTANCE.createSecurityIdentityType();
- RunAs createRunAs = JavaeeFactory.eINSTANCE.createRunAs();
- createRunAs.setRoleName("ttt");
- type2.setRunAs(createRunAs);
-
- toMergeBean1.setSecurityIdentities(type);
- baseBean1.setSecurityIdentities(type2);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
- assertNull(baseBean1.getSecurityIdentities().getUseCallerIdentity());
- assertNotNull(baseBean1.getSecurityIdentities().getRunAs().getRoleName());
-
-
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeBase() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- toMergeBean1.setTransactionType(TransactionType.BEAN_LITERAL);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
- assertEquals(TransactionType.BEAN_LITERAL, toMergeBean1.getTransactionType());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeMerge() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- baseBean1.setTransactionType(TransactionType.BEAN_LITERAL);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
- assertEquals(TransactionType.BEAN_LITERAL, toMergeBean1.getTransactionType());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeSame() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- toMergeBean1.setTransactionType(TransactionType.BEAN_LITERAL);
- baseBean1.setTransactionType(TransactionType.BEAN_LITERAL);
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
- assertEquals(TransactionType.BEAN_LITERAL, toMergeBean1.getTransactionType());
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testTransactionTypeComplex() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
- toMergeBean1.setTransactionType(TransactionType.CONTAINER_LITERAL);
- baseBean1.setTransactionType(TransactionType.BEAN_LITERAL);
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
- assertEquals(TransactionType.CONTAINER_LITERAL, toMergeBean1.getTransactionType());
-
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testInitMethodBase() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
-
-
- String value = "getMethod";
-
-
- String mParam1 = "java.lang.String";
-
- InitMethodType methodType = generateInitType(value, new String[]{mParam1});
-
- baseBean1.getInitMethods().add(methodType);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertNotNull(baseBean1.getInitMethods());
- assertEquals(1, baseBean1.getInitMethods().size());
-
- InitMethodType aMethod = findInitMethod(baseBean1.getInitMethods(), methodType.getBeanMethod());
-
- assertNotNull(aMethod);
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testInitMethodToMerge() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- String value = "getMethod";
- String mParam1 = "java.lang.String";
- InitMethodType methodType = generateInitType(value, new String[]{mParam1});
-
- baseBean1.getInitMethods().add(methodType);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(toMergeBean1.getInitMethods());
- assertEquals(1, toMergeBean1.getInitMethods().size());
-
- InitMethodType aMethod = findInitMethod(toMergeBean1.getInitMethods(), methodType.getBeanMethod());
- assertNotNull(aMethod);
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testInitMethodSame() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- String value = "getMethod";
- String mParam1 = "java.lang.String";
- InitMethodType methodType = generateInitType(value, new String[]{mParam1});
-
- baseBean1.getInitMethods().add(methodType);
- toMergeBean1.getInitMethods().add(methodType);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(toMergeBean1.getInitMethods());
- assertEquals(1, toMergeBean1.getInitMethods().size());
-
- InitMethodType aMethod = findInitMethod(toMergeBean1.getInitMethods(), methodType.getBeanMethod());
- assertNotNull(aMethod);
-
- }
-
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testInitMethodComplex() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String value = "getMethod";
- String mParam1 = "java.lang.String";
- InitMethodType methodType = generateInitType(value, new String[]{mParam1});
- InitMethodType methodType2 = generateInitType(value, new String[]{mParam1, mParam1});
- InitMethodType methodType3 = generateInitType(value, new String[]{mParam1});
-
- baseBean1.getInitMethods().add(methodType);
- toMergeBean1.getInitMethods().add(methodType2);
- toMergeBean1.getInitMethods().add(methodType3);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(toMergeBean1.getInitMethods());
- assertEquals(2, toMergeBean1.getInitMethods().size());
-
- InitMethodType aMethod = findInitMethod(toMergeBean1.getInitMethods(), methodType.getBeanMethod());
- assertNotNull(aMethod);
- InitMethodType aMethod2 = findInitMethod(toMergeBean1.getInitMethods(), methodType2.getBeanMethod());
- assertNotNull(aMethod2);
-
-
- }
-
- private InitMethodType findInitMethod(List namedMethodsBase, NamedMethodType object) {
- for (Object base: namedMethodsBase) {
- InitMethodType tmpBase = (InitMethodType)base;
- if ( tmpBase.getBeanMethod().getMethodName().equals(object.getMethodName())
- && sameParams(tmpBase.getBeanMethod().getMethodParams(), object.getMethodParams())) {
- return (InitMethodType) base;
- }
- }
- return null;
- }
-
-
- private boolean sameParams(MethodParams methodParams,
- MethodParams methodParams2) {
- if(methodParams == null && methodParams2 == null){
- return true;
- }
- if(methodParams == null | methodParams2 == null){
- return false;
- }
-
- if (methodParams.getMethodParams().size() != methodParams2.getMethodParams().size()){
- return false;
- }
-
- for (int i = 0; i < methodParams.getMethodParams().size(); i++) {
- if(!methodParams.getMethodParams().get(i).equals(methodParams2.getMethodParams().get(i))){
- return false;
- }
- }
- return true;
- }
-
- private InitMethodType generateInitType(String name, String[] parameters) {
- InitMethodType methodType3 = EjbFactory.eINSTANCE.createInitMethodType();
- NamedMethodType nMethodType3 = EjbFactory.eINSTANCE.createNamedMethodType();
-
- nMethodType3.setMethodName(name);
- MethodParams params3 = EjbFactory.eINSTANCE.createMethodParams();
- if (parameters != null){
- for (int i = 0; i < parameters.length; i++) {
- params3.getMethodParams().add(parameters[i]);
- }
- nMethodType3.setMethodParams(params3);
- }
-
- methodType3.setBeanMethod(nMethodType3);
- return methodType3;
- }
-
-
- private RemoveMethodType generateRemoveMethodType(String name, String[] parameters) {
- RemoveMethodType methodType3 = EjbFactory.eINSTANCE.createRemoveMethodType();
- NamedMethodType nMethodType3 = EjbFactory.eINSTANCE.createNamedMethodType();
-
- nMethodType3.setMethodName(name);
- MethodParams params3 = EjbFactory.eINSTANCE.createMethodParams();
- if (parameters != null){
- for (int i = 0; i < parameters.length; i++) {
- params3.getMethodParams().add(parameters[i]);
- }
- nMethodType3.setMethodParams(params3);
- }
-
- methodType3.setBeanMethod(nMethodType3);
- return methodType3;
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws ModelException
- */
- //@Test
- public void testRemoveMethodBase() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String value = "getMethod";
-
- String mParam1 = "java.lang.String";
-
- RemoveMethodType methodType = generateRemoveMethodType(value, new String[]{mParam1});
-
- baseBean1.getRemoveMethods().add(methodType);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertNotNull(baseBean1.getRemoveMethods());
- assertEquals(1, baseBean1.getRemoveMethods().size());
-
- RemoveMethodType aMethod = findRemoveMethod(baseBean1.getRemoveMethods(), methodType.getBeanMethod());
-
- assertNotNull(aMethod);
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws ModelException
- */
- //@Test
- public void testRemoveMethodToMerge() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- String value = "getMethod";
- String mParam1 = "java.lang.String";
- RemoveMethodType methodType = generateRemoveMethodType(value, new String[]{mParam1});
-
- baseBean1.getRemoveMethods().add(methodType);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(toMergeBean1.getRemoveMethods());
- assertEquals(1, toMergeBean1.getRemoveMethods().size());
-
- RemoveMethodType aMethod = findRemoveMethod(toMergeBean1.getRemoveMethods(), methodType.getBeanMethod());
- assertNotNull(aMethod);
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws ModelException
- */
- //@Test
- public void testRemoveMethodSame() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
-
- String value = "getMethod";
- String mParam1 = "java.lang.String";
- RemoveMethodType methodType = generateRemoveMethodType(value, new String[]{mParam1});
-
- baseBean1.getRemoveMethods().add(methodType);
- toMergeBean1.getRemoveMethods().add(methodType);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(toMergeBean1.getRemoveMethods());
- assertEquals(1, toMergeBean1.getRemoveMethods().size());
-
- RemoveMethodType aMethod = findRemoveMethod(toMergeBean1.getRemoveMethods(), methodType.getBeanMethod());
- assertNotNull(aMethod);
-
- }
-
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws ModelException
- */
- //@Test
- public void testRemoveMethodComplex() throws ModelException{
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String value = "getMethod";
- String mParam1 = "java.lang.String";
- RemoveMethodType methodType = generateRemoveMethodType(value, new String[]{mParam1});
- RemoveMethodType methodType2 = generateRemoveMethodType(value, new String[]{mParam1, mParam1});
- RemoveMethodType methodType3 = generateRemoveMethodType(value, new String[]{mParam1});
-
- baseBean1.getRemoveMethods().add(methodType);
- toMergeBean1.getRemoveMethods().add(methodType2);
- toMergeBean1.getRemoveMethods().add(methodType3);
-
- (new SessionBeanMerger(toMergeBean1, baseBean1, 0)).process();
-
- assertNotNull(toMergeBean1.getRemoveMethods());
- assertEquals(2, toMergeBean1.getRemoveMethods().size());
-
- RemoveMethodType aMethod = findRemoveMethod(toMergeBean1.getRemoveMethods(), methodType.getBeanMethod());
- assertNotNull(aMethod);
- RemoveMethodType aMethod2 = findRemoveMethod(toMergeBean1.getRemoveMethods(), methodType2.getBeanMethod());
- assertNotNull(aMethod2);
-
-
- }
-
- private RemoveMethodType findRemoveMethod(List namedMethodsBase, NamedMethodType object) {
- for (Object base: namedMethodsBase) {
- RemoveMethodType tmpBase = (RemoveMethodType)base;
- if ( tmpBase.getBeanMethod().getMethodName().equals(object.getMethodName())
- && sameParams(tmpBase.getBeanMethod().getMethodParams(), object.getMethodParams())) {
- return (RemoveMethodType) base;
- }
- }
- return null;
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testSecurityRoleRefsBase() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- SecurityRoleRef ref = JavaeeFactory.eINSTANCE.createSecurityRoleRef();
- String name0 = "roleName1";
- ref.setRoleName(name0);
- String link0 = "roleLink1";
- ref.setRoleLink(link0);
-
- baseBean1.getSecurityRoleRefs().add(ref);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertNotNull(baseBean1.getSecurityRoleRefs());
- assertEquals(1, baseBean1.getSecurityRoleRefs().size());
- assertNotNull(getSecurityRoleRefByName(baseBean1.getSecurityRoleRefs(), name0));
- }
-
- private SecurityRoleRef getSecurityRoleRefByName(List securityRoleRefs, String name0) {
- for (Object object : securityRoleRefs) {
- SecurityRoleRef sr = (SecurityRoleRef) object;
- if (sr.getRoleName().equals(name0)){
- return sr;
- }
- }
- return null;
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testSecurityRoleRefsMerge() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- SecurityRoleRef ref = JavaeeFactory.eINSTANCE.createSecurityRoleRef();
- String name0 = "roleName1";
- ref.setRoleName(name0);
- String link0 = "roleLink1";
- ref.setRoleLink(link0);
-
- toMergeBean1.getSecurityRoleRefs().add(ref);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(1, baseBean1.getSecurityRoleRefs().size());
- assertNotNull(getSecurityRoleRefByName(baseBean1.getSecurityRoleRefs(), name0));
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- *
- * @throws Exception
- */
- //@Test
- public void testSecurityRoleRefsSame() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- SecurityRoleRef ref = JavaeeFactory.eINSTANCE.createSecurityRoleRef();
- String name0 = "roleName1";
- ref.setRoleName(name0);
- String link0 = "roleLink1";
- ref.setRoleLink(link0);
-
- baseBean1.getSecurityRoleRefs().add(ref);
- toMergeBean1.getSecurityRoleRefs().add(ref);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(1, baseBean1.getSecurityRoleRefs().size());
- assertNotNull(getSecurityRoleRefByName(baseBean1.getSecurityRoleRefs(), name0));
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testSecurityRoleRefsComplex() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- SecurityRoleRef ref = JavaeeFactory.eINSTANCE.createSecurityRoleRef();
- String name0 = "roleName1";
- ref.setRoleName(name0);
- String link0 = "roleLink1";
- ref.setRoleLink(link0);
-
- SecurityRoleRef ref2 = JavaeeFactory.eINSTANCE.createSecurityRoleRef();
- String name1 = "roleName2";
- ref2.setRoleName(name1);
- ref2.setRoleLink(link0);
-
- baseBean1.getSecurityRoleRefs().add(ref);
- toMergeBean1.getSecurityRoleRefs().add(ref2);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(2, baseBean1.getSecurityRoleRefs().size());
- assertNotNull(getSecurityRoleRefByName(baseBean1.getSecurityRoleRefs(), name0));
-
- assertNotNull(getSecurityRoleRefByName(baseBean1.getSecurityRoleRefs(), name1));
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testBeanClassBase() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String expected = "test.Test";
- baseBean1.setEjbClass(expected);
- String notExpected = "test.Test2";
- toMergeBean1.setEjbClass(notExpected);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
- assertEquals(expected,baseBean1.getEjbClass());
-
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testBeanClassMerge() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String expected = "test.Test";
- toMergeBean1.setEjbClass(expected);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
- assertEquals(expected,baseBean1.getEjbClass());
-
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testBeanClassSame() throws Exception {
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String expected = "test.Test";
- baseBean1.setEjbClass(expected);
- toMergeBean1.setEjbClass(expected);
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
- assertEquals(expected,baseBean1.getEjbClass());
- }
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void testBussinessInterfacesBase() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- baseBean1.getBusinessLocals().add("intfs1");
- baseBean1.getBusinessRemotes().add("intfs2");
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(1, baseBean1.getBusinessLocals().size());
- assertEquals(1, baseBean1.getBusinessRemotes().size());
- assertEquals("intfs1", baseBean1.getBusinessLocals().get(0));
- assertEquals("intfs2", baseBean1.getBusinessRemotes().get(0));
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void testBussinessInterfacesMerge() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- toMergeBean1.getBusinessLocals().add("intfs1");
- toMergeBean1.getBusinessRemotes().add("intfs2");
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(1, baseBean1.getBusinessLocals().size());
- assertEquals(1, baseBean1.getBusinessRemotes().size());
- assertEquals("intfs1", baseBean1.getBusinessLocals().get(0));
- assertEquals("intfs2", baseBean1.getBusinessRemotes().get(0));
- }
-
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void testBussinessInterfacesSame() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- toMergeBean1.getBusinessLocals().add("intfs1");
- toMergeBean1.getBusinessRemotes().add("intfs2");
-
- baseBean1.getBusinessLocals().add("intfs1");
- baseBean1.getBusinessRemotes().add("intfs2");
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(1, baseBean1.getBusinessLocals().size());
- assertEquals(1, baseBean1.getBusinessRemotes().size());
- assertEquals("intfs1", baseBean1.getBusinessLocals().get(0));
- assertEquals("intfs2", baseBean1.getBusinessRemotes().get(0));
- }
-
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void testBussinessInterfacesComplex() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- toMergeBean1.getBusinessLocals().add("intfs1");
- toMergeBean1.getBusinessRemotes().add("intfs2");
- toMergeBean1.getBusinessLocals().add("intfs3");
- toMergeBean1.getBusinessRemotes().add("intfs4");
- toMergeBean1.getBusinessLocals().add("intfs5");
- toMergeBean1.getBusinessRemotes().add("intfs6");
-
- baseBean1.getBusinessLocals().add("intfs1");
- baseBean1.getBusinessRemotes().add("intfs9");
- baseBean1.getBusinessLocals().add("intfs0");
- baseBean1.getBusinessRemotes().add("intfs2");
-
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(4, baseBean1.getBusinessLocals().size());
- assertEquals(4, baseBean1.getBusinessRemotes().size());
- assertTrue(baseBean1.getBusinessLocals().contains("intfs1"));
- assertTrue(baseBean1.getBusinessLocals().contains("intfs3"));
- assertTrue(baseBean1.getBusinessLocals().contains("intfs5"));
- assertTrue(baseBean1.getBusinessLocals().contains("intfs0"));
-
- assertTrue(baseBean1.getBusinessRemotes().contains("intfs2"));
- assertTrue(baseBean1.getBusinessRemotes().contains("intfs4"));
- assertTrue(baseBean1.getBusinessRemotes().contains("intfs6"));
- assertTrue(baseBean1.getBusinessRemotes().contains("intfs9"));
-
- }
-
-
- /**
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- * @throws Exception
- */
- //@Test
- public void test2xInterfacesBase() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String l = "local1";
- baseBean1.setLocal(l);
- String lh = "localhome1";
- baseBean1.setLocalHome(lh);
- String r = "remote1";
- baseBean1.setRemote(r);
- String h = "home1";
- baseBean1.setHome(h);
-
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(l, baseBean1.getLocal());
- assertEquals(lh, baseBean1.getLocalHome());
- assertEquals(r, baseBean1.getRemote());
- assertEquals(h, baseBean1.getHome());
- }
-
- /**
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- * @throws Exception
- */
- //@Test
- public void test2xInterfacesMerge() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String l = "local1";
- toMergeBean1.setLocal(l);
- String lh = "localhome1";
- toMergeBean1.setLocalHome(lh);
- String r = "remote1";
- toMergeBean1.setRemote(r);
- String h = "home1";
- toMergeBean1.setHome(h);
-
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(l, baseBean1.getLocal());
- assertEquals(lh, baseBean1.getLocalHome());
- assertEquals(r, baseBean1.getRemote());
- assertEquals(h, baseBean1.getHome());
- }
-
- /**
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- * @throws Exception
- */
- //@Test
- public void test2xInterfacesSame() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String l = "local1";
- baseBean1.setLocal(l);
- toMergeBean1.setLocal(l);
- String lh = "localhome1";
- baseBean1.setLocalHome(lh);
- toMergeBean1.setLocalHome(lh);
- String r = "remote1";
- baseBean1.setRemote(r);
- toMergeBean1.setRemote(r);
- String h = "home1";
- baseBean1.setHome(h);
- toMergeBean1.setHome(h);
-
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(l, baseBean1.getLocal());
- assertEquals(lh, baseBean1.getLocalHome());
- assertEquals(r, baseBean1.getRemote());
- assertEquals(h, baseBean1.getHome());
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void test2xInterfacesComplex() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String l = "local1";
- baseBean1.setLocal(l);
-
- String lh = "localhome1";
-
- toMergeBean1.setLocalHome(lh);
- String r = "remote1";
- baseBean1.setRemote(r);
-
- String h = "home1";
-
- toMergeBean1.setHome(h);
-
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(l, baseBean1.getLocal());
- assertEquals(lh, baseBean1.getLocalHome());
- assertEquals(r, baseBean1.getRemote());
- assertEquals(h, baseBean1.getHome());
- }
-
- /**
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- * @throws Exception
- */
- //@Test
- public void test2xInterfacesComplexInversed() throws Exception {
-
- SessionBean baseBean1 = EjbFactory.eINSTANCE.createSessionBean();
- SessionBean toMergeBean1 = EjbFactory.eINSTANCE.createSessionBean();
- baseBean1.setEjbName("name");
- toMergeBean1.setEjbName("name");
-
- String l = "local1";
- toMergeBean1.setLocal(l);
-
- String lh = "localhome1";
-
- baseBean1.setLocalHome(lh);
- String r = "remote1";
- toMergeBean1.setRemote(r);
-
- String h = "home1";
-
- baseBean1.setHome(h);
-
-
- (new SessionBeanMerger(baseBean1, toMergeBean1, 0)).process();
-
- assertEquals(l, baseBean1.getLocal());
- assertEquals(lh, baseBean1.getLocalHome());
- assertEquals(r, baseBean1.getRemote());
- assertEquals(h, baseBean1.getHome());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/WebApp3MergerTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/WebApp3MergerTest.java
deleted file mode 100644
index 0a1ee291..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/WebApp3MergerTest.java
+++ /dev/null
@@ -1,1456 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.ParamValue;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.core.UrlPatternType;
-import org.eclipse.jst.javaee.web.AuthConstraint;
-import org.eclipse.jst.javaee.web.Filter;
-import org.eclipse.jst.javaee.web.FilterMapping;
-import org.eclipse.jst.javaee.web.SecurityConstraint;
-import org.eclipse.jst.javaee.web.Servlet;
-import org.eclipse.jst.javaee.web.ServletMapping;
-import org.eclipse.jst.javaee.web.TransportGuaranteeType;
-import org.eclipse.jst.javaee.web.UserDataConstraint;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.WebFactory;
-import org.eclipse.jst.jee.model.internal.mergers.ModelElementMerger;
-import org.eclipse.jst.jee.model.internal.mergers.ModelException;
-import org.eclipse.jst.jee.model.internal.mergers.WebApp3Merger;
-import org.eclipse.jst.jee.model.internal.mergers.WebAppMerger;
-
-/**
- * Tester class for WebAPp artifact.
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- *
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- *
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- *
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- *
- *
- * @author Dimitar Giormov
- *
- */
-public class WebApp3MergerTest extends TestCase{
-
- /**
- * Tests the merger with Base security role only.
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
-
- descriptorBase.getSecurityRoles().add(role);
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 0);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with toMerge security role only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
-
- descriptorToMerge.getSecurityRoles().add(role);
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertEquals(1, descriptorBase.getSecurityRoles().size());
- Assert.assertEquals(1, descriptorToMerge.getSecurityRoles().size());
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with one and the same security role.
- * The result should be non merged 1 security role.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseSameRole() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
- descriptorBase.getSecurityRoles().add(role);
- descriptorToMerge.getSecurityRoles().add(role);
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 1);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with variety of security roles.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseComplex() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role0 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role1 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role2 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role3 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role4 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role5 = JavaeeFactory.eINSTANCE.createSecurityRole();
- role0.setRoleName("test1");
- role1.setRoleName("test2");
- role2.setRoleName("test3");
- role3.setRoleName("test4");
- role4.setRoleName("test5");
- role5.setRoleName("test6");
-
-
-
- descriptorBase.getSecurityRoles().add(role1);
- descriptorBase.getSecurityRoles().add(role3);
- descriptorBase.getSecurityRoles().add(role4);
- descriptorBase.getSecurityRoles().add(role5);
-
-
- descriptorToMerge.getSecurityRoles().add(role0);
- descriptorToMerge.getSecurityRoles().add(role1);
- descriptorToMerge.getSecurityRoles().add(role2);
-
-
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 6);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 3);
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role0.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role1.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role2.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role3.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role4.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role5.getRoleName()));
- }
-
- private boolean containsSecRole(List list, String roleName) {
-
-
- for (Object object : list) {
- SecurityRole role = (SecurityRole) object;
- if(roleName == null){
- if(roleName == role.getRoleName()){
- return true;
- }
- } else if(roleName.equals(role.getRoleName())){
- return true;
- }
- }
- return false;
- }
-
-
- /**
- * Tests the merger with Base security role only.
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleRunAsCaseBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- RunAs role = JavaeeFactory.eINSTANCE.createRunAs();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- servletBase.setServletName("servName");
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
- role.setRoleName("test1");
- servletBase.setRunAs(role);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(servletBase.getRunAs());
- Assert.assertTrue(((RunAs)servletBase.getRunAs()).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with toMerge security role only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleRunAsCaseToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- RunAs role = JavaeeFactory.eINSTANCE.createRunAs();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- servletBase.setServletName("servName");
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
- role.setRoleName("test1");
- servletMerge.setRunAs(role);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(servletBase.getRunAs());
- Assert.assertTrue(((RunAs)servletBase.getRunAs()).getRoleName().equals("test1"));
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- }
-
-
- /**
- * Tests the merger with null named servlet in toMerge array, the merger should ignore such entries.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleNullServletToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
-
- descriptorToMerge.getServlets().add(servletBase);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(0, descriptorBase.getServlets().size());
- }
-
- /**
- * Tests the merger with null named servlet in Base, as this is extremely unlikely
- * the merger should not stop merging because of such error.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleNullNamedServletInBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(2, descriptorBase.getServlets().size());
- }
-
- /**
- * Tests the merger with one and the same security role.
- * The result should be non merged 1 security role.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleRunAsCaseSameRole() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- RunAs role = JavaeeFactory.eINSTANCE.createRunAs();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- servletBase.setServletName("servName");
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
- role.setRoleName("test1");
- servletBase.setRunAs(role);
- servletMerge.setRunAs(role);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(servletBase.getRunAs());
- Assert.assertTrue(((RunAs)servletBase.getRunAs()).getRoleName().equals("test1"));
- }
-
-
-
- /**
- * Tests the merger with Base security constraints only.
- * No merge is necessary
- *
- * @throws ModelException
- */
-// @Test
- @SuppressWarnings("unchecked")
- public void testSingleSecurityConstraintCaseBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- SecurityConstraint sc = WebFactory.eINSTANCE.createSecurityConstraint();
- AuthConstraint createAuthConstraint = WebFactory.eINSTANCE.createAuthConstraint();
- createAuthConstraint.getRoleNames().add("test");
- sc.setAuthConstraint(createAuthConstraint);
- UserDataConstraint userDataConstraint = WebFactory.eINSTANCE.createUserDataConstraint();
- userDataConstraint.setTransportGuarantee(TransportGuaranteeType.CONFIDENTIAL_LITERAL);
- sc.setUserDataConstraint(userDataConstraint);
-
- descriptorBase.getSecurityConstraints().add(sc);
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityConstraints());
- Assert.assertTrue(descriptorBase.getSecurityConstraints().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityConstraints().size() == 0);
- Assert.assertTrue(((SecurityConstraint)descriptorBase.getSecurityConstraints().get(0)).getAuthConstraint().getRoleNames().get(0).equals("test"));
- }
-
- /**
- * Tests the merger with toMerge security constraints only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityConstraintCaseToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- SecurityConstraint sc = WebFactory.eINSTANCE.createSecurityConstraint();
- AuthConstraint createAuthConstraint = WebFactory.eINSTANCE.createAuthConstraint();
- createAuthConstraint.getRoleNames().add("test");
- sc.setAuthConstraint(createAuthConstraint);
- UserDataConstraint userDataConstraint = WebFactory.eINSTANCE.createUserDataConstraint();
- userDataConstraint.setTransportGuarantee(TransportGuaranteeType.CONFIDENTIAL_LITERAL);
- sc.setUserDataConstraint(userDataConstraint);
-
- descriptorBase.getSecurityConstraints().add(sc);
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- WebApp3Merger result = new WebApp3Merger(descriptorToMerge, descriptorBase, 0);
- result.process();
- Assert.assertNotNull(descriptorToMerge.getSecurityConstraints());
- Assert.assertTrue(descriptorToMerge.getSecurityConstraints().size() == 1);
- Assert.assertTrue(((SecurityConstraint)descriptorToMerge.getSecurityConstraints().get(0)).getAuthConstraint().getRoleNames().get(0).equals("test"));
- }
-
-
- //@Test
- public void testSingleServletMappingInBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- ServletMapping servletMappingBase = WebFactory.eINSTANCE.createServletMapping();
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- String value = "/1";
- urlPatternType.setValue(value);
-
- servletMappingBase.setServletName(sname);
- servletMappingBase.getUrlPatterns().add(urlPatternType);
-
- descriptorBase.getServletMappings().add(servletMappingBase);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping mapping = descriptorBase.getServletMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getServletName());
-
- Assert.assertEquals(1, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
-
- //@Test
- public void testSingleServletMappingInToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- ServletMapping servletMappingBase = WebFactory.eINSTANCE.createServletMapping();
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- String value = "/1";
- urlPatternType.setValue(value);
-
- servletMappingBase.setServletName(sname);
- servletMappingBase.getUrlPatterns().add(urlPatternType);
-
- descriptorToMerge.getServletMappings().add(servletMappingBase);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping mapping = descriptorBase.getServletMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getServletName());
-
- Assert.assertEquals(1, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
- //@Test
- public void testSingleServletMappingSame() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- ServletMapping servletMappingBase = WebFactory.eINSTANCE.createServletMapping();
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- String value = "/1";
- urlPatternType.setValue(value);
-
- servletMappingBase.setServletName(sname);
- servletMappingBase.getUrlPatterns().add(urlPatternType);
-
- descriptorToMerge.getServletMappings().add(servletMappingBase);
- descriptorBase.getServletMappings().add(servletMappingBase);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping mapping = descriptorBase.getServletMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getServletName());
-
- Assert.assertEquals(1, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
- //@Test
- public void testSingleServletMappingAdditive() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- String value = "/1";
- String value2 = "/2";
-
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType.setValue(value);
-
- UrlPatternType urlPatternType2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType2.setValue(value2);
-
- ServletMapping servletMappingBase = WebFactory.eINSTANCE.createServletMapping();
- ServletMapping servletMappingMerge = WebFactory.eINSTANCE.createServletMapping();
-
- servletMappingBase.setServletName(sname);
- servletMappingBase.getUrlPatterns().add(urlPatternType);
-
- servletMappingMerge.setServletName(sname);
- servletMappingMerge.getUrlPatterns().add(urlPatternType2);
-
- descriptorBase.getServletMappings().add(servletMappingBase);
- descriptorToMerge.getServletMappings().add(servletMappingMerge);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping mapping = descriptorBase.getServletMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getServletName());
- Assert.assertEquals(2, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
- //@Test
- public void testSingleServletMappingDifferentServletName() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- String sname1 = "servName1";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname1);
-
- String value = "/1";
- String value2 = "/2";
-
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType.setValue(value);
-
- UrlPatternType urlPatternType2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType2.setValue(value2);
-
- ServletMapping servletMappingBase = WebFactory.eINSTANCE.createServletMapping();
- ServletMapping servletMappingMerge = WebFactory.eINSTANCE.createServletMapping();
-
- servletMappingBase.setServletName(sname);
- servletMappingBase.getUrlPatterns().add(urlPatternType);
-
- servletMappingMerge.setServletName(sname1);
- servletMappingMerge.getUrlPatterns().add(urlPatternType2);
-
- descriptorBase.getServletMappings().add(servletMappingBase);
- descriptorToMerge.getServletMappings().add(servletMappingMerge);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(2, descriptorBase.getServletMappings().size());
- }
-
-
-
-
-
-
-
-
- //@Test
- public void testSingleFilterMappingInBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
- FilterMapping FilterMappingBase = WebFactory.eINSTANCE.createFilterMapping();
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- String value = "/1";
- urlPatternType.setValue(value);
-
- FilterMappingBase.setFilterName(sname);
- FilterMappingBase.getUrlPatterns().add(urlPatternType);
-
- descriptorBase.getFilterMappings().add(FilterMappingBase);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping mapping = descriptorBase.getFilterMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getFilterName());
-
- Assert.assertEquals(1, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
-
- //@Test
- public void testSingleFilterMappingInToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
- FilterMapping FilterMappingBase = WebFactory.eINSTANCE.createFilterMapping();
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- String value = "/1";
- urlPatternType.setValue(value);
-
- FilterMappingBase.setFilterName(sname);
- FilterMappingBase.getUrlPatterns().add(urlPatternType);
-
- descriptorToMerge.getFilterMappings().add(FilterMappingBase);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping mapping = descriptorBase.getFilterMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getFilterName());
-
- Assert.assertEquals(1, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
- //@Test
- public void testSingleFilterMappingSame() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
- FilterMapping FilterMappingBase = WebFactory.eINSTANCE.createFilterMapping();
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- String value = "/1";
- urlPatternType.setValue(value);
-
- FilterMappingBase.setFilterName(sname);
- FilterMappingBase.getUrlPatterns().add(urlPatternType);
-
- descriptorToMerge.getFilterMappings().add(FilterMappingBase);
- descriptorBase.getFilterMappings().add(FilterMappingBase);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping mapping = descriptorBase.getFilterMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getFilterName());
-
- Assert.assertEquals(1, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
- //@Test
- public void testSingleFilterMappingAdditive() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
- String value = "/1";
- String value2 = "/2";
-
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType.setValue(value);
-
- UrlPatternType urlPatternType2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType2.setValue(value2);
-
- FilterMapping filterMappingBase = WebFactory.eINSTANCE.createFilterMapping();
- FilterMapping filterMappingMerge = WebFactory.eINSTANCE.createFilterMapping();
-
- filterMappingBase.setFilterName(sname);
- filterMappingBase.getUrlPatterns().add(urlPatternType);
-
- filterMappingMerge.setFilterName(sname);
- filterMappingMerge.getUrlPatterns().add(urlPatternType2);
-
- descriptorBase.getFilterMappings().add(filterMappingBase);
- descriptorToMerge.getFilterMappings().add(filterMappingMerge);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping mapping = descriptorBase.getFilterMappings().get(0);
-
- Assert.assertEquals(sname, mapping.getFilterName());
- Assert.assertEquals(2, mapping.getUrlPatterns().size());
- Assert.assertEquals(value, mapping.getUrlPatterns().get(0).getValue());
- }
-
- //@Test
- public void testSingleFilterMappingDifferentFilterName() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
- String sname1 = "servName1";
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname1);
-
- String value = "/1";
- String value2 = "/2";
-
- UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType.setValue(value);
-
- UrlPatternType urlPatternType2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPatternType2.setValue(value2);
-
- FilterMapping FilterMappingBase = WebFactory.eINSTANCE.createFilterMapping();
- FilterMapping FilterMappingMerge = WebFactory.eINSTANCE.createFilterMapping();
-
- FilterMappingBase.setFilterName(sname);
- FilterMappingBase.getUrlPatterns().add(urlPatternType);
-
- FilterMappingMerge.setFilterName(sname1);
- FilterMappingMerge.getUrlPatterns().add(urlPatternType2);
-
- descriptorBase.getFilterMappings().add(FilterMappingBase);
- descriptorToMerge.getFilterMappings().add(FilterMappingMerge);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(2, descriptorBase.getFilterMappings().size());
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- //@Test
- public void testSingleInitParamsInBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- String value = "/1";
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- servletBase.getInitParams().add(initParamsType);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Servlet rservlet = descriptorBase.getServlets().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value, rservlet.getInitParams().get(0).getParamValue());
- }
-
-
- //@Test
- public void testSingleInitParamsInToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- String value = "/1";
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- servletMerge.getInitParams().add(initParamsType);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Servlet rservlet = descriptorBase.getServlets().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value, rservlet.getInitParams().get(0).getParamValue());
- }
-
- //@Test
- public void testSingleInitParamsSame() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- String value = "/1";
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- servletBase.getInitParams().add(initParamsType);
- servletMerge.getInitParams().add(initParamsType);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Servlet rservlet = descriptorBase.getServlets().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value, rservlet.getInitParams().get(0).getParamValue());
- }
-
- //@Test
- public void testSingleInitParamsAdditive() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
-
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
-
- String value = "/1";
- String value2 = "/2";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname);
- initParamsType2.setParamValue(value2);
-
- servletBase.getInitParams().add(initParamsType);
- servletMerge.getInitParams().add(initParamsType2);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Servlet rservlet = descriptorBase.getServlets().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value2, rservlet.getInitParams().get(0).getParamValue());
- }
-
- //@Test
- public void testSingleInitParamsDifferentServletName() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
-
- String sname = "servName";
- String sname2 = "servName2";
-
- servletBase.setServletName(sname);
- servletMerge.setServletName(sname);
-
-
- String value = "/1";
- String value2 = "/2";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname2);
- initParamsType2.setParamValue(value2);
-
- servletBase.getInitParams().add(initParamsType);
- servletMerge.getInitParams().add(initParamsType2);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Servlet rservlet = descriptorBase.getServlets().get(0);
-
- Assert.assertEquals(2, rservlet.getInitParams().size());
- }
-
-
-
-
-
-
-
-
- //@Test
- public void testSingleFilterInitParamsInBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
-
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
-
- String value = "/1";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname);
- initParamsType2.setParamValue(value);
-
- servletBase.getInitParams().add(initParamsType);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Filter rservlet = descriptorBase.getFilters().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value, rservlet.getInitParams().get(0).getParamValue());
- }
-
-
- //@Test
- public void testSingleFilterInitParamsInToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
-
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
-
- String value = "/1";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname);
- initParamsType2.setParamValue(value);
-
- servletMerge.getInitParams().add(initParamsType2);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Filter rservlet = descriptorBase.getFilters().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value, rservlet.getInitParams().get(0).getParamValue());
- }
-
- //@Test
- public void testSingleFilterInitParamsSame() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
-
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
-
- String value = "/1";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname);
- initParamsType2.setParamValue(value);
-
- servletBase.getInitParams().add(initParamsType);
- servletMerge.getInitParams().add(initParamsType2);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Filter rservlet = descriptorBase.getFilters().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value, rservlet.getInitParams().get(0).getParamValue());
- }
-
- //@Test
- public void testSingleFilterInitParamsAdditive() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
-
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
-
- String value = "/1";
- String value2 = "/2";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname);
- initParamsType2.setParamValue(value2);
-
- servletBase.getInitParams().add(initParamsType);
- servletMerge.getInitParams().add(initParamsType2);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Filter rservlet = descriptorBase.getFilters().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- Assert.assertEquals(sname, rservlet.getInitParams().get(0).getParamName());
- Assert.assertEquals(value2, rservlet.getInitParams().get(0).getParamValue());
- }
-
- //@Test
- public void testSingleFilterInitParamDifferentFilterName() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Filter servletBase = WebFactory.eINSTANCE.createFilter();
- Filter servletMerge = WebFactory.eINSTANCE.createFilter();
-
- String sname = "servName";
-
- servletBase.setFilterName(sname);
- servletMerge.setFilterName(sname);
-
-
- String value = "/1";
- String value2 = "/2";
-
- ParamValue initParamsType = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType.setParamName(sname);
- initParamsType.setParamValue(value);
-
- ParamValue initParamsType2 = JavaeeFactory.eINSTANCE.createParamValue();
- initParamsType2.setParamName(sname);
- initParamsType2.setParamValue(value2);
-
- servletBase.getInitParams().add(initParamsType);
- servletMerge.getInitParams().add(initParamsType2);
-
- descriptorBase.getFilters().add(servletBase);
- descriptorToMerge.getFilters().add(servletMerge);
-
-
- WebApp3Merger result = new WebApp3Merger(descriptorBase, descriptorToMerge, 0);
- result.process();
-
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Filter rservlet = descriptorBase.getFilters().get(0);
-
- Assert.assertEquals(1, rservlet.getInitParams().size());
- }
-
- /**
- * Tests the merger "add" behavior with filter mappings with
- * different url-patterns
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testFilterMappingsCaseSameAdd() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Filter filter = WebFactory.eINSTANCE.createFilter();
- filter.setFilterName("TestFilter");
- filter.setFilterClass("test.TestFilter");
- List<Filter> filters = descriptorBase.getFilters();
- filters.add(filter);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1/*");
- FilterMapping filterMapping = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns = filterMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<FilterMapping> filterMappings = descriptorBase.getFilterMappings();
- filterMappings.add(filterMapping);
-
- Filter filter2 = WebFactory.eINSTANCE.createFilter();
- filter2.setFilterName("TestFilter");
- filter2.setFilterClass("test.TestFilter2");
- List<Filter> filters2 = descriptorToMerge.getFilters();
- filters2.add(filter2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2/*");
- FilterMapping filterMapping2 = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping2.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns2 = filterMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<FilterMapping> filterMappings2 = descriptorToMerge.getFilterMappings();
- filterMappings2.add(filterMapping2);
-
- WebAppMerger result = new WebApp3Merger(descriptorBase, descriptorToMerge, ModelElementMerger.ADD);
- result.process();
- Assert.assertNotNull(descriptorBase.getFilters());
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilterMappings().size());
- Filter f = descriptorBase.getFilters().get(0);
- Assert.assertNotNull(f);
- Assert.assertTrue(f.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(descriptorBase.getFilterMappings());
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping m = descriptorBase.getFilterMappings().get(0);
- Assert.assertTrue(m.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(2, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1/*"));
- }
-
- /**
- * Tests the merger "copy" behavior with filter mappings with
- * different url-patterns
- * The filter mapping should be copied to base
- *
- * @throws ModelException
- */
- //@Test
- public void testFilterMappingsCaseSameCopy() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Filter filter = WebFactory.eINSTANCE.createFilter();
- filter.setFilterName("TestFilter");
- filter.setFilterClass("test.TestFilter");
- List<Filter> filters = descriptorBase.getFilters();
- filters.add(filter);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1/*");
- FilterMapping filterMapping = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns = filterMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<FilterMapping> filterMappings = descriptorBase.getFilterMappings();
- filterMappings.add(filterMapping);
-
- Filter filter2 = WebFactory.eINSTANCE.createFilter();
- filter2.setFilterName("TestFilter");
- filter2.setFilterClass("test.TestFilter2");
- List<Filter> filters2 = descriptorToMerge.getFilters();
- filters2.add(filter2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2/*");
- FilterMapping filterMapping2 = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping2.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns2 = filterMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<FilterMapping> filterMappings2 = descriptorToMerge.getFilterMappings();
- filterMappings2.add(filterMapping2);
-
- WebAppMerger result = new WebApp3Merger(descriptorBase, descriptorToMerge, ModelElementMerger.COPY);
- result.process();
- Assert.assertNotNull(descriptorBase.getFilters());
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilterMappings().size());
- Filter f = descriptorBase.getFilters().get(0);
- Assert.assertNotNull(f);
- Assert.assertTrue(f.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(descriptorBase.getFilterMappings());
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping m = descriptorBase.getFilterMappings().get(0);
- Assert.assertTrue(m.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(2, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1/*"));
- m = descriptorBase.getFilterMappings().get(0);
- Assert.assertTrue(m.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(2, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1/*"));
- Assert.assertTrue(m.getUrlPatterns().get(1).getValue().equals("/pattern2/*"));
- }
-
- /**
- * Tests the merger "add" behavior with servlet mappings with
- * different url-patterns
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testServletMappingsCaseSameAdd() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Servlet servlet = WebFactory.eINSTANCE.createServlet();
- servlet.setServletName("TestServlet");
- servlet.setServletClass("test.TestServlet");
- List<Servlet> servlets = descriptorBase.getServlets();
- servlets.add(servlet);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1");
- ServletMapping servletMapping = WebFactory.eINSTANCE.createServletMapping();
- servletMapping.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns = servletMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<ServletMapping> servletMappings = descriptorBase.getServletMappings();
- servletMappings.add(servletMapping);
-
- Servlet servlet2 = WebFactory.eINSTANCE.createServlet();
- servlet2.setServletName("TestServlet");
- servlet2.setServletClass("test.TestServlet2");
- List<Servlet> servlets2 = descriptorToMerge.getServlets();
- servlets2.add(servlet2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2");
- ServletMapping servletMapping2 = WebFactory.eINSTANCE.createServletMapping();
- servletMapping2.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns2 = servletMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<ServletMapping> servletMappings2 = descriptorToMerge.getServletMappings();
- servletMappings2.add(servletMapping2);
-
- WebAppMerger result = new WebApp3Merger(descriptorBase, descriptorToMerge, ModelElementMerger.ADD);
- result.process();
- Assert.assertNotNull(descriptorBase.getServlets());
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServletMappings().size());
- Servlet s = descriptorBase.getServlets().get(0);
- Assert.assertNotNull(s);
- Assert.assertTrue(s.getServletName().equals("TestServlet"));
- Assert.assertNotNull(descriptorBase.getServletMappings());
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping m = descriptorBase.getServletMappings().get(0);
- Assert.assertTrue(m.getServletName().equals("TestServlet"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(2, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1"));
- Assert.assertTrue(m.getUrlPatterns().get(1).getValue().equals("/pattern2"));
- }
-
- /**
- * Tests the merger "copy" behavior with servlet mappings with
- * different url-patterns
- * The servlet mapping should be copied to base
- *
- * @throws ModelException
- */
- //@Test
- public void testServletMappingsCaseSameCopy() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Servlet servlet = WebFactory.eINSTANCE.createServlet();
- servlet.setServletName("TestServlet");
- servlet.setServletClass("test.TestServlet");
- List<Servlet> servlets = descriptorBase.getServlets();
- servlets.add(servlet);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1");
- ServletMapping servletMapping = WebFactory.eINSTANCE.createServletMapping();
- servletMapping.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns = servletMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<ServletMapping> servletMappings = descriptorBase.getServletMappings();
- servletMappings.add(servletMapping);
-
- Servlet servlet2 = WebFactory.eINSTANCE.createServlet();
- servlet2.setServletName("TestServlet");
- servlet2.setServletClass("test.TestServlet2");
- List<Servlet> servlets2 = descriptorToMerge.getServlets();
- servlets2.add(servlet2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2");
- ServletMapping servletMapping2 = WebFactory.eINSTANCE.createServletMapping();
- servletMapping2.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns2 = servletMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<ServletMapping> servletMappings2 = descriptorToMerge.getServletMappings();
- servletMappings2.add(servletMapping2);
-
- WebAppMerger result = new WebApp3Merger(descriptorBase, descriptorToMerge, ModelElementMerger.COPY);
- result.process();
- Assert.assertNotNull(descriptorBase.getServlets());
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServletMappings().size());
- Servlet s = descriptorBase.getServlets().get(0);
- Assert.assertNotNull(s);
- Assert.assertTrue(s.getServletName().equals("TestServlet"));
- Assert.assertNotNull(descriptorBase.getServletMappings());
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping m = descriptorBase.getServletMappings().get(0);
- Assert.assertTrue(m.getServletName().equals("TestServlet"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(2, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1"));
- Assert.assertTrue(m.getUrlPatterns().get(1).getValue().equals("/pattern2"));
-// m = descriptorBase.getServletMappings().get(1);
-// Assert.assertTrue(m.getServletName().equals("TestServlet"));
-// Assert.assertNotNull(m.getUrlPatterns());
-// Assert.assertEquals(1, m.getUrlPatterns().size());
-// Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern2"));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/WebAppMergerTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/WebAppMergerTest.java
deleted file mode 100644
index 690c1cfe..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/mergers/tests/WebAppMergerTest.java
+++ /dev/null
@@ -1,634 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.mergers.tests;
-
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.core.UrlPatternType;
-import org.eclipse.jst.javaee.web.AuthConstraint;
-import org.eclipse.jst.javaee.web.Filter;
-import org.eclipse.jst.javaee.web.FilterMapping;
-import org.eclipse.jst.javaee.web.SecurityConstraint;
-import org.eclipse.jst.javaee.web.Servlet;
-import org.eclipse.jst.javaee.web.ServletMapping;
-import org.eclipse.jst.javaee.web.TransportGuaranteeType;
-import org.eclipse.jst.javaee.web.UserDataConstraint;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.WebFactory;
-import org.eclipse.jst.jee.model.internal.mergers.ModelElementMerger;
-import org.eclipse.jst.jee.model.internal.mergers.ModelException;
-import org.eclipse.jst.jee.model.internal.mergers.WebAppMerger;
-
-/**
- * Tester class for WebAPp artifact.
- *
- * Base suffix means that the base object has some info and
- * toMerge is empty: nothing should be merged
- *
- * ToMerge suffix means that the base is empty object and
- * toMerge has some info: all from merge should be present in base.
- *
- * Same suffix means that the information in merge and base is one
- * and the same: no merge should occurred and additional checks for
- * doubling of the elements are present.
- *
- * Complex suffix means variety of information is present in base
- * and to merge: consistent information combined by base and toMerge
- * should be available at the end.
- *
- * ComplexOverlapped suffix means variety of information is present
- * in base and to merge: consistent information combined by base and toMerge
- * should be available at the end. There are artifacts with one and the same
- * name and different values: values should be merged into base.
- *
- *
- * @author Dimitar Giormov
- *
- */
-public class WebAppMergerTest extends TestCase{
-
- /**
- * Tests the merger with Base security role only.
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
-
- descriptorBase.getSecurityRoles().add(role);
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 0);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with toMerge security role only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
-
- descriptorToMerge.getSecurityRoles().add(role);
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertEquals(1, descriptorBase.getSecurityRoles().size());
- Assert.assertEquals(1, descriptorToMerge.getSecurityRoles().size());
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with one and the same security role.
- * The result should be non merged 1 security role.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseSameRole() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role = JavaeeFactory.eINSTANCE.createSecurityRole();
- role.setRoleName("test1");
- descriptorBase.getSecurityRoles().add(role);
- descriptorToMerge.getSecurityRoles().add(role);
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 1);
- Assert.assertTrue(((SecurityRole)descriptorBase.getSecurityRoles().get(0)).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with variety of security roles.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityRoleCaseComplex() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- SecurityRole role0 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role1 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role2 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role3 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role4 = JavaeeFactory.eINSTANCE.createSecurityRole();
- SecurityRole role5 = JavaeeFactory.eINSTANCE.createSecurityRole();
- role0.setRoleName("test1");
- role1.setRoleName("test2");
- role2.setRoleName("test3");
- role3.setRoleName("test4");
- role4.setRoleName("test5");
- role5.setRoleName("test6");
-
-
-
- descriptorBase.getSecurityRoles().add(role1);
- descriptorBase.getSecurityRoles().add(role3);
- descriptorBase.getSecurityRoles().add(role4);
- descriptorBase.getSecurityRoles().add(role5);
-
-
- descriptorToMerge.getSecurityRoles().add(role0);
- descriptorToMerge.getSecurityRoles().add(role1);
- descriptorToMerge.getSecurityRoles().add(role2);
-
-
-
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityRoles());
- Assert.assertTrue(descriptorBase.getSecurityRoles().size() == 6);
- Assert.assertTrue(descriptorToMerge.getSecurityRoles().size() == 3);
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role0.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role1.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role2.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role3.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role4.getRoleName()));
- Assert.assertTrue(containsSecRole(descriptorBase.getSecurityRoles(), role5.getRoleName()));
- }
-
- private boolean containsSecRole(List list, String roleName) {
-
-
- for (Object object : list) {
- SecurityRole role = (SecurityRole) object;
- if(roleName == null){
- if(roleName == role.getRoleName()){
- return true;
- }
- } else if(roleName.equals(role.getRoleName())){
- return true;
- }
- }
- return false;
- }
-
-
- /**
- * Tests the merger with Base security role only.
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleRunAsCaseBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- RunAs role = JavaeeFactory.eINSTANCE.createRunAs();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- servletBase.setServletName("servName");
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
- role.setRoleName("test1");
- servletBase.setRunAs(role);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(servletBase.getRunAs());
- Assert.assertTrue(((RunAs)servletBase.getRunAs()).getRoleName().equals("test1"));
- }
-
- /**
- * Tests the merger with toMerge security role only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleRunAsCaseToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- RunAs role = JavaeeFactory.eINSTANCE.createRunAs();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- servletBase.setServletName("servName");
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
- role.setRoleName("test1");
- servletMerge.setRunAs(role);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(servletBase.getRunAs());
- Assert.assertTrue(((RunAs)servletBase.getRunAs()).getRoleName().equals("test1"));
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- }
-
-
- /**
- * Tests the merger with null named servlet in toMerge array, the merger should ignore such entries.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleNullServletToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
-
- descriptorToMerge.getServlets().add(servletBase);
-
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(0, descriptorBase.getServlets().size());
- }
-
- /**
- * Tests the merger with null named servlet in Base, as this is extremely unlikely
- * the merger should not stop merging because of such error.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleNullNamedServletInBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertEquals(2, descriptorBase.getServlets().size());
- }
-
- /**
- * Tests the merger with one and the same security role.
- * The result should be non merged 1 security role.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleRunAsCaseSameRole() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- RunAs role = JavaeeFactory.eINSTANCE.createRunAs();
- Servlet servletBase = WebFactory.eINSTANCE.createServlet();
- servletBase.setServletName("servName");
- Servlet servletMerge = WebFactory.eINSTANCE.createServlet();
- servletMerge.setServletName("servName");
- role.setRoleName("test1");
- servletBase.setRunAs(role);
- servletMerge.setRunAs(role);
-
- descriptorBase.getServlets().add(servletBase);
- descriptorToMerge.getServlets().add(servletMerge);
-
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(servletBase.getRunAs());
- Assert.assertTrue(((RunAs)servletBase.getRunAs()).getRoleName().equals("test1"));
- }
-
-
-
- /**
- * Tests the merger with Base security constraints only.
- * No merge is necessary
- *
- * @throws ModelException
- */
-// @Test
- @SuppressWarnings("unchecked")
- public void testSingleSecurityConstraintCaseBase() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- SecurityConstraint sc = WebFactory.eINSTANCE.createSecurityConstraint();
- AuthConstraint createAuthConstraint = WebFactory.eINSTANCE.createAuthConstraint();
- createAuthConstraint.getRoleNames().add("test");
- sc.setAuthConstraint(createAuthConstraint);
- UserDataConstraint userDataConstraint = WebFactory.eINSTANCE.createUserDataConstraint();
- userDataConstraint.setTransportGuarantee(TransportGuaranteeType.CONFIDENTIAL_LITERAL);
- sc.setUserDataConstraint(userDataConstraint);
-
- descriptorBase.getSecurityConstraints().add(sc);
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, 0);
- result.process();
- Assert.assertNotNull(descriptorBase.getSecurityConstraints());
- Assert.assertTrue(descriptorBase.getSecurityConstraints().size() == 1);
- Assert.assertTrue(descriptorToMerge.getSecurityConstraints().size() == 0);
- Assert.assertTrue(((SecurityConstraint)descriptorBase.getSecurityConstraints().get(0)).getAuthConstraint().getRoleNames().get(0).equals("test"));
- }
-
- /**
- * Tests the merger with toMerge security constraints only.
- * The role should be copied in base.
- *
- * @throws ModelException
- */
- //@Test
- public void testSingleSecurityConstraintCaseToMerge() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- SecurityConstraint sc = WebFactory.eINSTANCE.createSecurityConstraint();
- AuthConstraint createAuthConstraint = WebFactory.eINSTANCE.createAuthConstraint();
- createAuthConstraint.getRoleNames().add("test");
- sc.setAuthConstraint(createAuthConstraint);
- UserDataConstraint userDataConstraint = WebFactory.eINSTANCE.createUserDataConstraint();
- userDataConstraint.setTransportGuarantee(TransportGuaranteeType.CONFIDENTIAL_LITERAL);
- sc.setUserDataConstraint(userDataConstraint);
-
- descriptorBase.getSecurityConstraints().add(sc);
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
- WebAppMerger result = new WebAppMerger(descriptorToMerge, descriptorBase, 0);
- result.process();
- Assert.assertNotNull(descriptorToMerge.getSecurityConstraints());
- Assert.assertTrue(descriptorToMerge.getSecurityConstraints().size() == 1);
- Assert.assertTrue(((SecurityConstraint)descriptorToMerge.getSecurityConstraints().get(0)).getAuthConstraint().getRoleNames().get(0).equals("test"));
- }
-
- /**
- * Tests the merger "add" behavior with filter mappings with
- * different url-patterns
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testFilterMappingsCaseSameAdd() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Filter filter = WebFactory.eINSTANCE.createFilter();
- filter.setFilterName("TestFilter");
- filter.setFilterClass("test.TestFilter");
- List<Filter> filters = descriptorBase.getFilters();
- filters.add(filter);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1/*");
- FilterMapping filterMapping = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns = filterMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<FilterMapping> filterMappings = descriptorBase.getFilterMappings();
- filterMappings.add(filterMapping);
-
- Filter filter2 = WebFactory.eINSTANCE.createFilter();
- filter2.setFilterName("TestFilter");
- filter2.setFilterClass("test.TestFilter2");
- List<Filter> filters2 = descriptorToMerge.getFilters();
- filters2.add(filter2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2/*");
- FilterMapping filterMapping2 = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping2.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns2 = filterMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<FilterMapping> filterMappings2 = descriptorToMerge.getFilterMappings();
- filterMappings2.add(filterMapping2);
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, ModelElementMerger.ADD);
- result.process();
- Assert.assertNotNull(descriptorBase.getFilters());
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilterMappings().size());
- Filter f = descriptorBase.getFilters().get(0);
- Assert.assertNotNull(f);
- Assert.assertTrue(f.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(descriptorBase.getFilterMappings());
- Assert.assertEquals(1, descriptorBase.getFilterMappings().size());
- FilterMapping m = descriptorBase.getFilterMappings().get(0);
- Assert.assertTrue(m.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(1, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1/*"));
- }
-
- /**
- * Tests the merger "copy" behavior with filter mappings with
- * different url-patterns
- * The filter mapping should be copied to base
- *
- * @throws ModelException
- */
- //@Test
- public void testFilterMappingsCaseSameCopy() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Filter filter = WebFactory.eINSTANCE.createFilter();
- filter.setFilterName("TestFilter");
- filter.setFilterClass("test.TestFilter");
- List<Filter> filters = descriptorBase.getFilters();
- filters.add(filter);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1/*");
- FilterMapping filterMapping = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns = filterMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<FilterMapping> filterMappings = descriptorBase.getFilterMappings();
- filterMappings.add(filterMapping);
-
- Filter filter2 = WebFactory.eINSTANCE.createFilter();
- filter2.setFilterName("TestFilter");
- filter2.setFilterClass("test.TestFilter2");
- List<Filter> filters2 = descriptorToMerge.getFilters();
- filters2.add(filter2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2/*");
- FilterMapping filterMapping2 = WebFactory.eINSTANCE.createFilterMapping();
- filterMapping2.setFilterName("TestFilter");
- List<UrlPatternType> urlPatterns2 = filterMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<FilterMapping> filterMappings2 = descriptorToMerge.getFilterMappings();
- filterMappings2.add(filterMapping2);
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, ModelElementMerger.COPY);
- result.process();
- Assert.assertNotNull(descriptorBase.getFilters());
- Assert.assertEquals(1, descriptorBase.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilters().size());
- Assert.assertEquals(1, descriptorToMerge.getFilterMappings().size());
- Filter f = descriptorBase.getFilters().get(0);
- Assert.assertNotNull(f);
- Assert.assertTrue(f.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(descriptorBase.getFilterMappings());
- Assert.assertEquals(2, descriptorBase.getFilterMappings().size());
- FilterMapping m = descriptorBase.getFilterMappings().get(0);
- Assert.assertTrue(m.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(1, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1/*"));
- m = descriptorBase.getFilterMappings().get(1);
- Assert.assertTrue(m.getFilterName().equals("TestFilter"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(1, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern2/*"));
- }
-
- /**
- * Tests the merger "add" behavior with servlet mappings with
- * different url-patterns
- * No merge is necessary
- *
- * @throws ModelException
- */
- //@Test
- public void testServletMappingsCaseSame() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Servlet servlet = WebFactory.eINSTANCE.createServlet();
- servlet.setServletName("TestServlet");
- servlet.setServletClass("test.TestServlet");
- List<Servlet> servlets = descriptorBase.getServlets();
- servlets.add(servlet);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1");
- ServletMapping servletMapping = WebFactory.eINSTANCE.createServletMapping();
- servletMapping.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns = servletMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<ServletMapping> servletMappings = descriptorBase.getServletMappings();
- servletMappings.add(servletMapping);
-
- Servlet servlet2 = WebFactory.eINSTANCE.createServlet();
- servlet2.setServletName("TestServlet");
- servlet2.setServletClass("test.TestServlet2");
- List<Servlet> servlets2 = descriptorToMerge.getServlets();
- servlets2.add(servlet2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2");
- ServletMapping servletMapping2 = WebFactory.eINSTANCE.createServletMapping();
- servletMapping2.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns2 = servletMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<ServletMapping> servletMappings2 = descriptorToMerge.getServletMappings();
- servletMappings2.add(servletMapping2);
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, ModelElementMerger.ADD);
- result.process();
- Assert.assertNotNull(descriptorBase.getServlets());
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServletMappings().size());
- Servlet s = descriptorBase.getServlets().get(0);
- Assert.assertNotNull(s);
- Assert.assertTrue(s.getServletName().equals("TestServlet"));
- Assert.assertNotNull(descriptorBase.getServletMappings());
- Assert.assertEquals(1, descriptorBase.getServletMappings().size());
- ServletMapping m = descriptorBase.getServletMappings().get(0);
- Assert.assertTrue(m.getServletName().equals("TestServlet"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(1, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1"));
- }
-
- /**
- * Tests the merger "copy" behavior with servlet mappings with
- * different url-patterns
- * The servlet mapping should be copied to base
- *
- * @throws ModelException
- */
- //@Test
- public void testServletMappingsCaseSameCopy() throws ModelException{
- WebApp descriptorBase = WebFactory.eINSTANCE.createWebApp();
- WebApp descriptorToMerge = WebFactory.eINSTANCE.createWebApp();
-
- Servlet servlet = WebFactory.eINSTANCE.createServlet();
- servlet.setServletName("TestServlet");
- servlet.setServletClass("test.TestServlet");
- List<Servlet> servlets = descriptorBase.getServlets();
- servlets.add(servlet);
-
- UrlPatternType urlPattern = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern.setValue("/pattern1");
- ServletMapping servletMapping = WebFactory.eINSTANCE.createServletMapping();
- servletMapping.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns = servletMapping.getUrlPatterns();
- urlPatterns.add(urlPattern);
- List<ServletMapping> servletMappings = descriptorBase.getServletMappings();
- servletMappings.add(servletMapping);
-
- Servlet servlet2 = WebFactory.eINSTANCE.createServlet();
- servlet2.setServletName("TestServlet");
- servlet2.setServletClass("test.TestServlet2");
- List<Servlet> servlets2 = descriptorToMerge.getServlets();
- servlets2.add(servlet2);
-
- UrlPatternType urlPattern2 = JavaeeFactory.eINSTANCE.createUrlPatternType();
- urlPattern2.setValue("/pattern2");
- ServletMapping servletMapping2 = WebFactory.eINSTANCE.createServletMapping();
- servletMapping2.setServletName("TestServlet");
- List<UrlPatternType> urlPatterns2 = servletMapping2.getUrlPatterns();
- urlPatterns2.add(urlPattern2);
- List<ServletMapping> servletMappings2 = descriptorToMerge.getServletMappings();
- servletMappings2.add(servletMapping2);
-
- WebAppMerger result = new WebAppMerger(descriptorBase, descriptorToMerge, ModelElementMerger.COPY);
- result.process();
- Assert.assertNotNull(descriptorBase.getServlets());
- Assert.assertEquals(1, descriptorBase.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServlets().size());
- Assert.assertEquals(1, descriptorToMerge.getServletMappings().size());
- Servlet s = descriptorBase.getServlets().get(0);
- Assert.assertNotNull(s);
- Assert.assertTrue(s.getServletName().equals("TestServlet"));
- Assert.assertNotNull(descriptorBase.getServletMappings());
- Assert.assertEquals(2, descriptorBase.getServletMappings().size());
- ServletMapping m = descriptorBase.getServletMappings().get(0);
- Assert.assertTrue(m.getServletName().equals("TestServlet"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(1, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern1"));
- m = descriptorBase.getServletMappings().get(1);
- Assert.assertTrue(m.getServletName().equals("TestServlet"));
- Assert.assertNotNull(m.getUrlPatterns());
- Assert.assertEquals(1, m.getUrlPatterns().size());
- Assert.assertTrue(m.getUrlPatterns().get(0).getValue().equals("/pattern2"));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractAnnotationFactoryTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractAnnotationFactoryTest.java
deleted file mode 100644
index a6a4ca57..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractAnnotationFactoryTest.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jdt.core.IBuffer;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.core.WorkingCopyOwner;
-import org.eclipse.jst.jee.model.internal.EjbAnnotationFactory;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class AbstractAnnotationFactoryTest extends TestCase{
-
- protected EjbAnnotationFactory fixture;
-
-// @Before
- @Override
- protected void setUp() throws Exception {
- fixture = EjbAnnotationFactory.createFactory();
- }
-
-// @After
- @Override
- protected void tearDown() {
- }
-
- protected ICompilationUnit createCompilationUnit(final String name, final String content) throws JavaModelException {
- WorkingCopyOwner owner = new WorkingCopyOwner() {
- @Override
- public IBuffer createBuffer(ICompilationUnit workingCopy) {
- IBuffer buffer = super.createBuffer(workingCopy);
- buffer.setContents(content);
- return buffer;
- }
- };
- return owner.newWorkingCopy(name, new IClasspathEntry[0], null);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractAnnotationModelTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractAnnotationModelTest.java
deleted file mode 100644
index 96166f3e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractAnnotationModelTest.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public abstract class AbstractAnnotationModelTest extends TestCase {
-
- protected static final String localInterfaceContent = "package com.sap;" + "import javax.ejb.Local;"
- + "@Local public interface SessionBeanLocal {}";
- protected static final String beanContent = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless public class SessionBean implements SessionBeanLocal {}";
-
- protected IFacetedProject facetedProject;
-
- protected IProject clientProject;
-
- protected IModelProvider fixture;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(this.getClass().getSimpleName());
- facetedProject = ProjectFacetsManager.create(project);
- }
-
- protected void saveFileAndUpdate(IFile beanFile, String beanContent) throws Exception {
- saveFileAndUpdate(beanFile, beanContent, getFixture());
- }
-
- protected void saveFileAndUpdate(IFile beanFile, String beanContent, IModelProvider provider) throws Exception {
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.saveFile(beanFile, beanContent);
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
- }
-
- protected void deleteFileAndUpdate(IFile beanFile) throws Exception, InterruptedException {
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- getFixture().addListener(listener);
- AbstractTest.deleteFile(beanFile);
- assertTrue(listener.waitForEvents());
- getFixture().removeListener(listener);
- }
-
- protected static void createSessionBeanLocal(IPackageFragment fragment) throws Exception {
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("SessionBeanLocal.java"));
- AbstractTest.saveFile(file, localInterfaceContent);
- }
-
- protected static void createSessionBean(IPackageFragment fragment) throws Exception {
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("SessionBean.java"));
- AbstractTest.saveFile(file, beanContent);
- }
-
- /**
- * @return the reader
- */
- protected IModelProvider getFixture() {
- return fixture;
- }
-
- protected EJBJar getEJBJar() {
- return (EJBJar) getFixture().getModelObject();
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractTest.java
deleted file mode 100644
index 468233f3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AbstractTest.java
+++ /dev/null
@@ -1,320 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
-
-import junit.framework.AssertionFailedError;
-
-import org.eclipse.core.filebuffers.FileBuffers;
-import org.eclipse.core.filebuffers.ITextFileBuffer;
-import org.eclipse.core.filebuffers.ITextFileBufferManager;
-import org.eclipse.core.filebuffers.LocationKind;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.resources.WorkspaceJob;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties;
-import org.eclipse.jst.common.project.facet.JavaFacetInstallDataModelProvider;
-import org.eclipse.jst.common.project.facet.JavaFacetUtils;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetInstallDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class AbstractTest {
-
- private static final String EJB_API_JAR_LOCATION = "/home/kiko/local/jboss-4.2.1.GA/server/default/lib/jboss-ejb3x.jar";
-
- public static IFacetedProject createEjbProject(String earName, String ejbProjectName, String clientName)
- throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(new EjbFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, ejbProjectName);
-
- FacetDataModelMap facetMap = (FacetDataModelMap) dm
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.EJB);
- facetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, IJ2EEFacetConstants.EJB_30);
-
- if (earName != null) {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earName);
-
- // only create client if given a client name, and is added to EAR
- if (clientName != null) {
- facetModel.setBooleanProperty(IEjbFacetInstallDataModelProperties.CREATE_CLIENT, true);
- facetModel.setStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_NAME, clientName);
- }
- } else {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, false);
- }
-
- // this option only exists if JEE5
- facetModel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
-
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaFacetUtils.JAVA_50);
-
- dm.getDefaultOperation().execute(null, null);
- IFacetedProject project = ProjectFacetsManager.create(ResourcesPlugin.getWorkspace().getRoot().getProject(
- ejbProjectName));
- addEjbApiToClassPath(project);
- return project;
- }
-
- public static IFacetedProject createEjbProject(String projectName) throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(new EjbFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName); //$NON-NLS-1$
- FacetDataModelMap facetDataModelMap = (FacetDataModelMap) dm
- .getProperty("IFacetProjectCreationDataModelProperties.FACET_DM_MAP");
- IDataModel javaFacetDataModel = facetDataModelMap.getFacetDataModel(J2EEProjectUtilities.JAVA);
- javaFacetDataModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaFacetUtils.JAVA_50);
- IDataModel ejbFacetDataModel = facetDataModelMap.getFacetDataModel(IJ2EEFacetConstants.EJB);
- ejbFacetDataModel.setProperty(IFacetDataModelProperties.FACET_VERSION, IJ2EEFacetConstants.EJB_30);
- dm.getDefaultOperation().execute(null, null);
- IFacetedProject project = ProjectFacetsManager.create(ResourcesPlugin.getWorkspace().getRoot().getProject(
- projectName));
- addEjbApiToClassPath(project);
- return project;
- }
-
- public static void deleteProject(final String projectName) throws InterruptedException {
- Job deleteJob = new WorkspaceJob("Delete project job...") {
- @Override
- public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
- ResourcesPlugin.getWorkspace().getRoot().getProject(projectName).delete(true, monitor);
- return Status.OK_STATUS;
- }
- };
- deleteJob.setRule(ResourcesPlugin.getWorkspace().getRoot());
- deleteJob.schedule();
- deleteJob.join();
- }
-
- public static void closeProject(final String projectName) throws Exception {
- ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
-
- public void run(IProgressMonitor monitor) throws CoreException {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
- project.close(monitor);
- }
- }, new NullProgressMonitor());
- }
-
- public static IFacetedProject.Action setupEjbInstallAction() {
- IDataModel ejbFacetInstallDataModel = DataModelFactory.createDataModel(new EjbFacetInstallDataModelProvider());
- ejbFacetInstallDataModel.setProperty(IEjbFacetInstallDataModelProperties.CONFIG_FOLDER, "ejbModule");
- ejbFacetInstallDataModel.setProperty(IEjbFacetInstallDataModelProperties.GENERATE_DD, true);
- IProjectFacetVersion webfacetversion = ProjectFacetsManager.getProjectFacet("jst.ejb").getVersion("3.0");
- IFacetedProject.Action action = new IFacetedProject.Action(IFacetedProject.Action.Type.INSTALL,
- webfacetversion, ejbFacetInstallDataModel);
- return action;
- }
-
- public static IFacetedProject.Action setupJavaInstallAction() {
- IProjectFacetVersion javafacetversion = ProjectFacetsManager.getProjectFacet("jst.java").getVersion("5.0");
- IDataModel javaFacetInstallDataModel = DataModelFactory
- .createDataModel(new JavaFacetInstallDataModelProvider());
- javaFacetInstallDataModel.setProperty(IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME, "ejbModule");
- IFacetedProject.Action action = new IFacetedProject.Action(IFacetedProject.Action.Type.INSTALL,
- javafacetversion, javaFacetInstallDataModel);
- return action;
- }
-
- /**
- * @param facetProj
- * @param installLocation
- * @throws JavaModelException
- */
- private static void addEjbApiToClassPath(IFacetedProject facetProj) throws JavaModelException {
- IPath classPath = new Path(EJB_API_JAR_LOCATION);
- IJavaProject javaProject = JavaCore.create(facetProj.getProject());
- IClasspathEntry[] entries = new IClasspathEntry[javaProject.getRawClasspath().length + 1];
- System.arraycopy(javaProject.getRawClasspath(), 0, entries, 0, entries.length - 1);
- IClasspathEntry entry = JavaCore.newLibraryEntry(classPath, null, null);
- entries[entries.length - 1] = entry;
- javaProject.setRawClasspath(entries, true, new NullProgressMonitor());
- }
-
- public static void saveFile(IFile file, String content) throws Exception {
- JdtChangeListenerWithSemaphore listener = new JdtChangeListenerWithSemaphore(1);
- JavaCore.addElementChangedListener(listener);
- if (file.exists())
- setContents(content, file);
- else
- createFile(content, file);
- if (listener.waitForEvents() == false)
- throw new AssertionFailedError();
- JavaCore.removeElementChangedListener(listener);
- }
-
- private static void createFile(final String content, final IFile file) throws Exception {
- BlockProgressMonitor monitor = new BlockProgressMonitor();
- ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) throws CoreException {
- ByteArrayOutputStream stream = new ByteArrayOutputStream();
- try {
- stream.write(content.getBytes());
- } catch (IOException e) {
- e.printStackTrace();
- }
- file.create(new ByteArrayInputStream(stream.toByteArray()), true, monitor);
- }
- }, ResourcesPlugin.getWorkspace().getRuleFactory().createRule(file), IResource.FORCE, monitor);
-
- if (monitor.waitForEvent() == false) {
- throw new IllegalStateException("Monitor not finished...");
- }
- }
-
- private static void setContents(final String content, final IFile file) throws Exception {
- BlockProgressMonitor monitor = new BlockProgressMonitor();
- ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) throws CoreException {
- ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager();
- try {
- manager.connect(file.getFullPath(), LocationKind.IFILE, monitor);
- ITextFileBuffer buffer = manager.getTextFileBuffer(file.getFullPath(), LocationKind.IFILE);
- IDocument document = buffer.getDocument();
- document.set(content);
- buffer.commit(monitor, true);
- } finally {
- manager.disconnect(file.getFullPath(), LocationKind.IFILE, monitor);
- }
- }
- }, ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(file), IResource.NONE, monitor);
- if (monitor.waitForEvent() == false)
- throw new IllegalStateException("Monitor not finished...");
- }
-
- public static void deleteFile(final IFile file) throws Exception {
- JdtChangeListenerWithSemaphore listener = new JdtChangeListenerWithSemaphore(1);
- JavaCore.addElementChangedListener(listener);
- ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) throws CoreException {
- file.delete(false, monitor);
- ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, monitor);
- }
- }, new NullProgressMonitor());
- if (listener.waitForEvents() == false)
- throw new AssertionFailedError();
- JavaCore.removeElementChangedListener(listener);
- }
-
- private static class BlockProgressMonitor implements IProgressMonitor {
-
- private Semaphore semaphore;
-
- private boolean canceled;
-
- public BlockProgressMonitor() throws InterruptedException {
- semaphore = new Semaphore(2);
- semaphore.acquire();
- }
-
- public void beginTask(String name, int totalWork) {
- try {
- semaphore.acquire();
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- public boolean waitForEvent() throws InterruptedException {
- return semaphore.tryAcquire(5, TimeUnit.SECONDS);
- }
-
- public void done() {
- semaphore.release();
- }
-
- public void internalWorked(double work) {
- }
-
- public boolean isCanceled() {
- return canceled;
- }
-
- public void setCanceled(boolean value) {
- semaphore.release();
- canceled = value;
- }
-
- public void setTaskName(String name) {
-
- }
-
- public void subTask(String name) {
-
- }
-
- public void worked(int work) {
- }
-
- }
-
- public static IFacetedProject createWebProject(String projectName) throws Exception {
- return createWebProject(projectName, IJ2EEFacetConstants.DYNAMIC_WEB_25, JavaFacetUtils.JAVA_50);
- }
-
- public static IFacetedProject createWebProject(String projectName, Object web_version, IProjectFacetVersion java_version) throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName); //$NON-NLS-1$
- FacetDataModelMap facetDataModelMap = (FacetDataModelMap) dm
- .getProperty("IFacetProjectCreationDataModelProperties.FACET_DM_MAP");
- IDataModel javaFacetDataModel = facetDataModelMap.getFacetDataModel(J2EEProjectUtilities.JAVA);
- javaFacetDataModel.setProperty(IFacetDataModelProperties.FACET_VERSION, java_version);
- IDataModel ejbFacetDataModel = facetDataModelMap.getFacetDataModel(IJ2EEFacetConstants.DYNAMIC_WEB);
- ejbFacetDataModel.setProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- ejbFacetDataModel.setProperty(IFacetDataModelProperties.FACET_VERSION, web_version);
- dm.getDefaultOperation().execute(null, null);
- IFacetedProject project = ProjectFacetsManager.create(ResourcesPlugin.getWorkspace().getRoot().getProject(
- projectName));
- addEjbApiToClassPath(project);
- return project;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AllAnnotationModelTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AllAnnotationModelTests.java
deleted file mode 100644
index bf7a8557..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/AllAnnotationModelTests.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jst.jee.model.ejb.tests.DeleteProjectTest;
-import org.eclipse.jst.jee.model.ejb.tests.EJB3MergedModelProviderFactoryTest;
-import org.eclipse.jst.jee.model.ejb.tests.EJB3MergedModelProviderTest;
-import org.eclipse.jst.jee.model.ejb.tests.EJBAnnotationReaderWithClientTest;
-import org.eclipse.jst.jee.model.ejb.tests.Ejb3ModelProviderTest;
-import org.eclipse.jst.jee.model.ejb.tests.EjbAnnotationFactoryTest;
-import org.eclipse.jst.jee.model.ejb.tests.EjbAnnotationReaderTest;
-import org.eclipse.jst.jee.model.ejb.tests.EjbReferenceTest;
-import org.eclipse.jst.jee.model.ejb.tests.GenerateDDTest;
-import org.eclipse.jst.jee.model.ejb.tests.LifecycleAnnotationsTest;
-import org.eclipse.jst.jee.model.ejb.tests.NotifyCloseProjectTest;
-import org.eclipse.jst.jee.model.ejb.tests.ResourceReferenceTest;
-import org.eclipse.jst.jee.model.ejb.tests.SecurityRolesTest;
-import org.eclipse.jst.jee.model.web.tests.DeleteWebProjectTest;
-import org.eclipse.jst.jee.model.web.tests.TestWebXmlModelAfterUpdate;
-import org.eclipse.jst.jee.model.web.tests.Web25MergedModelProviderTest;
-import org.eclipse.jst.jee.model.web.tests.Web3AnnotationReaderTest;
-import org.eclipse.jst.jee.model.web.tests.WebAnnotationReaderTest;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-// @SuiteClasses(value = { EjbAnnotationReaderTest.class,
-// EJBModelWithClientProjectTest.class, EjbReferenceTest.class,
-// LifecycleAnnotationsTest.class, ResourceReferenceTest.class,
-// SecurityRolesTest.class, DeleteProjectTest.class,
-// ManyToOneRelationTest.class, RegisterMergedModelProviderTest.class,
-// EjbAnnotationFactoryTest.class,
-// WebAnnotationReaderTest.class, DeleteWebProjectTest.class,
-// NotifyCloseProjectTest.class,
-// Web25MergedModelProviderTest.class })
-// @RunWith(Suite.class)
-public class AllAnnotationModelTests {
-
- public static Test suite() {
- try {
- TestSuite suite = new TestSuite(AllAnnotationModelTests.class.getName());
- suite.addTest(EjbAnnotationReaderTest.suite());
- suite.addTest(EJBAnnotationReaderWithClientTest.suite());
- suite.addTest(EjbReferenceTest.suite());
- suite.addTest(LifecycleAnnotationsTest.suite());
- suite.addTest(ResourceReferenceTest.suite());
- suite.addTest(SecurityRolesTest.suite());
- suite.addTest(DeleteProjectTest.suite());
- suite.addTest(ManyToOneRelationTest.suite());
- suite.addTest(RegisterMergedModelProviderTest.suite());
- suite.addTest(EjbAnnotationFactoryTest.suite());
- suite.addTest(WebAnnotationReaderTest.suite());
- suite.addTest(Web3AnnotationReaderTest.suite());
- suite.addTest(DeleteWebProjectTest.suite());
- suite.addTest(NotifyCloseProjectTest.suite());
- suite.addTest(TestWebXmlModelAfterUpdate.suite());
- suite.addTest(Web25MergedModelProviderTest.suite());
- suite.addTest(GenerateDDTest.suite());
- suite.addTest(EJB3MergedModelProviderFactoryTest.suite());
- suite.addTest(EJB3MergedModelProviderTest.suite());
- suite.addTest(Ejb3ModelProviderTest.suite());
- return suite;
- } catch (Exception e) {
- HeadlessTestsPlugin.getDefault().getLog().log(
- new Status(IStatus.ERROR, "org.eclipse.jst.j2ee.tests", "Error while building the test suite", e));
- }
- return null;
- // return new JUnit4TestAdapter(AllAnnotationModelTests.class);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ChangeListenerWithSemaphore.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ChangeListenerWithSemaphore.java
deleted file mode 100644
index 5c00e773..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ChangeListenerWithSemaphore.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
-
-import org.eclipse.core.resources.IResourceChangeEvent;
-import org.eclipse.core.resources.IResourceChangeListener;
-import org.eclipse.core.resources.IResourceDelta;
-
-/**
- * This change listener will release a semaphore after the resource changed
- * method is called. For every resourceChanged call one release will be called.
- *
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public final class ChangeListenerWithSemaphore implements IResourceChangeListener {
- private final Semaphore s;
- private final Collection<IResourceDelta> deltas;
- private final int expectedEvents;
- private final List<IResourceChangeEvent> receivedEvents;
-
- public ChangeListenerWithSemaphore(int expectedEvents) throws InterruptedException {
- this.expectedEvents = expectedEvents;
- this.s = new Semaphore(1);
- this.s.acquire();
- this.deltas = Collections.synchronizedList(new LinkedList<IResourceDelta>());
- this.receivedEvents = Collections.synchronizedList(new LinkedList<IResourceChangeEvent>());
- }
-
- public synchronized void resourceChanged(IResourceChangeEvent event) {
- receivedEvents.add(event);
- if (receivedEvents.size() > expectedEvents)
- throw new IllegalStateException("The expected events were already reached");
- try {
- deltas.add(event.getDelta());
- } catch (Exception e) {
- throw new RuntimeException(e);
- } finally {
- if (expectedEvents == receivedEvents.size())
- s.release();
- }
- }
-
- public boolean waitForEvents() throws InterruptedException {
- return s.tryAcquire(5, TimeUnit.SECONDS);
- }
-
- public synchronized Collection<IResourceDelta> getDeltas() {
- return deltas;
- }
-
- public synchronized int getEvents() {
- return receivedEvents.size();
- }
-
- public List<IResourceChangeEvent> getReceivedEvents() {
- return receivedEvents;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE5LegacyModelTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE5LegacyModelTest.java
deleted file mode 100644
index 5f410ab5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE5LegacyModelTest.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jee.model.tests;
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-import org.eclipse.jem.util.emf.workbench.FlexibleProjectResourceSet;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.j2ee.archive.emftests.GeneralEMFPopulationTest;
-import org.eclipse.jst.j2ee.archive.testutilities.EMFAttributeFeatureGenerator;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.EJBJar;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.ejb.Session;
-import org.eclipse.jst.j2ee.ejb.componentcore.util.EJBArtifactEdit;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EJBResourceImpl;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
-import org.eclipse.wst.common.componentcore.internal.impl.WTPResourceFactoryRegistry;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.operations.IHeadlessRunnableWithProgress;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class JEE5LegacyModelTest extends GeneralEMFPopulationTest {
-
- private static final String PROJECTNAME = "TESTEJB3Import";
- private static final String BASE_IMPORT_DIR = "TestData" + java.io.File.separatorChar;
- public JEE5LegacyModelTest(String name) {
- super(name);
- }
-
-
- public static Test suite() {
- return new SimpleTestSuite(JEE5LegacyModelTest.class);
- }
- /**
- * @param eObject
- */
-
- protected Object primCreateAttributeValue(EAttribute att, EObject eObject) {
- if (att.getEAttributeType() == XMLTypePackage.eINSTANCE.getQName())
- return null;
- else
- return super.primCreateAttributeValue(att, eObject);
- }
- public static IDataModel getEJBImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- IDataModel importModel = DataModelFactory.createDataModel(new EJBComponentImportDataModelProvider());
-
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filePath);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.CLOSE_ARCHIVE_ON_DISPOSE, closeArchiveOnDispose);
-
- if(creationModel != null) {
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.NESTED_MODEL_J2EE_COMPONENT_CREATION, creationModel);
- }
-
- return importModel;
- }
- protected String getArchivePath(String archiveName) throws Exception {
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- String pluginRelativeFileName = BASE_IMPORT_DIR + getTestDataDirectoryName() + java.io.File.separatorChar + archiveName;
- return ProjectUtility.getFullFileName(plugin, pluginRelativeFileName);
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- final IWorkspace workspace = ResourcesPlugin.getWorkspace();
- if(workspace.getRoot().getProject(PROJECTNAME).isAccessible()) return;
- final IProjectDescription description = workspace
- .newProjectDescription(PROJECTNAME);
- description.setLocation(null);
-
-
- // create the new project operation
- IHeadlessRunnableWithProgress op = new IHeadlessRunnableWithProgress() {
- public void run(IProgressMonitor monitor)
- {
- try {
- String archiveName = getArchivePath("TestEJB3.jar");
- IDataModel importModel = getEJBImportDataModel(archiveName, "TESTEJB3Import", null, true);
- IStatus operationStatus = importModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- };
-
-
- // run the new project creation operation
- try {
- op.run(new NullProgressMonitor());
- } catch (InterruptedException e) {
- return;
- }
- }
-
-public void testEJBModel() throws Exception {
-
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.EJBJAR_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.EJB_CONTENT_FOLDER) + "/" + modelPathURI);
- FlexibleProjectResourceSet resSet = getResourceSet("TESTEJB3Import");
-
- EJBResourceImpl ejbRes = (EJBResourceImpl) resSet.getResource(uri,true,EJBJarResourceFactory.getRegisteredFactory());
- Assert.assertTrue(ejbRes.getContents().size() > 0);
-
-
- Assert.assertTrue(ejbRes.getContents().size() > 0);
-
- if (ejbRes.getContents().size() > 0) {
- org.eclipse.jst.j2ee.ejb.EJBJar jar = ejbRes.getEJBJar();
- List<EnterpriseBean> beanslist = jar.getEnterpriseBeans();
- for (EnterpriseBean enterpriseBean : beanslist) {
- System.out.println(enterpriseBean.getName());
- System.out.println(enterpriseBean.getHomeInterfaceName());
- if (enterpriseBean instanceof Session)
- System.out.println(((Session)enterpriseBean).getServiceEndpointName());
- enterpriseBean.setDescription("Ugh");
- }
- }
- ejbRes.save(null);
-
-
-}
-public void testUsingEJBArtifactEdit() {
- EJBArtifactEdit edit = null;
- try {
- edit = EJBArtifactEdit.getEJBArtifactEditForWrite(getProject());
- EJBJar ejb = edit.getEJBJar();
- boolean pass = !ejb.getEnterpriseBeans().isEmpty();
- assertTrue(pass);
- } finally {
- if (edit != null) {
- edit.dispose();
- }
- }
-}
-private FlexibleProjectResourceSet getResourceSet(String projName) {
- IProject proj = getProject(projName);
- return (FlexibleProjectResourceSet)WorkbenchResourceHelperBase.getResourceSet(proj);
- }
-
-
- public IProject getProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECTNAME);
- }
- public IProject getProject(String projName) {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- }
-
-
- private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
- WTPResourceFactoryRegistry registry = (WTPResourceFactoryRegistry) resSet.getResourceFactoryRegistry();
- registry.registerLastFileSegment(uri.lastSegment(), factory);
- }
- private ResourceSet getResourceSet() {
- ResourceSet set = new ResourceSetImpl();
- set.setResourceFactoryRegistry(WTPResourceFactoryRegistry.INSTANCE);
- return set;
- }
-
-
-
-
- protected void tearDown() throws Exception {
- // Don't delete these files
- }
-
-
- protected String getTestDataDirectoryName() {
- return "EJBImportTests";
- }
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE5ModelTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE5ModelTest.java
deleted file mode 100644
index 13014e1f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE5ModelTest.java
+++ /dev/null
@@ -1,426 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jee.model.tests;
-import junit.framework.Assert;
-import junit.framework.Test;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-import org.eclipse.jem.util.emf.workbench.ProjectResourceSet;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties;
-import org.eclipse.jst.common.project.facet.JavaFacetInstallDataModelProvider;
-import org.eclipse.jst.j2ee.archive.emftests.GeneralEMFPopulationTest;
-import org.eclipse.jst.j2ee.archive.testutilities.EMFAttributeFeatureGenerator;
-import org.eclipse.jst.j2ee.earcreation.IEarFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.CreationConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
-import org.eclipse.jst.j2ee.project.facet.IAppClientFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.application.Application;
-import org.eclipse.jst.javaee.application.internal.util.ApplicationResourceImpl;
-import org.eclipse.jst.javaee.applicationclient.ApplicationClient;
-import org.eclipse.jst.javaee.applicationclient.internal.util.ApplicationclientResourceImpl;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.internal.util.EjbResourceImpl;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.internal.util.WebResourceImpl;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.impl.WTPResourceFactoryRegistry;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.operations.IHeadlessRunnableWithProgress;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebProjectCreationOperationTest;
-
-public class JEE5ModelTest extends GeneralEMFPopulationTest {
-
- private static final String PROJECTNAME = "TestNewModels";
- public JEE5ModelTest(String name) {
- super(name);
- }
-
-
- public static Test suite() {
- return new SimpleTestSuite(JEE5ModelTest.class);
- }
- /**
- * @param eObject
- */
-
- protected Object primCreateAttributeValue(EAttribute att, EObject eObject) {
- if (att.getEAttributeType() == XMLTypePackage.eINSTANCE.getQName())
- return null;
- else
- return super.primCreateAttributeValue(att, eObject);
- }
-
-
- protected void setUp() throws Exception {
- super.setUp();
- final IWorkspace workspace = ResourcesPlugin.getWorkspace();
- RendererFactory.getDefaultRendererFactory().setValidating(false);
- if(workspace.getRoot().getProject(PROJECTNAME).isAccessible()) return;
- final IProjectDescription description = workspace
- .newProjectDescription(PROJECTNAME);
- description.setLocation(null);
-
-
- // create the new project operation
- IHeadlessRunnableWithProgress op = new IHeadlessRunnableWithProgress() {
- public void run(IProgressMonitor monitor)
- {
- try {
- createProject(description, workspace.getRoot().getProject(PROJECTNAME), monitor);
- } catch (OperationCanceledException e) {
- e.printStackTrace();
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
- };
-
-
- // run the new project creation operation
- try {
- op.run(new NullProgressMonitor());
- } catch (InterruptedException e) {
- return;
- }
- }
- private void createProject(IProjectDescription description,
- IProject projectHandle, IProgressMonitor monitor)
- throws CoreException, OperationCanceledException {
- try {
- monitor.beginTask("", 2000); //$NON-NLS-1$
-
- projectHandle.create(description, new SubProgressMonitor(monitor,
- 1000));
-
- if (monitor.isCanceled())
- throw new OperationCanceledException();
-
- projectHandle.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 1000));
-
- } finally {
- monitor.done();
- }
- }
-
-
-
-// public void testNewEJBModelPopulation() throws Exception {
-//
-// EMFAttributeFeatureGenerator.reset();
-// String newModelPathURI = "/testejbmodel.xml";
-// URI uri = URI.createPlatformResourceURI("/" + getProject().getName() + newModelPathURI,false);
-// ResourceSet resSet = getResourceSet();
-// registerFactory(uri, resSet, new EjbResourceFactoryImpl());
-//
-// EjbResourceImpl ejbRes = (EjbResourceImpl) resSet.createResource(uri);
-//
-// setVersion(J2EEVersionConstants.JEE_5_0_ID);
-//
-// EJBJarDeploymentDescriptor DDroot = EjbFactory.eINSTANCE.createEJBJarDeploymentDescriptor();
-// EJBJar jar = EjbFactory.eINSTANCE.createEJBJar();
-// ejbRes.getContents().add((EObjectImpl)DDroot);
-// DDroot.setEjbJar(jar);
-// populateRoot((EObjectImpl)jar);
-//
-// ejbRes.save(null);
-//
-//
-// }
-
-// public void testReadNewWebModel() throws Exception {
-//
-// String projName = "TestEE5WebProject";//$NON-NLS-1$
-// createWebProject(projName);
-//
-//
-// EMFAttributeFeatureGenerator.reset();
-// String modelPathURI = J2EEConstants.WEBAPP_DD_URI;
-// URI uri = URI.createURI("web333/" + modelPathURI);
-// ProjectResourceSet resSet = getResourceSet(projName);
-//
-//
-// WebResourceImpl webRes = (WebResourceImpl) resSet.getResource(uri,true);
-//
-// if (webRes.getContents().size() > 0) {
-// WebAppDeploymentDescriptor ddRoot = (WebAppDeploymentDescriptor)webRes.getContents().get(0);
-// Assert.assertTrue(ddRoot.getWebApp() != null);
-// }
-//
-//
-//
-// }
-public void testEJBModel() throws Exception {
-
- String projName = "TestEE5EjbProject";//$NON-NLS-1$
- createEjbProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.EJBJAR_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.EJB_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
-
- EjbResourceImpl ejbRes = (EjbResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(ejbRes.getContents().size() > 0);
-
- if (ejbRes.getContents().size() > 0) {
- EJBJar jar = ejbRes.getEjbJar();
- populateRoot((EObjectImpl)jar);
- ejbRes.save(null);
- }
- ejbRes.unload();
- // OK now load again using a new Resource
- ejbRes = (EjbResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(ejbRes.getContents().size() > 0);
-
- if (ejbRes.getContents().size() > 0) {
- EJBJar jar = ejbRes.getEjbJar();
- jar.getDescriptions();
- }
-
-
-}
-public void testAppClientModel() throws Exception {
-
- String projName = "TestEE5AppClientProject";//$NON-NLS-1$
- createAppClientProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.APP_CLIENT_DD_URI;
- URI uri = URI.createURI(CreationConstants.DEFAULT_APPCLIENT_SOURCE_FOLDER + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- ApplicationclientResourceImpl appClientRes = (ApplicationclientResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(appClientRes.getContents().size() > 0);
-
- if (appClientRes.getContents().size() > 0) {
- ApplicationClient client = appClientRes.getApplicationClient();
- populateRoot((EObjectImpl)client);
- appClientRes.save(null);
- }
-
-}
-public void testEarModel() throws Exception {
-
- String projName = "TestEE5EarProject";//$NON-NLS-1$
- createEarProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.APPLICATION_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.APPLICATION_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- ApplicationResourceImpl earRes = (ApplicationResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(earRes.getContents().size() > 0);
-
- if (earRes.getContents().size() > 0) {
- Application ear = earRes.getApplication();
- populateRoot((EObjectImpl)ear);
- earRes.save(null);
- }
-
-}
-public void testWarModel() throws Exception {
-
- String projName = "TestEE5WarProject";//$NON-NLS-1$
- createWebProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.WEBAPP_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.WEB_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- WebResourceImpl webRes = (WebResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(webRes.getContents().size() > 0);
-
- if (webRes.getContents().size() > 0) {
- WebApp ear = webRes.getWebApp();
- populateRoot((EObjectImpl)ear);
- webRes.save(null);
- }
-
-}
-
- private ProjectResourceSet getResourceSet(String projName) {
- IProject proj = getProject(projName);
- return (ProjectResourceSet)WorkbenchResourceHelperBase.getResourceSet(proj);
- }
-
-
- private IProject createWebProject(String projName) throws ExecutionException {
-
- String webVersionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.WEB_2_5_ID);
- IProjectFacet webFacet = ProjectFacetsManager.getProjectFacet(IWebFacetInstallDataModelProperties.DYNAMIC_WEB);
- IProjectFacetVersion webFacetVersion = webFacet.getVersion(webVersionString);
- IDataModel dataModel = WebProjectCreationOperationTest.getWebDataModel(projName, null, null, null, null,
- webFacetVersion, true);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
-
- }
- private IProject createEjbProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IEjbFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.EJB_3_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEjbFacetInstallDataModelProperties.EJB);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.EJB);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- map.add(setupJavaInstallAction(projName,J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.EJB_CONTENT_FOLDER)));
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject ejbProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return ejbProj;
- }
- private IProject createEarProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IEarFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.JEE_5_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
- private IProject createAppClientProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IAppClientFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.JEE_5_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IAppClientFacetInstallDataModelProperties.APPLICATION_CLIENT);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.APPLICATION_CLIENT);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- map.add(setupJavaInstallAction(projName,J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.APP_CLIENT_CONTENT_FOLDER)));
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
- protected IDataModel setupJavaInstallAction(String aProjectName, String srcFolder) {
- IDataModel dm = DataModelFactory.createDataModel(new JavaFacetInstallDataModelProvider());
- dm.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, aProjectName);
- String jVersion = "5.0";
- dm.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, jVersion); //$NON-NLS-1$
- dm.setStringProperty(IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME, srcFolder); //$NON-NLS-1$
- return dm;
- }
- private void addWebProjectProperties(IDataModel dataModel, String projName, IProjectFacetVersion web25){
-
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel webmodel = (IDataModel) map.get(IWebFacetInstallDataModelProperties.DYNAMIC_WEB);
- webmodel.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, web25);
-// webmodel.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER,"web333"); //$NON-NLS-1$
-// webmodel.setStringProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, "src444");
- webmodel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- }
-
- private void addVersionProperties(IDataModel dataModel, String projName, IProjectFacetVersion fv, String facetString){
-
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel model = (IDataModel) map.get(facetString);
- model.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- model.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, fv);
-
- }
-
-
-// public void testNewEARModelPopulation() throws Exception {
-//
-// EMFAttributeFeatureGenerator.reset();
-//
-// String newModelPathURI = "/testearmodel.xml";
-// URI uri = URI.createPlatformResourceURI("/" + getProject().getName() + newModelPathURI,false);
-// ResourceSet resSet = getResourceSet();
-// registerFactory(uri, resSet, new ApplicationResourceFactoryImpl());
-//
-// ApplicationResourceImpl ejbRes = (ApplicationResourceImpl) resSet.createResource(uri);
-//
-// setVersion(J2EEVersionConstants.JEE_5_0_ID);
-//
-// ApplicationDeploymentDescriptor DDroot = ApplicationFactory.eINSTANCE.createApplicationDeploymentDescriptor();
-// Application ear = ApplicationFactory.eINSTANCE.createApplication();
-// ejbRes.getContents().add((EObjectImpl)DDroot);
-// DDroot.setApplication(ear);
-// populateRoot((EObjectImpl)ear);
-//
-// ejbRes.save(null);
-//
-//
-// }
- public IProject getProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECTNAME);
- }
- public IProject getProject(String projName) {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- }
-
-
- private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
- WTPResourceFactoryRegistry registry = (WTPResourceFactoryRegistry) resSet.getResourceFactoryRegistry();
- registry.registerLastFileSegment(uri.lastSegment(), factory);
- }
- private ResourceSet getResourceSet() {
- ResourceSet set = new ResourceSetImpl();
- set.setResourceFactoryRegistry(WTPResourceFactoryRegistry.INSTANCE);
- return set;
- }
-
-
-
-
- protected void tearDown() throws Exception {
- // Don't delete these files
- }
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE6ModelTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE6ModelTest.java
deleted file mode 100644
index 460ec621..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JEE6ModelTest.java
+++ /dev/null
@@ -1,510 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jee.model.tests;
-import junit.framework.Assert;
-import junit.framework.Test;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-import org.eclipse.jem.util.emf.workbench.ProjectResourceSet;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties;
-import org.eclipse.jst.common.project.facet.JavaFacetInstallDataModelProvider;
-import org.eclipse.jst.j2ee.archive.emftests.GeneralEMFPopulationTest;
-import org.eclipse.jst.j2ee.archive.testutilities.EMFAttributeFeatureGenerator;
-import org.eclipse.jst.j2ee.earcreation.IEarFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.CreationConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences.Keys;
-import org.eclipse.jst.j2ee.jca.project.facet.IConnectorFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IAppClientFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.application.Application;
-import org.eclipse.jst.javaee.application.internal.util.ApplicationResourceImpl;
-import org.eclipse.jst.javaee.applicationclient.ApplicationClient;
-import org.eclipse.jst.javaee.applicationclient.internal.util.ApplicationclientResourceImpl;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.internal.util.EjbResourceImpl;
-import org.eclipse.jst.javaee.jca.Connector;
-import org.eclipse.jst.javaee.jca.internal.util.JcaResourceImpl;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.WebFragment;
-import org.eclipse.jst.javaee.web.internal.util.WebResourceImpl;
-import org.eclipse.jst.javaee.webfragment.internal.util.WebfragmentResourceImpl;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.impl.WTPResourceFactoryRegistry;
-import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.operations.IHeadlessRunnableWithProgress;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.webfragment.operations.WebFragmentProjectCreationOperationTest;
-
-public class JEE6ModelTest extends GeneralEMFPopulationTest {
-
- private static final String PROJECTNAME = "TestNewModels";
- public JEE6ModelTest(String name) {
- super(name);
- }
-
-
- public static Test suite() {
- return new SimpleTestSuite(JEE6ModelTest.class);
- }
- /**
- * @param eObject
- */
-
- protected Object primCreateAttributeValue(EAttribute att, EObject eObject) {
- if (att.getEAttributeType() == XMLTypePackage.eINSTANCE.getQName())
- return null;
- else
- return super.primCreateAttributeValue(att, eObject);
- }
-
-
- protected void setUp() throws Exception {
- super.setUp();
- final IWorkspace workspace = ResourcesPlugin.getWorkspace();
- RendererFactory.getDefaultRendererFactory().setValidating(false);
- if(workspace.getRoot().getProject(PROJECTNAME).isAccessible()) return;
- final IProjectDescription description = workspace
- .newProjectDescription(PROJECTNAME);
- description.setLocation(null);
-
-
- // create the new project operation
- IHeadlessRunnableWithProgress op = new IHeadlessRunnableWithProgress() {
- public void run(IProgressMonitor monitor)
- {
- try {
- createProject(description, workspace.getRoot().getProject(PROJECTNAME), monitor);
- } catch (OperationCanceledException e) {
- e.printStackTrace();
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
- };
-
-
- // run the new project creation operation
- try {
- op.run(new NullProgressMonitor());
- } catch (InterruptedException e) {
- return;
- }
- }
- private void createProject(IProjectDescription description,
- IProject projectHandle, IProgressMonitor monitor)
- throws CoreException, OperationCanceledException {
- try {
- monitor.beginTask("", 2000); //$NON-NLS-1$
-
- projectHandle.create(description, new SubProgressMonitor(monitor,
- 1000));
-
- if (monitor.isCanceled())
- throw new OperationCanceledException();
-
- projectHandle.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 1000));
-
- } finally {
- monitor.done();
- }
- }
-
-
-
-// public void testNewEJBModelPopulation() throws Exception {
-//
-// EMFAttributeFeatureGenerator.reset();
-// String newModelPathURI = "/testejbmodel.xml";
-// URI uri = URI.createPlatformResourceURI("/" + getProject().getName() + newModelPathURI,false);
-// ResourceSet resSet = getResourceSet();
-// registerFactory(uri, resSet, new EjbResourceFactoryImpl());
-//
-// EjbResourceImpl ejbRes = (EjbResourceImpl) resSet.createResource(uri);
-//
-// setVersion(J2EEVersionConstants.JEE_5_0_ID);
-//
-// EJBJarDeploymentDescriptor DDroot = EjbFactory.eINSTANCE.createEJBJarDeploymentDescriptor();
-// EJBJar jar = EjbFactory.eINSTANCE.createEJBJar();
-// ejbRes.getContents().add((EObjectImpl)DDroot);
-// DDroot.setEjbJar(jar);
-// populateRoot((EObjectImpl)jar);
-//
-// ejbRes.save(null);
-//
-//
-// }
-
-// public void testReadNewWebModel() throws Exception {
-//
-// String projName = "TestEE5WebProject";//$NON-NLS-1$
-// createWebProject(projName);
-//
-//
-// EMFAttributeFeatureGenerator.reset();
-// String modelPathURI = J2EEConstants.WEBAPP_DD_URI;
-// URI uri = URI.createURI("web333/" + modelPathURI);
-// ProjectResourceSet resSet = getResourceSet(projName);
-//
-//
-// WebResourceImpl webRes = (WebResourceImpl) resSet.getResource(uri,true);
-//
-// if (webRes.getContents().size() > 0) {
-// WebAppDeploymentDescriptor ddRoot = (WebAppDeploymentDescriptor)webRes.getContents().get(0);
-// Assert.assertTrue(ddRoot.getWebApp() != null);
-// }
-//
-//
-//
-// }
-public void testEJBModel() throws Exception {
-
- String projName = "TestEE6EjbProject";//$NON-NLS-1$
- createEjbProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.EJBJAR_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.EJB_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
-
- EjbResourceImpl ejbRes = (EjbResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(ejbRes.getContents().size() > 0);
-
- if (ejbRes.getContents().size() > 0) {
- EJBJar jar = ejbRes.getEjbJar();
- populateRoot((EObjectImpl)jar);
- ejbRes.save(null);
- }
- ejbRes.unload();
- // OK now load again using a new Resource
- ejbRes = (EjbResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(ejbRes.getContents().size() > 0);
-
- if (ejbRes.getContents().size() > 0) {
- EJBJar jar = ejbRes.getEjbJar();
- jar.getDescriptions();
- }
-
-
-}
-public void testAppClientModel() throws Exception {
-
- String projName = "TestEE6AppClientProject";//$NON-NLS-1$
- createAppClientProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.APP_CLIENT_DD_URI;
- URI uri = URI.createURI(CreationConstants.DEFAULT_APPCLIENT_SOURCE_FOLDER + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- ApplicationclientResourceImpl appClientRes = (ApplicationclientResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(appClientRes.getContents().size() > 0);
-
- if (appClientRes.getContents().size() > 0) {
- ApplicationClient client = appClientRes.getApplicationClient();
- populateRoot((EObjectImpl)client);
- appClientRes.save(null);
- }
-
-}
-public void testEarModel() throws Exception {
-
- String projName = "TestEE6EarProject";//$NON-NLS-1$
- createEarProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.APPLICATION_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.APPLICATION_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- ApplicationResourceImpl earRes = (ApplicationResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(earRes.getContents().size() > 0);
-
- if (earRes.getContents().size() > 0) {
- Application ear = earRes.getApplication();
- populateRoot((EObjectImpl)ear);
- earRes.save(null);
- }
-
-}
-public void testConnectorModel() throws Exception {
-
- String projName = "TestEE6ConnectorProject";//$NON-NLS-1$
- createConnectorProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.RAR_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.JCA_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- JcaResourceImpl connectorRes = (JcaResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(connectorRes.getContents().size() > 0);
-
- if (connectorRes.getContents().size() > 0) {
- Connector connector = connectorRes.getConnector();
- populateRoot((EObjectImpl)connector);
- connectorRes.save(null);
- }
-
-}
-public void testWarModel() throws Exception {
-
- String projName = "TestEE6WarProject";//$NON-NLS-1$
- createWebProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.WEBAPP_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.WEB_CONTENT_FOLDER) + "/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- WebResourceImpl webRes = (WebResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(webRes.getContents().size() > 0);
-
- if (webRes.getContents().size() > 0) {
- WebApp ear = webRes.getWebApp();
- populateRoot((EObjectImpl)ear);
- webRes.save(null);
- }
-
-}
-
-public void testWebFragmentModel() throws Exception {
-
- String projName = "TestEE6WebFragmentProject";//$NON-NLS-1$
- createWebfragmentProject(projName);
-
- EMFAttributeFeatureGenerator.reset();
- String modelPathURI = J2EEConstants.WEBFRAGMENT_DD_URI;
- URI uri = URI.createURI( "src/" + modelPathURI);
- ProjectResourceSet resSet = getResourceSet(projName);
-
- WebfragmentResourceImpl webRes = (WebfragmentResourceImpl) resSet.getResource(uri,true);
- Assert.assertTrue(webRes.getContents().size() > 0);
-
- if (webRes.getContents().size() > 0) {
- WebFragment fragment = webRes.getWebFragment();
- populateRoot((EObjectImpl)fragment);
- webRes.save(null);
- }
-
-}
-
- private ProjectResourceSet getResourceSet(String projName) {
- IProject proj = getProject(projName);
- return (ProjectResourceSet)WorkbenchResourceHelperBase.getResourceSet(proj);
- }
-
-
- private IProject createWebProject(String projName) throws ExecutionException {
-
- String webVersionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.WEB_3_0_ID);
- IProjectFacet webFacet = ProjectFacetsManager.getProjectFacet(IWebFacetInstallDataModelProperties.DYNAMIC_WEB);
- IProjectFacetVersion webFacetVersion = webFacet.getVersion(webVersionString);
- IDataModel dataModel = WebProjectCreationOperationTest.getWebDataModel(projName, null, null, null, null,
- webFacetVersion, true);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
-
- }
- private IProject createWebfragmentProject(String projName) throws ExecutionException {
-
- String webFragmentVersionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.WEBFRAGMENT_3_0_ID);
- IProjectFacet javaFacet = ProjectFacetsManager.getProjectFacet(IJ2EEFacetConstants.JAVA);
- IDataModel javaFacetModel = DataModelFactory.createDataModel(new JavaFacetInstallDataModelProvider());
- javaFacetModel.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_6);
- javaFacetModel.setProperty(IJavaFacetInstallDataModelProperties.DEFAULT_OUTPUT_FOLDER_NAME,
- J2EEPlugin.getDefault().getJ2EEPreferences().getString(Keys.DYN_WEB_OUTPUT_FOLDER) );
- javaFacetModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProjectFacet webFragmentFacet = ProjectFacetsManager.getProjectFacet(IJ2EEFacetConstants.WEBFRAGMENT);
- IProjectFacetVersion webFragmentFacetVersion = webFragmentFacet.getVersion(webFragmentVersionString);
- IDataModel dataModel = WebFragmentProjectCreationOperationTest.getWebFragmentDataModel(projName, null, null, webFragmentFacetVersion, true);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProject webFragmentProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webFragmentProj;
- }
- private IProject createEjbProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IEjbFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.EJB_3_1_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEjbFacetInstallDataModelProperties.EJB);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.EJB);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- map.remove(IModuleConstants.JST_JAVA);
- map.add(setupJavaInstallAction(projName,J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.EJB_CONTENT_FOLDER)));
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject ejbProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return ejbProj;
- }
- private IProject createEarProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IEarFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.JEE_6_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject earProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return earProj;
- }
- private IProject createAppClientProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IAppClientFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.JEE_6_0_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IAppClientFacetInstallDataModelProperties.APPLICATION_CLIENT);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.APPLICATION_CLIENT);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- map.remove(IModuleConstants.JST_JAVA);
- map.add(setupJavaInstallAction(projName,J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.APP_CLIENT_CONTENT_FOLDER)));
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
- private IProject createConnectorProject(String projName) throws ExecutionException {
- IDataModel dataModel = DataModelFactory.createDataModel(IConnectorFacetInstallDataModelProperties.class);
- String versionString = J2EEVersionUtil.convertVersionIntToString(J2EEVersionConstants.JCA_1_6_ID);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IConnectorFacetInstallDataModelProperties.JCA);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString); //$NON-NLS-1$
- addVersionProperties(dataModel, projName, facetVersion,IJ2EEFacetInstallDataModelProperties.JCA);
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- map.remove(IModuleConstants.JST_JAVA);
- map.add(setupJavaInstallAction(projName,J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.JCA_CONTENT_FOLDER)));
- dataModel.getDefaultOperation().execute( new NullProgressMonitor(), null);
- IProject connectorProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return connectorProj;
- }
- protected IDataModel setupJavaInstallAction(String aProjectName, String srcFolder) {
- IDataModel dm = DataModelFactory.createDataModel(new JavaFacetInstallDataModelProvider());
- dm.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, aProjectName);
- String jVersion = "1.6";
- dm.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, jVersion);
- dm.setStringProperty(IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME, srcFolder); //$NON-NLS-1$
- return dm;
- }
- private void addWebProjectProperties(IDataModel dataModel, String projName, IProjectFacetVersion web25){
-
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel webmodel = (IDataModel) map.get(IWebFacetInstallDataModelProperties.DYNAMIC_WEB);
- webmodel.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, web25);
-// webmodel.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER,"web333"); //$NON-NLS-1$
-// webmodel.setStringProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, "src444");
- webmodel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- }
-
- private void addVersionProperties(IDataModel dataModel, String projName, IProjectFacetVersion fv, String facetString){
-
- dataModel.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, projName);
- FacetDataModelMap map = (FacetDataModelMap) dataModel
- .getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel model = (IDataModel) map.get(facetString);
- model.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, true);
- model.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, fv);
-
- }
-
-
-// public void testNewEARModelPopulation() throws Exception {
-//
-// EMFAttributeFeatureGenerator.reset();
-//
-// String newModelPathURI = "/testearmodel.xml";
-// URI uri = URI.createPlatformResourceURI("/" + getProject().getName() + newModelPathURI,false);
-// ResourceSet resSet = getResourceSet();
-// registerFactory(uri, resSet, new ApplicationResourceFactoryImpl());
-//
-// ApplicationResourceImpl ejbRes = (ApplicationResourceImpl) resSet.createResource(uri);
-//
-// setVersion(J2EEVersionConstants.JEE_5_0_ID);
-//
-// ApplicationDeploymentDescriptor DDroot = ApplicationFactory.eINSTANCE.createApplicationDeploymentDescriptor();
-// Application ear = ApplicationFactory.eINSTANCE.createApplication();
-// ejbRes.getContents().add((EObjectImpl)DDroot);
-// DDroot.setApplication(ear);
-// populateRoot((EObjectImpl)ear);
-//
-// ejbRes.save(null);
-//
-//
-// }
- public IProject getProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECTNAME);
- }
- public IProject getProject(String projName) {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- }
-
-
- private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
- WTPResourceFactoryRegistry registry = (WTPResourceFactoryRegistry) resSet.getResourceFactoryRegistry();
- registry.registerLastFileSegment(uri.lastSegment(), factory);
- }
- private ResourceSet getResourceSet() {
- ResourceSet set = new ResourceSetImpl();
- set.setResourceFactoryRegistry(WTPResourceFactoryRegistry.INSTANCE);
- return set;
- }
-
-
-
-
- protected void tearDown() throws Exception {
- // Don't delete these files
- }
-
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JdtChangeListenerWithSemaphore.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JdtChangeListenerWithSemaphore.java
deleted file mode 100644
index 7d095b53..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/JdtChangeListenerWithSemaphore.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.eclipse.jst.jee.model.tests;
-
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
-
-import org.eclipse.jdt.core.ElementChangedEvent;
-import org.eclipse.jdt.core.IElementChangedListener;
-
-public class JdtChangeListenerWithSemaphore implements IElementChangedListener {
- private final Semaphore s;
- private final int expectedEvents;
- private final List<ElementChangedEvent> receivedEvents;
-
- public JdtChangeListenerWithSemaphore(int expectedEvents) throws InterruptedException {
- this.expectedEvents = expectedEvents;
- this.s = new Semaphore(1);
- this.s.acquire();
- this.receivedEvents = Collections.synchronizedList(new LinkedList<ElementChangedEvent>());
- }
-
- public boolean waitForEvents() throws InterruptedException {
- return s.tryAcquire(5, TimeUnit.SECONDS);
- }
-
- public synchronized int getEvents() {
- return receivedEvents.size();
- }
-
- public void elementChanged(ElementChangedEvent event) {
- receivedEvents.add(event);
- if (receivedEvents.size() > expectedEvents)
- throw new IllegalStateException("The expected events were already reached");
- if (expectedEvents == receivedEvents.size())
- s.release();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ManyToOneRelationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ManyToOneRelationTest.java
deleted file mode 100644
index e575fb07..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ManyToOneRelationTest.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.jee.model.internal.common.ManyToOneRelation;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class ManyToOneRelationTest extends TestCase {
-
- private ManyToOneRelation<String, Integer> fixture;
-
- private ManyToOneRelation<String, Integer> getFixture() {
- return fixture;
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(ManyToOneRelationTest.class);
- return suite;
- }
-
- // @Before
- public void setUp() throws Exception {
- super.setUp();
- fixture = new ManyToOneRelation<String, Integer>();
- }
-
-
- // @Test
- public void testGetTarget() {
- getFixture().connect("str1", new Integer(1));
- assertEquals(new Integer(1), getFixture().getTarget("str1"));
- }
-
- public void testConnectToNewTarget() {
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str1", new Integer(2));
- assertFalse(getFixture().containsTarget(new Integer(1)));
- assertTrue(getFixture().containsTarget(new Integer(2)));
- }
-
- // @Test
- public void testGetSources() {
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str2", new Integer(1));
- assertTrue(getFixture().getSources(new Integer(1)).contains("str1"));
- assertTrue(getFixture().getSources(new Integer(1)).contains("str2"));
- }
-
- // @Test
- public void testGetFilesManyFiles() {
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str2", new Integer(2));
- assertTrue(getFixture().getSources(new Integer(1)).contains("str1"));
- assertTrue(getFixture().getSources(new Integer(2)).contains("str2"));
- }
-
- // @Test
- public void testGetModelObjectManyFiles() {
-
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str2", new Integer(1));
- assertEquals(new Integer(1), getFixture().getTarget("str1"));
- assertEquals(new Integer(1), getFixture().getTarget("str2"));
- }
-
- // @Test
- public void testContainsFile() {
-
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str2", new Integer(2));
-
- assertTrue(getFixture().containsSource("str1"));
- assertTrue(getFixture().containsSource("str2"));
- assertFalse(getFixture().containsSource(null));
- }
-
- // @Test
- public void testTwoFilesTwoObjects() {
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str2", new Integer(2));
- assertEquals(new Integer(1), getFixture().getTarget("str1"));
- assertEquals(new Integer(2), getFixture().getTarget("str2"));
- assertTrue(getFixture().containsTarget(new Integer(1)));
- assertTrue(getFixture().containsTarget(new Integer(2)));
- }
-
- // @Test
- public void testDisconnectFile() {
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str2", new Integer(1));
- assertEquals(new Integer(1), getFixture().getTarget("str1"));
- assertEquals(new Integer(1), getFixture().getTarget("str2"));
-
- getFixture().disconnectSource("str1");
- assertFalse(getFixture().containsSource("str1"));
- assertNull(getFixture().getTarget("str1"));
- assertEquals(new Integer(1), new Integer(getFixture().getSources(new Integer(1)).size()));
- assertTrue(getFixture().getSources(new Integer(1)).contains("str2"));
- }
-
- // @Test
- public void testDisconnectModelObject() {
- getFixture().connect("str1", new Integer(1));
- getFixture().connect("str11", new Integer(1));
- getFixture().connect("str2", new Integer(2));
- assertEquals(new Integer(1), new Integer(getFixture().getSources(new Integer(2)).size()));
- assertEquals(new Integer(2), new Integer(getFixture().getSources(new Integer(1)).size()));
-
- getFixture().disconnect(new Integer(1));
- assertFalse(getFixture().containsTarget(new Integer(1)));
- assertFalse(getFixture().containsSource("str1"));
- assertFalse(getFixture().containsSource("str11"));
- assertTrue(getFixture().containsSource("str2"));
- assertTrue(getFixture().containsTarget(new Integer(2)));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ModelProviderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ModelProviderTest.java
deleted file mode 100644
index a2107a78..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/ModelProviderTest.java
+++ /dev/null
@@ -1,786 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-import org.eclipse.jem.util.emf.workbench.FlexibleProjectResourceSet;
-import org.eclipse.jem.util.emf.workbench.ProjectResourceSet;
-import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase;
-import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties;
-import org.eclipse.jst.common.project.facet.JavaFacetInstallDataModelProvider;
-import org.eclipse.jst.j2ee.archive.emftests.GeneralEMFPopulationTest;
-import org.eclipse.jst.j2ee.client.ApplicationClient;
-import org.eclipse.jst.j2ee.earcreation.IEarFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.IAppClientFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.application.Application;
-import org.eclipse.jst.javaee.core.Description;
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.EJBJarDeploymentDescriptor;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.jee.project.facet.IAppClientCreateDeploymentFilesDataModelProperties;
-import org.eclipse.jst.jee.project.facet.ICreateDeploymentFilesDataModelProperties;
-import org.eclipse.jst.jee.project.facet.IEJBCreateDeploymentFilesDataModelProperties;
-import org.eclipse.jst.jee.project.facet.IEarCreateDeploymentFilesDataModelProperties;
-import org.eclipse.jst.jee.project.facet.IWebCreateDeploymentFilesDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.operations.IHeadlessRunnableWithProgress;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebProjectCreationOperationTest;
-
-public class ModelProviderTest extends GeneralEMFPopulationTest {
-
- private static final String PROJECTNAME = "TestModelProviders";
- private final String descText = "Testing setting the desc";
-
- public ModelProviderTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- SimpleTestSuite suite = new SimpleTestSuite(ModelProviderTest.class);
-
- return suite;
- }
-
- /**
- * @param eObject
- */
-
- protected Object primCreateAttributeValue(EAttribute att, EObject eObject) {
- if (att.getEAttributeType() == XMLTypePackage.eINSTANCE.getQName())
- return null;
- else
- return super.primCreateAttributeValue(att, eObject);
- }
-
- protected void setUp() throws Exception {
- super.setUp();
-
- RendererFactory.getDefaultRendererFactory().setValidating(false);
- final IWorkspace workspace = ResourcesPlugin.getWorkspace();
- if (workspace.getRoot().getProject(PROJECTNAME).isAccessible())
- return;
- final IProjectDescription description = workspace.newProjectDescription(PROJECTNAME);
- description.setLocation(null);
-
- // create the new project operation
- IHeadlessRunnableWithProgress op = new IHeadlessRunnableWithProgress() {
- public void run(IProgressMonitor monitor) {
- try {
- createProject(description, workspace.getRoot().getProject(PROJECTNAME), monitor);
- } catch (OperationCanceledException e) {
- e.printStackTrace();
- } catch (CoreException e) {
- e.printStackTrace();
- }
- }
- };
-
- // run the new project creation operation
- try {
- op.run(new NullProgressMonitor());
- } catch (InterruptedException e) {
- return;
- }
- }
-
- private void createProject(IProjectDescription description, IProject projectHandle, IProgressMonitor monitor)
- throws CoreException, OperationCanceledException {
- try {
- monitor.beginTask("", 2000); //$NON-NLS-1$
-
- projectHandle.create(description, new SubProgressMonitor(monitor, 1000));
-
- if (monitor.isCanceled())
- throw new OperationCanceledException();
-
- projectHandle.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 1000));
-
- } finally {
- monitor.done();
- }
- }
-
- public void testUseEar5Model() throws Exception {
-
- String projName = PROJECTNAME + "EE5EarProject";//$NON-NLS-1$
- IProject earProj = createEarProject(projName, J2EEVersionConstants.JEE_5_0_ID, true);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(earProj);
-
- provider.modify(new Runnable() {
- public void run() {
- Application ear = (Application) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- ear.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- earProj.close(new NullProgressMonitor());
- // Re-open project
- earProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(earProj);
- Application sameEar = (Application) newProvider.getModelObject();
- Assert.assertNotNull("Application Model Object should not be null", sameEar);
-
- Description desc = (Description) sameEar.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
- public void testUseEar6Model() throws Exception {
-
- String projName = PROJECTNAME + "EE6EarProject";//$NON-NLS-1$
- IProject earProj = createEarProject(projName, J2EEVersionConstants.JEE_6_0_ID, true);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(earProj);
-
- provider.modify(new Runnable() {
- public void run() {
- Application ear = (Application) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- ear.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- earProj.close(new NullProgressMonitor());
- // Re-open project
- earProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(earProj);
- Application sameEar = (Application) newProvider.getModelObject();
- Assert.assertNotNull("Application Model Object should not be null", sameEar);
-
- Description desc = (Description) sameEar.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseEar5NoDDModel() throws Exception {
-
- String projName = PROJECTNAME + "EE5EarProject";//$NON-NLS-1$
- IProject earProj = createEarProject(projName, J2EEVersionConstants.JEE_5_0_ID, false);
-
- // create the DD because the project was created without one
- IDataModel ddCreateModel = this.getDDCreationDataModel(earProj);
- ddCreateModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(earProj);
- provider.modify(new Runnable() {
- public void run() {
- Application ear = (Application) provider.getModelObject();
- if (ear.getDescriptions().isEmpty())
- ear.getDescriptions().add(JavaeeFactory.eINSTANCE.createDescription());
- Description desc = (Description) ear.getDescriptions().get(0);
- desc.setValue(descText);
- }
- }, IModelProvider.FORCESAVE);
-
- // Close project to force flush
- earProj.close(new NullProgressMonitor());
- // Re-open project
- earProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(earProj);
- Application sameEar = (Application) newProvider.getModelObject();
- Description desc = (Description) sameEar.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseEar14Model() throws Exception {
-
- String projName = PROJECTNAME + "EE14EarProject";//$NON-NLS-1$
- IProject earProj = createEarProject(projName, J2EEVersionConstants.J2EE_1_4_ID, true);
- final IModelProvider provider = ModelProviderManager.getModelProvider(earProj);
-
- // Test getting model through path api.
- org.eclipse.jst.j2ee.application.Application ear = (org.eclipse.jst.j2ee.application.Application) provider
- .getModelObject(new Path(J2EEConstants.APPLICATION_DD_URI));
-
- provider.modify(new Runnable() {
- public void run() {
- org.eclipse.jst.j2ee.application.Application ear = (org.eclipse.jst.j2ee.application.Application) provider
- .getModelObject();
- ear.setDescription(descText);
-
- }
- }, null);
-
- // Close project to force flush
- earProj.close(new NullProgressMonitor());
- // Re-open project
- earProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(earProj);
- org.eclipse.jst.j2ee.application.Application sameEar = (org.eclipse.jst.j2ee.application.Application) newProvider
- .getModelObject();
- org.eclipse.jst.j2ee.common.Description desc = (org.eclipse.jst.j2ee.common.Description) sameEar
- .getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
- }
-
- public void testUseWeb25Model() throws Exception {
-
- String projName = PROJECTNAME + "EE5WebProject";//$NON-NLS-1$
- IProject webProj = createWebProject(projName, J2EEVersionConstants.WEB_2_5_ID, true);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(webProj);
-
- provider.modify(new Runnable() {
- public void run() {
- WebApp webApp = (WebApp) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- webApp.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- webProj.close(new NullProgressMonitor());
- // Re-open project
- webProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(webProj);
- WebApp sameWebApp = (WebApp) newProvider.getModelObject();
- Description desc = (Description) sameWebApp.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
- public void testUseWeb30Model() throws Exception {
-
- String projName = PROJECTNAME + "EE6WebProject";//$NON-NLS-1$
- IProject webProj = createWebProject(projName, J2EEVersionConstants.WEB_3_0_ID, true);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(webProj);
-
- provider.modify(new Runnable() {
- public void run() {
- WebApp webApp = (WebApp) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- webApp.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- webProj.close(new NullProgressMonitor());
- // Re-open project
- webProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(webProj);
- WebApp sameWebApp = (WebApp) newProvider.getModelObject();
- Description desc = (Description) sameWebApp.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseWeb25NoDDModel() throws Exception {
- String projName = PROJECTNAME + "EE5WebProject";//$NON-NLS-1$
- IProject webProj = createWebProject(projName, J2EEVersionConstants.WEB_2_5_ID, false);
-
- // create the DD because the project was created without one
- IDataModel ddCreateModel = this.getDDCreationDataModel(webProj);
- ddCreateModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(webProj);
-
- provider.modify(new Runnable() {
- public void run() {
- WebApp webApp = (WebApp) provider.getModelObject();
- if (webApp.getDescriptions().isEmpty())
- webApp.getDescriptions().add(JavaeeFactory.eINSTANCE.createDescription());
- Description desc = (Description) webApp.getDescriptions().get(0);
- desc.setValue(descText);
- }
- }, IModelProvider.FORCESAVE);
-
- // Close project to force flush
- webProj.close(new NullProgressMonitor());
- // Re-open project
- webProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(webProj);
- WebApp sameWebApp = (WebApp) newProvider.getModelObject();
- Description desc = (Description) sameWebApp.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseWeb24Model() throws Exception {
-
- String projName = PROJECTNAME + "EE14WebProject";//$NON-NLS-1$
- IProject webProj = createWebProject(projName, J2EEVersionConstants.WEB_2_4_ID, true);
- final IModelProvider provider = ModelProviderManager.getModelProvider(webProj);
-
- provider.modify(new Runnable() {
- public void run() {
- org.eclipse.jst.j2ee.webapplication.WebApp webApp = (org.eclipse.jst.j2ee.webapplication.WebApp) provider
- .getModelObject();
- webApp.setDescription(descText);
- }
- }, null);
-
- // Close project to force flush
- webProj.close(new NullProgressMonitor());
- // Re-open project
- webProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(webProj);
- org.eclipse.jst.j2ee.webapplication.WebApp sameWebApp = (org.eclipse.jst.j2ee.webapplication.WebApp) newProvider
- .getModelObject();
- org.eclipse.jst.j2ee.common.Description desc = (org.eclipse.jst.j2ee.common.Description) sameWebApp
- .getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseEjb3Model() throws Exception {
-
- String projName = PROJECTNAME + "EE5EjbProject";//$NON-NLS-1$
- IProject ejbProj = createEjbProject(projName, J2EEVersionConstants.EJB_3_0_ID, true);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(ejbProj);
-
- provider.modify(new Runnable() {
- public void run() {
- EJBJar ejbJar = (EJBJar) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- ejbJar.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- ejbProj.close(new NullProgressMonitor());
- // Re-open project
- ejbProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(ejbProj);
- EJBJar sameEjbJar = (EJBJar) newProvider.getModelObject();
- Assert.assertNotNull("EJBJar Model Object should not be null", sameEjbJar);
-
- Description desc = findDescription(sameEjbJar.getDescriptions(), descText);
- Assert.assertNotNull(desc);
-
- }
- public void testUseEjb31Model() throws Exception {
-
- String projName = PROJECTNAME + "EE6EjbProject";//$NON-NLS-1$
- IProject ejbProj = createEjbProject(projName, J2EEVersionConstants.EJB_3_1_ID, true);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(ejbProj);
-
- provider.modify(new Runnable() {
- public void run() {
- EJBJar ejbJar = (EJBJar) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- ejbJar.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- ejbProj.close(new NullProgressMonitor());
- // Re-open project
- ejbProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(ejbProj);
- EJBJar sameEjbJar = (EJBJar) newProvider.getModelObject();
- Assert.assertNotNull("EJBJar Model Object should not be null", sameEjbJar);
-
- Description desc = findDescription(sameEjbJar.getDescriptions(), descText);
- Assert.assertNotNull(desc);
-
- }
-
- private Description findDescription(List list, String descText2) {
- for (Object object : list) {
- Description descr = (Description) object;
- if (descText2.equals(descr.getValue())) {
- return descr;
- }
- }
- return null;
- }
-
- public void testUseEjb3NoDDModel() throws Exception {
- String projName = PROJECTNAME + "EE5EjbProject";//$NON-NLS-1$
- IProject ejbProj = createEjbProject(projName, J2EEVersionConstants.EJB_3_0_ID, false);
-
- // create the DD because the project was created without one
- IDataModel ddCreateModel = this.getDDCreationDataModel(ejbProj);
- ddCreateModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(ejbProj);
-
- provider.modify(new Runnable() {
- public void run() {
- EJBJar ejbJar = (EJBJar) provider.getModelObject();
- if (ejbJar.getDescriptions().isEmpty())
- ejbJar.getDescriptions().add(JavaeeFactory.eINSTANCE.createDescription());
- Description desc = (Description) ejbJar.getDescriptions().get(0);
- desc.setValue(descText);
- }
- }, IModelProvider.FORCESAVE);
-
- // Close project to force flush
- ejbProj.close(new NullProgressMonitor());
- // Re-open project
- ejbProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(ejbProj);
- EJBJar sameEjbJar = (EJBJar) newProvider.getModelObject();
- Description desc = (Description) sameEjbJar.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseEjb21Model() throws Exception {
-
- String projName = PROJECTNAME + "EE14EjbProject";//$NON-NLS-1$
- IProject ejbProj = createEjbProject(projName, J2EEVersionConstants.EJB_2_1_ID, true);
- final IModelProvider provider = ModelProviderManager.getModelProvider(ejbProj);
-
- provider.modify(new Runnable() {
- public void run() {
- org.eclipse.jst.j2ee.ejb.EJBJar ejbJar = (org.eclipse.jst.j2ee.ejb.EJBJar) provider.getModelObject();
- ejbJar.setDescription(descText);
- }
- }, null);
-
- // Close project to force flush
- ejbProj.close(new NullProgressMonitor());
- // Re-open project
- ejbProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(ejbProj);
- org.eclipse.jst.j2ee.ejb.EJBJar sameEjbJar = (org.eclipse.jst.j2ee.ejb.EJBJar) newProvider.getModelObject();
- org.eclipse.jst.j2ee.common.Description desc = (org.eclipse.jst.j2ee.common.Description) sameEjbJar
- .getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
-
- }
-
- public void testUseAppClient14Model() throws Exception {
- String projName = PROJECTNAME + "EE14AppClientProject";//$NON-NLS-1$
- IProject appClientProj = createAppClientProject(projName, J2EEVersionConstants.J2EE_1_4_ID, true);
- final IModelProvider provider = ModelProviderManager.getModelProvider(appClientProj);
-
- // Test getting model through path api.
- ApplicationClient client = (ApplicationClient) provider
- .getModelObject(new Path(J2EEConstants.APP_CLIENT_DD_URI));
-
- provider.modify(new Runnable() {
- public void run() {
- ApplicationClient client = (ApplicationClient) provider.getModelObject();
- client.setDescription(descText);
- }
- }, null);
-
- // Close project to force flush
- appClientProj.close(new NullProgressMonitor());
- // Re-open project
- appClientProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(appClientProj);
- ApplicationClient sameEar = (ApplicationClient) newProvider.getModelObject();
- org.eclipse.jst.j2ee.common.Description desc = (org.eclipse.jst.j2ee.common.Description) sameEar
- .getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
- }
-
- public void testUseAppClient5Model() throws Exception {
-
- String projName = PROJECTNAME + "EE5AppClientProject";//$NON-NLS-1$
- IProject appClientProj = createAppClientProject(projName, J2EEVersionConstants.JEE_5_0_ID, true);
- final IModelProvider provider = ModelProviderManager.getModelProvider(appClientProj);
-
- // Test getting model through path api.
- org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
- .getModelObject(new Path(J2EEConstants.APP_CLIENT_DD_URI));
-
- provider.modify(new Runnable() {
- public void run() {
- org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
- .getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- client.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- appClientProj.close(new NullProgressMonitor());
- // Re-open project
- appClientProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(appClientProj);
- org.eclipse.jst.javaee.applicationclient.ApplicationClient sameClient = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) newProvider
- .getModelObject();
- Description desc = (Description) sameClient.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
- }
- public void testUseAppClient6Model() throws Exception {
-
- String projName = PROJECTNAME + "EE6AppClientProject";//$NON-NLS-1$
- IProject appClientProj = createAppClientProject(projName, J2EEVersionConstants.JEE_6_0_ID, true);
- final IModelProvider provider = ModelProviderManager.getModelProvider(appClientProj);
-
- // Test getting model through path api.
- org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
- .getModelObject(new Path(J2EEConstants.APP_CLIENT_DD_URI));
-
- provider.modify(new Runnable() {
- public void run() {
- org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
- .getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- client.getDescriptions().add(desc);
- }
- }, null);
-
- // Close project to force flush
- appClientProj.close(new NullProgressMonitor());
- // Re-open project
- appClientProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(appClientProj);
- org.eclipse.jst.javaee.applicationclient.ApplicationClient sameClient = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) newProvider
- .getModelObject();
- Description desc = (Description) sameClient.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
- }
-
- public void testUseAppClient5NoDDModel() throws Exception {
- String projName = PROJECTNAME + "EE5AppClientProject";//$NON-NLS-1$
- IProject appClientProj = createAppClientProject(projName, J2EEVersionConstants.JEE_5_0_ID, false);
-
- // create the DD because the project was created without one
- IDataModel ddCreateModel = this.getDDCreationDataModel(appClientProj);
- ddCreateModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- final IModelProvider provider = ModelProviderManager.getModelProvider(appClientProj);
-
- // Test getting model through path api.
- org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
- .getModelObject(new Path(J2EEConstants.APP_CLIENT_DD_URI));
-
- provider.modify(new Runnable() {
- public void run() {
- org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
- .getModelObject();
- if (client.getDescriptions().isEmpty())
- client.getDescriptions().add(JavaeeFactory.eINSTANCE.createDescription());
- Description desc = (Description) client.getDescriptions().get(0);
- desc.setValue(descText);
-
- }
- }, IModelProvider.FORCESAVE);
-
- // Close project to force flush
- appClientProj.close(new NullProgressMonitor());
- // Re-open project
- appClientProj.open(new NullProgressMonitor());
-
- IModelProvider newProvider = ModelProviderManager.getModelProvider(appClientProj);
- org.eclipse.jst.javaee.applicationclient.ApplicationClient sameClient = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) newProvider
- .getModelObject();
- Description desc = (Description) sameClient.getDescriptions().get(0);
- Assert.assertEquals(descText, desc.getValue());
- }
-
- private IDataModel getDDCreationDataModel(IProject project) {
- Class dataModelClass = null;
- if (JavaEEProjectUtilities.isEARProject(project)) {
- dataModelClass = IEarCreateDeploymentFilesDataModelProperties.class;
- } else if (JavaEEProjectUtilities.isEJBProject(project)) {
- dataModelClass = IEJBCreateDeploymentFilesDataModelProperties.class;
- } else if (JavaEEProjectUtilities.isDynamicWebProject(project)) {
- dataModelClass = IWebCreateDeploymentFilesDataModelProperties.class;
- } else if (JavaEEProjectUtilities.isApplicationClientProject(project)) {
- dataModelClass = IAppClientCreateDeploymentFilesDataModelProperties.class;
- }
- IDataModel dataModel = DataModelFactory.createDataModel(dataModelClass);
- dataModel.setProperty(ICreateDeploymentFilesDataModelProperties.TARGET_PROJECT, project);
- return dataModel;
- }
-
- private IProject createWebProject(String projName, int vers, boolean createDD) throws ExecutionException {
- String webVersionString = J2EEVersionUtil.convertVersionIntToString(vers);
- IProjectFacet webFacet = ProjectFacetsManager.getProjectFacet(IWebFacetInstallDataModelProperties.DYNAMIC_WEB);
- IProjectFacetVersion webFacetVersion = webFacet.getVersion(webVersionString);
- IDataModel dataModel = WebProjectCreationOperationTest.getWebDataModel(projName, null, null, null, null,
- webFacetVersion, createDD);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
-
- private IProject createEjbProject(String projName, int vers, boolean createDD) throws ExecutionException {
- String versionString = J2EEVersionUtil.convertVersionIntToString(vers);
- IProjectFacet facet = ProjectFacetsManager.getProjectFacet(IEjbFacetInstallDataModelProperties.EJB);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString);
- IDataModel dataModel = EJBProjectCreationOperationTest.getEJBDataModel(projName, null, null, null,
- facetVersion, false, createDD);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProject ejbProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return ejbProj;
- }
-
- private IProject createEarProject(String projName, int vers, boolean createDD) throws ExecutionException {
- String versionString = J2EEVersionUtil.convertVersionIntToString(vers);
- IProjectFacet facet = ProjectFacetsManager
- .getProjectFacet(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString);
- IDataModel dataModel = EARProjectCreationOperationTest.getEARDataModel(projName, null, null, null,
- facetVersion, createDD);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
-
- IProject earProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return earProj;
- }
-
- private IProject createAppClientProject(String projName, int vers, boolean createDD) throws ExecutionException {
- String versionString = J2EEVersionUtil.convertVersionIntToString(vers);
- IProjectFacet facet = ProjectFacetsManager
- .getProjectFacet(IAppClientFacetInstallDataModelProperties.APPLICATION_CLIENT);
- IProjectFacetVersion facetVersion = facet.getVersion(versionString);
- IDataModel dataModel = AppClientProjectCreationOperationTest.getAppClientCreationDataModel(projName, null,
- facetVersion, true, createDD);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- IProject webProj = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- return webProj;
- }
-
- protected IDataModel setupJavaInstallAction(String aProjectName, String srcFolder) {
- IDataModel dm = DataModelFactory.createDataModel(new JavaFacetInstallDataModelProvider());
- dm.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, aProjectName);
- String jVersion = "5.0";
- dm.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, jVersion); //$NON-NLS-1$
- dm.setStringProperty(IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME, srcFolder); //$NON-NLS-1$
- return dm;
- }
-
- public IProject getProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECTNAME);
- }
-
- public IProject getProject(String projName) {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
- }
-
- protected void tearDown() throws Exception {
- // Don't delete these files
- }
-
- private ProjectResourceSet getResourceSet(String projName) {
- IProject proj = getProject(projName);
- return (ProjectResourceSet) WorkbenchResourceHelperBase.getResourceSet(proj);
- }
-
- public void testListener() throws Exception {
-
- String projName = PROJECTNAME + "EE5EjbProject";//$NON-NLS-1$
- IProject ejbProj = createEjbProject(projName, J2EEVersionConstants.EJB_3_0_ID, true);
-
- // Add description
- final IModelProvider provider = ModelProviderManager.getModelProvider(ejbProj);
-
- provider.modify(new Runnable() {
- public void run() {
- EJBJar ejbJar = (EJBJar) provider.getModelObject();
- Description desc = JavaeeFactory.eINSTANCE.createDescription();
- desc.setValue(descText);
- ejbJar.getDescriptions().add(desc);
- }
- }, null);
-
- EJBJar jar = (EJBJar) provider.getModelObject();
- Description oldDesc = (Description) jar.getDescriptions().get(0);
- String oldString = oldDesc.getValue();
-
- // set Name via manual resource loading
- String modelPathURI = J2EEConstants.EJBJAR_DD_URI;
- URI uri = URI.createURI(J2EEPlugin.getDefault().getJ2EEPreferences().getString(
- J2EEPreferences.Keys.EJB_CONTENT_FOLDER)
- + "/" + modelPathURI);
- FlexibleProjectResourceSet resSet = (FlexibleProjectResourceSet) getResourceSet(projName);
-
- Resource ejbRes = (Resource) resSet.getResource(uri, true);
-
- EObject root = ejbRes.getContents().get(0);
- EJBJar editJar = null;
- if (root instanceof EJBJarDeploymentDescriptor)
- editJar = ((EJBJarDeploymentDescriptor) root).getEjbJar();
- else
- editJar = (EJBJar) root;
- if (editJar.getDescriptions().isEmpty())
- editJar.getDescriptions().add(JavaeeFactory.eINSTANCE.createDescription());
- Description desc = (Description) editJar.getDescriptions().get(0);
- desc.setValue(oldString + "ChangeME");
- ejbRes.save(null);
- ejbRes.unload();
-
- jar = (EJBJar) provider.getModelObject();
- Description newDesc = (Description) jar.getDescriptions().get(0);
- String newString = newDesc.getValue();
-
- Assert.assertEquals(oldString + "ChangeME", newString);
-
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/RegisterMergedModelProviderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/RegisterMergedModelProviderTest.java
deleted file mode 100644
index ef0313c5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/RegisterMergedModelProviderTest.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.IModelProviderFactory;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.jee.model.internal.EJB3MergedModelProvider;
-import org.eclipse.jst.jee.model.internal.Ejb3MergedModelProviderFactory;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class RegisterMergedModelProviderTest extends TestCase {
-
- private IProject fixture;
-
- public static junit.framework.Test suite() {
- TestSuite suite = new TestSuite(RegisterMergedModelProviderTest.class);
- return suite;
- }
-
- public void setUp() throws Exception {
- fixture = AbstractTest.createEjbProject(RegisterMergedModelProviderTest.class.getName()).getProject();
- }
-
- public void tearDown() throws Exception {
- AbstractTest.deleteProject(RegisterMergedModelProviderTest.class.getName());
- }
-
- public void testRegister() {
- IProjectFacetVersion version = ProjectFacetsManager.getProjectFacet("jst.ejb").getVersion("3.0");
- IModelProvider oldProvider = ModelProviderManager.getModelProvider(getFixture());
- assertNotNull(oldProvider);
- ModelProviderManager.registerProvider(new Ejb3MergedModelProviderFactory(), version, "3");
- IModelProvider provider = ModelProviderManager.getModelProvider(getFixture());
- assertNotNull(provider);
- assertTrue(EJB3MergedModelProvider.class.isInstance(provider));
- assertNotNull(provider.getModelObject());
- assertTrue(EJBJar.class.isInstance(provider.getModelObject()));
- }
-
- /**
- * Call register method first without calling getModelProvider method before
- * that. Test case for bug [214136]
- */
- public void testCallRegisterMethodFirst() {
- IProjectFacetVersion version = ProjectFacetsManager.getProjectFacet("jst.ejb").getVersion("3.0");
- ModelProviderManager.registerProvider(new MyModelProviderFactory(), version, "3");
- IModelProvider provider = ModelProviderManager.getModelProvider(getFixture());
- assertNull(provider);
-
- // register the real model provider so that this test does not affect
- // the ather tests.
- ModelProviderManager.registerProvider(new Ejb3MergedModelProviderFactory(), version, "3");
- }
-
- private static class MyModelProviderFactory implements IModelProviderFactory {
-
- public IModelProvider create(IProject project) {
- return null;
- }
-
- public IModelProvider create(IVirtualComponent component) {
- return null;
- }
- }
-
- private IProject getFixture() {
- return fixture;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/SynchronousModelChangedListener.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/SynchronousModelChangedListener.java
deleted file mode 100644
index b716098f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/SynchronousModelChangedListener.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
-
-import org.eclipse.jst.j2ee.model.IModelProviderEvent;
-import org.eclipse.jst.j2ee.model.IModelProviderListener;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class SynchronousModelChangedListener implements IModelProviderListener {
-
- private final Semaphore s;
- private final int expectedEvents;
- private final Collection<IModelProviderEvent> receivedEvents;
-
- public SynchronousModelChangedListener(int expectedEvents) throws InterruptedException {
- this.expectedEvents = expectedEvents;
- this.s = new Semaphore(1);
- this.s.acquire();
- this.receivedEvents = Collections.synchronizedList(new LinkedList<IModelProviderEvent>());
- }
-
- public boolean waitForEvents() throws InterruptedException {
- return s.tryAcquire(5, TimeUnit.SECONDS);
- }
-
- public Collection<IModelProviderEvent> getReceivedEvents() {
- return receivedEvents;
- }
-
- public synchronized void modelsChanged(IModelProviderEvent event) {
- try {
- receivedEvents.add(event);
- if (receivedEvents.size() > expectedEvents)
- throw new IllegalStateException("The expected events were already reached <" + dumpEvent(event) + ">");
- } finally {
- if (expectedEvents == receivedEvents.size())
- s.release();
- }
- }
-
- private String dumpEvent(IModelProviderEvent event) {
- StringBuilder builder = new StringBuilder();
- builder.append("Event for project <" + event.getProject() + "> with changed resources: \r\n");
- for (Object resource : event.getChangedResources()) {
- builder.append(resource + "\r\n");
- }
- return builder.toString();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/TestUtils.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/TestUtils.java
deleted file mode 100644
index df577e02..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/tests/TestUtils.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.tests;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jst.javaee.core.EjbLocalRef;
-import org.eclipse.jst.javaee.core.LifecycleCallback;
-import org.eclipse.jst.javaee.core.ResourceRef;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.core.SecurityRoleRef;
-import org.eclipse.jst.javaee.ejb.ActivationConfigProperty;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.jst.javaee.ejb.InitMethodType;
-import org.eclipse.jst.javaee.ejb.MessageDrivenBean;
-import org.eclipse.jst.javaee.ejb.RemoveMethodType;
-import org.eclipse.jst.javaee.ejb.SessionBean;
-import org.eclipse.jst.javaee.web.Servlet;
-import org.eclipse.jst.javaee.web.WebApp;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class TestUtils {
-
- public static String getFileContent(IFile file) throws CoreException, IOException {
- InputStream stream = file.getContents();
- try {
- ByteArrayOutputStream os = new ByteArrayOutputStream();
- int i = 0;
- while ((i = stream.read()) != -1)
- os.write(i);
- return os.toString();
- } finally {
- stream.close();
- }
- }
-
- public static EjbLocalRef findLocalRefByName(List<EjbLocalRef> localRefs, String refName) {
- for (Iterator iter = localRefs.iterator(); iter.hasNext();) {
- EjbLocalRef ref = (EjbLocalRef) iter.next();
- if (refName.equals(ref.getEjbRefName())) {
- return ref;
- }
- }
- return null;
- }
-
- public static RemoveMethodType findRemoveMethodByName(SessionBean bean, String methodName) {
- for (Iterator iter = bean.getRemoveMethods().iterator(); iter.hasNext();) {
- RemoveMethodType removeMethod = (RemoveMethodType) iter.next();
- if (methodName.equals(removeMethod.getBeanMethod().getMethodName()))
- return removeMethod;
- }
- return null;
- }
-
- public static InitMethodType findInitMethodByName(SessionBean bean, String methodName) {
- for (Iterator iter = bean.getInitMethods().iterator(); iter.hasNext();) {
- InitMethodType iniMethod = (InitMethodType) iter.next();
- if (methodName.equals(iniMethod.getBeanMethod().getMethodName()))
- return iniMethod;
- }
- return null;
- }
-
- public static LifecycleCallback findLifecycleMethod(List callbacks, String name) {
- for (Iterator iter = callbacks.iterator(); iter.hasNext();) {
- LifecycleCallback callback = (LifecycleCallback) iter.next();
- if (name.equals(callback.getLifecycleCallbackMethod()))
- return callback;
- }
- return null;
- }
-
- public static ResourceRef findResourceRefByName(List<ResourceRef> resourceRefs, String name) {
- for (Iterator iter = resourceRefs.iterator(); iter.hasNext();) {
- ResourceRef ref = (ResourceRef) iter.next();
- if (name.equals(ref.getResRefName())) {
- return ref;
- }
- }
- return null;
- }
-
- public static ActivationConfigProperty findActivationConfigProperty(MessageDrivenBean result, String name) {
- for (Iterator iter = result.getActivationConfig().getActivationConfigProperties().iterator(); iter.hasNext();) {
- ActivationConfigProperty prop = (ActivationConfigProperty) iter.next();
- if (name.equals(prop.getActivationConfigPropertyName()))
- return prop;
- }
- return null;
- }
-
- public static SecurityRole findSecurityRole(List securityRoles, String roleName) {
- for (Iterator iter = securityRoles.iterator(); iter.hasNext();) {
- SecurityRole role = (SecurityRole) iter.next();
- if (role.getRoleName().equals(roleName))
- return role;
- }
- return null;
- }
-
- public static SecurityRoleRef findSecurityRoleRef(List securityRefs, String string) {
- for (Iterator iter = securityRefs.iterator(); iter.hasNext();) {
- SecurityRoleRef ref = (SecurityRoleRef) iter.next();
- if (ref.getRoleName().equals(string)) {
- return ref;
- }
- }
- return null;
- }
-
- public static Servlet findServletByName(WebApp app, String servletName) {
- for (Iterator iter = app.getServlets().iterator(); iter.hasNext();) {
- Servlet servlet = (Servlet) iter.next();
- if (servlet.getServletName().equals(servletName)) {
- return servlet;
- }
- }
- return null;
- }
-
- public static SessionBean getSessionBean(EJBJar jar, String name) {
- if (jar.getEnterpriseBeans() == null)
- return null;
- for (Iterator iter = jar.getEnterpriseBeans().getSessionBeans().iterator(); iter.hasNext();) {
- SessionBean bean = (SessionBean) iter.next();
- if (name.equals(bean.getEjbName())) {
- return bean;
- }
- }
- return null;
- }
-
- public static MessageDrivenBean getMessageDrivenBean(EJBJar jar, String name) {
- if (jar.getEnterpriseBeans() == null)
- return null;
- for (Iterator iter = jar.getEnterpriseBeans().getMessageDrivenBeans().iterator(); iter.hasNext();) {
- MessageDrivenBean bean = (MessageDrivenBean) iter.next();
- if (name.equals(bean.getEjbName())) {
- return bean;
- }
- }
- return null;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/DeleteWebProjectTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/DeleteWebProjectTest.java
deleted file mode 100644
index 7a209a02..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/DeleteWebProjectTest.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.web.tests;
-
-import junit.framework.TestCase;
-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.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.dependency.tests.util.ProjectUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class DeleteWebProjectTest extends TestCase {
-
- public static junit.framework.Test suite() {
- TestSuite suite = new TestSuite(DeleteWebProjectTest.class);
- return suite;
- }
-
- private static void createProjectContent(IFacetedProject facetedProject) throws Exception {
- IJavaProject javaProject = JavaCore.create(facetedProject.getProject());
- IFolder srcFolder = javaProject.getProject().getFolder("src");
- if (!srcFolder.exists())
- srcFolder.create(true, true, new NullProgressMonitor());
- IFolder comFolder = javaProject.getProject().getFolder("src/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createServlet(fragment);
- createServletWithSecurity(fragment);
- }
-
- private static void createServlet(IPackageFragment fragment) throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;" + "public class Servlet1 extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("Servlet1.java"));
- AbstractTest.saveFile(file, content);
- }
-
- private static void createServletWithSecurity(IPackageFragment fragment) throws Exception {
- final String servletContent = "package com.sap;"
- + "import javax.servlet.http.HttpServlet;"
- + "@DeclareRoles(value = {\"role1\", \"role2\"}) public class ServletWithSecurity extends HttpServlet {}";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("ServletWithSecurity.java"));
- AbstractTest.saveFile(file, servletContent);
- }
-
- /**
- * The same instance of the model provider is preserved during deleting the
- * project. After the project is deleted the instance of the IModelProvider
- * must return <code>null</code> for model object
- *
- * @throws Exception
- */
- // @Test
- public void testDeleteProjectSameProvider() throws Exception {
- IProject project = ProjectUtil.createWebProject(DeleteWebProjectTest.class.getSimpleName()
- + "testDeleteProjectSameProvider", null, J2EEVersionConstants.WEB_2_5_ID, true);
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- createProjectContent(facetedProject);
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- WebApp firstModel = (WebApp) provider.getModelObject();
- assertNotNull(firstModel);
- assertEquals(firstModel, provider.getModelObject());
-
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.deleteProject(facetedProject.getProject().getName());
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
-
- try {
- provider.getModelObject();
- fail("IllegalStateException expected because the project is deleted and can not be accessed.");
- } catch (IllegalStateException e) {
- }
- }
-
- // @Test(expected = IllegalArgumentException.class)
- public void testProviderForNonExistingProject() {
- IProject nonExistingProject = ResourcesPlugin.getWorkspace().getRoot().getProject(
- "testProviderForNonExistingProject");
- assertFalse(nonExistingProject.exists());
- IModelProvider modelProvider = ModelProviderManager.getModelProvider(nonExistingProject);
- assertNull(modelProvider);
- }
-
- /**
- * Get the model for a project. Close the project. Get the model from the
- * same model provider. The model should be null because the project is
- * closed.
- *
- * @throws Exception
- */
- // @Test
- public void testCloseProjectSameProvider() throws Exception {
- IFacetedProject facetedProject = AbstractTest.createWebProject(DeleteWebProjectTest.class.getSimpleName()
- + "testClose");
- createProjectContent(facetedProject);
- IModelProvider provider = ModelProviderManager.getModelProvider(facetedProject.getProject());
- WebApp firstModel = (WebApp) provider.getModelObject();
- assertNotNull(firstModel);
- assertEquals(firstModel, provider.getModelObject());
-
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- provider.addListener(listener);
- AbstractTest.closeProject(facetedProject.getProject().getName());
- assertTrue(listener.waitForEvents());
- provider.removeListener(listener);
- try {
- provider.getModelObject();
- fail("IllegalStateException expected because the project is closed and can not be accessed.");
- } catch (IllegalStateException e) {
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/TestWebXmlModelAfterUpdate.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/TestWebXmlModelAfterUpdate.java
deleted file mode 100644
index 4835254c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/TestWebXmlModelAfterUpdate.java
+++ /dev/null
@@ -1,284 +0,0 @@
-package org.eclipse.jst.jee.model.web.tests;
-
-
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.namespace.NamespaceContext;
-import javax.xml.xpath.XPath;
-import javax.xml.xpath.XPathConstants;
-import javax.xml.xpath.XPathExpressionException;
-import javax.xml.xpath.XPathFactory;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.filebuffers.FileBuffers;
-import org.eclipse.core.filebuffers.ITextFileBuffer;
-import org.eclipse.core.filebuffers.LocationKind;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.etools.common.test.apitools.ProjectUnzipUtil;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.javaee.web.Filter;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.WebFactory;
-import org.eclipse.text.edits.InsertEdit;
-import org.eclipse.text.edits.MalformedTreeException;
-import org.eclipse.text.edits.MultiTextEdit;
-import org.eclipse.text.edits.TextEdit;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-import org.w3c.dom.NodeList;
-
-
-@SuppressWarnings("restriction")
-public class TestWebXmlModelAfterUpdate extends TestCase
-{
- private static final String PROJECT_NAME = "TestJSTL_Web25";
- private static final Path PROJECT_ZIP_LOCATION = new Path("TestData/WebEditDdExternal/TestJSTL_Web25.zip");
- private static String[] projectNames = new String[]{PROJECT_NAME};
-
- private static final String TRINIDAD_FILTER_NAME = "trinidad";
- private static final String TRINIDAD_FILTER_CLASS = "trinidadClass";
- private static final String DUMMY_FILTER_NAME = "dummyFilter";
- private static final String DUMMY_FILTER_CLASS = "dummyFilterClass";
-
- private IProject _iProject;
-
- public static Test suite() {
- TestSuite suite = new TestSuite(TestWebXmlModelAfterUpdate.class);
- return suite;
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#setUp()
- */
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
- ProjectUnzipUtil util = new ProjectUnzipUtil(getLocalPath(PROJECT_ZIP_LOCATION), projectNames);
- util.createProjects();
- _iProject = ProjectUtilities.getProject(projectNames[0]);
- }
-
-
- /**
- * Writes a filter to web.xml using TextFileBuffer, then tries to remove it
- * from web.xml using the WTP web.xml model (WebApp).
- *
- * @throws Exception
- */
- public void testModelAfterWebXmlConfigOperation ()
- throws CoreException, UnsupportedEncodingException, IOException,
- MalformedTreeException, BadLocationException
- {
- // Use WTP web.xml model to add dummy filter
- addDummyFilterUsingWebapp();
-
- // Use non-WTP web.xml model to add Trinidad filter
- addTrinidadFilterUsingNonWebapp();
-
- // Use WTP web.xml model to remove Trinidad filter
- // (Currently fails as Trinidad filter cannot be found in the model)
- removeTrinidadFilterUsingWebapp();
- }
-
-
- private void removeTrinidadFilterUsingWebapp ()
- {
- final IModelProvider modelProvider = ModelProviderManager.getModelProvider(_iProject);
- modelProvider.modify(new Runnable()
- {
-
- public void run ()
- {
- final WebApp webapp = (WebApp) modelProvider.getModelObject();
- assertNotNull("Expected non-null webapp", webapp);
-
- final List<Filter> filters = webapp.getFilters();
- assertNotNull("Expected non-null list of filters", filters);
-
- final Filter filterToRemove = findFilter(webapp, TRINIDAD_FILTER_NAME);
- assertNotNull("Expected Trinidad filter to be non-null", filterToRemove);
-
- assertTrue(filters.remove(filterToRemove));
- }
-
- }, new Path("WEB-INF/web.xml"));
- }
-
-
- private void addDummyFilterUsingWebapp ()
- {
- final IModelProvider modelProvider = ModelProviderManager.getModelProvider(_iProject);
- modelProvider.modify(new Runnable()
- {
-
- public void run ()
- {
- final Filter filter = WebFactory.eINSTANCE.createFilter();
- filter.setFilterName(DUMMY_FILTER_NAME);
- filter.setFilterClass(DUMMY_FILTER_CLASS);
-
- final WebApp webapp = (WebApp) modelProvider.getModelObject();
- webapp.getFilters().add(filter);
- }
-
- }, new Path("WEB-INF/web.xml"));
- }
-
-
- private void addTrinidadFilterUsingNonWebapp ()
- throws CoreException, UnsupportedEncodingException, IOException, MalformedTreeException, BadLocationException
- {
-
- final IFile webXmlIfile = _iProject.getFile("WebContent/WEB-INF/web.xml"); //$NON-NLS-1$
- assertTrue(webXmlIfile.exists());
-
- final IDOMModel model = (IDOMModel) StructuredModelManager.getModelManager().getModelForEdit(webXmlIfile);
- assertNotNull("Expected non-null web.xml DOM model", model);
-
- final String textToInsert = "<filter>\n"
- + " <filter-name>" + TRINIDAD_FILTER_NAME + "</filter-name>\n"
- + " <filter-class>" + TRINIDAD_FILTER_CLASS + "</filter-class>\n"
- + "</filter>\n";
-
- // Start model change
- model.aboutToChangeModel();
-
-
- // Change model (Add a "trinidad" filter tag before the closing </web-app>)
-
- final IDOMDocument document = model.getDocument();
- final String namespacePrefix = "ns"; //$NON-NLS-1$
- final String namespace = "http://java.sun.com/xml/ns/javaee"; //$NON-NLS-1$
- final String XPATH_WEBAPP = "//ns:web-app";
- final MapNamespaceContext namespaceContextMap = new MapNamespaceContext();
- namespaceContextMap.put(namespacePrefix, namespace);
-
- final NodeList nodeList = resolveXpath(document, XPATH_WEBAPP, namespaceContextMap);
- final IDOMNode node = (IDOMNode) nodeList.item(0);
- final int offset = node.getEndStructuredDocumentRegion().getStartOffset(); // just before closing </web-app> tag
-
- final TextEdit edit = new MultiTextEdit();
- final InsertEdit insertEdit = new InsertEdit(offset, textToInsert);
- edit.addChild(insertEdit);
-
- FileBuffers.getTextFileBufferManager().connect(webXmlIfile.getFullPath(), LocationKind.IFILE, new NullProgressMonitor());
- final ITextFileBuffer buffer = FileBuffers.getTextFileBufferManager().getTextFileBuffer(webXmlIfile.getFullPath(), LocationKind.IFILE);
- final IDocument idocument = buffer.getDocument();
- edit.apply(idocument);
-
-
- // End model change
- model.save();
- model.changedModel();
- }
-
-
- private static Filter findFilter (final WebApp webapp,
- final String filterName)
- {
- for (final Object filter : webapp.getFilters())
- {
- if (((Filter) filter).getFilterName().equals(filterName))
- return (Filter) filter;
- }
-
- return null;
- }
-
-
- private static NodeList resolveXpath (final IDOMDocument document,
- final String xPathExpression,
- final NamespaceContext namespaceContext)
- {
- final XPathFactory xPathFactory = XPathFactory.newInstance();
- final XPath xPath = xPathFactory.newXPath();
-
-
- if (namespaceContext != null)
- xPath.setNamespaceContext(namespaceContext);
-
- NodeList nodeList = null;
- try
- {
- final Object nodeEval = xPath.evaluate(xPathExpression, document, XPathConstants.NODESET);
- if (nodeEval instanceof NodeList)
- nodeList = (NodeList) nodeEval;
- }
- catch (final XPathExpressionException e)
- {
- e.printStackTrace();
- }
-
- return nodeList;
- }
-
-
- private static class MapNamespaceContext implements NamespaceContext
- {
- private final Map<String, String> prefixToUri = new HashMap<String, String>();
- private final Map<String, String> uriToPrefix = new HashMap<String, String>();
-
-
- public String getNamespaceURI (final String prefix)
- {
- return prefixToUri.get(prefix);
- }
-
-
- public String getPrefix (final String namespaceURI)
- {
- return uriToPrefix.get(namespaceURI);
- }
-
-
- public Iterator<String> getPrefixes (final String namespaceURI)
- {
- return prefixToUri.keySet().iterator();
- }
-
-
- /**
- * @param prefix
- * @param uri
- */
- public void put (final String prefix, final String uri)
- {
- prefixToUri.put(prefix, uri);
- uriToPrefix.put(uri, prefix);
- }
- }
-
- private static IPath getLocalPath(IPath path) {
- URL url = FileLocator.find(HeadlessTestsPlugin.getDefault().getBundle(), path, null);
- try {
- url = FileLocator.toFileURL(url);
- } catch (IOException e) {
- e.printStackTrace();
- }
- return new Path(url.getPath());
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/Web25MergedModelProviderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/Web25MergedModelProviderTest.java
deleted file mode 100644
index 0dd513d8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/Web25MergedModelProviderTest.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.web.tests;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.j2ee.internal.web.operations.INewServletClassDataModelProperties;
-import org.eclipse.jst.j2ee.internal.web.operations.NewServletClassDataModelProvider;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.SynchronousModelChangedListener;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class Web25MergedModelProviderTest extends TestCase {
-
- private static IFacetedProject facetedProject;
-
- private IModelProvider fixture;
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(Web25MergedModelProviderTest.class);
- return suite;
- }
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- fixture = ModelProviderManager.getModelProvider(facetedProject.getProject());
- }
-
- protected void tearDown() throws Exception {
- deleteProjectAndWait(facetedProject.getProject().getName());
- }
-
- private void deleteProjectAndWait(String projectName) throws InterruptedException {
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- fixture.addListener(listener);
- AbstractTest.deleteProject(projectName);
- assertTrue(listener.waitForEvents());
- fixture.removeListener(listener);
- }
-
- // @BeforeClass
- public void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
- Web25MergedModelProviderTest.class.getSimpleName() + this.getName());
- facetedProject = AbstractTest.createWebProject(project.getName());
- createProjectContent();
- }
-
- private static void createProjectContent() throws Exception {
- IJavaProject javaProject = JavaCore.create(facetedProject.getProject());
- IFolder comFolder = javaProject.getProject().getFolder("src/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- }
-
- // @Test
- public void testAddServletWithOperation() throws Exception {
- IDataModel dataModel = createAddServletModel("testAddServletWithOperation");
- executeAndWait(dataModel.getDefaultOperation());
-
- WebApp app = (WebApp) fixture.getModelObject();
- assertNotNull(TestUtils.findServletByName(app, "testAddServletWithOperation"));
- }
-
- public void testAddServletFromJSP() throws Exception {
- AbstractTest.saveFile(facetedProject.getProject().getFile("WebContent/index.jsp"), "");
- IDataModel dataModel = createAddServletFromJSPModel("index.jsp", "index");
- executeAndWait(dataModel.getDefaultOperation());
-
- WebApp app = (WebApp) fixture.getModelObject();
- assertNotNull(TestUtils.findServletByName(app, "index"));
- }
-
- // public void testPreserveListeners() throws Exception {
- // IDataModel dataModel = createAddServletModel("testPreserveListeners");
- //
- // SynchronousModelChangedListener preserveListener = new
- // SynchronousModelChangedListener(2);
- // fixture.addListener(preserveListener);
- // IFile webXml =
- // facetedProject.getProject().getFile("WebContent/WEB-INF/web.xml");
- // String content = TestUtils.getFileContent(webXml);
- //
- // saveFileAndUpdate(webXml, content);
- //
- // int oldEventSize = preserveListener.getReceivedEvents().size();
- // executeAndWait(dataModel.getDefaultOperation());
- // WebApp app = (WebApp) fixture.getModelObject();
- // assertNotNull(TestUtils.findServletByName(app, "testPreserveListeners"));
- // assertTrue(preserveListener.waitForEvents());
- // assertTrue(oldEventSize < preserveListener.getReceivedEvents().size());
- // fixture.removeListener(preserveListener);
- // }
-
- private void saveFileAndUpdate(IFile webXml, String content) throws InterruptedException, Exception {
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- fixture.addListener(listener);
- AbstractTest.saveFile(webXml, content);
- assertTrue(listener.waitForEvents());
- fixture.removeListener(listener);
- }
-
- private IDataModel createAddServletFromJSPModel(String className, String dispayName) {
- IDataModel dataModel;
- dataModel = DataModelFactory.createDataModel(new NewServletClassDataModelProvider());
- dataModel.setStringProperty(INewServletClassDataModelProperties.CLASS_NAME, className);
- dataModel.setStringProperty(INewServletClassDataModelProperties.DISPLAY_NAME, dispayName);
- dataModel.setStringProperty(INewServletClassDataModelProperties.PROJECT_NAME, facetedProject.getProject()
- .getName());
- dataModel.setBooleanProperty(INewServletClassDataModelProperties.USE_EXISTING_CLASS, Boolean.TRUE);
- dataModel.setBooleanProperty(INewServletClassDataModelProperties.IS_SERVLET_TYPE, Boolean.FALSE);
- return dataModel;
- }
-
- private IDataModel createAddServletModel(String className) {
- IDataModel dataModel = DataModelFactory.createDataModel(new NewServletClassDataModelProvider());
- dataModel.setStringProperty(INewServletClassDataModelProperties.CLASS_NAME, className);
- dataModel.setStringProperty(INewServletClassDataModelProperties.PROJECT_NAME, facetedProject.getProject()
- .getName());
- dataModel.setBooleanProperty(INewServletClassDataModelProperties.IS_SERVLET_TYPE, Boolean.TRUE);
- dataModel.setStringProperty(INewServletClassDataModelProperties.JAVA_PACKAGE, "org.eclipse");
- return dataModel;
- }
-
- private void executeAndWait(IDataModelOperation dataModelOperation) throws InterruptedException, ExecutionException {
- SynchronousModelChangedListener listener = new SynchronousModelChangedListener(1);
- fixture.addListener(listener);
- dataModelOperation.execute(null, null);
- listener.waitForEvents();
- fixture.removeListener(listener);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/Web3AnnotationReaderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/Web3AnnotationReaderTest.java
deleted file mode 100644
index 7d276433..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/Web3AnnotationReaderTest.java
+++ /dev/null
@@ -1,403 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.web.tests;
-
-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.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.common.project.facet.JavaFacetUtils;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.core.SecurityRoleRef;
-import org.eclipse.jst.javaee.web.Servlet;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.WebFactory;
-import org.eclipse.jst.jee.model.internal.WebAnnotationReader;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class Web3AnnotationReaderTest extends AbstractAnnotationModelTest {
-
- private static final String TEST_URL_VALUE = "/testUrl";
- private static final String SERVLET_WITH_URL = "ServletWithUrl";
- private static final String SERVLET_NO_ARGUMENTS = "ServletNoArguments";
- private static final String SERVLET_ANNOTATED_NAME = "ServletNameChange";
-
- private static String BEAN_WITH_NAME = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless(name=\"%s\") public class BeanWithName implements SessionBeanLocal {}";
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(Web3AnnotationReaderTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(Web3AnnotationReaderTest.class.getSimpleName());
- if (!project.exists())
- {
- IFacetedProject facetedProject = AbstractTest.createWebProject(Web3AnnotationReaderTest.class.getSimpleName(), IJ2EEFacetConstants.DYNAMIC_WEB_30, JavaFacetUtils.JAVA_60);
- createProjectContent(facetedProject.getProject());
- }
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(Web3AnnotationReaderTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("src/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createServlet3(fragment, SERVLET_NO_ARGUMENTS, null, null);
- createServlet3(fragment, SERVLET_ANNOTATED_NAME, "test", null);
- createServlet3(fragment, SERVLET_WITH_URL, null, TEST_URL_VALUE);
- createServletWithSecurity(fragment);
- }
-
- private static void createServletWithSecurity(IPackageFragment fragment) throws Exception {
- final String servletContent = "package com.sap;"
- + "import javax.servlet.http.HttpServlet;"
- + "@DeclareRoles(value = {\"role1\", \"role2\"}) public class ServletWithSecurity extends HttpServlet {}";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("ServletWithSecurity.java"));
- AbstractTest.saveFile(file, servletContent);
- }
-
- private static void createServlet3(IPackageFragment fragment, String className, String name, String urlPattern) throws Exception {
- String params = "";
- if (name != null){
- params="name=\""+name+"\"";
- }
- if (urlPattern != null){
- if (params.length() > 0){
- params+=", ";
- }
- params+="urlPatterns=\""+urlPattern+"\"";
- }
- if(params.length() > 0){
- params="(" + params+ ")";
- }
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;" + "@WebServlet"+params+" public class "+className+" extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path(className+".java"));
- AbstractTest.saveFile(file, content);
- }
-
- private WebApp ddApp;
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- ddApp = WebFactory.eINSTANCE.createWebApp();
- addServlet(ddApp, SERVLET_NO_ARGUMENTS, "com.sap.Servlet1");
- fixture = new WebAnnotationReader(facetedProject, ddApp);
- }
-
- // @After
- @Override
- protected void tearDown() throws Exception {
- ((WebAnnotationReader) fixture).dispose();
- }
-
- // @Tets
- public void testAddDeleteEjbRef() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;" + "@WebServlet public class testAddDeleteEjbRef extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testAddDeleteEjbRef.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getEjbLocalRefs().size()));
- }
-
- /**
- * The servlet is not described in the web.xml. It is not in the deployment
- * descriptor model.
- *
- * @throws Exception
- */
- // @Tets
- public void testNotAServletAddDeleteEjbRef() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "public class testNotAServletAddDeleteEjbRef {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testNotAServletAddDeleteEjbRef.java");
- AbstractTest.saveFile(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getEjbLocalRefs().size()));
-
- AbstractTest.deleteFile(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getEjbLocalRefs().size()));
- }
-
- // @Tets
- public void testAddDeleteResourceRef() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "@WebServlet public class testAddDeleteResourceRef extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testAddDeleteResourceRef.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getResourceRefs().size()));
- deleteFileAndUpdate(file);
-
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testListener() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@WebListener public class testListener {"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testListener.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(8), new Integer(result.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(6), new Integer(result.getEjbLocalRefs().size()));
- }
-
- // @Tets
- public void testFilter() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@WebFilter public class testFilter {"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testFilter.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(8), new Integer(result.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(6), new Integer(result.getEjbLocalRefs().size()));
-
- }
-
- // @Tets
- public void testResourcesServlet() throws Exception {
- final String content = "package com.sap;"
- + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "@WebServlet public class testResourcesServlet {}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testResourcesServlet.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testResourcesFilter() throws Exception {
- final String content = "package com.sap;"
- + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "@WebFilter public class testResourcesFilter {}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testResourcesFilter.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testResourcesOnListener() throws Exception {
- final String content = "package com.sap;"
- + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "@WebListener public class testResourcesOnListener {}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testResourcesOnListener.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testDeclareRoles() throws Exception {
- final String beanContent = "package com.sap;"
- + "@DeclareRoles(value = {\"testDeclareRoles1\", \"testDeclareRoles1\"}) "
- + "@WebServlet public class testDeclareRoles extends HttpServlet {}";
- IFile servletFile = facetedProject.getProject().getFile("src/com/sap/testDeclareRoles.java");
- saveFileAndUpdate(servletFile, beanContent);
-
- WebApp app = (WebApp) fixture.getModelObject();
- Servlet result = TestUtils.findServletByName(app, "testDeclareRoles");
- assertNotNull(result);
- SecurityRole role1 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1");
- SecurityRole role2 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1");
- assertNotNull(role1);
- assertNotNull(role2);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "testDeclareRoles1");
- assertNotNull(role1Ref);
- SecurityRoleRef role2Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "testDeclareRoles1");
- assertNotNull(role2Ref);
-
- deleteFileAndUpdate(servletFile);
- app = (WebApp) fixture.getModelObject();
- assertNull(TestUtils.findServletByName(app, "testDeclareRoles"));
- assertNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1"));
- assertNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1"));
- }
-
- // @Tets
- public void testDeclareRoleOnManyServlets() throws Exception {
- final String servlet1Content = "package com.sap;"
- + "@DeclareRoles(value = {\"testDeclareRoleOnManyBeansRole\"}) "
- + "@WebServlet public class testDeclareRoleOnManyServlets1 implements SessionBeanLocal {}";
- final String servlet2Content = "package com.sap;"
- + "@DeclareRoles(value = {\"testDeclareRoleOnManyBeansRole\"}) "
- + "@WebServlet public class testDeclareRoleOnManyServlets2 implements SessionBeanLocal {}";
- IFile bean1File = facetedProject.getProject().getFile("src/com/sap/testDeclareRoleOnManyServlets1.java");
- IFile bean2File = facetedProject.getProject().getFile("src/com/sap/testDeclareRoleOnManyServlets2.java");
- saveFileAndUpdate(bean1File, servlet1Content);
- saveFileAndUpdate(bean2File, servlet2Content);
- WebApp app = (WebApp) fixture.getModelObject();
- Servlet result = TestUtils.findServletByName(app, "testDeclareRoleOnManyServlets1");
- SecurityRole role1 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoleOnManyBeansRole");
- assertNotNull(role1);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(),
- "testDeclareRoleOnManyBeansRole");
- assertNotNull(role1Ref);
-
- deleteFileAndUpdate(bean1File);
- assertNotNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoleOnManyBeansRole"));
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoleOnManyBeansRole"));
- }
-
- // @Tets
- public void testRunAs() throws Exception {
- final String servletContent = "package com.sap;"
- + "@DeclareRoles(value = {\"testRunAsRole\"}) @RunAs(value = \"testRunAsRole\") "
- + "@WebServlet public class testRunAs{}";
-
- IFile servletFile = facetedProject.getProject().getFile("src/com/sap/testRunAs.java");
- saveFileAndUpdate(servletFile, servletContent);
- WebApp app = (WebApp) fixture.getModelObject();
- Servlet result = TestUtils.findServletByName(app, "testRunAs");
- SecurityRole role1 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testRunAsRole");
- assertNotNull(role1);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "testRunAsRole");
- assertNotNull(role1Ref);
- RunAs runAs = (RunAs) result.getRunAs();
- assertNotNull(runAs);
- assertEquals("testRunAsRole", runAs.getRoleName());
-
- deleteFileAndUpdate(servletFile);
- assertNull(TestUtils.findSecurityRole(((WebApp) fixture.getModelObject()).getSecurityRoles(), "testRunAsRole"));
- }
-
- // @Tets
- public void testAddEjbRefToServlet() throws Exception {
- final String content1 = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "@WebServlet public class testAddEjbRefToServlet extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;}";
- final String content2 = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "@WebServlet public class testAddEjbRefToServlet extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testAddEjbRefToServlet.java");
- saveFileAndUpdate(file, content1);
- WebApp app = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(app.getEjbLocalRefs().size()));
-
- saveFileAndUpdate(file, content2);
- app = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(8), new Integer(app.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- app = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(6), new Integer(app.getEjbLocalRefs().size()));
- }
-
- private static void addServlet(WebApp app, String servletName, String servletClass) {
- Servlet servlet = WebFactory.eINSTANCE.createServlet();
- servlet.setServletName(servletName);
- servlet.setServletClass(servletClass);
- app.getServlets().add(servlet);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/WebAnnotationReaderTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/WebAnnotationReaderTest.java
deleted file mode 100644
index 63738b0a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/jee/model/web/tests/WebAnnotationReaderTest.java
+++ /dev/null
@@ -1,440 +0,0 @@
-/***********************************************************************
- * Copyright (c) 2008 by SAP AG, Walldorf.
- * 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:
- * SAP AG - initial API and implementation
- ***********************************************************************/
-package org.eclipse.jst.jee.model.web.tests;
-
-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.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jst.javaee.core.JavaeeFactory;
-import org.eclipse.jst.javaee.core.Listener;
-import org.eclipse.jst.javaee.core.RunAs;
-import org.eclipse.jst.javaee.core.SecurityRole;
-import org.eclipse.jst.javaee.core.SecurityRoleRef;
-import org.eclipse.jst.javaee.web.Filter;
-import org.eclipse.jst.javaee.web.Servlet;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.jst.javaee.web.WebFactory;
-import org.eclipse.jst.jee.model.internal.WebAnnotationReader;
-import org.eclipse.jst.jee.model.tests.AbstractAnnotationModelTest;
-import org.eclipse.jst.jee.model.tests.AbstractTest;
-import org.eclipse.jst.jee.model.tests.TestUtils;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-
-/**
- * @author Kiril Mitov k.mitov@sap.com
- *
- */
-public class WebAnnotationReaderTest extends AbstractAnnotationModelTest {
-
- private static String BEAN_WITH_NAME = "package com.sap;" + "import javax.ejb.Stateless;"
- + "@Stateless(name=\"%s\") public class BeanWithName implements SessionBeanLocal {}";
-
- public static TestSuite suite() throws Exception {
- TestSuite suite = new TestSuite(WebAnnotationReaderTest.class);
- return suite;
- }
-
- // @BeforeClass
- public static void setUpProject() throws Exception {
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(WebAnnotationReaderTest.class.getSimpleName());
- if (!project.exists())
- {
- IFacetedProject facetedProject = AbstractTest.createWebProject(WebAnnotationReaderTest.class.getSimpleName());
- createProjectContent(facetedProject.getProject());
- }
- }
-
- // @AfterClass
- public static void tearDownAfterClass() throws InterruptedException {
- AbstractTest.deleteProject(WebAnnotationReaderTest.class.getSimpleName());
- }
-
- private static void createProjectContent(IProject project) throws Exception {
- IJavaProject javaProject = JavaCore.create(project);
- IFolder comFolder = javaProject.getProject().getFolder("src/com");
- comFolder.create(true, true, new NullProgressMonitor());
- IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(comFolder);
- IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
- createServlet(fragment);
- createServletWithSecurity(fragment);
- }
-
- private static void createServlet(IPackageFragment fragment) throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;" + "public class Servlet1 extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("Servlet1.java"));
- AbstractTest.saveFile(file, content);
- }
-
- private static void createServletWithSecurity(IPackageFragment fragment) throws Exception {
- final String servletContent = "package com.sap;"
- + "import javax.servlet.http.HttpServlet;"
- + "@DeclareRoles(value = {\"role1\", \"role2\"}) public class ServletWithSecurity extends HttpServlet {}";
- IFile file = ((IContainer) fragment.getResource()).getFile(new Path("ServletWithSecurity.java"));
- AbstractTest.saveFile(file, servletContent);
- }
-
- private WebApp ddApp;
-
- // @Before
- @Override
- protected void setUp() throws Exception {
- setUpProject();
- super.setUp();
- ddApp = WebFactory.eINSTANCE.createWebApp();
- addServlet(ddApp, "ServletWithSecurity", "com.sap.ServletWithSecurity");
- addServlet(ddApp, "Servlet1", "com.sap.Servlet1");
- fixture = new WebAnnotationReader(facetedProject, ddApp);
- }
-
- // @After
- @Override
- protected void tearDown() throws Exception {
- ((WebAnnotationReader) fixture).dispose();
- }
-
- // @Test(expected = IllegalArgumentException.class)
- public void testCerateReaderWithNullProject() {
- try {
- new WebAnnotationReader(null, ddApp);
- } catch (IllegalArgumentException e) {
-
- }
-
- }
-
- // //@Test
- public void testServletEjbRef() {
- WebApp app = (WebApp) fixture.getModelObject();
- assertNotNull(app);
- assertEquals(new Integer(2), new Integer(app.getEjbLocalRefs().size()));
- }
-
- // @Test
- public void testServletResourceRef() {
- WebApp app = (WebApp) fixture.getModelObject();
- assertNotNull(app);
- assertEquals(new Integer(2), new Integer(app.getResourceRefs().size()));
- }
-
- // @Test
- public void testSecurityRoles() {
- WebApp app = (WebApp) fixture.getModelObject();
- assertNotNull(app);
- assertEquals(new Integer(2), new Integer(app.getSecurityRoles().size()));
- }
-
- // @Tets
- public void testAddDeleteEjbRef() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;" + "public class testAddDeleteEjbRef extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};}";
- addServlet(ddApp, "testAddDeleteEjbRef", "com.sap.testAddDeleteEjbRef");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testAddDeleteEjbRef.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
- }
-
- /**
- * The servlet is not described in the web.xml. It is not in the deployment
- * descriptor model.
- *
- * @throws Exception
- */
- // @Tets
- public void testNotAServletAddDeleteEjbRef() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "public class testNotAServletAddDeleteEjbRef extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};}";
- IFile file = facetedProject.getProject().getFile("src/com/sap/testNotAServletAddDeleteEjbRef.java");
- AbstractTest.saveFile(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
-
- AbstractTest.deleteFile(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
- }
-
- // @Tets
- public void testAddDeleteResourceRef() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "public class testAddDeleteResourceRef extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- addServlet(ddApp, "testAddDeleteResourceRef", "com.sap.testAddDeleteResourceRef");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testAddDeleteResourceRef.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getResourceRefs().size()));
- deleteFileAndUpdate(file);
-
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testListener() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "public class testListener {"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- addListener(ddApp, "com.sap.testListener");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testListener.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(4), new Integer(result.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
- }
-
- // @Tets
- public void testFilter() throws Exception {
- final String content = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "public class testFilter {"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};"
- + "@Resource private Comparable comp2; @Resource public void setComparable2(Comparable comp){} }";
- addFilter(ddApp, "com.sap.testFilter");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testFilter.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(4), new Integer(result.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
- assertEquals(new Integer(2), new Integer(result.getEjbLocalRefs().size()));
-
- }
-
- // @Tets
- public void testResourcesServlet() throws Exception {
- final String content = "package com.sap;"
- + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "public class testResourcesServlet {}";
- addServlet(ddApp, "testResourcesServlet", "com.sap.testResourcesServlet");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testResourcesServlet.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testResourcesFilter() throws Exception {
- final String content = "package com.sap;"
- + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "public class testResourcesFilter {}";
- addFilter(ddApp, "com.sap.testResourcesFilter");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testResourcesFilter.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testResourcesOnListener() throws Exception {
- final String content = "package com.sap;"
- + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "@Resources(value = {"
- + "@Resource(name = \"withNotDefaults\", mappedName = \"mappedName\", "
- + " shareable = false, type = java.lang.Comparable.class, "
- + " authenticationType = AuthenticationType.APPLICATION, description = \"description\"),"
- + "@Resource(name = \"withDefaults\", type = java.lang.Comparable.class), @Resource(name = \"invalidNoType\") })"
- + "public class testResourcesOnListener {}";
- addServlet(ddApp, "testResourcesOnListener", "com.sap.testResourcesOnListener");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testResourcesOnListener.java");
- saveFileAndUpdate(file, content);
-
- WebApp result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(result.getResourceRefs().size()));
-
- deleteFileAndUpdate(file);
- result = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(result.getResourceRefs().size()));
- }
-
- // @Tets
- public void testDeclareRoles() throws Exception {
- final String beanContent = "package com.sap;"
- + "@DeclareRoles(value = {\"testDeclareRoles1\", \"testDeclareRoles1\"}) "
- + "public class testDeclareRoles extends HttpServlet {}";
- addServlet(ddApp, "testDeclareRoles", "com.sap.testDeclareRoles");
- IFile servletFile = facetedProject.getProject().getFile("src/com/sap/testDeclareRoles.java");
- saveFileAndUpdate(servletFile, beanContent);
-
- WebApp app = (WebApp) fixture.getModelObject();
- Servlet result = TestUtils.findServletByName(app, "testDeclareRoles");
- assertNotNull(result);
- SecurityRole role1 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1");
- SecurityRole role2 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1");
- assertNotNull(role1);
- assertNotNull(role2);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "testDeclareRoles1");
- assertNotNull(role1Ref);
- SecurityRoleRef role2Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "testDeclareRoles1");
- assertNotNull(role2Ref);
-
- deleteFileAndUpdate(servletFile);
- app = (WebApp) fixture.getModelObject();
- assertNull(TestUtils.findServletByName(app, "testDeclareRoles"));
- assertNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1"));
- assertNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoles1"));
- }
-
- // @Tets
- public void testDeclareRoleOnManyServlets() throws Exception {
- final String servlet1Content = "package com.sap;"
- + "@DeclareRoles(value = {\"testDeclareRoleOnManyBeansRole\"}) "
- + "public class testDeclareRoleOnManyServlets1 implements SessionBeanLocal {}";
- final String servlet2Content = "package com.sap;"
- + "@DeclareRoles(value = {\"testDeclareRoleOnManyBeansRole\"}) "
- + "public class testDeclareRoleOnManyServlets2 implements SessionBeanLocal {}";
- addServlet(ddApp, "testDeclareRoleOnManyServlets1", "com.sap.testDeclareRoleOnManyServlets1");
- addServlet(ddApp, "testDeclareRoleOnManyServlets2", "com.sap.testDeclareRoleOnManyServlets2");
- IFile bean1File = facetedProject.getProject().getFile("src/com/sap/testDeclareRoleOnManyServlets1.java");
- IFile bean2File = facetedProject.getProject().getFile("src/com/sap/testDeclareRoleOnManyServlets2.java");
- saveFileAndUpdate(bean1File, servlet1Content);
- saveFileAndUpdate(bean2File, servlet2Content);
- WebApp app = (WebApp) fixture.getModelObject();
- Servlet result = TestUtils.findServletByName(app, "testDeclareRoleOnManyServlets1");
- SecurityRole role1 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoleOnManyBeansRole");
- assertNotNull(role1);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(),
- "testDeclareRoleOnManyBeansRole");
- assertNotNull(role1Ref);
-
- deleteFileAndUpdate(bean1File);
- assertNotNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoleOnManyBeansRole"));
- deleteFileAndUpdate(bean2File);
- assertNull(TestUtils.findSecurityRole(app.getSecurityRoles(), "testDeclareRoleOnManyBeansRole"));
- }
-
- // @Tets
- public void testRunAs() throws Exception {
- final String servletContent = "package com.sap;"
- + "@DeclareRoles(value = {\"testRunAsRole\"}) @RunAs(value = \"testRunAsRole\") "
- + "public class testRunAs{}";
- addServlet(ddApp, "testRunAs", "com.sap.testRunAs");
-
- IFile servletFile = facetedProject.getProject().getFile("src/com/sap/testRunAs.java");
- saveFileAndUpdate(servletFile, servletContent);
- WebApp app = (WebApp) fixture.getModelObject();
- Servlet result = TestUtils.findServletByName(app, "testRunAs");
- SecurityRole role1 = TestUtils.findSecurityRole(app.getSecurityRoles(), "testRunAsRole");
- assertNotNull(role1);
- SecurityRoleRef role1Ref = TestUtils.findSecurityRoleRef(result.getSecurityRoleRefs(), "testRunAsRole");
- assertNotNull(role1Ref);
- RunAs runAs = (RunAs) result.getRunAs();
- assertNotNull(runAs);
- assertEquals("testRunAsRole", runAs.getRoleName());
-
- deleteFileAndUpdate(servletFile);
- assertNull(TestUtils.findSecurityRole(((WebApp) fixture.getModelObject()).getSecurityRoles(), "testRunAsRole"));
- }
-
- // @Tets
- public void testAddEjbRefToServlet() throws Exception {
- final String content1 = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "public class testAddEjbRefToServlet extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;}";
- final String content2 = "package com.sap;" + "import javax.annotation.Resource;import javax.ejb.EJB;"
- + "import javax.servlet.http.HttpServlet;"
- + "public class testAddEjbRefToServlet extends HttpServlet {"
- + "private static final long serialVersionUID = 1L;"
- + "@EJB private Comparable comp; @EJB public void setComparable(Comparable comp){};}";
- addServlet(ddApp, "testAddEjbRefToServlet", "com.sap.testAddEjbRefToServlet");
- IFile file = facetedProject.getProject().getFile("src/com/sap/testAddEjbRefToServlet.java");
- saveFileAndUpdate(file, content1);
- WebApp app = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(app.getEjbLocalRefs().size()));
-
- saveFileAndUpdate(file, content2);
- app = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(4), new Integer(app.getEjbLocalRefs().size()));
-
- deleteFileAndUpdate(file);
- app = (WebApp) fixture.getModelObject();
- assertEquals(new Integer(2), new Integer(app.getEjbLocalRefs().size()));
- }
-
- private static void addListener(WebApp app, String listenerClass) {
- Listener listener = JavaeeFactory.eINSTANCE.createListener();
- listener.setListenerClass(listenerClass);
- app.getListeners().add(listener);
- }
-
- private static void addServlet(WebApp app, String servletName, String servletClass) {
- Servlet servlet = WebFactory.eINSTANCE.createServlet();
- servlet.setServletName(servletName);
- servlet.setServletClass(servletClass);
- app.getServlets().add(servlet);
- }
-
- private static void addFilter(WebApp app, String filterClass) {
- Filter filter = WebFactory.eINSTANCE.createFilter();
- filter.setFilterClass(filterClass);
- app.getFilters().add(filter);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AllTests.java
deleted file mode 100644
index 7a288b09..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AllTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.appclient.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AllTests extends TestSuite {
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("Application Client Operation Tests");
- addTest(AppClientExportOperationTest.suite());
- addTest(AppClientImportOperationTest.suite());
- addTest(AppClientProjectCreationOperationTest.suite());
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientExportOperationTest.java
deleted file mode 100644
index 23049ed4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientExportOperationTest.java
+++ /dev/null
@@ -1,324 +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
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.appclient.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.application.internal.operations.AppClientComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaFileTestingUtilities;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTest;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class AppClientExportOperationTest extends ModuleExportOperationTest {
-
-
- public AppClientExportOperationTest() {
- super("AppClientExportOperationTests");
- }
-
- public AppClientExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(AppClientExportOperationTest.class);
- }
-
- public void testACExport12_Defaults() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("randomApp", null, JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport13_Defaults() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("coolApp", null, JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport14_Defaults() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("awesomeApp", null, JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_Defaults() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("amazingApp", null, JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_Defaults() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("jazzyApp", null, JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport12_NoDefaultClass() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("randomApp", null, JavaEEFacetConstants.APP_CLIENT_12, false, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport13_NoDefaultClass() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("coolApp", null, JavaEEFacetConstants.APP_CLIENT_13, false, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport14_NoDefaultClass() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("awesomeApp", null, JavaEEFacetConstants.APP_CLIENT_14, false, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_NoDefaultClass() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("amazingApp", null, JavaEEFacetConstants.APP_CLIENT_5, false, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_NoDefaultClass() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("jazzyApp", null, JavaEEFacetConstants.APP_CLIENT_6, false, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testACExport12_AddToEAR() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("fooAppToEar", "someEar", JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport13_AddToEAR() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("fooAppToEar", "coolEar", JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport14_AddToEAR() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("fooAppToEar", "sweetEar", JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_AddToEAR() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("fooAppToEar", "netoEar", JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_AddToEAR() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("fooAppToEar", "jelloEar", JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport12_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("kd3(2k_djfD3", null, JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport13_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("a_dD3dj8)f7", null, JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport14_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("_Jid7dh)3a", null, JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("a_1B2c()3D4", null, JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("EE6_a_1B2c()3D4", null, JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport12_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("kd(32k_djfD)3", "hFdf(8G_Fij))3", JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport13_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("adD__3dj8)df7", "(53_hdj(f8HD", JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport14_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("J_id7((dh3a_", "d_3Dk)j(f8", JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("a1B_2c)3D4", "4D_3c2)B1a", JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("EE6_a1B_2c)3D4", "EE6_4D_3c2)B1a", JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("insaneApp", null, JavaEEFacetConstants.APP_CLIENT_5, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("insaneApp6", null, JavaEEFacetConstants.APP_CLIENT_6, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_NoDefaultClass_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("insaneApp", null, JavaEEFacetConstants.APP_CLIENT_5, false, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_NoDefaultClass_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("insaneApp6", null, JavaEEFacetConstants.APP_CLIENT_6, false, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_AddToEAR_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("appToEARwithDD", "bigEAR", JavaEEFacetConstants.APP_CLIENT_5, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_AddToEAR_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("appToEARwithDD6", "bigEAR6", JavaEEFacetConstants.APP_CLIENT_6, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport50_AddToEAR_InterestingName_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("D875)_DFj", "7D_3cF2)BaQ", JavaEEFacetConstants.APP_CLIENT_5, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testACExport60_AddToEAR_InterestingName_WithDD() throws Exception {
- IDataModel dm = AppClientProjectCreationOperationTest.getAppClientCreationDataModel("EE6_D875)_DFj", "EE6_7D_3cF2)BaQ", JavaEEFacetConstants.APP_CLIENT_6, true, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".jar";
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return getAppClientExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
- /**
- * @param projectName name of the project to export
- * @param destination destination to export to
- * @param exportSource if TRUE export source files, else don't
- * @param runBuild if TRUE run a build before exporting, else don't
- * @param overwriteExisting if TRUE overwrite existing files, else don't
- * @return an AppClientComponentExport data model with all of the given settings.
- */
- public static IDataModel getAppClientExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting){
- IDataModel exportModel = DataModelFactory.createDataModel(new AppClientComponentExportDataModelProvider());
-
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME, projectName);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION, destination);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.EXPORT_SOURCE_FILES, exportSource);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.OVERWRITE_EXISTING, overwriteExisting);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.RUN_BUILD, runBuild);
-
- return exportModel;
- }
-
- @Override
- protected void addJavaFilesToProject(String projectName, String[] classNames, String prackageName) throws Exception {
- JavaFileTestingUtilities.addJavaFilesToAppClient(projectName, classNames, prackageName);
- }
-
- @Override
- protected void verifyJavaFilesExported(String archiveName, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- JavaFileTestingUtilities.verifyJavaFilesInJAR(archiveName, classNames, packageName, withClassFiles, withSource);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientImportOperationBaseTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientImportOperationBaseTest.java
deleted file mode 100644
index e960b22c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientImportOperationBaseTest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.j2ee.headless.tests.appclient.operations;
-
-import org.eclipse.jst.j2ee.applicationclient.internal.creation.AppClientComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-
-public abstract class AppClientImportOperationBaseTest extends ModuleImportOperationTest{
-
-
-
- public AppClientImportOperationBaseTest() {
- super("AppClientImportOperationBaseTests");
- }
-
- public AppClientImportOperationBaseTest(String name) {
- super(name);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".jar";
- }
-
- @Override
- protected IDataModel getImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- return getAppClientImportDataModel(filePath, projectName, creationModel, closeArchiveOnDispose);
- }
-
- public static IDataModel getAppClientImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- IDataModel importModel = DataModelFactory.createDataModel(new AppClientComponentImportDataModelProvider());
-
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filePath);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.CLOSE_ARCHIVE_ON_DISPOSE, closeArchiveOnDispose);
-
- if(creationModel != null) {
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.NESTED_MODEL_J2EE_COMPONENT_CREATION, creationModel);
- }
-
- return importModel;
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return AppClientExportOperationTest.getAppClientExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientImportOperationTest.java
deleted file mode 100644
index 23c0e595..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientImportOperationTest.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.appclient.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class AppClientImportOperationTest extends AppClientImportOperationBaseTest {
-
- public AppClientImportOperationTest() {
- super("AppClientImportOperationTests");
- }
-
- public AppClientImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(AppClientImportOperationTest.class);
- }
-
- public void testACImport12_Defaults() throws Exception{
- runImportTests_All("AC12_Defaults");
- }
-
- public void testACImport13_Defaults() throws Exception {
- runImportTests_All("AC13_Defaults");
- }
-
- public void testACImport14_Defaults() throws Exception {
- runImportTests_All("AC14_Defaults");
- }
-
- public void testACImport12_NoDefaultClass() throws Exception{
- runImportTests_All("AC12_NoDefaultClass");
- }
-
- public void testACImport13_NoDefaultClass() throws Exception {
- runImportTests_All("AC13_NoDefaultClass");
- }
-
- public void testACImport14_NoDefaultClass() throws Exception {
- runImportTests_All("AC14_NoDefaultClass");
- }
-
- public void testACImport12_AddToEAR() throws Exception {
- runImportTests_All("AC12_AddToEAR");
- }
-
- public void testACImport13_AddToEAR() throws Exception {
- runImportTests_All("AC13_AddToEAR");
- }
-
- public void testACImport14_AddToEAR() throws Exception {
- runImportTests_All("AC14_AddToEAR");
- }
-
- public void testACImport12_InterestingName() throws Exception{
- runImportTests_All("AC12_InterestingName");
- }
-
- public void testACImport13_InterestingName() throws Exception{
- runImportTests_All("AC13_InterestingName");
- }
-
- public void testACImport14_InterestingName() throws Exception{
- runImportTests_All("AC14_InterestingName");
- }
-
- public void testACImport12_AddToEAR_InterestingName() throws Exception{
- runImportTests_All("AC12_AddToEAR_InterestingName");
- }
-
- public void testACImport13_AddToEAR_InterestingName() throws Exception{
- runImportTests_All("AC13_AddToEAR_InterestingName");
- }
-
- public void testACImport14_AddToEAR_InterestingName() throws Exception{
- runImportTests_All("AC14_AddToEAR_InterestingName");
- }
-
- public void testACImport50_WithDD() throws Exception {
- runImportTests_All("AC50_WithDD");
- }
-
- public void testACImport50_NoDefaultClass_WithDD() throws Exception {
- runImportTests_All("AC50_NoDefaultClass_WithDD");
- }
-
- public void testACImport50_AddToEAR_WithDD() throws Exception {
- runImportTests_All("AC50_AddToEAR_WithDD");
- }
-
- public void testACImport50_AddToEAR_InterestingName_WithDD() throws Exception {
- runImportTests_All("AC50_AddToEAR_InterestingName_WithDD");
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientProjectCreationOperationTest.java
deleted file mode 100644
index 2fc842d4..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/appclient/operations/AppClientProjectCreationOperationTest.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Nov 6, 2003
- *
- * To change the template for this generated file go to
- * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.appclient.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.applicationclient.internal.creation.AppClientFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IAppClientFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-/**
- * @author jsholl
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- */
-public class AppClientProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
- public AppClientProjectCreationOperationTest() {
- super("AppClientProjectCreationOperationTests");
- }
-
- public AppClientProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(AppClientProjectCreationOperationTest.class);
- }
-
- public void testAC12_Defaults() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("randomApp", null, JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC13_Defaults() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("coolApp", null, JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC14_Defaults() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("awesomeApp", null, JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_Defaults() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("amazingApp", null, JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_Defaults() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("greatApp", null, JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testAC12_NoDefaultClass() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("randomApp", null, JavaEEFacetConstants.APP_CLIENT_12, false, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC13_NoDefaultClass() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("coolApp", null, JavaEEFacetConstants.APP_CLIENT_13, false, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC14_NoDefaultClass() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("awesomeApp", null, JavaEEFacetConstants.APP_CLIENT_14, false, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_NoDefaultClass() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("amazingApp", null, JavaEEFacetConstants.APP_CLIENT_5, false, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_NoDefaultClass() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("greatApp", null, JavaEEFacetConstants.APP_CLIENT_6, false, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testAC12_AddToEAR() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("fooAppToEar", "someEar", JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC13_AddToEAR() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("fooAppToEar", "coolEar", JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC14_AddToEAR() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("fooAppToEar", "sweetEar", JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_AddToEAR() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("fooAppToEar", "netoEar", JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_AddToEAR() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("fooAppToEar", "niceEar", JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testAC12_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("kd3(2k_djfD3", null, JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC13_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("a_dD3dj8)f7", null, JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC14_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("_Jid7dh)3a", null, JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("a_1B2c()3D4", null, JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("ASDbt_23()Gfr2", null, JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testAC12_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("kd(32k_djfD)3", "hFdf(8G_Fij))3", JavaEEFacetConstants.APP_CLIENT_12, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC13_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("adD__3dj8)df7", "(53_hdj(f8HD", JavaEEFacetConstants.APP_CLIENT_13, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC14_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("J_id7((dh3a_", "d_3Dk)j(f8", JavaEEFacetConstants.APP_CLIENT_14, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("a1B_2c)3D4", "4D_3c2)B1a", JavaEEFacetConstants.APP_CLIENT_5, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_AddToEAR_InterestingName() throws Exception{
- IDataModel dm = getAppClientCreationDataModel("ASDbt_23()Gfr2", "23Sgsd)(_fg4", JavaEEFacetConstants.APP_CLIENT_6, true, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("insaneApp", null, JavaEEFacetConstants.APP_CLIENT_5, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_NoDefaultClass_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("insaneApp", null, JavaEEFacetConstants.APP_CLIENT_5, false, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_AddToEAR_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("appToEARwithDD", "bigEAR", JavaEEFacetConstants.APP_CLIENT_5, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC50_AddToEAR_InterestingName_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("D875)_DFj", "7D_3cF2)BaQ", JavaEEFacetConstants.APP_CLIENT_5, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("freshApp", null, JavaEEFacetConstants.APP_CLIENT_6, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_NoDefaultClass_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("freshApp", null, JavaEEFacetConstants.APP_CLIENT_6, false, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_AddToEAR_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("tryAddToEARWithDD", "tryEAR", JavaEEFacetConstants.APP_CLIENT_6, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testAC60_AddToEAR_InterestingName_WithDD() throws Exception {
- IDataModel dm = getAppClientCreationDataModel("4vG_s(70)", "RAS_b46j)(a)1", JavaEEFacetConstants.APP_CLIENT_6, true, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- /**
- * Creates and returns an Application Client Data Model with the given name and of the given version.
- * If earName is not null then AppClient will be added to the EAR with earName, and if appropriate
- * with or without a deployment descriptor.
- *
- * @param projName name of the project to create
- * @param earName name of the ear to add the project too, if NULL then don't add to an EAR
- * @param version version of Application Client to use
- * @param createDefaultMainClass if true then create default main class, else don't
- * @param createDD only used if version is JEE5, if true then create DD else don't
- * @return an Application Data Model with the appropriate properties set
- */
- public static IDataModel getAppClientCreationDataModel(String projName, String earName, IProjectFacetVersion version, boolean createDefaultMainClass, boolean createDD){
- IDataModel dm = DataModelFactory.createDataModel(new AppClientFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- if(earName != null) {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earName);
- } else {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, false);
- }
-
- FacetDataModelMap facetMap = (FacetDataModelMap) dm.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.APPLICATION_CLIENT);
- facetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, version);
- facetModel.setProperty(IAppClientFacetInstallDataModelProperties.CREATE_DEFAULT_MAIN_CLASS, createDefaultMainClass);
-
-
- facetModel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, createDD);
-
- if(version.equals(JavaEEFacetConstants.APP_CLIENT_6))
- {
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_6);
- }
- else{
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_5);
- }
-
- return dm;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/AllTests.java
deleted file mode 100644
index 53540e1f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/AllTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ear.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AllTests extends TestSuite {
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("EAR Operation Tests");
- addTest(EARExportOperationTest.suite());
- addTest(EARImportOperationTest.suite());
- addTest(EARProjectCreationOperationTest.suite());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARExportOperationTest.java
deleted file mode 100644
index 4fd9615e..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARExportOperationTest.java
+++ /dev/null
@@ -1,293 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code Generation - Code and
- * Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ear.operations;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.Test;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.AssertWarn;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ArchiveTestsUtil;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JEEExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaFileTestingUtilities;
-import org.eclipse.wtp.j2ee.headless.tests.jca.operations.JCAExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebExportOperationTest;
-
-/**
- * @author Changeme
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code
- * and Comments
- */
-public class EARExportOperationTest extends JEEExportOperationTest {
- private static final String JAR_EXTENSION = "jar";
- private static final String RAR_EXTENSION = "rar";
- private static final String WAR_EXTENSION = "war";
-
- public EARExportOperationTest() {
- super("EARExportOperationTests");
- }
-
- public EARExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EARExportOperationTest.class);
- }
-
- public void testEARExport12_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("zEAR", null, EARProjectCreationOperationTest.getJ2EEDependencyList_12(), EARProjectCreationOperationTest.getJavaDependencyList_12(), JavaEEFacetConstants.EAR_12, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport13_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("yEAR", null, EARProjectCreationOperationTest.getJ2EEDependencyList_13(), EARProjectCreationOperationTest.getJavaDependencyList_13(), JavaEEFacetConstants.EAR_13, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport14_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("xEAR", null, EARProjectCreationOperationTest.getJ2EEDependencyList_14(), EARProjectCreationOperationTest.getJavaDependencyList_14(), JavaEEFacetConstants.EAR_14, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport50_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("wEAR", null, EARProjectCreationOperationTest.getJ2EEDependencyList_5(), EARProjectCreationOperationTest.getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testEARExport12_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("zEAR", "myContent", EARProjectCreationOperationTest.getJ2EEDependencyList_12(), EARProjectCreationOperationTest.getJavaDependencyList_12(), JavaEEFacetConstants.EAR_12, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport13_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("yEAR", "ourContent", EARProjectCreationOperationTest.getJ2EEDependencyList_13(), EARProjectCreationOperationTest.getJavaDependencyList_13(), JavaEEFacetConstants.EAR_13, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport14_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("xEAR", "theirContent", EARProjectCreationOperationTest.getJ2EEDependencyList_14(), EARProjectCreationOperationTest.getJavaDependencyList_14(), JavaEEFacetConstants.EAR_14, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport50_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("wEAR", "yourContent", EARProjectCreationOperationTest.getJ2EEDependencyList_5(), EARProjectCreationOperationTest.getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
-
- public void testEARExport50_WithDependencies_WithDD() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("anEAR", null, EARProjectCreationOperationTest.getJ2EEDependencyList_5(), EARProjectCreationOperationTest.getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEARExport50_ChangedContentDir_WithDependencies_WithDD() throws Exception{
- IDataModel dm = EARProjectCreationOperationTest.getEARDataModel("theirEAR", "gotContent", EARProjectCreationOperationTest.getJ2EEDependencyList_5(), EARProjectCreationOperationTest.getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- @Override
- protected String getModuleExtension() {
- return ".ear";
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return getEARExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
- /**
- * @param projectName name of the project to export
- * @param destination destination to export to
- * @param exportSource if TRUE export source files, else don't
- * @param runBuild if TRUE run a build before exporting, else don't
- * @param overwriteExisting if TRUE overwrite existing files, else don't
- * @return an EARComponentExport data model with all of the given settings.
- */
- public static IDataModel getEARExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting){
- IDataModel exportModel = DataModelFactory.createDataModel(new EARComponentExportDataModelProvider());
-
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME, projectName);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION, destination);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.EXPORT_SOURCE_FILES, exportSource);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.OVERWRITE_EXISTING, overwriteExisting);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.RUN_BUILD, runBuild);
-
- return exportModel;
- }
-
- @Override
- protected void runExportTests_All(IDataModel creationModel) throws Exception {
- String projectName = creationModel.getStringProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME);
- String archiveName = null;
- String archivePath = null;
-
- IProject earProject = JavaEEProjectUtilities.getProject(projectName);
- JavaFileTestingUtilities.addJavaFilesToAllProjectsInEAR(earProject);
-
- archiveName = runAndVerifyExport_Defaults(projectName);
- archivePath = getDataPath(archiveName);
- JavaFileTestingUtilities.verifyAllJavaFilesExportedToProjectsInEAR(archivePath, true, false);
- deleteExported(archivePath);
-
- archiveName = runAndVerifyExport_WithSource(projectName);
- archivePath = getDataPath(archiveName);
- JavaFileTestingUtilities.verifyAllJavaFilesExportedToProjectsInEAR(archivePath, true, true);
- deleteExported(archivePath);
-
- archiveName = runAndVerifyExport_DontRunBuild(projectName);
- archivePath = getDataPath(archiveName);
- deleteExported(archivePath);
-
- archiveName = runAndVerifyExport_WithSource_DontRunBuild(projectName);
- archivePath = getDataPath(archiveName);
- JavaFileTestingUtilities.verifyAllJavaFilesExportedToProjectsInEAR(archivePath, false, true);
- deleteExported(archivePath);
-
-
- runTest_AttemptToOverwriteButCant(projectName);
- runTest_AttemptToOverwriteSholdSucceed(projectName);
-
- runAndVerify_CompareProjectsExportedAloneAndExportedInEAR(projectName);
-
- JavaFileTestingUtilities.clearJavaFilesForEAR();
- }
-
- /**
- * verifies that the archives exported within the EAR are the same as if the projects were exported separately
- */
- private void runAndVerify_CompareProjectsExportedAloneAndExportedInEAR(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_ExportedNestedArchivesTest" + getModuleExtension();
- String destination = getDataPath(archiveName);
-
- IArchive earArchive = null;
- try {
- IDataModel exportModel = getExportDataModel(projectName, destination, true, true, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(exportModel);
-
- earArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(destination));
- List<IArchiveResource> resources = earArchive.getArchiveResources();
- String extension = null;
- for(IArchiveResource resource : resources) {
- extension = resource.getPath().getFileExtension();
-
- if(extension != null && (extension.equals(JAR_EXTENSION) || extension.equals(RAR_EXTENSION) || extension.equals(WAR_EXTENSION))) {
- earArchive.getNestedArchive(resource);
- }
- }
-
- IProject earProject = JavaEEProjectUtilities.getProject(projectName);
- IProject[] referencedProjects = earProject.getReferencedProjects();
- String referencedProjectType = null;
- String referencedArchiveProjectName = null;
- String referencedArchiveDestination = null;
- IDataModel referencedArchiveExportModel = null;
- Map<String, IPath> referencedProjectsArchiveMap = new HashMap<String, IPath>();
- for(IProject referencedProject : referencedProjects) {
- referencedProjectType = JavaEEProjectUtilities.getJ2EEProjectType(referencedProject);
-
- referencedArchiveProjectName = referencedProject.getName();
- referencedArchiveDestination = getDataPath(referencedArchiveProjectName);
-
- if(referencedProjectType.equals(IJ2EEFacetConstants.APPLICATION_CLIENT)) {
- referencedArchiveDestination += "." + JAR_EXTENSION;
- referencedArchiveExportModel = AppClientExportOperationTest.getAppClientExportDataModel(referencedArchiveProjectName, referencedArchiveDestination, true, true, true);
- } else if(referencedProjectType.equals(IJ2EEFacetConstants.DYNAMIC_WEB)) {
- referencedArchiveDestination += "." + WAR_EXTENSION;
- referencedArchiveExportModel = WebExportOperationTest.getWebExportDataModel(referencedArchiveProjectName, referencedArchiveDestination, true, true, true, false);
- } else if(referencedProjectType.equals(IJ2EEFacetConstants.EJB)) {
- referencedArchiveDestination += "." + JAR_EXTENSION;
- referencedArchiveExportModel = EJBExportOperationTest.getEJBExportDataModel(referencedArchiveProjectName, referencedArchiveDestination, true, true, true);
- } else if(referencedProjectType.equals(IJ2EEFacetConstants.JCA)) {
- referencedArchiveDestination += "." + RAR_EXTENSION;
- referencedArchiveExportModel = JCAExportOperationTest.getRARExportDataModel(referencedArchiveProjectName, referencedArchiveDestination, true, true, true);
- }
-
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(referencedArchiveExportModel);
-
- referencedProjectsArchiveMap.put(referencedArchiveProjectName, new Path(referencedArchiveDestination));
- }
-
- List<IArchive> nestedArchives = earArchive.getNestedArchives();
- String nestedArchiveName = null;
- IPath referencedProjectArchivePath = null;
- IArchive referencedProjectArchive = null;
- for(IArchive nestedArchive : nestedArchives) {
- nestedArchiveName = nestedArchive.getPath().removeFileExtension().lastSegment();
- referencedProjectArchivePath = referencedProjectsArchiveMap.get(nestedArchiveName);
-
- AssertWarn.warnNotNull("There should be an exported project archive path for this EAR's nested archive", referencedProjectArchivePath);
- if(referencedProjectArchivePath != null) {
- try {
- referencedProjectArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(referencedProjectArchivePath);
-
- ArchiveTestsUtil.compareArchives(referencedProjectArchive, nestedArchive);
- } finally {
- if(referencedProjectArchive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(referencedProjectArchive);
- }
- }
-
- }
- }
-
- } finally {
- if(earArchive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(earArchive);
- }
-
- deleteExported(archiveName);
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARImportOperationTest.java
deleted file mode 100644
index 362bd47d..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARImportOperationTest.java
+++ /dev/null
@@ -1,379 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.ear.operations;
-
-import java.util.Collections;
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.datamodel.properties.IEARComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.archive.ArchiveWrapper;
-import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JEEImportOperationTest;
-
-/**
- * @author itewk
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code
- * and Comments
- */
-public class EARImportOperationTest extends JEEImportOperationTest {
- public EARImportOperationTest() {
- super("EARImportOperationTests");
- }
-
- public EARImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EARImportOperationTest.class);
- }
-
- public void testEARImport12_WithDependencies() throws Exception{
- runImportTests_All("EAR12");
- }
-
- public void testEARImport13_WithDependencies() throws Exception{
- runImportTests_All("EAR13");
- }
-
- public void testEARImport14_WithDependencies() throws Exception{
- runImportTests_All("EAR14");
- }
-
- public void testEARImport50_WithDependencies() throws Exception{
- runImportTests_All("EAR50");
- }
-
-
- public void testEARImport12_ChangedContentDir_WithDependencies() throws Exception{
- runImportTests_All("EAR12_ChangedContentDir");
- }
-
- public void testEARImport13_ChangedContentDir_WithDependencies() throws Exception{
- runImportTests_All("EAR13_ChangedContentDir");
- }
-
- public void testEARImport14_ChangedContentDir_WithDependencies() throws Exception{
- runImportTests_All("EAR14_ChangedContentDir");
- }
-
- public void testEARImport50_ChangedContentDir_WithDependencies() throws Exception{
- runImportTests_All("EAR50_ChangedContentDir");
- }
-
-
- public void testEARImport50_EAR5NoDD_DependincesNoDDs() throws Exception {
- String archiveName = "EAR5NoDD_DependincesNoDDs" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5NoDD_DependincesNoDDs_WithUtil() throws Exception {
- String archiveName = "EAR5NoDD_DependincesNoDDs_WithUtil" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5NoDD_DependincesWithDDs() throws Exception {
- String archiveName = "EAR5NoDD_DependincesWithDDs" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5NoDD_DependincesWithDDs_WithUtil() throws Exception {
- String archiveName = "EAR5NoDD_DependincesWithDDs_WithUtil" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5NoDD_DependincesNoDDsAndWithDDs() throws Exception {
- String archiveName = "EAR5NoDD_DependincesNoDDsAndWithDDs" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5NoDD_DependincesNoDDsAndWithDDs_WithUtil() throws Exception {
- String archiveName = "EAR5NoDD_DependincesNoDDsAndWithDDs_WithUtil" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5WithDD_DependincesNoDDs() throws Exception {
- String archiveName = "EAR5WithDD_DependincesNoDDs" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5WithDD_DependincesNoDDs_WithUtil() throws Exception {
- String archiveName = "EAR5WithDD_DependincesNoDDs_WithUtil" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5WithDD_DependincesWithDDs() throws Exception {
- String archiveName = "EAR5WithDD_DependincesWithDDs" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5WithDD_DependincesWithDDs_WithUtil() throws Exception {
- String archiveName = "EAR5WithDD_DependincesWithDDs_WithUtil" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5WithDD_DependincesNoDDsAndWithDDs() throws Exception {
- String archiveName = "EAR5WithDD_DependincesNoDDsAndWithDDs" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void testEARImport50_EAR5WithDD_DependincesNoDDsAndWithDDs_WithUtil() throws Exception {
- String archiveName = "EAR5WithDD_DependincesNoDDsAndWithDDs_WithUtil" + getModuleExtension();
-
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAllModules(archiveName);
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- public void test288180() throws Exception {
- String archiveName = "288180.ear";
- String archivePath = getArchivePath(archiveName);
- verifyImportArchiveExists(archivePath);
- IDataModel importModel = getImportDataModel(archivePath, "288180", null, true);
- IStatus status = importModel.validate();
- assertTrue(status.isOK());
- importModel.dispose();
- OperationTestCase.deleteAllProjects();
- }
-
- @Override
- protected String getModuleExtension() {
- return ".ear";
- }
-
- @Override
- protected IDataModel getImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- return getEARImportDataModel(filePath, projectName, creationModel, closeArchiveOnDispose);
- }
-
- public static IDataModel getEARImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- IDataModel importModel = DataModelFactory.createDataModel(new EARComponentImportDataModelProvider());
-
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filePath);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.CLOSE_ARCHIVE_ON_DISPOSE, closeArchiveOnDispose);
-
- if(creationModel != null) {
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.NESTED_MODEL_J2EE_COMPONENT_CREATION, creationModel);
- }
-
- return importModel;
- }
-
- public static IDataModel setExtendedEARImportDataModelProperties(IDataModel importModel, IPath nestedModuleRoot, List utilityList, List selectedModelsList, List ejbClientList, List moduleModelsList, List utilityModelsList) {
- if(nestedModuleRoot != null) {
- importModel.setProperty(IEARComponentImportDataModelProperties.NESTED_MODULE_ROOT, nestedModuleRoot);
- }
-
- if(utilityList != null) {
- importModel.setProperty(IEARComponentImportDataModelProperties.UTILITY_LIST, utilityList);
- }
-
- if(selectedModelsList != null) {
- importModel.setProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST, selectedModelsList);
- }
-
- if(ejbClientList != null) {
- importModel.setProperty(IEARComponentImportDataModelProperties.EJB_CLIENT_LIST, ejbClientList);
- }
-
- if(moduleModelsList != null) {
- importModel.setProperty(IEARComponentImportDataModelProperties.MODULE_MODELS_LIST, moduleModelsList);
- }
-
- if(utilityModelsList != null) {
- importModel.setProperty(IEARComponentImportDataModelProperties.UTILITY_MODELS_LIST, utilityModelsList);
- }
-
- return importModel;
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return EARExportOperationTest.getEARExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
- @Override
- protected void runImportTests_All(String testName) throws Exception {
- super.runImportTests_All(testName);
-
- runAndVerifyImport_DontExplodeAllModules(testName + "_Source" + getModuleExtension());
- OperationTestCase.deleteAllProjects();
-
- runAndVerifyImport_DontExplodeAnyModules(testName + "_Source" + getModuleExtension());
- OperationTestCase.deleteAllProjects();
- }
-
- private void runAndVerifyImport_DontExplodeAllModules(String archiveName) throws Exception {
- String archivePath = getArchivePath(archiveName);
- String projectName = "exportedWithSource";
-
- verifyImportArchiveExists(archivePath);
-
- //remove some of the selected models
- IDataModel importModel = getImportDataModel(archivePath, projectName, null, true);
- List selectedModelsList = (List)importModel.getProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST);
- for(int i = 0; i<2 & i<selectedModelsList.size(); i++) {
- selectedModelsList.remove(i);
- }
-
- importModel = setExtendedEARImportDataModelProperties(importModel, null, null, selectedModelsList, null, null, null);
- runAndVerify(importModel);
-
- runAndVerifyReExportation(importModel, true, true);
- }
-
- private void runAndVerifyImport_DontExplodeAnyModules(String archiveName) throws Exception {
- String archivePath = getArchivePath(archiveName);
- String projectName = "exportedWithSource";
-
- verifyImportArchiveExists(archivePath);
-
- //remove all of the selected models
- IDataModel importModel = getImportDataModel(archivePath, projectName, null, true);
- importModel = setExtendedEARImportDataModelProperties(importModel, null, null, Collections.EMPTY_LIST, null, null, null);
- runAndVerify(importModel);
-
- runAndVerifyReExportation(importModel, true, true);
- }
-
- @Override
- protected void runAndVerifyReExportation(IDataModel importModel, boolean exportSource, boolean runBuild) throws Exception {
- removeNestedArchivesForExplodedProjects(importModel);
- super.runAndVerifyReExportation(importModel, exportSource, runBuild);
- }
-
- /**
- * this is used to be sure when re-exporting the exploded projects are used and not the nested archives.
- *
- * @param importModel
- * @throws Exception
- */
- private void removeNestedArchivesForExplodedProjects(IDataModel importModel) throws Exception {
- List<IDataModel> selectedModelsList = (List<IDataModel>)importModel.getProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST);
- String earProjectName = importModel.getStringProperty(IEARComponentImportDataModelProperties.PROJECT_NAME);
- IVirtualComponent projectVirtComponent = ComponentUtilities.getComponent(earProjectName);
- IVirtualFolder virtRootFolder = projectVirtComponent.getRootFolder();
-
- ArchiveWrapper nestedArchiveWrapper = null;
- IPath nestedArchivePath = null;
- IVirtualFile nestedArchiveVirtFile = null;
- IFile nestedArchiveFile = null;
- for(IDataModel selectedModel : selectedModelsList) {
- nestedArchiveWrapper = (ArchiveWrapper)selectedModel.getProperty(IEARComponentImportDataModelProperties.ARCHIVE_WRAPPER);
- nestedArchivePath = nestedArchiveWrapper.getPath();
- nestedArchiveVirtFile = virtRootFolder.getFile(nestedArchivePath);
- Assert.assertTrue("The EAR project should contain the selected module as an archive", nestedArchiveVirtFile.exists());
-
- nestedArchiveFile = nestedArchiveVirtFile.getUnderlyingFile();
- nestedArchiveFile.delete(true, null);
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARProjectCreationOperationTest.java
deleted file mode 100644
index 9b79bd50..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ear/operations/EARProjectCreationOperationTest.java
+++ /dev/null
@@ -1,560 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Oct 27, 2003
- *
- * To change the template for this generated file go to Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and
- * Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ear.operations;
-
-import java.io.FileInputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.Test;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jdt.core.ClasspathContainerInitializer;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.internal.core.JavaModelManager;
-import org.eclipse.jst.common.internal.modulecore.ClasspathContainerVirtualComponent;
-import org.eclipse.jst.j2ee.application.internal.operations.AddComponentToEnterpriseApplicationDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.AddReferenceToEnterpriseApplicationDataModelProvider;
-import org.eclipse.jst.j2ee.classpath.tests.util.ClasspathDependencyTestUtil;
-import org.eclipse.jst.j2ee.earcreation.IEarFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.project.facet.EARFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IAddReferenceDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.resources.VirtualArchiveComponent;
-import org.eclipse.wst.common.componentcore.internal.resources.VirtualReference;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wst.server.core.IModule;
-import org.eclipse.wst.server.core.ServerUtil;
-import org.eclipse.wst.server.core.model.IModuleFile;
-import org.eclipse.wst.server.core.model.IModuleFolder;
-import org.eclipse.wst.server.core.model.IModuleResource;
-import org.eclipse.wst.server.core.model.ModuleDelegate;
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JEEProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.jca.operations.JCAProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebProjectCreationOperationTest;
-
-
-/**
- * @author jsholl
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window&gt;Preferences&gt;Java&gt;Code
- * Generation&gt;Code and Comments
- */
-public class EARProjectCreationOperationTest extends JEEProjectCreationOperationTest {
- private static final String APP_CLIENT_PROJ_12 = "myAppClient_12";
- private static final String APP_CLIENT_PROJ_13 = "myAppClient_13";
- private static final String APP_CLIENT_PROJ_14 = "myAppClient_14";
- private static final String APP_CLIENT_PROJ_5 = "myAppClient_5";
- private static final String APP_CLIENT_PROJ_6 = "myAppClient_6";
-
- private static final String EJB_PROJ_11 = "myEJB_11";
- private static final String EJB_PROJ_2 = "myEJB_2";
- private static final String EJB_PROJ_21 = "myEJB_21";
- private static final String EJB_PROJ_3 = "myEJB_3";
- private static final String EJB_PROJ_31 = "myEJB_31";
-
- private static final String WEB_PROJ_22 = "myWeb_22";
- private static final String WEB_PROJ_23 = "myWeb_23";
- private static final String WEB_PROJ_24 = "myWeb_24";
- private static final String WEB_PROJ_25 = "myWeb_25";
- private static final String WEB_PROJ_30 = "myWeb_30";
-
- private static final String CONNECTOR_PROJ_1 = "myConnector_1";
- private static final String CONNECTOR_PROJ_15 = "myConnector_15";
-
- public EARProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EARProjectCreationOperationTest.class);
- }
-
- public void testEAR12_Defaults() throws Exception{
- IDataModel dm = getEARDataModel("aEAR", null, null, null, JavaEEFacetConstants.EAR_12, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR13_Defaults() throws Exception{
- IDataModel dm = getEARDataModel("bEAR", null, null, null, JavaEEFacetConstants.EAR_13, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR14_Defaults() throws Exception{
- IDataModel dm = getEARDataModel("cEAR", null, null, null, JavaEEFacetConstants.EAR_14, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR50_Defaults() throws Exception{
- IDataModel dm = getEARDataModel("dEAR", null, null, null, JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR60_Defaults() throws Exception{
- IDataModel dm = getEARDataModel("eeEAR", null, null, null, JavaEEFacetConstants.EAR_6, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testEAR12_ChangedContentDir() throws Exception{
- IDataModel dm = getEARDataModel("eEAR", "whosContent", null, null, JavaEEFacetConstants.EAR_12, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR13_ChangedContentDir() throws Exception{
- IDataModel dm = getEARDataModel("fEAR", "myContent", null, null, JavaEEFacetConstants.EAR_13, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR14_ChangedContentDir() throws Exception{
- IDataModel dm = getEARDataModel("gEAR", "yourContent", null, null, JavaEEFacetConstants.EAR_14, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR50_ChangedContentDir() throws Exception{
- IDataModel dm = getEARDataModel("hEAR", "ourContent", null, null, JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR60_ChangedContentDir() throws Exception{
- IDataModel dm = getEARDataModel("iEAR", "herContent", null, null, JavaEEFacetConstants.EAR_6, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testEAR12_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("zEAR", null, getJ2EEDependencyList_12(), getJavaDependencyList_12(), JavaEEFacetConstants.EAR_12, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR13_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("yEAR", null, getJ2EEDependencyList_13(), getJavaDependencyList_13(), JavaEEFacetConstants.EAR_13, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR14_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("xEAR", null, getJ2EEDependencyList_14(), getJavaDependencyList_14(), JavaEEFacetConstants.EAR_14, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR50_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("wEAR", null, getJ2EEDependencyList_5(), getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR60_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("whyEAR", null, getJ2EEDependencyList_6(), getJavaDependencyList_6(), JavaEEFacetConstants.EAR_6, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testEAR12_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("zEAR", "myContent", getJ2EEDependencyList_12(), getJavaDependencyList_12(), JavaEEFacetConstants.EAR_12, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR13_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("yEAR", "ourContent", getJ2EEDependencyList_13(), getJavaDependencyList_13(), JavaEEFacetConstants.EAR_13, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR14_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("xEAR", "theirContent", getJ2EEDependencyList_14(), getJavaDependencyList_14(), JavaEEFacetConstants.EAR_14, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR50_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("wEAR", "yourContent", getJ2EEDependencyList_5(), getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR60_ChangedContentDir_WithDependencies() throws Exception{
- IDataModel dm = getEARDataModel("xyzEAR", "hisContent", getJ2EEDependencyList_6(), getJavaDependencyList_6(), JavaEEFacetConstants.EAR_6, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testEAR50_Defaults_WithDD() throws Exception{
- IDataModel dm = getEARDataModel("myEAR", null, null, null, JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR60_Defaults_WithDD() throws Exception{
- IDataModel dm = getEARDataModel("mineEAR", null, null, null, JavaEEFacetConstants.EAR_6, true);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testEAR50_ChangedContentDir_WithDD() throws Exception{
- IDataModel dm = getEARDataModel("yourEAR", "ourContent", null, null, JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR60_ChangedContentDir_WithDD() throws Exception{
- IDataModel dm = getEARDataModel("thatEAR", "thatContent", null, null, JavaEEFacetConstants.EAR_6, true);
- OperationTestCase.runAndVerify(dm);
- }
-
-/*
- public void testEAR50_WithDependencies_WithDD() throws Exception{
- IDataModel dm = getEARDataModel("anEAR", null, getJ2EEDependencyList_5(), getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testEAR50_ChangedContentDir_WithDependencies_WithDD() throws Exception{
- IDataModel dm = getEARDataModel("theirEAR", "gotContent", getJ2EEDependencyList_5(), getJavaDependencyList_5(), JavaEEFacetConstants.EAR_5, true);
- OperationTestCase.runAndVerify(dm);
- }
-*/
-
- /**
- * Creates and returns an EAR Data Model with the given name and of the given version
- *
- * @param projName name of the project to create
- * @param version version of EAR to use
- * @param contentDir directory to store the content in, if NULL use default
- * @param dependenciesJ2EE list of J2EE IProjects that this EAR depends on, ignored if NULL
- * @param dependenciesJava list of Java IProjects that this EAR depends on, ignored if NULL
- * @param createDD only used if version is JEE5, if true then create DD else don't
- * @return an EAR Data Model with the appropriate properties set
- */
- public static IDataModel getEARDataModel(String projName, String contentDir, List dependenciesJ2EE, List dependenciesJava, IProjectFacetVersion version, boolean createDD) {
- IDataModel dm = DataModelFactory.createDataModel(new EARFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- FacetDataModelMap factMap = (FacetDataModelMap) dm.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = (IDataModel) factMap.get(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- facetModel.setProperty(IFacetInstallDataModelProperties.FACET_VERSION, version);
-
-
- if(contentDir != null) {
- facetModel.setStringProperty(IEarFacetInstallDataModelProperties.CONTENT_DIR,contentDir);
- }
-
- if(dependenciesJ2EE != null) {
- facetModel.setProperty(IEarFacetInstallDataModelProperties.J2EE_PROJECTS_LIST, dependenciesJ2EE);
- }
-
- if(dependenciesJava != null) {
- facetModel.setProperty(IEarFacetInstallDataModelProperties.JAVA_PROJECT_LIST, dependenciesJava);
- }
-
-
- facetModel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, createDD);
-
-
- return dm;
- }
-
-
-
- public static List getJ2EEDependencyList_12() throws Exception {
- List dependencies = new ArrayList();
- List<IDataModel> models = new ArrayList<IDataModel>();
-
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_12, null, JavaEEFacetConstants.APP_CLIENT_12, true, true));
-
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_11, null, null, null, JavaEEFacetConstants.EJB_11, true));
-
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_22, null, null, null, null, JavaEEFacetConstants.WEB_22, true));
-
- for(int i = 0; i < models.size(); i++) {
- OperationTestCase.runDataModel(models.get(i));
- }
-
- dependencies.addAll(Arrays.asList(JavaEEProjectUtilities.getAllProjects()));
-
- return dependencies;
- }
-
- public static List getJavaDependencyList_12() {
- return Collections.emptyList();
- }
-
-
- public static List getJ2EEDependencyList_13() throws Exception {
- getJ2EEDependencyList_12();
- List dependencies = new ArrayList();
- List<IDataModel> models = new ArrayList<IDataModel>();
-
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_13, null, JavaEEFacetConstants.APP_CLIENT_13, true, true));
-
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_2, null, null, null, JavaEEFacetConstants.EJB_2, true));
-
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_23, null, null, null, null, JavaEEFacetConstants.WEB_23, true));
-
- models.add(JCAProjectCreationOperationTest.getConnectorDataModel(CONNECTOR_PROJ_1, null, null, JavaEEFacetConstants.CONNECTOR_1));
-
- for(int i = 0; i < models.size(); i++) {
- OperationTestCase.runDataModel(models.get(i));
- }
-
- dependencies.addAll(Arrays.asList(JavaEEProjectUtilities.getAllProjects()));
-
- return dependencies;
- }
-
- public static List getJavaDependencyList_13() {
- return Collections.emptyList();
- }
-
-
- public static List getJ2EEDependencyList_14() throws Exception {
- getJ2EEDependencyList_13();
- List dependencies = new ArrayList();
-
- List<IDataModel> models = new ArrayList<IDataModel>();
-
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_14, null, JavaEEFacetConstants.APP_CLIENT_14, true, true));
-
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_21, null, null, null, JavaEEFacetConstants.EJB_21, true));
-
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_24, null, null, null, null, JavaEEFacetConstants.WEB_24, true));
-
- for(int i = 0; i < models.size(); i++) {
- OperationTestCase.runDataModel(models.get(i));
- }
-
- dependencies.addAll(Arrays.asList(JavaEEProjectUtilities.getAllProjects()));
-
- return dependencies;
- }
-
- public static List getJavaDependencyList_14() {
- return Collections.emptyList();
- }
-
- public static List getJ2EEDependencyList_5() throws Exception {
- getJ2EEDependencyList_14();
- List dependencies = new ArrayList();
-
- List<IDataModel> models = new ArrayList<IDataModel>();
-
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_5, null, JavaEEFacetConstants.APP_CLIENT_5, true, false));
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_5 + "_WithDD", null, JavaEEFacetConstants.APP_CLIENT_5, true, true));
-
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_3, null, null, null, JavaEEFacetConstants.EJB_3, false));
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_3 + "_WithDD", null, null, null, JavaEEFacetConstants.EJB_3, true));
-
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_25, null, null, null, null, JavaEEFacetConstants.WEB_25, false));
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_25 + "_WithDD", null, null, null, null, JavaEEFacetConstants.WEB_25, true));
-
- for(int i = 0; i < models.size(); i++) {
- OperationTestCase.runDataModel(models.get(i));
- }
-
- dependencies.addAll(Arrays.asList(JavaEEProjectUtilities.getAllProjects()));
-
- return dependencies;
- }
-
- public static List getJavaDependencyList_5() {
- return Collections.emptyList();
- }
-
- public static List getJ2EEDependencyList_6() throws Exception {
- getJ2EEDependencyList_5();
- List dependencies = new ArrayList();
-
- List<IDataModel> models = new ArrayList<IDataModel>();
-
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_6, null, JavaEEFacetConstants.APP_CLIENT_6, true, false));
- models.add(AppClientProjectCreationOperationTest.getAppClientCreationDataModel(APP_CLIENT_PROJ_6 + "_WithDD", null, JavaEEFacetConstants.APP_CLIENT_6, true, true));
-
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_31, null, null, null, JavaEEFacetConstants.EJB_31, false));
- models.add(EJBProjectCreationOperationTest.getEJBDataModel(EJB_PROJ_31 + "_WithDD", null, null, null, JavaEEFacetConstants.EJB_31, true));
-
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_30, null, null, null, null, JavaEEFacetConstants.WEB_30, false));
- models.add(WebProjectCreationOperationTest.getWebDataModel(WEB_PROJ_30 + "_WithDD", null, null, null, null, JavaEEFacetConstants.WEB_30, true));
-
- for(int i = 0; i < models.size(); i++) {
- OperationTestCase.runDataModel(models.get(i));
- }
-
- dependencies.addAll(Arrays.asList(JavaEEProjectUtilities.getAllProjects()));
-
- return dependencies;
- }
-
- public static List getJavaDependencyList_6() {
- return Collections.emptyList();
- }
-
-
- public void testEAR50_WithVariableReference() throws Exception{
- IDataModel dm = getEARDataModel("pEAR", "ourContent", null, null, JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject("pEAR");
- if( p != null && p.exists()) {
- try {
- IVirtualComponent vc = ComponentCore.createComponent(p);
- addArchiveComponent(vc);
- // now verify
- IModule module = ServerUtil.getModule(p);
- assertNotNull(module);
- ModuleDelegate md = (ModuleDelegate)module.loadAdapter(ModuleDelegate.class, new NullProgressMonitor());
- IModuleResource[] resources = md.members();
- assertEquals(1, resources.length);
- assertEquals(1, ((IModuleFolder)resources[0]).members().length);
- assertTrue(((IModuleFolder)resources[0]).members()[0] instanceof IModuleFile);
- IModuleFile junitjar = (IModuleFile)((IModuleFolder)resources[0]).members()[0];
- assertEquals("junit.jar", junitjar.getName());
- } catch( CoreException ce ) {
- ce.printStackTrace();
- }
- }
- }
-
- public void testEARWithJarInLibFolder() throws Exception {
- IDataModel dm = getEARDataModel("qEAR", "ourContent", null, null, JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject("qEAR");
- IFolder folder = p.getFolder("ourContent/lib");
- folder.create(true, true, null);
- IFile file = folder.getFile("test1.jar");
- file.create(new FileInputStream(ClasspathDependencyTestUtil.TEST1_JAR_PATH.toFile()), 0, new NullProgressMonitor());
- IModule module = ServerUtil.getModule(p);
- ModuleDelegate md = (ModuleDelegate)module.loadAdapter(ModuleDelegate.class, new NullProgressMonitor());
- IModuleResource[] resources = md.members();
- assertEquals(1, resources.length);
- assertEquals("lib", resources[0].getName());
- assertTrue(resources[0] instanceof IModuleFolder);
- IModuleResource[] children =((IModuleFolder)resources[0]).members();
- assertEquals(1, children.length);
- assertEquals("test1.jar", children[0].getName());
- }
-
- public void testEARWithClasspathContainerReference() throws Exception {
- // Find the junit jar
- ClasspathContainerInitializer initializer= JavaCore.getClasspathContainerInitializer(JavaCore.USER_LIBRARY_CONTAINER_ID);
- IPath path = new Path("JUNIT_HOME/junit.jar"); //$NON-NLS-1$
- IPath resolvedPath = JavaCore.getResolvedVariablePath(path);
-
- // Make a new user library a999 referencing this jar
- IClasspathEntry junitEntry = JavaCore.newLibraryEntry(resolvedPath, null, null);
- JavaModelManager.getUserLibraryManager().setUserLibrary("a999", new IClasspathEntry[]{junitEntry}, false);
- String containerPath = JavaCore.USER_LIBRARY_CONTAINER_ID + "/a999";
-
- // Make an EAR project
- IDataModel dm = getEARDataModel("rEAR", "ourContent", null, null, JavaEEFacetConstants.EAR_5, false);
- OperationTestCase.runAndVerify(dm);
- IProject rootProj = ResourcesPlugin.getWorkspace().getRoot().getProject("rEAR");
- final IVirtualComponent rootComp = ComponentCore.createComponent(rootProj);
-
- // Add a classpath container reference
- IVirtualComponent classpathContainerComp = new ClasspathContainerVirtualComponent(rootProj, rootComp, containerPath);
- final VirtualReference ref = new VirtualReference(rootComp, classpathContainerComp, new Path("/testFolder").makeAbsolute());
- ref.setDependencyType(IVirtualReference.DEPENDENCY_TYPE_CONSUMES);
- IWorkspaceRunnable runnable = new IWorkspaceRunnable(){
- public void run(IProgressMonitor monitor) throws CoreException{
- IDataModelProvider provider = new AddReferenceToEnterpriseApplicationDataModelProvider();
- IDataModel dm = DataModelFactory.createDataModel(provider);
- dm.setProperty(IAddReferenceDataModelProperties.SOURCE_COMPONENT, rootComp);
- dm.setProperty(IAddReferenceDataModelProperties.TARGET_REFERENCE_LIST, Arrays.asList(ref));
-
- IStatus stat = dm.validateProperty(IAddReferenceDataModelProperties.TARGET_REFERENCE_LIST);
- if (!stat.isOK())
- throw new CoreException(stat);
- try {
- dm.getDefaultOperation().execute(new NullProgressMonitor(), null);
- } catch (ExecutionException e) {
- throw new CoreException(new Status(IStatus.ERROR, "blah", "error", e));
- }
- }
- };
- try {
- ResourcesPlugin.getWorkspace().run(runnable, new NullProgressMonitor());
- } catch( CoreException e ) {
- e.printStackTrace();
- fail();
- }
-
- // Verify module stuff!
- IModule module = ServerUtil.getModule(rootProj);
- ModuleDelegate delegate = (ModuleDelegate)module.loadAdapter(ModuleDelegate.class, new NullProgressMonitor());
- IModuleResource[] resources = delegate.members();
- assertTrue(resources.length == 1);
- assertTrue(resources[0] instanceof IModuleFolder);
- assertTrue(resources[0].getName().equals("testFolder"));
- assertTrue(((IModuleFolder)resources[0]).members().length == 1);
- assertTrue(((IModuleFolder)resources[0]).members()[0] instanceof IModuleFile);
- assertTrue(((IModuleFolder)resources[0]).members()[0].getName().equals("junit.jar"));
- }
-
- public void addArchiveComponent(IVirtualComponent component) throws CoreException {
-
- IPath path = new Path("JUNIT_HOME/junit.jar"); //$NON-NLS-1$
- IPath resolvedPath = JavaCore.getResolvedVariablePath(path);
- java.io.File file = new java.io.File(resolvedPath.toOSString());
- if( file.isFile() && file.exists()){
- String type = VirtualArchiveComponent.VARARCHIVETYPE + IPath.SEPARATOR;
- IVirtualComponent archive = ComponentCore.createArchiveComponent( component.getProject(), type +
- path.toString());
- IDataModelProvider provider = new AddComponentToEnterpriseApplicationDataModelProvider();
- IDataModel dm = DataModelFactory.createDataModel(provider);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT, component);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, Arrays.asList(archive));
- Map<IVirtualComponent, String> uriMap = new HashMap<IVirtualComponent, String>();
- uriMap.put(archive, "junit.jar");
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_TO_URI_MAP, uriMap);
- dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH, "/lib");
- IStatus stat = dm.validateProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST);
- if (!stat.isOK())
- throw new CoreException(stat);
- try {
- dm.getDefaultOperation().execute(new NullProgressMonitor(), null);
- } catch (ExecutionException e) {
- throw new CoreException(new Status(IStatus.ERROR, "test", e.getMessage()));
- }
-
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/AddEJBeanOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/AddEJBeanOperationTest.java
deleted file mode 100644
index 877a6a0a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/AddEJBeanOperationTest.java
+++ /dev/null
@@ -1,142 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.ejb.operations;
-
-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.Preferences;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.ejb.internal.operations.NewMessageDrivenBeanClassDataModelProvider;
-import org.eclipse.jst.j2ee.ejb.internal.operations.NewSessionBeanClassDataModelProvider;
-import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-
-public class AddEJBeanOperationTest extends OperationTestCase implements
- INewJavaClassDataModelProperties {
-
- public static final String EJB_PROJECT_NAME = "EjbProject"; //$NON-NLS-1$
-
- public static final String PACKAGE = "test"; //$NON-NLS-1$
-
- public static final String SESSION_BEAN_NAME = "TestSessionBean"; //$NON-NLS-1$
- public static final String SESSION_BEAN_CLASS_NAME = PACKAGE + "." + SESSION_BEAN_NAME; //$NON-NLS-1$
- public static final String SESSION_BEAN_LOCAL_NAME = SESSION_BEAN_NAME + "Local"; //$NON-NLS-1$
- public static final String SESSION_BEAN_LOCAL_CLASS_NAME = PACKAGE + "." + SESSION_BEAN_LOCAL_NAME; //$NON-NLS-1$
-
- public static final String MESSAGE_DRIVEN_BEAN_NAME = "TestMDBean"; //$NON-NLS-1$
- public static final String MESSAGE_DRIVEN_BEAN_CLASS_NAME = PACKAGE + "." + MESSAGE_DRIVEN_BEAN_NAME; //$NON-NLS-1$
-
- public AddEJBeanOperationTest() {
- super();
- }
-
- public AddEJBeanOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new TestSuite(AddEJBeanOperationTest.class);
- }
-
- public void testAddSessionBean_EJB30_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddSessionBean_EJB30_Defaults();
- enableJETEmitter();
- }
-
- public void testAddSessionBean_EJB30_Defaults() throws Exception {
- createEJBProject(EJB_PROJECT_NAME, JavaEEFacetConstants.EJB_3);
- IProject proj = ProjectUtilities.getProject(EJB_PROJECT_NAME);
-
- addSessionBean_Defaults();
-
- assertJavaFileExists(SESSION_BEAN_CLASS_NAME);
- assertJavaFileExists(SESSION_BEAN_LOCAL_CLASS_NAME);
-
- // no EJB3 annotation model to check yet
- }
-
- public void testAddMessageDrivenBean_EJB30_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddMessageDrivenBean_EJB30_Defaults();
- enableJETEmitter();
- }
-
- public void testAddMessageDrivenBean_EJB30_Defaults() throws Exception {
- createEJBProject(EJB_PROJECT_NAME, JavaEEFacetConstants.EJB_3);
- IProject proj = ProjectUtilities.getProject(EJB_PROJECT_NAME);
-
- addMessageDrivenBean_Defaults();
-
- assertJavaFileExists(MESSAGE_DRIVEN_BEAN_CLASS_NAME);
-
- // no EJB3 annotation model to check yet
- }
-
- @Override
- protected void tearDown() throws Exception {
- // uncomment the below line if you want to dump a check whether the
- // .JETEmitters projects is created as a result of the executed
- // operation
-// System.out.println(".JETEmitters exists : "
-// + ResourcesPlugin.getWorkspace().getRoot().getProject(
-// WTPJETEmitter.PROJECT_NAME).exists());
- super.tearDown();
- }
-
- private void enableJETEmitter() {
- Preferences preferences = J2EEPlugin.getDefault().getPluginPreferences();
- preferences.setValue(J2EEPlugin.DYNAMIC_TRANSLATION_OF_JET_TEMPLATES_PREF_KEY, true);
- }
-
- private void disableJETEmitter() {
- Preferences preferences = J2EEPlugin.getDefault().getPluginPreferences();
- preferences.setValue(J2EEPlugin.DYNAMIC_TRANSLATION_OF_JET_TEMPLATES_PREF_KEY, false);
- }
-
- private void createEJBProject(String projectName, IProjectFacetVersion version) throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel(
- projectName, null, null, null, version, false);
- runAndVerify(dm);
- }
-
- private void addSessionBean_Defaults() throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(NewSessionBeanClassDataModelProvider.class);
- dm.setProperty(PROJECT_NAME, EJB_PROJECT_NAME);
- dm.setProperty(JAVA_PACKAGE, PACKAGE);
- dm.setProperty(CLASS_NAME, SESSION_BEAN_NAME);
- runAndVerify(dm);
- }
-
- private void addMessageDrivenBean_Defaults() throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(NewMessageDrivenBeanClassDataModelProvider.class);
- dm.setProperty(PROJECT_NAME, EJB_PROJECT_NAME);
- dm.setProperty(JAVA_PACKAGE, PACKAGE);
- dm.setProperty(CLASS_NAME, MESSAGE_DRIVEN_BEAN_NAME);
- runAndVerify(dm);
- }
-
- private void assertJavaFileExists(String fullyQualifiedName) throws JavaModelException {
- IJavaProject javaProject = JavaCore.create(
- ResourcesPlugin.getWorkspace().getRoot())
- .getJavaModel().getJavaProject(EJB_PROJECT_NAME);
- assertNotNull("Java project " + EJB_PROJECT_NAME + " not found", javaProject);
- IType type = javaProject.findType(fullyQualifiedName);
- assertNotNull("Java type " + fullyQualifiedName + " not found", type);
- IFile file = (IFile) type.getResource();
- assertNotNull("Source file for Java type " + fullyQualifiedName + " not found", file);
- assertTrue(file.exists());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/AllTests.java
deleted file mode 100644
index 710ba704..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/AllTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.operations;
-
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.flexible.project.fvtests.EJBDeployTest;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AllTests extends TestSuite {
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("EJB Operation Tests");
- addTest(EJBExportOperationTest.suite());
- addTest(EJBImportOperationTest.suite());
- addTest(EJBProjectCreationOperationTest.suite());
- addTest(AddEJBeanOperationTest.suite());
- addTest(EJBDeployTest.suite());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBExportOperationTest.java
deleted file mode 100644
index 478e19a8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBExportOperationTest.java
+++ /dev/null
@@ -1,388 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentExportDataModelProvider;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaFileTestingUtilities;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTest;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class EJBExportOperationTest extends ModuleExportOperationTest {
- public EJBExportOperationTest() {
- super("EJBExportOperationTests");
- }
-
- public EJBExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EJBExportOperationTest.class);
- }
-
- public void testEJBExport11_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("insaneEJB", null, null, null, JavaEEFacetConstants.EJB_11, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport20_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("fooEJB", null, null, null, JavaEEFacetConstants.EJB_2, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport21_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("barEJB", null, null, null, JavaEEFacetConstants.EJB_21, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- //TODO
- //NOT sure why, but the annotated beans are not being compiled correctly
- //so that during validation, their annotations are not read, and this test fails
- /*
- public void testEJBExport30_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("penEJB", null, null, null, JavaEEFacetConstants.EJB_3, false);
- runDataModel(dm);
- addStateless(dm);
-
- runExportTests_All(dm);
- }
- */
-
- private void addStateless(IDataModel dm) throws Exception {
- String projectName = dm.getStringProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME);
- String packageName = "test";
- String className = "AnnotatedStateless";
- String classContents = "package test;\n\nimport javax.ejb.Stateless;\n\n@Stateless\npublic class AnnotatedStateless {\n\n}";
- JavaFileTestingUtilities.addJavaFileToEJB(projectName, className, packageName, classContents);
- }
-
- public void testEJBExport11_AddToEAR_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("testEJB", null, null, "testEAR", JavaEEFacetConstants.EJB_11, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport20_AddToEAR_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("coolEJB", null, null, "booEAR", JavaEEFacetConstants.EJB_2, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport21_AddToEAR_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("crazyEJB", null, null, "starEAR", JavaEEFacetConstants.EJB_21, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- //TODO
- //NOT sure why, but the annotated beans are not being compiled correctly
- //so that during validation, their annotations are not read, and this test fails
- /*
- public void testEJBExport30_AddToEAR_Defaults() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("netoEJB", null, null, "myEAR", JavaEEFacetConstants.EJB_3, false);
- runDataModel(dm);
- addStateless(dm);
-
- runExportTests_All(dm);
- }
- */
-
-
- public void testEJBExport11_AddToEAR_NoClient() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("testEJB", null, null, "testEAR", JavaEEFacetConstants.EJB_11, false, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport20_AddToEAR_NoClient() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("coolEJB", null, null, "booEAR", JavaEEFacetConstants.EJB_2, false, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport21_AddToEAR_NoClient() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("crazyEJB", null, null, "starEAR", JavaEEFacetConstants.EJB_21, false, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- //TODO
- //NOT sure why, but the annotated beans are not being compiled correctly
- //so that during validation, their annotations are not read, and this test fails
- /*
- public void testEJBExport30_AddToEAR_NoClient() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("netoEJB", null, null, "myEAR", JavaEEFacetConstants.EJB_3, false, false);
- runDataModel(dm);
- addStateless(dm);
-
- runExportTests_All(dm);
- }
- */
-
-
- public void testEJBExport11_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("fooBarEJB", "testEJBExportClient", null, "theirEAR", JavaEEFacetConstants.EJB_11, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport20_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("saneEJB", "coolEJBClient", null, "yourEAR", JavaEEFacetConstants.EJB_2, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport21_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("clipEJB", "crazyEJBClient", null, "ourEAR", JavaEEFacetConstants.EJB_21, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- //TODO
- //NOT sure why, but the annotated beans are not being compiled correctly
- //so that during validation, their annotations are not read, and this test fails
- /*
- public void testEJBExport30_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("phoneEJB", "netoEJBClient", null, "waterEAR", JavaEEFacetConstants.EJB_3, false);
- runDataModel(dm);
- addStateless(dm);
-
- runExportTests_All(dm);
- }
- */
-
- public void testEJBExport11_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("cupEJB", null, "src", "openEAR", JavaEEFacetConstants.EJB_11, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport20_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("mouseEJB", null, "files", "closedEAR", JavaEEFacetConstants.EJB_2, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport21_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("pcEJB", null, "stuff", "batEAR", JavaEEFacetConstants.EJB_21, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- //TODO
- //NOT sure why, but the annotated beans are not being compiled correctly
- //so that during validation, their annotations are not read, and this test fails
- /*
- public void testEJBExport30_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("keyEJB", null, "foo", "keyEAR", JavaEEFacetConstants.EJB_3, false);
- runDataModel(dm);
- addStateless(dm);
-
- runExportTests_All(dm);
- }
- */
-
- public void testEJBExport11A_ddToEAR_ChangedEJBClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("cupEJB", "superClient", "src", "openEAR", JavaEEFacetConstants.EJB_11, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport20_AddToEAR_ChangedEJBClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("mouseEJB", "dudeClient", "files", "closedEAR", JavaEEFacetConstants.EJB_2, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport21_AddToEAR_ChangedEJB_ClientNameChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("pcEJB", "fireClient", "stuff", "batEAR", JavaEEFacetConstants.EJB_21, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- //TODO
- //NOT sure why, but the annotated beans are not being compiled correctly
- //so that during validation, their annotations are not read, and this test fails
- /*
- public void testEJBExport30_AddToEARChangedEJB_ClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("keyEJB", "wireClient", "foo", "keyEAR", JavaEEFacetConstants.EJB_3, false);
- runDataModel(dm);
- addStateless(dm);
-
- runExportTests_All(dm);
- }
- */
-
- public void testEJBExport30_Defaults_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("tigerEJB", null, null, null, JavaEEFacetConstants.EJB_3, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport31_Defaults_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("EE6tigerEJB", null, null, null, JavaEEFacetConstants.EJB_31, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport30_AddToEAR_Defaults_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("pandaEJB", null, null, "roundEAR", JavaEEFacetConstants.EJB_3, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport31_AddToEAR_Defaults_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("EE6pandaEJB", null, null, "EE6roundEAR", JavaEEFacetConstants.EJB_31, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport30_AddToEAR_NoClient_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("netoEJB", null, null, "myEAR", JavaEEFacetConstants.EJB_3, false, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport31_AddToEAR_NoClient_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("EE6netoEJB", null, null, "EE6myEAR", JavaEEFacetConstants.EJB_31, false, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport30_AddToEAR_ChangedEJBClientName_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("snakeEJB", "client", null, "groundEAR", JavaEEFacetConstants.EJB_3, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport31_AddToEAR_ChangedEJBClientName_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("EE6snakeEJB", "EE6client", null, "EE6groundEAR", JavaEEFacetConstants.EJB_31, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport30_AddToEAR_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("lionEJB", null, "barSrc", "pinEAR", JavaEEFacetConstants.EJB_3, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport31_AddToEAR_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("EE6lionEJB", null, "EE6barSrc", "EE6pinEAR", JavaEEFacetConstants.EJB_31, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport30_AddToEAR_ChangedEJBClientName_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("monkeyEJB", "fooFooClient", "fooSrc", "outsideEAR", JavaEEFacetConstants.EJB_3, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testEJBExport31_AddToEAR_ChangedEJBClientName_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = EJBProjectCreationOperationTest.getEJBDataModel("EE6monkeyEJB", "EE6fooFooClient", "EE6fooSrc", "EE6outsideEAR", JavaEEFacetConstants.EJB_31, true);
- runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".jar";
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return getEJBExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
- /**
- * @param projectName name of the project to export
- * @param destination destination to export to
- * @param exportSource if TRUE export source files, else don't
- * @param runBuild if TRUE run a build before exporting, else don't
- * @param overwriteExisting if TRUE overwrite existing files, else don't
- * @return an EJBComponentExport data model with all of the given settings.
- */
- public static IDataModel getEJBExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting){
- IDataModel exportModel = DataModelFactory.createDataModel(new EJBComponentExportDataModelProvider());
-
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME, projectName);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION, destination);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.EXPORT_SOURCE_FILES, exportSource);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.OVERWRITE_EXISTING, overwriteExisting);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.RUN_BUILD, runBuild);
-
- return exportModel;
- }
-
- @Override
- protected void addJavaFilesToProject(String projectName, String[] classNames, String prackageName) throws Exception {
- JavaFileTestingUtilities.addJavaFilesToEJB(projectName, classNames, prackageName);
- }
-
- @Override
- protected void verifyJavaFilesExported(String archiveName, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- JavaFileTestingUtilities.verifyJavaFilesInJAR(archiveName, classNames, packageName, withClassFiles, withSource);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBGeneraUseTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBGeneraUseTest.java
deleted file mode 100644
index 44ba513a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBGeneraUseTest.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/**
- *
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.operations;
-
-import java.io.StringBufferInputStream;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.operations.IProjectCreationPropertiesNew;
-import org.eclipse.wst.common.tests.OperationTestCase;
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- */
-public class EJBGeneraUseTest extends OperationTestCase {
- private static String BASE_DATA_DIR = System.getProperty("user.dir") + java.io.File.separatorChar + "EJBTests" + java.io.File.separatorChar;
- private final String EJB_NAME = "TestEJB";
- private final String EJB_ARCHIVE_NAME = EJB_NAME + ".jar";
- private final String FILE1 = "Test1.java";
-
- /**
- * used to get a string representing a path where a file with given suffix can be stored.
- *
- * @param suffix the suffix to append to the BASE_DATA_DIR
- * @return a string containing the BASE_DATA_DIR appended with the given suffix
- */
- private static String getDataPath(String suffix) {
- return BASE_DATA_DIR + suffix;
- }
-
- /**
- * Test create new EJB project, add file, export, delete project,
- * then import and verify.
- */
- public void test_GeneralUse() throws Exception{
- //create EJB
- IDataModel model = DataModelFactory.createDataModel(new EjbFacetProjectCreationDataModelProvider());
- model.setProperty(IProjectCreationPropertiesNew.PROJECT_NAME, this.EJB_NAME);
- this.runAndVerify(model);
-
- //verify EJB exists
- IVirtualComponent ejb = ComponentUtilities.getComponent(this.EJB_NAME);
- IProject ejbProject = ejb.getProject();
- IVirtualFolder ejbRootFolder = ejb.getRootFolder();
- Assert.assertNotNull("New EJB project named " + this.EJB_NAME + " should exist.", ejb);
-
- IWorkspace workspace = ejbProject.getWorkspace();
- IWorkspaceRoot workspaceRoot = workspace.getRoot();
-
- //add a file to the EJB
- IVirtualFile virtFile = ejbRootFolder.getFile(this.FILE1);
- IFile file = virtFile.getUnderlyingFile();
- file.create(new StringBufferInputStream(""),true,null);
- Assert.assertTrue("The file " + this.FILE1 + " should exsist in the project.", file.exists());
-
- //export the EJB
- model = DataModelFactory.createDataModel(new EJBComponentExportDataModelProvider());
- model.setProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME, ejbProject.getName());
- model.setProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION, getDataPath(this.EJB_ARCHIVE_NAME));
- model.setProperty(IJ2EEComponentExportDataModelProperties.EXPORT_SOURCE_FILES, Boolean.TRUE);
- this.runAndVerify(model);
-
- //delete the EJB, and verify
- ejbProject.close(null);
- ejbProject.delete(IResource.ALWAYS_DELETE_PROJECT_CONTENT, null);
- Assert.assertNull("The " + this.EJB_NAME + " project should no longer exsist.", ComponentUtilities.getComponent(this.EJB_NAME));
- ejb = null;
- ejbProject = null;
- ejbRootFolder = null;
- virtFile = null;
- file = null;
- ejbProject = workspaceRoot.getProject(this.EJB_NAME);
- Assert.assertFalse("Project should not exsist.", ejbProject.exists());
-
- //import the EJB
- model = DataModelFactory.createDataModel(new EJBComponentImportDataModelProvider());
- model.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, getDataPath(this.EJB_ARCHIVE_NAME));
- model.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, this.EJB_NAME);
- this.runAndVerify(model);
-
- //verify the import
- ejb = ComponentUtilities.getComponent(this.EJB_NAME);
- Assert.assertNotNull("New EJB project named " + this.EJB_NAME + " should exsist", ejb);
- ejbRootFolder = ejb.getRootFolder();
- virtFile = ejbRootFolder.getFile(this.FILE1);
- Assert.assertTrue("The file " + this.FILE1 + " should exsist in the project.", file.exists());
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBImportOperationBaseTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBImportOperationBaseTest.java
deleted file mode 100644
index 9c751264..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBImportOperationBaseTest.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.j2ee.headless.tests.ejb.operations;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentImportDataModelProvider;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-
-public class EJBImportOperationBaseTest extends ModuleImportOperationTest{
-
- public EJBImportOperationBaseTest() {
- super("EJBImportOperationBaseTest");
- }
-
- public EJBImportOperationBaseTest(String name) {
- super(name);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".jar";
- }
-
- @Override
- protected IDataModel getImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- return getEJBImportDataModel(filePath, projectName, creationModel, closeArchiveOnDispose);
- }
-
- public static IDataModel getEJBImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- IDataModel importModel = DataModelFactory.createDataModel(new EJBComponentImportDataModelProvider());
-
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filePath);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.CLOSE_ARCHIVE_ON_DISPOSE, closeArchiveOnDispose);
-
- if(creationModel != null) {
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.NESTED_MODEL_J2EE_COMPONENT_CREATION, creationModel);
- }
-
- return importModel;
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return EJBExportOperationTest.getEJBExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBImportOperationTest.java
deleted file mode 100644
index 3fc67591..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBImportOperationTest.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class EJBImportOperationTest extends EJBImportOperationBaseTest {
- public EJBImportOperationTest() {
- super("EJBImportOperationTests");
- }
-
- public EJBImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EJBImportOperationTest.class);
- }
-
- public void testEJBImport11_Defaults() throws Exception {
- runImportTests_All("EJB11_Defaults");
- }
-
- public void testEJBImport20_Defaults() throws Exception {
- runImportTests_All("EJB20_Defaults");
- }
-
- public void testEJBImport21_Defaults() throws Exception {
- runImportTests_All("EJB21_Defaults");
- }
-
- public void testEJBImport11_AddToEAR_Defaults() throws Exception {
- runImportTests_All("EJB11_AddToEAR_Defaults");
- }
-
- public void testEJBImport20_AddToEAR_Defaults() throws Exception {
- runImportTests_All("EJB20_AddToEAR_Defaults");
- }
-
- public void testEJBImport21_AddToEAR_Defaults() throws Exception {
- runImportTests_All("EJB21_AddToEAR_Defaults");
- }
-
- public void testEJBImport11_AddToEAR_NoClient() throws Exception {
- runImportTests_All("EJB11_AddToEAR_NoClient");
- }
-
- public void testEJBImport20_AddToEAR_NoClient() throws Exception {
- runImportTests_All("EJB20_AddToEAR_NoClient");
- }
-
- public void testEJBImport21_AddToEAR_NoClient() throws Exception {
- runImportTests_All("EJB21_AddToEAR_NoClient");
- }
-
- public void testEJBImport11_AddToEAR_DiffClientName() throws Exception {
- runImportTests_All("EJB11_AddToEAR_DiffClientName");
- }
-
- public void testEJBImport20_AddToEAR_DiffClientName() throws Exception {
- runImportTests_All("EJB20_AddToEAR_DiffClientName");
- }
-
- public void testEJBImport21_AddToEAR_DiffClientName() throws Exception {
- runImportTests_All("EJB21_AddToEAR_DiffClientName");
- }
-
- public void testEJBImport11_AddToEAR_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB11_AddToEAR_DiffClientSourceFolder");
- }
-
- public void testEJBImport20_AddToEAR_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB20_AddToEAR_DiffClientSourceFolder");
- }
-
- public void testEJBImport21_AddToEAR_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB21_AddToEAR_DiffClientSourceFolder");
- }
-
- public void testEJBImport11_AddToEAR_DiffClientName_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB11_AddToEAR_DiffClientName_DiffClientSourceFolder");
- }
-
- public void testEJBImport20_AddToEAR_DiffClientName_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB20_AddToEAR_DiffClientName_DiffClientSourceFolder");
- }
-
- public void testEJBImport21_AddToEAR_DiffClientName_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB21_AddToEAR_DiffClientName_DiffClientSourceFolder");
- }
-
- public void testEJBImport30_Defaults_WithDD() throws Exception {
- runImportTests_All("EJB30_Defaults_WithDD");
- }
-
- public void testEJBImport30_AddToEAR_Defaults_WithDD() throws Exception {
- runImportTests_All("EJB30_AddToEAR_Defaults_WithDD");
- }
-
- public void testEJBImport30_AddToEAR_NoClient_WithDD() throws Exception {
- runImportTests_All("EJB30_AddToEAR_NoClient_WithDD");
- }
-
- public void testEJBImport30_AddToEAR_DiffClientName_WithDD() throws Exception {
- runImportTests_All("EJB30_AddToEAR_DiffClientName_WithDD");
- }
-
- public void testEJBImport30_AddToEAR_DiffClientSourceFolder_WithDD() throws Exception {
- runImportTests_All("EJB30_AddToEAR_DiffClientSourceFolder_WithDD");
- }
-
- public void testEJBImport30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD() throws Exception {
- runImportTests_All("EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD");
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBProjectCreationOperationTest.java
deleted file mode 100644
index d3dd8758..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/ejb/operations/EJBProjectCreationOperationTest.java
+++ /dev/null
@@ -1,338 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wtp.j2ee.headless.tests.ejb.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-public class EJBProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
-
- public EJBProjectCreationOperationTest() {
- super("EJBProjectCreationOperationTest");
- }
-
- public EJBProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EJBProjectCreationOperationTest.class);
- }
-
- public void testEJB11_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("insaneEJB", null, null, null, JavaEEFacetConstants.EJB_11, true);
- runAndVerify(dm);
- }
-
- public void testEJB20_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("fooEJB", null, null, null, JavaEEFacetConstants.EJB_2, true);
- runAndVerify(dm);
- }
-
- public void testEJB21_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("barEJB", null, null, null, JavaEEFacetConstants.EJB_21, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("penEJB", null, null, null, JavaEEFacetConstants.EJB_3, false);
- runAndVerify(dm);
- }
-
- public void testEJB31_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("blahEJB", null, null, null, JavaEEFacetConstants.EJB_31, false);
- runAndVerify(dm);
- }
-
-
- public void testEJB11_AddToEAR_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("testEJB", null, null, "testEAR", JavaEEFacetConstants.EJB_11, true);
- runAndVerify(dm);
- }
-
- public void testEJB20_AddToEAR_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("coolEJB", null, null, "booEAR", JavaEEFacetConstants.EJB_2, true);
- runAndVerify(dm);
- }
-
- public void testEJB21_AddToEAR_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("crazyEJB", null, null, "starEAR", JavaEEFacetConstants.EJB_21, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("netoEJB", null, null, "myEAR", JavaEEFacetConstants.EJB_3, false);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_Defaults() throws Exception {
- IDataModel dm = getEJBDataModel("booEJB", null, null, "trymeEAR", JavaEEFacetConstants.EJB_31, false);
- runAndVerify(dm);
- }
-
- public void testEJB11_AddToEAR_NoClient() throws Exception {
- IDataModel dm = getEJBDataModel("testEJB", null, null, "testEAR", JavaEEFacetConstants.EJB_11, false, true);
- runAndVerify(dm);
- }
-
- public void testEJB20_AddToEAR_NoClient() throws Exception {
- IDataModel dm = getEJBDataModel("coolEJB", null, null, "booEAR", JavaEEFacetConstants.EJB_2, false, true);
- runAndVerify(dm);
- }
-
- public void testEJB21_AddToEAR_NoClient() throws Exception {
- IDataModel dm = getEJBDataModel("crazyEJB", null, null, "starEAR", JavaEEFacetConstants.EJB_21, false, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_NoClient() throws Exception {
- IDataModel dm = getEJBDataModel("netoEJB", null, null, "myEAR", JavaEEFacetConstants.EJB_3, false, false);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_NoClient() throws Exception {
- IDataModel dm = getEJBDataModel("booEJB", null, null, "trymeEAR", JavaEEFacetConstants.EJB_31, false, false);
- runAndVerify(dm);
- }
-
- public void testEJB11_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = getEJBDataModel("fooBarEJB", "testEJBClient", null, "theirEAR", JavaEEFacetConstants.EJB_11, true);
- runAndVerify(dm);
- }
-
- public void testEJB20_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = getEJBDataModel("saneEJB", "coolEJBClient", null, "yourEAR", JavaEEFacetConstants.EJB_2, true);
- runAndVerify(dm);
- }
-
- public void testEJB21_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = getEJBDataModel("clipEJB", "crazyEJBClient", null, "ourEAR", JavaEEFacetConstants.EJB_21, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = getEJBDataModel("phoneEJB", "netoEJBClient", null, "waterEAR", JavaEEFacetConstants.EJB_3, false);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_ChangedEJBClientName() throws Exception {
- IDataModel dm = getEJBDataModel("scaryEJB", "booEJBClient", null, "scaredEAR", JavaEEFacetConstants.EJB_31, false);
- runAndVerify(dm);
- }
-
- public void testEJB11_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("cupEJB", null, "src", "openEAR", JavaEEFacetConstants.EJB_11, true);
- runAndVerify(dm);
- }
-
- public void testEJB20_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("mouseEJB", null, "files", "closedEAR", JavaEEFacetConstants.EJB_2, true);
- runAndVerify(dm);
- }
-
- public void testEJB21_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("pcEJB", null, "stuff", "batEAR", JavaEEFacetConstants.EJB_21, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("keyEJB", null, "foo", "keyEAR", JavaEEFacetConstants.EJB_3, false);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("goEJB", null, "boo", "goEAR", JavaEEFacetConstants.EJB_31, false);
- runAndVerify(dm);
- }
-
- public void testEJB11A_ddToEAR_ChangedEJBClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("cupEJB", "superClient", "src", "openEAR", JavaEEFacetConstants.EJB_11, true);
- runAndVerify(dm);
- }
-
- public void testEJB20_AddToEAR_ChangedEJBClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("mouseEJB", "dudeClient", "files", "closedEAR", JavaEEFacetConstants.EJB_2, true);
- runAndVerify(dm);
- }
-
- public void testEJB21_AddToEAR_ChangedEJB_ClientNameChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("pcEJB", "fireClient", "stuff", "batEAR", JavaEEFacetConstants.EJB_21, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEARChangedEJB_ClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("keyEJB", "wireClient", "foo", "keyEAR", JavaEEFacetConstants.EJB_3, false);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEARChangedEJB_ClientName_ChangedClientSourceFolder() throws Exception {
- IDataModel dm = getEJBDataModel("goEJB", "workClient", "boo", "goEAR", JavaEEFacetConstants.EJB_31, false);
- runAndVerify(dm);
- }
-
- public void testEJB30_Defaults_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("tigerEJB", null, null, null, JavaEEFacetConstants.EJB_3, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_Defaults_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("pandaEJB", null, null, "roundEAR", JavaEEFacetConstants.EJB_3, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_NoClient_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("netoEJB", null, null, "myEAR", JavaEEFacetConstants.EJB_3, false, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_ChangedEJBClientName_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("snakeEJB", "client", null, "groundEAR", JavaEEFacetConstants.EJB_3, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("lionEJB", null, "barSrc", "pinEAR", JavaEEFacetConstants.EJB_3, true);
- runAndVerify(dm);
- }
-
- public void testEJB30_AddToEAR_ChangedEJBClientName_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("monkeyEJB", "fooFooClient", "fooSrc", "outsideEAR", JavaEEFacetConstants.EJB_3, true);
- runAndVerify(dm);
- }
-
- public void testEJB31_Defaults_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("spiderEJB", null, null, null, JavaEEFacetConstants.EJB_31, true);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_Defaults_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("yogiEJB", null, null, "bearEAR", JavaEEFacetConstants.EJB_31, true);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_NoClient_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("booEJB", null, null, "trymeEAR", JavaEEFacetConstants.EJB_31, false, true);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_ChangedEJBClientName_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("starEJB", "rockstarclient", null, "rockEAR", JavaEEFacetConstants.EJB_31, true);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("sharkEJB", null, "fishySrc", "fishEAR", JavaEEFacetConstants.EJB_31, true);
- runAndVerify(dm);
- }
-
- public void testEJB31_AddToEAR_ChangedEJBClientName_ChangedClientSourceFolder_WithDD() throws Exception {
- IDataModel dm = getEJBDataModel("trainEJB", "booClient", "booSrc", "fastEAR", JavaEEFacetConstants.EJB_31, true);
- runAndVerify(dm);
- }
- /**
- * Creates and returns an EJB Data Model with the given name and of the given version.
- * Can also set the clientName to be different then the default.
- * If earName is not null then AppClient will be added to the EAR with earName, and if appropriate
- * with or without a deployment descriptor.
- *
- * @param projName name of the project to create
- * @param clientName name of client jar to create, if NULL or earName is NULL then don't create one
- * @param clientSourceFolder source folder for client, use default if value is NULL, ignored if clientName is NULL
- * @param earName name of the EAR to add the project too, if NULL then don't add to an EAR
- * @param version version of EJB to use
- * @param createDD only used if version is JEE5, if true then create DD else don't
- * @return an EJB Model with the appropriate properties set
- */
- public static IDataModel getEJBDataModel(String projName, String clientName, String clientSourceFolder, String earName, IProjectFacetVersion version, boolean createDD) {
- IDataModel dm = DataModelFactory.createDataModel(new EjbFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- FacetDataModelMap facetMap = (FacetDataModelMap) dm.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.EJB);
- facetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, version);
-
- if(earName != null) {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earName);
-
- //only create client if given a client name, and is added to EAR
- if(clientName != null) {
- facetModel.setBooleanProperty(IEjbFacetInstallDataModelProperties.CREATE_CLIENT, true);
- facetModel.setStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_NAME, clientName);
-
- //use default source folder unless different name is given
- if(clientSourceFolder != null) {
- facetModel.setStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_SOURCE_FOLDER, clientSourceFolder);
- }
- }
- } else {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, false);
- }
-
- facetModel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, createDD);
-
- if(version.equals(JavaEEFacetConstants.EJB_31))
- {
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_6);
- }
- else{
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_5);
- }
-
-
- return dm;
- }
-
- /**
- * Creates and returns an EJB Data Model with the given name and of the given version.
- * Can also set the clientName to be different then the default, or choose not to have a client.
- * If earName is not null then AppClient will be added to the EAR with earName, and if appropriate
- * with or without a deployment descriptor.
- *
- * Created so EJB's could be created without clients.
- *
- * @param projName name of the project to create
- * @param clientName name of client jar to create, if NULL or earName is NULL then don't create one
- * @param clientSourceFolder source folder for client, use default if value is NULL, ignored if clientName is NULL
- * @param earName name of the EAR to add the project too, if NULL then don't add to an EAR
- * @param version version of EJB to use
- * @param createClient if True and earName not NULL then create with client, else dont
- * @param createDD only used if version is JEE5, if true then create DD else don't
- * @return an EJB Model with the appropriate properties set
- */
- public static IDataModel getEJBDataModel(String projName, String clientName, String clientSourceFolder, String earName, IProjectFacetVersion version, boolean createCleint, boolean createDD) {
- IDataModel dm = getEJBDataModel(projName, clientName, clientSourceFolder, earName, version, createDD);
-
- FacetDataModelMap facetMap = (FacetDataModelMap) dm.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.EJB);
- facetModel.setBooleanProperty(IEjbFacetInstallDataModelProperties.CREATE_CLIENT, createCleint);
-
- return dm;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ArchiveTestsUtil.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ArchiveTestsUtil.java
deleted file mode 100644
index d847e3f9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ArchiveTestsUtil.java
+++ /dev/null
@@ -1,191 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.jee.archive.ArchiveOpenFailureException;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-
-public class ArchiveTestsUtil {
-
- public static boolean compareFiles(File a, File b) throws IOException {
- InputStream streamA = null;
- InputStream streamB = null;
- try {
- streamA = new FileInputStream(a);
- streamB = new FileInputStream(b);
- return compareStreams(streamA, streamB);
- } finally {
- try {
- if (streamA != null) {
- streamA.close();
- }
- } finally {
- if (streamB != null) {
- streamB.close();
- }
- }
- }
- }
-
- public static void compareArchives(IPath a, IPath b) throws ArchiveOpenFailureException, IOException {
- IArchive aArchive = null;
- IArchive bArchive = null;
- try {
- aArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(a);
- bArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(b);
- compareArchives(aArchive, bArchive);
- } finally {
- if (null != aArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(aArchive);
- }
- if (null != bArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(bArchive);
- }
- }
- }
-
- public static final String[] ARCHIVE_EXTENSIONS = new String[] { ".jar", ".war", ".rar" };
-
- public static void compareArchives(IArchive a, IArchive b) throws ArchiveOpenFailureException, IOException {
- List<IArchiveResource> aResources = a.getArchiveResources();
- List<IArchiveResource> bResources = new ArrayList<IArchiveResource>();
- bResources.addAll(b.getArchiveResources());
-
- for (IArchiveResource aRes : aResources) {
- if (aRes.getPath().equals(IArchive.EMPTY_MODEL_PATH)) {
- if (b.containsArchiveResource(aRes.getPath())) {
- bResources.remove(b.getArchiveResource(aRes.getPath()));
- }
- continue;
- }
- Assert.assertTrue("IArchive B " + b.getPath() + " is missing " + aRes.getPath(), b.containsArchiveResource(aRes.getPath()));
- IArchiveResource bRes = b.getArchiveResource(aRes.getPath());
- Assert.assertNotNull("IArchive B " + b.getPath() + " is missing " + aRes.getPath(), bRes);
- Assert.assertTrue(bResources.remove(bRes));
- if (aRes.getType() != bRes.getType()) {
- boolean throwError = false;
- // if the resources are loaded by the same adapter type, then
- // the types should be the same
- if (a.getLoadAdapter().getClass() == b.getLoadAdapter().getClass()) {
- throwError = true;
- } // otherwise, it is possible that a generic adapter may not
- // know how a nested archive should be treated
- else if ((aRes.getType() == IArchiveResource.ARCHIVE_TYPE) || bRes.getType() == IArchiveResource.ARCHIVE_TYPE) {
- throwError = false;
- } else {
- throwError = true;
- }
- if (throwError) {
- Assert.assertEquals("IArchiveResource types differ for " + aRes.getPath(), aRes.getType(), bRes.getType());
- }
- }
- InputStream aIn = null;
- InputStream bIn = null;
- try {
- aIn = aRes.getInputStream();
- bIn = bRes.getInputStream();
- boolean isDirectory = aRes.getType() == IArchiveResource.DIRECTORY_TYPE;
- if (isDirectory) {
- Assert.assertNull(aIn);
- Assert.assertNull(bIn);
- } else {
- Assert.assertNotNull("Failed to get IO stream from A for " + aRes.getPath(), aIn);
- Assert.assertNotNull("Failed to get IO stream from B for " + bRes.getPath(), bIn);
- boolean compareArchives = false;
- String pathString = aRes.getPath().toString();
- for (int i = 0; i < ARCHIVE_EXTENSIONS.length && !compareArchives; i++) {
- if (pathString.endsWith(ARCHIVE_EXTENSIONS[i])) {
- compareArchives = true;
- }
- }
-
- if (compareArchives) {
- compareArchives(a.getNestedArchive(aRes), b.getNestedArchive(bRes));
- } else if (!pathString.endsWith(".class")) {
- Assert.assertTrue("IO Streams are not the same for " + aRes.getPath(), compareStreams(aIn, bIn));
- }
- }
- } finally {
- if (aIn != null) {
- try {
- aIn.close();
- } finally {
- if (bIn != null) {
- bIn.close();
- }
- }
- }
- }
- }
-
- if (!bResources.isEmpty()) {
- StringBuffer error = new StringBuffer("IArchive B contains");
- for (int i = 0; i < bResources.size(); i++) {
- IArchiveResource bRes = bResources.get(i);
- error.append(" " + bRes.getPath());
- }
- Assert.fail(error.toString());
- }
-
- }
-
- public static boolean compareStreams(InputStream a, InputStream b) throws IOException {
- try {
- BufferedInputStream buffA = new BufferedInputStream(a);
- BufferedInputStream buffB = new BufferedInputStream(b);
- int buffSize = 1024;
- byte[] bytesA = new byte[buffSize];
- byte[] bytesB = new byte[buffSize];
- int aRead = -1;
- int bRead = -1;
- while (-1 != (aRead = buffA.read(bytesA))) {
- bRead = buffB.read(bytesB);
- if (aRead != bRead) {
- String aStr = new String(bytesA, 0, aRead);
- String bStr = new String(bytesB, 0, bRead);
- printCompareError(aStr, bStr);
- return false;
- }
- for (int i = 0; i < aRead - 1; i++) {
- if (bytesA[i] != bytesB[i]) {
- String aStr = new String(bytesA, 0, aRead);
- String bStr = new String(bytesB, 0, bRead);
- printCompareError(aStr, bStr);
- return false;
- }
- }
- }
-
- return true;
- } finally {
- try {
- a.close();
- } finally {
- b.close();
- }
- }
- }
-
- private static void printCompareError(String aStr, String bStr) {
- aStr = aStr.replaceAll("\n", "<LF>");
- bStr = bStr.replaceAll("\n", "<LF>");
- aStr = aStr.replaceAll("\r", "<CR>");
- bStr = bStr.replaceAll("\r", "<CR>");
- aStr = aStr.replaceAll(" ", "<SP>");
- bStr = bStr.replaceAll(" ", "<SP>");
- System.err.println("A=[" + aStr + "]");
- System.err.println("B=[" + bStr + "]");
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/HeaderParserTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/HeaderParserTests.java
deleted file mode 100644
index b3eacc35..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/HeaderParserTests.java
+++ /dev/null
@@ -1,396 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.jst.jee.util.internal.JavaEEQuickPeek;
-import org.eclipse.wst.common.tests.AssertWarn;
-import org.eclipse.wst.common.tests.BaseTestCase;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class HeaderParserTests extends BaseTestCase {
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTestSuite(HeaderParserTests.class);
- return suite;
- }
-
- private static final String DATA_DIR = "TestData" + java.io.File.separatorChar + "headerParserTestData" + java.io.File.separatorChar;
-
- protected String getDataPath(String shortName) throws Exception {
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- String pluginRelativeFileName = DATA_DIR + java.io.File.separatorChar + shortName;
- return ProjectUtility.getFullFileName(plugin, pluginRelativeFileName);
- }
-
- private class TestData {
- String fileName;
-
- int type;
-
- int modVersion;
-
- int eeVersion;
-
- boolean deploymentDescriptor;
-
- Class modelObjectInterface;
-
- public TestData(String fileName, int type, int modVersion, int eeVersion) {
- this.fileName = fileName;
- this.type = type;
- this.modVersion = modVersion;
- this.eeVersion = eeVersion;
- }
-
- public TestData(String fileName, int type, int modVersion, int eeVersion, Class modelTypeClass) {
- this(fileName, type, modVersion, eeVersion);
- this.modelObjectInterface = modelTypeClass;
- }
-
- public TestData(String fileName, int type, int modVersion, int eeVersion, Class modelTypeClass,boolean deploymentDescriptor) {
- this(fileName, type, modVersion, eeVersion,modelTypeClass);
- this.deploymentDescriptor = deploymentDescriptor;
- }
- }
-
- public void testNull() throws Exception {
- JavaEEQuickPeek quickPeek = new JavaEEQuickPeek(null);
- Assert.assertEquals(JavaEEQuickPeek.UNKNOWN, quickPeek.getType());
- Assert.assertEquals(JavaEEQuickPeek.UNKNOWN, quickPeek.getVersion());
- Assert.assertEquals(JavaEEQuickPeek.UNKNOWN, quickPeek.getJavaEEVersion());
- }
-
- public void testJavaEEFromArchive() throws Exception {
- List data = new ArrayList();
- data.add(new TestData("application-client12.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- data.add(new TestData("application-client13.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- data.add(new TestData("application-client14.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- data.add(new TestData("application-client5.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.applicationclient.ApplicationClient.class));
-
- data.add(new TestData("application12.ear", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID,
- org.eclipse.jst.j2ee.application.Application.class));
- data.add(new TestData("application13.ear", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID,
- org.eclipse.jst.j2ee.application.Application.class));
- data.add(new TestData("application14.ear", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID,
- org.eclipse.jst.j2ee.application.Application.class));
- data.add(new TestData("application5.ear", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.application.Application.class));
-
- data.add(new TestData("ejb-jar11.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_1_1_ID, J2EEVersionConstants.J2EE_1_2_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- data.add(new TestData("ejb-jar20.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_0_ID, J2EEVersionConstants.J2EE_1_3_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- data.add(new TestData("ejb-jar21.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_1_ID, J2EEVersionConstants.J2EE_1_4_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- data.add(new TestData("ejb-jar30.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
-
- data.add(new TestData("ra10.rar", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_0_ID, J2EEVersionConstants.J2EE_1_3_ID, org.eclipse.jst.j2ee.jca.Connector.class));
- data.add(new TestData("ra15.rar", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_5_ID, J2EEVersionConstants.J2EE_1_4_ID, org.eclipse.jst.j2ee.jca.Connector.class));
-
- data.add(new TestData("web22.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_2_ID, J2EEVersionConstants.J2EE_1_2_ID, WebApp.class));
- data.add(new TestData("web23.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_3_ID, J2EEVersionConstants.J2EE_1_3_ID, WebApp.class));
- data.add(new TestData("web24.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_4_ID, J2EEVersionConstants.J2EE_1_4_ID, WebApp.class));
- data.add(new TestData("web25.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.web.WebApp.class));
-
- IArchive archive = null;
- for (int i = 0; i < data.size(); i++) {
- try {
- TestData testData = (TestData) data.get(i);
- String fileLocation = getDataPath(testData.fileName);
- IPath filePath = new Path(fileLocation);
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(filePath);
- JavaEEQuickPeek peek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(archive);
- Assert.assertEquals(testData.type, peek.getType());
- Assert.assertEquals(testData.modVersion, peek.getVersion());
- Assert.assertEquals(testData.eeVersion, peek.getJavaEEVersion());
-
- Object modelObject = archive.getModelObject();
- Class clazz = modelObject.getClass();
- boolean foundInterface = false;
- for (Class anInterface : clazz.getInterfaces()) {
- if (!foundInterface) {
- foundInterface = anInterface == testData.modelObjectInterface;
- }
- }
- Assert.assertTrue("Returned Model Object: " + modelObject.getClass().getName() + " does not implement " + testData.modelObjectInterface.getName(), foundInterface);
- } finally {
- if (archive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
- }
-
- public void testJavaEE() throws Exception {
-
- List data = getXMLData();
-
- InputStream in = null;
-
- for (int i = 0; i < data.size(); i++) {
- try {
- TestData testData = (TestData) data.get(i);
- in = new FileInputStream(new File(getDataPath(testData.fileName)));
- JavaEEQuickPeek peek = new JavaEEQuickPeek(in);
- Assert.assertEquals(testData.type, peek.getType());
- Assert.assertEquals(testData.modVersion, peek.getVersion());
- Assert.assertEquals(testData.eeVersion, peek.getJavaEEVersion());
- } finally {
- if (in != null) {
- in.close();
- }
- }
- }
-
- }
-
- private List getXMLData() {
- List data = new ArrayList();
- data.add(new TestData("application-client12.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("application-client13.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("application-client14.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("application-client5.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- data.add(new TestData("application12.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("application13.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("application14.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("application5.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- data.add(new TestData("ejb-jar11.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_1_1_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("ejb-jar20.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_0_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("ejb-jar21.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_1_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("ejb-jar30.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- data.add(new TestData("ra10.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_0_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("ra15.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_5_ID, J2EEVersionConstants.J2EE_1_4_ID));
-
- data.add(new TestData("web22.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_2_ID, J2EEVersionConstants.J2EE_1_2_ID));
- data.add(new TestData("web23.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_3_ID, J2EEVersionConstants.J2EE_1_3_ID));
- data.add(new TestData("web24.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_4_ID, J2EEVersionConstants.J2EE_1_4_ID));
- data.add(new TestData("web25.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID));
-
- // test some bogus dds as well
- data.add(new TestData("notxml.xml", J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("notjavaee.xml", J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("application-client0.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application-client00.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application-client000.xml", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("application0.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application00.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("application000.xml", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("ejb-jar0.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ejb-jar00.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ejb-jar000.xml", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("ra0.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ra00.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("ra000.xml", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
-
- data.add(new TestData("web0.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("web00.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- data.add(new TestData("web000.xml", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.UNKNOWN, J2EEVersionConstants.UNKNOWN));
- return data;
- }
-
- public void testNormalizeSchemaLocation() throws Exception {
- verifyNormalizeSchemaLocation("", "");
- verifyNormalizeSchemaLocation("", " ");
- verifyNormalizeSchemaLocation("", " ");
- verifyNormalizeSchemaLocation("", " ");
- verifyNormalizeSchemaLocation("", "\n");
- verifyNormalizeSchemaLocation("", "\n\n");
- verifyNormalizeSchemaLocation("", "\n\n\n");
- verifyNormalizeSchemaLocation("", "\n ");
- verifyNormalizeSchemaLocation("simple", "simple");
- verifyNormalizeSchemaLocation("simple", "simple ");
- verifyNormalizeSchemaLocation("simple", "simple ");
- verifyNormalizeSchemaLocation("simple", "simple ");
- verifyNormalizeSchemaLocation("simple", " simple");
- verifyNormalizeSchemaLocation("simple", " simple ");
- verifyNormalizeSchemaLocation("simple", "simple\n");
- verifyNormalizeSchemaLocation("simple", "\nsimple\n");
- verifyNormalizeSchemaLocation("simple", "simple\r");
- verifyNormalizeSchemaLocation("simple", "simple\t");
- verifyNormalizeSchemaLocation("simple", "simple\n\n");
- verifyNormalizeSchemaLocation("simple", "simple\n\r");
- verifyNormalizeSchemaLocation("simple", "simple\n\t");
- verifyNormalizeSchemaLocation("simple", "simple \n");
- verifyNormalizeSchemaLocation("simple", "simple\r ");
- verifyNormalizeSchemaLocation("simple", " \t\tsimple\t");
- verifyNormalizeSchemaLocation("simple", "simple\n \n");
- verifyNormalizeSchemaLocation("simple", "\r \rsimple \n\r");
- verifyNormalizeSchemaLocation("simple", " simple\n\t");
-
- verifyNormalizeSchemaLocation("simple simple", "simple simple");
- verifyNormalizeSchemaLocation("simple simple", "simple simple");
- verifyNormalizeSchemaLocation("simple simple", "simple\nsimple");
- verifyNormalizeSchemaLocation("simple simple", "simple\rsimple");
- verifyNormalizeSchemaLocation("simple simple", "simple\tsimple");
- verifyNormalizeSchemaLocation("simple simple", "simple \nsimple");
- verifyNormalizeSchemaLocation("simple simple", "simple\r simple");
- verifyNormalizeSchemaLocation("simple simple", "simple \t simple");
- verifyNormalizeSchemaLocation("simple simple", "simple simple ");
- verifyNormalizeSchemaLocation("simple simple", " simple simple");
- verifyNormalizeSchemaLocation("simple simple", " simple simple ");
- verifyNormalizeSchemaLocation("simple simple", "simple\n simple\n");
- verifyNormalizeSchemaLocation("simple simple", "simple\r simple\r");
- verifyNormalizeSchemaLocation("simple simple", "simple\t simple\t");
- verifyNormalizeSchemaLocation("simple simple", "simple\n\nsimple");
- verifyNormalizeSchemaLocation("simple simple", "simple\n\rsimple\n\n");
- verifyNormalizeSchemaLocation("simple simple", "simple\n\tsimple\n\t");
- verifyNormalizeSchemaLocation("simple simple", "simple \nsimple \n");
- verifyNormalizeSchemaLocation("simple simple", "simple\r simple\r ");
- verifyNormalizeSchemaLocation("simple simple", " \t\tsimple\t \t\tsimple\t");
- verifyNormalizeSchemaLocation("simple simple", "simple\n \nsimple\n \n");
- verifyNormalizeSchemaLocation("simple simple", "\r \rsimple \n\r\r \rsimple \n\r");
- verifyNormalizeSchemaLocation("simple simple", " simple\n\t simple\n\t");
- }
-
- private String verifyNormalizeSchemaLocation(String normalizedSchemaLocation, String someSchemaLocation) {
- String normalizedString = JavaEEQuickPeek.normalizeSchemaLocation(someSchemaLocation);
- if(!normalizedSchemaLocation.equals(normalizedString)){
- Assert.assertEquals(normalizedSchemaLocation, normalizedString);
- }
- return normalizedString;
- }
-
- public void testEAR50Import_NoDD() throws Exception {
- List nestedArchiveData = new ArrayList();
- nestedArchiveData.add(new TestData("application-client12.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- nestedArchiveData.add(new TestData("application-client13.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- nestedArchiveData.add(new TestData("application-client14.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- nestedArchiveData.add(new TestData("AppClient5_NoDD.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.applicationclient.ApplicationClient.class));
- nestedArchiveData.add(new TestData("AppClient5_WithDD.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.applicationclient.ApplicationClient.class));
-
- nestedArchiveData.add(new TestData("ejb-jar11.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_1_1_ID, J2EEVersionConstants.J2EE_1_2_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("ejb-jar20.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_0_ID, J2EEVersionConstants.J2EE_1_3_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("ejb-jar21.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_1_ID, J2EEVersionConstants.J2EE_1_4_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_NoDD_MessageDriven.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_NoDD_Stateful.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_NoDD_Stateless.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_WithDD.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
-
- nestedArchiveData.add(new TestData("ra10.rar", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_0_ID, J2EEVersionConstants.J2EE_1_3_ID, org.eclipse.jst.j2ee.jca.Connector.class));
- nestedArchiveData.add(new TestData("ra15.rar", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_5_ID, J2EEVersionConstants.J2EE_1_4_ID, org.eclipse.jst.j2ee.jca.Connector.class));
-
- nestedArchiveData.add(new TestData("web22.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_2_ID, J2EEVersionConstants.J2EE_1_2_ID, WebApp.class));
- nestedArchiveData.add(new TestData("web23.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_3_ID, J2EEVersionConstants.J2EE_1_3_ID, WebApp.class));
- nestedArchiveData.add(new TestData("web24.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_4_ID, J2EEVersionConstants.J2EE_1_4_ID, WebApp.class));
- nestedArchiveData.add(new TestData("Web25_NoDD.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.web.WebApp.class));
- nestedArchiveData.add(new TestData("Web25_WithDD.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.web.WebApp.class));
-
- TestData earData = new TestData("EAR5_NoDD.ear", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.application.Application.class,false);
- runEAR50Tests(earData, nestedArchiveData);
- }
-
- public void testEAR50Import_WithDD() throws Exception {
- List nestedArchiveData = new ArrayList();
- nestedArchiveData.add(new TestData("application-client12.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_2_ID, J2EEVersionConstants.J2EE_1_2_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- nestedArchiveData.add(new TestData("application-client13.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_3_ID, J2EEVersionConstants.J2EE_1_3_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- nestedArchiveData.add(new TestData("application-client14.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.J2EE_1_4_ID, J2EEVersionConstants.J2EE_1_4_ID,
- org.eclipse.jst.j2ee.client.ApplicationClient.class));
- nestedArchiveData.add(new TestData("AppClient5_NoDD.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.applicationclient.ApplicationClient.class));
- nestedArchiveData.add(new TestData("AppClient5_WithDD.jar", J2EEVersionConstants.APPLICATION_CLIENT_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.applicationclient.ApplicationClient.class));
-
- nestedArchiveData.add(new TestData("ejb-jar11.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_1_1_ID, J2EEVersionConstants.J2EE_1_2_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("ejb-jar20.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_0_ID, J2EEVersionConstants.J2EE_1_3_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("ejb-jar21.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_2_1_ID, J2EEVersionConstants.J2EE_1_4_ID, org.eclipse.jst.j2ee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_NoDD_MessageDriven.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_NoDD_Stateful.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_NoDD_Stateless.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
- nestedArchiveData.add(new TestData("EJB3_WithDD.jar", J2EEVersionConstants.EJB_TYPE, J2EEVersionConstants.EJB_3_0_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.ejb.EJBJar.class));
-
- nestedArchiveData.add(new TestData("ra10.rar", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_0_ID, J2EEVersionConstants.J2EE_1_3_ID, org.eclipse.jst.j2ee.jca.Connector.class));
- nestedArchiveData.add(new TestData("ra15.rar", J2EEVersionConstants.CONNECTOR_TYPE, J2EEVersionConstants.JCA_1_5_ID, J2EEVersionConstants.J2EE_1_4_ID, org.eclipse.jst.j2ee.jca.Connector.class));
-
- nestedArchiveData.add(new TestData("web22.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_2_ID, J2EEVersionConstants.J2EE_1_2_ID, WebApp.class));
- nestedArchiveData.add(new TestData("web23.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_3_ID, J2EEVersionConstants.J2EE_1_3_ID, WebApp.class));
- nestedArchiveData.add(new TestData("web24.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_4_ID, J2EEVersionConstants.J2EE_1_4_ID, WebApp.class));
- nestedArchiveData.add(new TestData("Web25_NoDD.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.web.WebApp.class));
- nestedArchiveData.add(new TestData("Web25_WithDD.war", J2EEVersionConstants.WEB_TYPE, J2EEVersionConstants.WEB_2_5_ID, J2EEVersionConstants.JEE_5_0_ID, org.eclipse.jst.javaee.web.WebApp.class));
-
- TestData earData = new TestData("EAR5_WithDD.ear", J2EEVersionConstants.APPLICATION_TYPE, J2EEVersionConstants.JEE_5_0_ID, J2EEVersionConstants.JEE_5_0_ID,
- org.eclipse.jst.javaee.application.Application.class,true);
- runEAR50Tests(earData, nestedArchiveData);
- }
-
- private void runEAR50Tests(TestData earData, List<TestData> nestedArchiveData) throws Exception {
- IArchive earArchive = null;
-
- try {
- String earLocation = getDataPath(earData.fileName);
- IPath earPath = new Path(earLocation);
- earArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(earPath);
- earArchive.getArchiveOptions().setOption(JavaEEArchiveUtilities.DISCRIMINATE_EJB_ANNOTATIONS, Boolean.TRUE);
- JavaEEQuickPeek peek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(earArchive);
- Assert.assertEquals(earData.fileName + " type", earData.type, peek.getType());
- if (earData.deploymentDescriptor){
- Assert.assertEquals(earData.fileName + " mod version", earData.modVersion, peek.getVersion());
- Assert.assertEquals(earData.fileName + " ee version", earData.eeVersion, peek.getJavaEEVersion());
- }
- else{
- Assert.assertTrue(earData.fileName + " mod version", peek.getVersion() >= earData.modVersion);
- Assert.assertTrue(earData.fileName + " ee version", peek.getJavaEEVersion() >= earData.eeVersion);
- }
- IArchiveResource innerArchiveResource;
- IArchive innerArchive = null;
- for(TestData testData : nestedArchiveData) {
- innerArchiveResource = earArchive.getArchiveResource(new Path(testData.fileName));
- innerArchive = earArchive.getNestedArchive(innerArchiveResource);
- peek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(innerArchive);
- AssertWarn.warnEquals(testData.fileName + " type", testData.type, peek.getType());
- AssertWarn.warnEquals(testData.fileName + " mod version", testData.modVersion, peek.getVersion());
- AssertWarn.warnEquals(testData.fileName + " ee version", testData.eeVersion, peek.getJavaEEVersion());
-
- //TODO uncomment this block when this bug is resolved: https://bugs.eclipse.org/bugs/show_bug.cgi?id=199953
- System.err.println("TODO -- can't getModelObject from inner archive of JEE5 EAR");
- System.err.println(" -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=199953");
-// Object modelObject = innerArchive.getModelObject();
-// Class clazz = modelObject.getClass();
-// boolean foundInterface = false;
-// for (Class anInterface : clazz.getInterfaces()) {
-// if (!foundInterface) {
-// foundInterface = anInterface == testData.modelObjectInterface;
-// }
-// }
-// Assert.assertTrue("Returned Model Object: " + modelObject.getClass().getName() + " does not implement " + testData.modelObjectInterface.getName(), foundInterface);
- }
-
- } finally {
- if(earArchive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(earArchive);
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEExportOperationTest.java
deleted file mode 100644
index ed1207b5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEExportOperationTest.java
+++ /dev/null
@@ -1,199 +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.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.io.File;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARExportOperationTest;
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- */
-public abstract class JEEExportOperationTest extends OperationTestCase {
- protected static final String[] JAVA_FILE_NAMES = {"JavaOne","JavaTwo"};
- protected static final String BASE_DATA_DIR = System.getProperty("user.dir") + java.io.File.separatorChar + "JEEExportOperationTests" + java.io.File.separatorChar;
-
- public JEEExportOperationTest() {
- super("JEEProjectExportOperationTests");
- }
-
- public JEEExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("All JEE Export Operation Tests");
- suite.addTest(ModuleExportOperationTest.suite());
- suite.addTest(EARExportOperationTest.suite());
-
- return suite;
- }
-
- /**
- * used to get a string representing a path where a file with given suffix can be stored.
- *
- * @param suffix the suffix to append to the BASE_DATA_DIR
- * @return a string containing the BASE_DATA_DIR appended with the given suffix
- */
- protected static String getDataPath(String suffix) {
- return BASE_DATA_DIR + suffix;
- }
-
- protected static void deleteExported(String archivePath) {
- File f = new File(archivePath);
- f.delete();
- }
-
- /**
- * @param projectName name of the project to export
- * @param destination destination to export to
- * @param exportSource if TRUE export source files, else don't
- * @param runBuild if TRUE run a build before exporting, else don't
- * @param overwriteExisting if TRUE overwrite existing files, else don't
- * @return an Export Data Model data model with all of the given settings.
- */
- protected abstract IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting);
-
- /**
- * Should run all of the needed export tests for the child's type of export
- * there needs to be at a project of projectType created in the workspace
- *
- * @param creationModel the model used to create the project to export
- */
- protected abstract void runExportTests_All(IDataModel creationModel) throws Exception;
-
- protected abstract String getModuleExtension();
-
- /**
- * @param projectName name of the project exported
- * @return the name of the archive exported
- * @throws Exception
- */
- protected String runAndVerifyExport_Defaults(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_Defaults" + getModuleExtension();
- String destination = getDataPath(archiveName);
-
- IDataModel exportModel = getExportDataModel(projectName, destination, false, true, false);
- runAndVerify(exportModel);
-
- return archiveName;
- }
-
- /**
- * @param projectName name of the project exported
- * @return the name of the archive exported
- * @throws Exception
- */
- protected String runAndVerifyExport_WithSource(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_WithSource" + getModuleExtension();
- String destination = getDataPath(archiveName);
-
- IDataModel exportModel = getExportDataModel(projectName, destination, true, true, false);
- runAndVerify(exportModel);
-
- return archiveName;
- }
-
- /**
- * @param projectName name of the project exported
- * @return the name of the archive exported
- * @throws Exception
- */
- protected String runAndVerifyExport_DontRunBuild(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_DontRunBuild" + getModuleExtension();
- String destination = getDataPath(archiveName);
-
- IDataModel exportModel = getExportDataModel(projectName, destination, false, false, false);
- runAndVerify(exportModel);
-
- return archiveName;
- }
-
- /**
- * @param projectName name of the project exported
- * @return the name of the archive exported
- * @throws Exception
- */
- protected String runAndVerifyExport_WithSource_DontRunBuild(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_WithSource_DontRunBuild" + getModuleExtension();
- String destination = getDataPath(archiveName);
-
- IDataModel exportModel = getExportDataModel(projectName, destination, true, false, false);
- runAndVerify(exportModel);
-
- return archiveName;
- }
-
- /**
- * @param projectName name of the project exported
- * @throws Exception
- */
- protected void runTest_AttemptToOverwriteButCant(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_AttemptToOverwriteButCant"+ getModuleExtension();
- String destination = getDataPath(archiveName);
-
- try {
- IDataModel exportModel = getExportDataModel(projectName, destination, false, true, false);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(exportModel);
-
- IDataModel exportModelOverwrite = getExportDataModel(projectName, destination, false, true, false);
- IStatus status = exportModelOverwrite.validate();
- int severity = status.getSeverity();
- Assert.assertEquals("Validate on the model should be returning an error because model should not be able overwrite existing archive", IStatus.ERROR, severity);
- } finally {
- deleteExported(archiveName);
- }
- }
-
- /**
- * @param projectName name of the project exported
- * @throws Exception
- */
- protected void runTest_AttemptToOverwriteSholdSucceed(String projectName) throws Exception {
- String archiveName = this.getClass().getSimpleName() + "_" + this.getName() + "_AttemptToOverwriteSholdSucceed" + getModuleExtension();
- String destination = getDataPath(archiveName);
-
- try {
- IDataModel exportModel = getExportDataModel(projectName, destination, false, true, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(exportModel);
-
- IDataModel exportModelOverwrite = getExportDataModel(projectName, destination, false, true, true);
- IStatus status = exportModelOverwrite.validate();
- int severity = status.getSeverity();
- Assert.assertEquals("Data model should be allowed to overwrite existing archive", IStatus.OK, severity);
- } finally {
- deleteExported(archiveName);
- }
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
-
- //clean up any exported files that got left behind if an error occurred
- String dataPath = getDataPath("");
- File dataFolder = new File(dataPath);
- File[] files = dataFolder.listFiles();
-
- for(int i = 0; i < files.length; i++) {
- files[i].delete();
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEImportOperationTest.java
deleted file mode 100644
index 4f1ec4c5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEImportOperationTest.java
+++ /dev/null
@@ -1,264 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-/**
- * @author itewk
- */
-public abstract class JEEImportOperationTest extends OperationTestCase {
-
- public JEEImportOperationTest() {
- super("JEEImportOperationTests");
- }
-
- public JEEImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("All JEE Import Operation Tests");
- suite.addTest(ModuleImportOperationTest.suite());
- suite.addTest(EARImportOperationTest.suite());
-
- return suite;
- }
-
- protected String getTestDataDirectoryName() {
- return this.getClass().getSimpleName();
- }
-
- private static final String BASE_IMPORT_DIR = "TestData" + java.io.File.separatorChar + "JEEImportOperationTests" + java.io.File.separatorChar;
-
- protected String getArchivePath(String archiveName) throws Exception {
- HeadlessTestsPlugin plugin = HeadlessTestsPlugin.getDefault();
- String pluginRelativeFileName = BASE_IMPORT_DIR + getTestDataDirectoryName() + java.io.File.separatorChar + archiveName;
- return ProjectUtility.getFullFileName(plugin, pluginRelativeFileName);
- }
-
- private static final String TEMP_EXPORT_DIR = System.getProperty("user.dir") + java.io.File.separatorChar + "JEEExportOperationTests" + java.io.File.separatorChar;
- protected String getExportPath(String archiveName) throws Exception {
- return TEMP_EXPORT_DIR + archiveName;
- }
-
- /**
- *
- * @param filePath
- * @param projectName
- * @param overwriteHandler
- * @param creationModel
- * @param closeArchiveOnDispose
- * @return
- */
- protected abstract IDataModel getImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) throws Exception;
-
- protected abstract IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting);
-
- /**
- * Should run all of the needed import tests for the child's type of import
- */
- protected void runImportTests_All(String testName) throws Exception {
- String archiveName = null;
-
- archiveName = testName + "_Defaults" + getModuleExtension();
- runAndVerifyImport_ExportedDefaults(archiveName);
- OperationTestCase.deleteAllProjects();
-
- archiveName = testName + "_Source" + getModuleExtension();
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
-
- archiveName = testName + "_NoBuild" + getModuleExtension();
- runAndVerifyImport_ExportedWithDontRunBuild(archiveName);
- OperationTestCase.deleteAllProjects();
-
- archiveName = testName + "_Source_NoBuild" + getModuleExtension();
- runAndVerifyImport_ExportedWithSrouce_ExportedWithDontRunBuild(archiveName);
- OperationTestCase.deleteAllProjects();
- }
-
- protected abstract String getModuleExtension();
-
-// protected void runAndVerifyImport(String archivePath, String projectName) throws Exception {
-// verifyImportArchiveExists(archivePath);
-//
-// IDataModel importModel = getImportDataModel(archivePath, projectName, null, null, true);
-// OperationTestCase.runAndVerify(importModel);
-// }
-
- protected void runAndVerifyImport_ExportedDefaults(String archiveName) throws Exception {
- String archivePath = getArchivePath(archiveName);
- String projectName = "exportedDefaults";
-
- verifyImportArchiveExists(archivePath);
-
- IDataModel importModel = getImportDataModel(archivePath, projectName, null, true);
- OperationTestCase.runAndVerify(importModel);
-
- runAndVerifyReExportation(importModel, true, true);
- }
-
- protected void runAndVerifyImport_ExportedWithSource(String archiveName) throws Exception {
- String archivePath = getArchivePath(archiveName);
- String projectName = "exportedWithSource";
-
- verifyImportArchiveExists(archivePath);
-
- IDataModel importModel = getImportDataModel(archivePath, projectName, null, true);
- runAndVerify(importModel);
-
- runAndVerifyReExportation(importModel, true, true);
- }
-
- protected void runAndVerifyImport_ExportedWithDontRunBuild(String archiveName) throws Exception {
- String archivePath = getArchivePath(archiveName);
- String projectName = "exportedWithDontRunBuild";
-
- verifyImportArchiveExists(archivePath);
-
- IDataModel importModel = getImportDataModel(archivePath, projectName, null, true);
- runAndVerify(importModel);
- }
-
- protected void runAndVerifyImport_ExportedWithSrouce_ExportedWithDontRunBuild(String archiveName) throws Exception {
- String archivePath = getArchivePath(archiveName);
- String projectName = "exportedWithSourceAndDontRunBuild";
-
- verifyImportArchiveExists(archivePath);
-
- IDataModel importModel = getImportDataModel(archivePath, projectName, null, true);
- runAndVerify(importModel);
- }
-
- protected void runAndVerifyReExportation(IDataModel importModel, boolean exportSource, boolean runBuild) throws Exception {
- IArchive importedArchive = null;
- IArchive exportedArchive = null;
-
- String projectName = importModel.getStringProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME);
- String importedArchivePath = importModel.getStringProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME);
-
- String exportDestination = getExportPath(projectName + getModuleExtension());
-
- try {
- IDataModel exportModel = getExportDataModel(projectName, exportDestination, exportSource, runBuild, true);
-
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(exportModel);
-
- importedArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(importedArchivePath));
- exportedArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(exportDestination));
-
- List<IArchiveResource> importedArchiveResources = importedArchive.getArchiveResources();
- List<IArchiveResource> exportedArchiveResources = exportedArchive.getArchiveResources();
-
- List<IPath> importedArchiveFileResourcePaths = new ArrayList<IPath>();
- List<IPath> exportedArchiveFileResourcePaths = new ArrayList<IPath>();
-
- List<IPath> importedArchiveDirResourcePaths = new ArrayList<IPath>();
- List<IPath> exportedArchiveDirResourcePaths = new ArrayList<IPath>();
-
- for(IArchiveResource importedArchiveResource : importedArchiveResources) {
- if(importedArchiveResource.getType() == IArchiveResource.DIRECTORY_TYPE) {
- importedArchiveDirResourcePaths.add(importedArchiveResource.getPath());
- } else {
- importedArchiveFileResourcePaths.add(importedArchiveResource.getPath());
- }
- }
-
- for(IArchiveResource exportedArchiveResource : exportedArchiveResources) {
- if(exportedArchiveResource.getType() == IArchiveResource.DIRECTORY_TYPE) {
- exportedArchiveDirResourcePaths.add(exportedArchiveResource.getPath());
- } else {
- exportedArchiveFileResourcePaths.add(exportedArchiveResource.getPath());
- }
- }
-
- if(exportedArchiveFileResourcePaths.contains(new Path("/"))){
- Assert.fail("Exported Archive should not contain a root entry '/'");
- }
-
- List<IPath>missingFromImport = new ArrayList<IPath>();
- boolean exported;
- for(IPath importedPath : importedArchiveDirResourcePaths) {
- exported = exportedArchiveDirResourcePaths.contains(importedPath);
- if(!exported){
- if(importedPath.lastSegment() != null){ //don't include root entries
- missingFromImport.add(importedPath);
- }
- }
- }
-
- List<IPath> missingFromExport = new ArrayList<IPath>();
- for(IPath importedPath : importedArchiveFileResourcePaths){
- exported = exportedArchiveFileResourcePaths.remove(importedPath);
- if(!exported){
- if(importedPath.lastSegment() != null){ //don't include root entries
- missingFromExport.add(importedPath);
- }
- }
- }
-
- if(!missingFromExport.isEmpty() || !missingFromImport.isEmpty()){
- StringBuffer buffer = new StringBuffer();
- if(!missingFromExport.isEmpty()){
- buffer.append("The following are missing from the exported IArchive:\n");
- for(IPath path: missingFromExport){
- buffer.append(path+"\n");
- }
- }
- if(!missingFromImport.isEmpty()){
- buffer.append("The following are missing from the imported IArchive:\n");
- for(IPath path: missingFromImport){
- buffer.append(path+"\n");
- }
- }
- String str = buffer.toString();
- System.err.println(str);
- Assert.fail(str);
- }
- } finally {
- if (null != importedArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(importedArchive);
- }
-
- if (null != exportedArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(exportedArchive);
- }
-
- File f = new File(exportDestination);
- f.delete();
- }
- }
-
- protected void verifyImportArchiveExists(String archivePath) {
- Assert.assertNotNull("The path to the archive to import can not be null", archivePath);
- File archive = new File(archivePath);
- Assert.assertTrue("The archive to import, " + archivePath + " does not exist", archive.exists());
- }
-
-// @Override
-// public void run(TestResult result) {
-// if(this.result == null) {
-// this.result = result;
-// }
-//
-// super.run(result);
-// }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEProjectCreationOperationTest.java
deleted file mode 100644
index 9613d5d9..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JEEProjectCreationOperationTest.java
+++ /dev/null
@@ -1,39 +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.wtp.j2ee.headless.tests.j2ee.operations;
-
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARProjectCreationOperationTest;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- */
-public class JEEProjectCreationOperationTest extends OperationTestCase {
-
- public JEEProjectCreationOperationTest() {
- super("JEEProjectCreationOperationTests");
- }
-
- public JEEProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("All JEE Project Creation Operation Tests");
- suite.addTest(ModuleProjectCreationOperationTest.suite());
- suite.addTest(EARProjectCreationOperationTest.suite());
-
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaEEFacetConstants.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaEEFacetConstants.java
deleted file mode 100644
index 287f3328..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaEEFacetConstants.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-
-public class JavaEEFacetConstants {
-
- public static final IProjectFacet APP_CLIENT_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_APPCLIENT_MODULE); //$NON-NLS-1$
- public static final IProjectFacetVersion APP_CLIENT_12 = APP_CLIENT_FACET.getVersion("1.2"); //$NON-NLS-1$
- public static final IProjectFacetVersion APP_CLIENT_13 = APP_CLIENT_FACET.getVersion("1.3"); //$NON-NLS-1$
- public static final IProjectFacetVersion APP_CLIENT_14 = APP_CLIENT_FACET.getVersion("1.4"); //$NON-NLS-1$
- public static final IProjectFacetVersion APP_CLIENT_5 = APP_CLIENT_FACET.getVersion("5.0"); //$NON-NLS-1$
- public static final IProjectFacetVersion APP_CLIENT_6 = APP_CLIENT_FACET.getVersion("6.0"); //$NON-NLS-1$
-
- public static final IProjectFacet EJB_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EJB_MODULE); //$NON-NLS-1$
- public static final IProjectFacetVersion EJB_11 = EJB_FACET.getVersion("1.1"); //$NON-NLS-1$
- public static final IProjectFacetVersion EJB_2 = EJB_FACET.getVersion("2.0"); //$NON-NLS-1$
- public static final IProjectFacetVersion EJB_21 = EJB_FACET.getVersion("2.1"); //$NON-NLS-1$
- public static final IProjectFacetVersion EJB_3 = EJB_FACET.getVersion("3.0"); //$NON-NLS-1$
- public static final IProjectFacetVersion EJB_31 = EJB_FACET.getVersion("3.1"); //$NON-NLS-1$
-
- public static final IProjectFacet WEB_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_WEB_MODULE); //$NON-NLS-1$
- public static final IProjectFacetVersion WEB_22 = WEB_FACET.getVersion("2.2"); //$NON-NLS-1$
- public static final IProjectFacetVersion WEB_23 = WEB_FACET.getVersion("2.3"); //$NON-NLS-1$
- public static final IProjectFacetVersion WEB_24 = WEB_FACET.getVersion("2.4"); //$NON-NLS-1$
- public static final IProjectFacetVersion WEB_25 = WEB_FACET.getVersion("2.5"); //$NON-NLS-1$
- public static final IProjectFacetVersion WEB_30 = WEB_FACET.getVersion("3.0"); //$NON-NLS-1$
-
- public static final IProjectFacet CONNECTOR_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_CONNECTOR_MODULE); //$NON-NLS-1$
- public static final IProjectFacetVersion CONNECTOR_1 = CONNECTOR_FACET.getVersion("1.0"); //$NON-NLS-1$
- public static final IProjectFacetVersion CONNECTOR_15 = CONNECTOR_FACET.getVersion("1.5"); //$NON-NLS-1$
- public static final IProjectFacetVersion CONNECTOR_16 = CONNECTOR_FACET.getVersion("1.6"); //$NON-NLS-1$
-
- public static final IProjectFacet EAR_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE); //$NON-NLS-1$
- public static final IProjectFacetVersion EAR_12 = EAR_FACET.getVersion("1.2"); //$NON-NLS-1$
- public static final IProjectFacetVersion EAR_13 = EAR_FACET.getVersion("1.3"); //$NON-NLS-1$
- public static final IProjectFacetVersion EAR_14 = EAR_FACET.getVersion("1.4"); //$NON-NLS-1$
- public static final IProjectFacetVersion EAR_5 = EAR_FACET.getVersion("5.0"); //$NON-NLS-1$
- public static final IProjectFacetVersion EAR_6 = EAR_FACET.getVersion("6.0"); //$NON-NLS-1$
-
- public static final IProjectFacet JAVA_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_JAVA); //$NON-NLS-1$
- public static final IProjectFacetVersion JAVA_13 = JAVA_FACET.getVersion("1.3"); //$NON-NLS-1$
- public static final IProjectFacetVersion JAVA_14 = JAVA_FACET.getVersion("1.4"); //$NON-NLS-1$
- public static final IProjectFacetVersion JAVA_5 = JAVA_FACET.getVersion("5.0"); //$NON-NLS-1$
- public static final IProjectFacetVersion JAVA_6 = JAVA_FACET.getVersion("6.0"); //$NON-NLS-1$
-
- public static final IProjectFacet WEBFRAGMENT_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_WEBFRAGMENT_MODULE);
- public static final IProjectFacetVersion WEBFRAGMENT_30 = WEBFRAGMENT_FACET.getVersion("3.0"); //$NON-NLS-1$
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaFileTestingUtilities.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaFileTestingUtilities.java
deleted file mode 100644
index 96a95434..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaFileTestingUtilities.java
+++ /dev/null
@@ -1,403 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.io.FileNotFoundException;
-import java.io.StringBufferInputStream;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-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.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.common.jdt.internal.javalite.JavaLiteUtilities;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-
-public class JavaFileTestingUtilities {
- protected static final int MAX_FILE_CREATION_WAIT = 3000;
-
- private static final String WAR_EXTENSION = "war";
- private static final String JAR_EXTENSION = "jar";
- private static final String RAR_EXTENSION = "rar";
-
- private static final String WEB_PACKAGE = "webSrc";
- private static final String APP_CLIENT_PACKAGE = "appClientSrc";
- private static final String EJB_PACKAGE = "ejbSrc";
- private static final String CONNECTOR_PACKAGE = "connectorSrc";
- private static final String UTILITY_PACKAGE = "utilitySrc";
-
- //key is project name, value is array of java class names added to that project
- private static Map<String, String[]> webProjectJavaFiles = new HashMap<String, String[]>();
- private static Map<String, String[]> appClientProjectJavaFiles = new HashMap<String, String[]>();
- private static Map<String, String[]> ejbProjectJavaFiles = new HashMap<String, String[]>();
- private static Map<String, String[]> connectorProjectJavaFiles = new HashMap<String, String[]>();
- private static Map<String, String[]> utilityProjectJavaFiles = new HashMap<String, String[]>();
-
- public static void addJavaFilesToAppClient(String projectName, String[] classNames, String prackageName) throws Exception {
- IVirtualComponent projVirtComp = ComponentUtilities.getComponent(projectName);
- IVirtualFolder virtRootFolder = projVirtComp.getRootFolder();
- addJavaFilesToSrcFolder(virtRootFolder, classNames, prackageName, null);
- }
-
- public static void addJavaFilesToEJB(String projectName, String[] classNames, String prackageName) throws Exception {
- IVirtualComponent projVirtComp = ComponentUtilities.getComponent(projectName);
- IVirtualFolder virtRootFolder = projVirtComp.getRootFolder();
- addJavaFilesToSrcFolder(virtRootFolder, classNames, prackageName, null);
- }
-
- public static void addJavaFileToEJB(String projectName, String className, String packageName, String classContents) throws Exception {
- IVirtualComponent projVirtComp = ComponentUtilities.getComponent(projectName);
- IVirtualFolder virtRootFolder = projVirtComp.getRootFolder();
- addJavaFilesToSrcFolder(virtRootFolder, new String [] {className }, packageName, classContents);
- }
-
- public static void addJavaFilesToWeb(String projectName, String[] classNames, String prackageName) throws Exception {
- IProject proj = J2EEProjectUtilities.getProject(projectName);
-
- //for web projects the default src directory is not in the root folder
- List <IContainer> sourceContainers = JavaLiteUtilities.getJavaSourceContainers(ComponentCore.createComponent(proj));
- Assert.assertTrue("Project should have at least one source root", sourceContainers.size() > 0);
- IFolder srcFolder = (IFolder)sourceContainers.get(0);
- addJavaFilesToSrcFolder(srcFolder, classNames, prackageName, null);
- }
-
- public static void addJavaFilesToConnector(String projectName, String[] classNames, String prackageName) throws Exception {
- IVirtualComponent projVirtComp = ComponentUtilities.getComponent(projectName);
- IVirtualFolder virtRootFolder = projVirtComp.getRootFolder();
- addJavaFilesToSrcFolder(virtRootFolder, classNames, prackageName, null);
- }
-
- public static void addJavaFilesToUtility(String projectName, String[] classNames, String prackageName) throws Exception {
- IVirtualComponent projVirtComp = ComponentUtilities.getComponent(projectName);
- IVirtualFolder virtRootFolder = projVirtComp.getRootFolder();
- addJavaFilesToSrcFolder(virtRootFolder, classNames, prackageName, null);
- }
-
- public static void verifyJavaFilesInJAR(String archivePath, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- IArchive archive = null;
-
- try {
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(archivePath));
- verifyJavaFilesInJAR(archive, classNames, packageName, withClassFiles, withSource);
- } finally {
- if(archive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
-
- public static void verifyJavaFilesInWAR(String archivePath, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- IArchive archive = null;
-
- try {
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(archivePath));
- verifyJavaFilesInWAR(archive, classNames, packageName, withClassFiles, withSource);
- } finally {
- if(archive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
-
- public static void verifyJavaFilesInRAR(String archivePath, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- IArchive archive = null;
-
- try {
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(archivePath));
- verifyJavaFilesInRAR(archive, classNames, packageName, withClassFiles, withSource);
- } finally {
- if(archive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
-
- public static void verifyJavaFilesInJAR(IArchive archive, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- String srcDirectoryPath = packageName + java.io.File.separatorChar;
- verifyJavaFilesExported(archive, srcDirectoryPath, classNames, withClassFiles, withSource);
- }
-
- public static void verifyJavaFilesInWAR(IArchive archive, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- String srcDirectoryPath = "WEB-INF" + java.io.File.separatorChar + "classes"+ java.io.File.separatorChar + packageName + java.io.File.separatorChar;
- verifyJavaFilesExported(archive, srcDirectoryPath, classNames, withClassFiles, withSource);
- }
-
- public static void verifyJavaFilesInRAR(IArchive archive, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- List<IArchiveResource> resources = archive.getArchiveResources();
- IPath resourcePath = null;
- String resourceName = null;
- boolean foundNestedArchiveResource = false;
- for(IArchiveResource resource : resources) {
- resourcePath = resource.getPath();
- resourceName = resourcePath.lastSegment();
-
- foundNestedArchiveResource = resourceName.contains("_") && resourcePath.getFileExtension().equals("jar");
- if(foundNestedArchiveResource) {
- break;
- }
- }
-
- Assert.assertTrue("The connector should contain a nested archive resource", foundNestedArchiveResource);
-
- IArchiveResource nestedArchiveResource = archive.getArchiveResource(new Path(resourceName));
- IArchive nestedArchive = archive.getNestedArchive(nestedArchiveResource);
-
- String srcDirectoryPath = packageName + java.io.File.separatorChar;
- verifyJavaFilesExported(nestedArchive, srcDirectoryPath, classNames, withClassFiles, withSource);
- }
-
- protected static void addJavaFilesToSrcFolder(IVirtualFolder virtSrcFolder, String[] classNames, String prackageName, String classContents) throws Exception {
- IVirtualFolder packageVirtFolder = virtSrcFolder.getFolder(prackageName);
- packageVirtFolder.create(0, null);
-
- IVirtualFile virtFile = null;
- List <IFile>filesList = new ArrayList<IFile>();
- for(int i = 0; i < classNames.length; i++) {
- virtFile = packageVirtFolder.getFile(classNames[i] + ".java");
- filesList.add(virtFile.getUnderlyingFile());
- }
-
- addJavaFilesToSrcFolder(filesList, prackageName, classContents);
- }
-
- protected static void addJavaFilesToSrcFolder(IFolder srcFolder, String[] classNames, String prackageName, String classContents) throws Exception {
- IFolder packageFolder = srcFolder.getFolder(prackageName);
- packageFolder.create(0, true, null);
-
- IFile file = null;
- List <IFile>filesList = new ArrayList<IFile>();
- for(int i = 0; i < classNames.length; i++) {
- file = packageFolder.getFile(classNames[i] + ".java");
- filesList.add(file);
- }
-
- addJavaFilesToSrcFolder(filesList, prackageName, classContents);
- }
-
- protected static void addJavaFilesToSrcFolder(List<IFile> filesList, String packageName, String classContents) throws Exception {
- int maxWait = MAX_FILE_CREATION_WAIT;
- String fileContents = null;
- String className = null;
- try{
- //add listener to workspace
- ResourcesPlugin.getWorkspace().addResourceChangeListener(JavaFileUpdateListener.getInstance());
-
- //listen for all files in the file list to be created
- List <IFile> files = new ArrayList<IFile>();
- files.addAll(filesList);
- JavaFileUpdateListener.getInstance().setFiles(files);
-
- //create Java files
- for(int i = 0; i < filesList.size(); i++) {
- className = filesList.get(i).getProjectRelativePath().removeFileExtension().lastSegment();
- if(classContents == null){
- fileContents = generateJavaFileContent(className, packageName);
- } else {
- fileContents = classContents;
- }
- filesList.get(i).create(new StringBufferInputStream(fileContents),true,null);
- }
-
- //Wait until resource change events have been processed for all of the Java files created
- while(!JavaFileUpdateListener.getInstance().areFilesCreated() && maxWait > 0) {
- Thread.sleep(10);
- maxWait -= 10;
- }
- Assert.assertTrue("Should not have timed out waiting for Java files to be created", maxWait > 0);
-
- } finally{
- ResourcesPlugin.getWorkspace().removeResourceChangeListener(JavaFileUpdateListener.getInstance());
- }
- }
-
- protected static String generateJavaFileContent(String className, String packageName) {
- return "package " + packageName + "; public class " + className + " { }";
- }
-
- protected static void verifyJavaFilesExported(IArchive archive, String srcDirectoryPath, String[] classNames, boolean withClassFiles, boolean withSource) throws Exception {
- IArchiveResource resource = null;
- IPath resourcePath = null;
- for(int i = 0; i < classNames.length; i++) {
- if(withClassFiles) {
- resourcePath = new Path(srcDirectoryPath + classNames[i] + ".class");
- try{
- resource = archive.getArchiveResource(resourcePath);
- if(resource == null){
- System.err.println("TODO -- There should be an archive resource class file for class " + classNames[i]);
- System.err.println(" -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=195668");
- //Assert.fail("There should be an archive resource class file for class " + classNames[i]);
- }
- resource = null;
- resourcePath = null;
- } catch (FileNotFoundException e){
- System.err.println("TODO -- There should be an archive resource class file for class " + classNames[i]);
- System.err.println(" -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=195668");
- //Assert.fail("There should be an archive resource class file for class " + classNames[i]);
- }
- }
-
- if(withSource) {
- resourcePath = new Path(srcDirectoryPath + classNames[i] + ".java");
- resource = archive.getArchiveResource(resourcePath);
- if(resource == null){
- Assert.fail("There should be an archive resource source file for class " + classNames[i]);
- }
- resource = null;
- resourcePath = null;
- }
- }
- }
-
- /**
- * adds two java files to every project that this ear references, to verify these files were exported correctly
- * run verifyAllJavaFilesExportedToProjectsInEAR
- *
- * be sure to run clearJavaFilesForEAR() when done with export verifications.
- */
- public static void addJavaFilesToAllProjectsInEAR(IProject earProject) throws Exception {
- IProject[] webProjects = J2EEProjectUtilities.getAllProjectsInWorkspaceOfType(J2EEProjectUtilities.DYNAMIC_WEB);
- IProject[] appClientProjects = J2EEProjectUtilities.getAllProjectsInWorkspaceOfType(J2EEProjectUtilities.APPLICATION_CLIENT);
- IProject[] connectorProjects = J2EEProjectUtilities.getAllProjectsInWorkspaceOfType(J2EEProjectUtilities.JCA);
- IProject[] ejbProjects = J2EEProjectUtilities.getAllProjectsInWorkspaceOfType(J2EEProjectUtilities.EJB);
- IProject[] utilityProjects = J2EEProjectUtilities.getAllProjectsInWorkspaceOfType(J2EEProjectUtilities.UTILITY);
-
- String projectName = null;
- int fileCount = 0;
-
-
- List<IProject> referencedProjects = Arrays.asList(earProject.getReferencedProjects());
-
- for(IProject project : webProjects) {
- if(referencedProjects.contains(project)) {
- projectName = project.getName();
- String[] classNameList = {"JavaFile" + (fileCount++), "Javafile" + (fileCount++)};
- JavaFileTestingUtilities.addJavaFilesToWeb(projectName, classNameList, WEB_PACKAGE);
- webProjectJavaFiles.put(projectName, classNameList);
- }
- }
-
- for(IProject project : appClientProjects) {
- if(referencedProjects.contains(project)) {
- projectName = project.getName();
- String[] classNameList = {"JavaFile" + (fileCount++), "Javafile" + (fileCount++)};
- JavaFileTestingUtilities.addJavaFilesToAppClient(projectName, classNameList, APP_CLIENT_PACKAGE);
- appClientProjectJavaFiles.put(projectName, classNameList);
- }
- }
-
- for(IProject project : connectorProjects) {
- if(referencedProjects.contains(project)) {
- projectName = project.getName();
- String[] classNameList = {"JavaFile" + (fileCount++), "Javafile" + (fileCount++)};
- JavaFileTestingUtilities.addJavaFilesToConnector(projectName, classNameList, CONNECTOR_PACKAGE);
- connectorProjectJavaFiles.put(projectName, classNameList);
- }
- }
-
- for(IProject project : ejbProjects) {
- if(referencedProjects.contains(project)) {
- projectName = project.getName();
- String[] classNameList = {"JavaFile" + (fileCount++), "Javafile" + (fileCount++)};
- JavaFileTestingUtilities.addJavaFilesToEJB(projectName, classNameList, EJB_PACKAGE);
- ejbProjectJavaFiles.put(projectName, classNameList);
- }
- }
-
- for(IProject project : utilityProjects) {
- if(referencedProjects.contains(project)) {
- projectName = project.getName();
- String[] classNameList = {"JavaFile" + (fileCount++), "Javafile" + (fileCount++)};
- JavaFileTestingUtilities.addJavaFilesToUtility(projectName, classNameList, UTILITY_PACKAGE);
- utilityProjectJavaFiles.put(projectName, classNameList);
- }
- }
- }
-
- /**
- * be sure to call addJavaFilesToAllProjectsInEAR() before trying to verify that the files were added
- *
- * @param earArchivePath
- * @param withClassFiles
- * @param withSource
- * @throws Exception
- */
- public static void verifyAllJavaFilesExportedToProjectsInEAR(String earArchivePath, boolean withClassFiles, boolean withSource ) throws Exception {
- IArchive earArchive = null;
-
- try {
- earArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(earArchivePath));
- List<IArchiveResource> resources = earArchive.getArchiveResources();
-
- String extension = null;
- IArchive nestedArchive = null;
- String nestedArchiveName = null;
- String[] classNames = null;
- for(IArchiveResource resource : resources) {
- extension = resource.getPath().getFileExtension();
-
- if(extension != null) {
- if(extension.equals(WAR_EXTENSION)) {
- nestedArchive = earArchive.getNestedArchive(resource);
- nestedArchiveName = nestedArchive.getPath().removeFileExtension().lastSegment();
- classNames = webProjectJavaFiles.get(nestedArchiveName);
-
- verifyJavaFilesInWAR(nestedArchive, classNames, WEB_PACKAGE, withClassFiles, withSource);
- } else if(extension.equals(JAR_EXTENSION)) {
- nestedArchive = earArchive.getNestedArchive(resource);
- nestedArchiveName = nestedArchive.getPath().removeFileExtension().lastSegment();
-
- //EJB, AppClients and Utilitys have the same extension, so if project isn't in AppClient list
- // check EJB list, if not in EJB list check Utility list
- classNames = appClientProjectJavaFiles.get(nestedArchiveName);
- if(classNames == null) {
- classNames = ejbProjectJavaFiles.get(nestedArchiveName);
-
- if(classNames != null) {
- verifyJavaFilesInJAR(nestedArchive, classNames, EJB_PACKAGE, withClassFiles, withSource);
- } else {
- classNames = utilityProjectJavaFiles.get(nestedArchiveName);
- verifyJavaFilesInJAR(nestedArchive, classNames, UTILITY_PACKAGE, withClassFiles, withSource);
- }
- } else {
- verifyJavaFilesInJAR(nestedArchive, classNames, APP_CLIENT_PACKAGE, withClassFiles, withSource);
- }
-
- } else if(extension.equals(RAR_EXTENSION)) {
- nestedArchive = earArchive.getNestedArchive(resource);
- nestedArchiveName = nestedArchive.getPath().removeFileExtension().lastSegment();
- classNames = connectorProjectJavaFiles.get(nestedArchiveName);
-
- verifyJavaFilesInRAR(nestedArchive, classNames, CONNECTOR_PACKAGE, withClassFiles, withSource);
- }
- }
- }
-
- } finally {
- if(earArchive != null) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(earArchive);
- }
- }
- }
-
- public static void clearJavaFilesForEAR() {
- appClientProjectJavaFiles.clear();
- ejbProjectJavaFiles.clear();
- connectorProjectJavaFiles.clear();
- webProjectJavaFiles.clear();
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaFileUpdateListener.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaFileUpdateListener.java
deleted file mode 100644
index 1b89b198..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/JavaFileUpdateListener.java
+++ /dev/null
@@ -1,95 +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.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceChangeEvent;
-import org.eclipse.core.resources.IResourceChangeListener;
-import org.eclipse.core.resources.IResourceDelta;
-import org.eclipse.core.resources.IResourceDeltaVisitor;
-import org.eclipse.core.runtime.CoreException;
-
-public class JavaFileUpdateListener implements IResourceChangeListener, IResourceDeltaVisitor {
-
- private static JavaFileUpdateListener instance = null;
-
- public static JavaFileUpdateListener getInstance(){
- if(instance == null){
- instance = new JavaFileUpdateListener();
- }
- return instance;
- }
-
- private List <IFile> filesList = null;
-
- public void setFiles(List<IFile> filesList){
- this.filesList = filesList;
- }
-
- public boolean areFilesCreated() {
- return filesList == null || filesList.size() == 0;
- }
-
- public void resourceChanged(IResourceChangeEvent event) {
- switch (event.getType()){
- case IResourceChangeEvent.POST_CHANGE:
- try {
- event.getDelta().accept(this);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- break;
- }
- }
-
- public boolean visit(IResourceDelta delta) throws CoreException {
- if(filesList == null){
- return false;
- }
- IResource resource = delta.getResource();
- switch (resource.getType()) {
- case IResource.ROOT:
- return true;
- case IResource.PROJECT:
- for(int i=0;i<filesList.size(); i++){
- if(filesList.get(i).getProject().equals(resource)){
- return true;
- }
- }
- return false;
- case IResource.FOLDER:
- for(int i=0;i<filesList.size(); i++){
- IContainer container = filesList.get(i).getParent();
- while(container != null && container.getType() == IResource.FOLDER){
- if(resource.equals(container)){
- return true;
- }
- container = container.getParent();
- }
- }
- return false;
- case IResource.FILE:
- if(filesList.contains(resource)){
- filesList.remove(resource);
- if(filesList.isEmpty()){
- filesList = null;
- }
- }
- return false;
- }
-
- return false;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleExportOperationTest.java
deleted file mode 100644
index 2a218572..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleExportOperationTest.java
+++ /dev/null
@@ -1,93 +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
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.jca.operations.JCAExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.utility.operations.UtilityExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebExportOperationTest;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public abstract class ModuleExportOperationTest extends JEEExportOperationTest {
- protected static final String PACKAGE_NAME = "test";
-
- public ModuleExportOperationTest() {
- super("ModuleExportOperationTests");
- }
-
- public ModuleExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("All Module ExportOperation Tests");
- suite.addTestSuite(JCAExportOperationTest.class);
- suite.addTestSuite(EJBExportOperationTest.class);
- suite.addTestSuite(WebExportOperationTest.class);
- suite.addTestSuite(AppClientExportOperationTest.class);
- suite.addTestSuite(UtilityExportOperationTest.class);
-
- return suite;
- }
-
- protected abstract void addJavaFilesToProject(String projectName, String[] classNames, String prackageName) throws Exception;
-
- protected abstract void verifyJavaFilesExported(String archivePath, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception;
-
- @Override
- protected void runExportTests_All(IDataModel creationModel) throws Exception {
- String projectName = creationModel.getStringProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME);
- String archiveName = null;
- String archivePath = null;
-
- addJavaFilesToProject(projectName, JAVA_FILE_NAMES, PACKAGE_NAME);
-
- archiveName = runAndVerifyExport_Defaults(projectName);
- archivePath = getDataPath(archiveName);
- verifyJavaFilesExported(archivePath, JAVA_FILE_NAMES, PACKAGE_NAME, true, false);
- deleteExported(archivePath);
-
- archiveName = runAndVerifyExport_WithSource(projectName);
- archivePath = getDataPath(archiveName);
- verifyJavaFilesExported(archivePath, JAVA_FILE_NAMES, PACKAGE_NAME, true, true);
- deleteExported(archivePath);
-
- archiveName = runAndVerifyExport_DontRunBuild(projectName);
- archivePath = getDataPath(archiveName);
- deleteExported(archivePath);
-
- archiveName = runAndVerifyExport_WithSource_DontRunBuild(projectName);
- archivePath = getDataPath(archiveName);
- verifyJavaFilesExported(archivePath, JAVA_FILE_NAMES, PACKAGE_NAME, false, true);
- deleteExported(archivePath);
-
- runTest_AttemptToOverwriteButCant(projectName);
- runTest_AttemptToOverwriteSholdSucceed(projectName);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleImportOperationTest.java
deleted file mode 100644
index 83e22c37..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleImportOperationTest.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.jca.operations.JCAImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.utility.operations.UtilityImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebImportOperationTest;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public abstract class ModuleImportOperationTest extends JEEImportOperationTest {
-
-
- public ModuleImportOperationTest() {
- super("ModuleImportOperationTests");
- }
-
- public ModuleImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("All Module Import Operation Tests");
- suite.addTestSuite(JCAImportOperationTest.class);
- suite.addTestSuite(EJBImportOperationTest.class);
- suite.addTestSuite(WebImportOperationTest.class);
- suite.addTestSuite(AppClientImportOperationTest.class);
- suite.addTestSuite(UtilityImportOperationTest.class);
- return suite;
- }
-
-// @Override
-// protected void runImportTests_All() throws Exception {
-// runAndVerifyImport_ExportedDefaults();
-// OperationTestCase.deleteAllProjects();
-//
-// runAndVerifyImport_ExportedWithSource();
-// OperationTestCase.deleteAllProjects();
-//
-// runAndVerifyImport_ExportedWithDontRunBuild();
-// OperationTestCase.deleteAllProjects();
-//
-// runAndVerifyImport_ExportedWithSrouce_ExportedWithDontRunBuild();
-// OperationTestCase.deleteAllProjects();
-// }
-
-// protected void runSubTests() {
-// final String partialPath = getArchivePath("") + this.getClass().getSimpleName() + "_";
-//
-// TestCase defaults = new TestCase(this.getName() + "_Defaults") {
-// @Override
-// public void runTest() throws Exception{
-// String archivePath = partialPath + this.getName() + getModuleExtension();
-// String projectName = "exportedDefaults";
-//
-// runAndVerifyImport(archivePath, projectName);
-// runAndVerifyReExportation(archivePath, projectName, false, true);
-//
-// OperationTestCase.deleteAllProjects();
-// }
-// };
-// TestCase withSource = new TestCase(this.getName() + "_WithSource") {
-// @Override
-// public void runTest() throws Exception{
-// String archivePath = partialPath + this.getName() + getModuleExtension();
-// String projectName = "exportedWithSource";
-//
-// runAndVerifyImport(archivePath, projectName);
-// runAndVerifyReExportation(archivePath, projectName, true, true);
-//
-// OperationTestCase.deleteAllProjects();
-// }
-// };
-// TestCase dontRunBuild = new TestCase(this.getName() + "_DontRunBuild") {
-// @Override
-// public void runTest() throws Exception{
-// String archivePath = partialPath + this.getName() + getModuleExtension();
-// String projectName = "exportedWithDontRunBuild";
-//
-// runAndVerifyImport(archivePath, projectName);
-//
-// OperationTestCase.deleteAllProjects();
-// }
-// };
-// TestCase withSourceDontRunBuild = new TestCase(this.getName() + "_WithSource_DontRunBuild") {
-// @Override
-// public void runTest() throws Exception{
-// String archiveName = partialPath + this.getName() + getModuleExtension();
-// String projectName = "exportedWithSourceAndDontRunBuild";
-//
-// runAndVerifyImport(archiveName, projectName);
-//
-// OperationTestCase.deleteAllProjects();
-// }
-// };
-//
-// TestSuite suite = new TestSuite();
-// suite.addTest(defaults);
-// suite.addTest(withSource);
-// suite.addTest(dontRunBuild);
-// suite.addTest(withSourceDontRunBuild);
-// suite.setName(this.getClass().getName());
-// suite.run(result);
-// }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleProjectCreationOperationTest.java
deleted file mode 100644
index 0ecce666..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/ModuleProjectCreationOperationTest.java
+++ /dev/null
@@ -1,41 +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.wtp.j2ee.headless.tests.j2ee.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.jca.operations.JCAProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.utility.operations.UtilityProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebProjectCreationOperationTest;
-
-public abstract class ModuleProjectCreationOperationTest extends JEEProjectCreationOperationTest {
-
- public ModuleProjectCreationOperationTest() {
- super("ModuleProjectCreationOperationTests");
- }
-
- public ModuleProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("All Module Project Creation Operation Tests");
- suite.addTestSuite(AppClientProjectCreationOperationTest.class);
- suite.addTestSuite(EJBProjectCreationOperationTest.class);
- suite.addTestSuite(WebProjectCreationOperationTest.class);
- suite.addTestSuite(JCAProjectCreationOperationTest.class);
- suite.addTestSuite(UtilityProjectCreationOperationTest.class);
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/RandomObjectGenerator.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/RandomObjectGenerator.java
deleted file mode 100644
index f825f353..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/RandomObjectGenerator.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code Generation - Code and
- * Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import java.util.Random;
-
-/**
- * @author blancett
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code
- * and Comments
- */
-public class RandomObjectGenerator {
- protected static RandomObjectGenerator randomObjectGenerator;
- private static Random randomGenerator = new Random();
- private static int maxNumOfLettersInWords = 15;
- private static int maxNumberOfProjectsCreated = 5;
- private static int upperCaseSeed = 65; //ASCII 'A'
- private static int lowerCaseSeed = 97; //ASCII 'a'
- private static int invalidCharSeed = 33;
- private static int numberSeed = 48;
- private static int alphabetRange = 25;
- private static int symbolRange = 15;
- private static int numberRange = 9;
-
- public static String createCorrectRandomProjectNames() {
- int numOfletterInWord = Math.max(randomGenerator.nextInt(maxNumOfLettersInWords + 1), 2);
- String string = new String();
- for (int i = 0; i < numOfletterInWord; i++) {
- string = string + createRandomCharacterInAlphabetRange();
- }
- return string;
- }
-
- public static String createRandomNumbers() {
- char randomChar;
- int randomInt = randomGenerator.nextInt(numberRange + 1);
- randomChar = (char) (randomInt + numberSeed);
- return (new Character(randomChar)).toString();
- }
-
- public static String createRandomInvaildCharacters() {
- char randomChar;
- int randomInt = randomGenerator.nextInt(symbolRange + 1);
- randomChar = (char) (randomInt + invalidCharSeed);
- return (new Character(randomChar)).toString();
- }
- public static int createRandomProjectNumber() {
- return randomGenerator.nextInt(maxNumberOfProjectsCreated + 1);
- }
-
- public static String createRandomCharacterInAlphabetRange() {
- char randomChar;
- int randomInt = randomGenerator.nextInt(alphabetRange + 1);
- if ((randomInt % 2) == 0)
- randomChar = (char) (randomInt + lowerCaseSeed);
- else
- randomChar = (char) (randomInt + upperCaseSeed);
- return Character.toString(randomChar);
- }
-
- public static String createInvalidRandomProjectName() {
- int numOfletterInWord = randomGenerator.nextInt(maxNumOfLettersInWords + 1);
- String string = new String();
- for (int i = 0; i < numOfletterInWord; i++) {
- string.concat(createRandomInvaildCharacters());
- }
- return string;
- }
-
- public static String createCorrectRandomProjectNamesAllChars() {
- int numOfletterInWord = Math.max(randomGenerator.nextInt(maxNumOfLettersInWords + 1), 2);
- String string = new String();
- for (int i = 0; i < numOfletterInWord; i++) {
- if (randomGenerator.nextInt() % 5 == 0) {
- Character c = new Character('$');
- string = string + c.toString();
- }
-
- if (randomGenerator.nextInt() % 2 == 0) {
- Character c = new Character('_');
- string = string + c.toString();
- }
- string += createRandomCharacterInAlphabetRange();
- if (randomGenerator.nextInt() % 3 == 0)
- string = string + createRandomNumbers();
- }
- return string.substring(0, numOfletterInWord - 1);
- }
-
- public static RandomObjectGenerator getInstance() {
- if (randomObjectGenerator == null)
- randomObjectGenerator = new RandomObjectGenerator();
- return randomObjectGenerator;
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/SourceFolderUpdateTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/SourceFolderUpdateTest.java
deleted file mode 100644
index 58ac27b5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/j2ee/operations/SourceFolderUpdateTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 SAP AG and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * SAP AG - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.operations;
-
-import static org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties.SOURCE_FOLDER;
-import static org.eclipse.wst.common.componentcore.internal.operation.IArtifactEditOperationDataModelProperties.PROJECT_NAME;
-import junit.framework.Test;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassDataModelProvider;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.utility.operations.UtilityProjectCreationOperationTest;
-
-public class SourceFolderUpdateTest extends OperationTestCase {
-
- public SourceFolderUpdateTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SourceFolderUpdateTest("testSourceFolderUpdate");
- }
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- // create 2 utility projects
- runAndVerify(UtilityProjectCreationOperationTest.getUtilityDataModel("project1", null));
- runAndVerify(UtilityProjectCreationOperationTest.getUtilityDataModel("project2", null));
- }
-
- public void testSourceFolderUpdate() {
- // create the new Java class data model
- IDataModel model = DataModelFactory.createDataModel(new NewJavaClassDataModelProvider());
-
- // set the first project
- model.setStringProperty(PROJECT_NAME, "project1");
-
- // the data model provider should already set the source folder, but we
- // reset it in order to avoid further calls to the default value
- model.setStringProperty(SOURCE_FOLDER, "/project1/src");
-
- // set the second project
- model.setStringProperty(PROJECT_NAME, "project2");
-
- // check if the source folder has switched to the one of the second project
- assertEquals(new Path("/project2/src"), new Path(model.getStringProperty(SOURCE_FOLDER)));
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- deleteAllProjects();
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/AllTests.java
deleted file mode 100644
index 3bba9307..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/AllTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.jca.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AllTests extends TestSuite {
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("JCA Operation Tests");
- addTest(JCAProjectCreationOperationTest.suite());
- addTest(JCAExportOperationTest.suite());
- addTest(JCAImportOperationTest.suite());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAExportOperationTest.java
deleted file mode 100644
index 28f04f05..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAExportOperationTest.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.jca.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.jca.operations.ConnectorComponentExportDataModelProvider;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaFileTestingUtilities;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTest;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class JCAExportOperationTest extends ModuleExportOperationTest {
- public JCAExportOperationTest() {
- super("JCAExportOperationTests");
- }
-
- public JCAExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(JCAExportOperationTest.class);
- }
-
- public void testConnectorExport10_Defaults() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("aConnector", null, null, JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport15_Defaults() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("bConnector", null, null, JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport10_WithEAR() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("cConnector", "myEAR", null, JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport15_WithEAR() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("dConnector", "yourEAR", null, JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport10_ChangedSourceFolder() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("eConnector",null, "mySrc", JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport15_ChangedSourceFolder() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("fConnector", null, "ourSrc", JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport10_ChangedSourceFolder_WithEAR() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("gConnector", "coolEAR", "theirSrc", JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testConnectorExport15_ChangedSourceFolder_WithEAR() throws Exception{
- IDataModel dm = JCAProjectCreationOperationTest.getConnectorDataModel("hConnector", "netoEAR", "weSrc", JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".rar";
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return getRARExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
- /**
- * @param projectName name of the project to export
- * @param destination destination to export to
- * @param exportSource if TRUE export source files, else don't
- * @param runBuild if TRUE run a build before exporting, else don't
- * @param overwriteExisting if TRUE overwrite existing files, else don't
- * @return an EJBComponentExport data model with all of the given settings.
- */
- public static IDataModel getRARExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting){
- IDataModel exportModel = DataModelFactory.createDataModel(new ConnectorComponentExportDataModelProvider());
-
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME, projectName);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION, destination);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.EXPORT_SOURCE_FILES, exportSource);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.OVERWRITE_EXISTING, overwriteExisting);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.RUN_BUILD, runBuild);
-
- return exportModel;
- }
-
- @Override
- protected void addJavaFilesToProject(String projectName, String[] classNames, String prackageName) throws Exception {
- JavaFileTestingUtilities.addJavaFilesToConnector(projectName, classNames, prackageName);
- }
-
- @Override
- protected void verifyJavaFilesExported(String archiveName, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- JavaFileTestingUtilities.verifyJavaFilesInRAR(archiveName, classNames, packageName, withClassFiles, withSource);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAImportOperationTest.java
deleted file mode 100644
index e65eb5f6..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAImportOperationTest.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.jca.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.jca.operations.ConnectorComponentImportDataModelProvider;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class JCAImportOperationTest extends ModuleImportOperationTest {
-
- public JCAImportOperationTest() {
- super("JCAImportOperationTests");
- }
-
- public JCAImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(JCAImportOperationTest.class);
- }
-
- public void testConnectorImport10_Defaults() throws Exception{
- runImportTests_All("Connector10_Defaults");
- }
-
- public void testConnectorImport15_Defaults() throws Exception{
- runImportTests_All("Connector15_Defaults");
- }
-
- public void testConnectorImport10_WithEAR() throws Exception{
- runImportTests_All("Connector10_WithEAR");
- }
-
- public void testConnectorImport15_WithEAR() throws Exception{
- runImportTests_All("Connector15_WithEAR");
- }
-
- public void testConnectorImport10_DiffSourceFolder() throws Exception{
- runImportTests_All("Connector10_DiffSourceFolder");
- }
-
- public void testConnectorImport15_DiffSourceFolder() throws Exception{
- runImportTests_All("Connector15_DiffSourceFolder");
- }
-
- public void testConnectorImport10_DiffSourceFolder_WithEAR() throws Exception{
- runImportTests_All("Connector10_DiffSourceFolder_WithEAR");
- }
-
- public void testConnectorImport15_DiffSourceFolder_WithEAR() throws Exception{
- runImportTests_All("Connector15_DiffSourceFolder_WithEAR");
- }
-
-
- @Override
- protected String getModuleExtension() {
- return ".rar";
- }
-
- @Override
- protected IDataModel getImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- return getJCAImportDataModel(filePath, projectName, creationModel, closeArchiveOnDispose);
- }
-
- public static IDataModel getJCAImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- IDataModel importModel = DataModelFactory.createDataModel(new ConnectorComponentImportDataModelProvider());
-
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filePath);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.CLOSE_ARCHIVE_ON_DISPOSE, closeArchiveOnDispose);
-
- if(creationModel != null) {
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.NESTED_MODEL_J2EE_COMPONENT_CREATION, creationModel);
- }
-
- return importModel;
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return JCAExportOperationTest.getRARExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAProjectCreationOperationTest.java
deleted file mode 100644
index c7d9ee6b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/jca/operations/JCAProjectCreationOperationTest.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wtp.j2ee.headless.tests.jca.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.jca.project.facet.ConnectorFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.jca.project.facet.IConnectorFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-public class JCAProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
-
- public JCAProjectCreationOperationTest() {
- super("ConnectorProjectCreationOperationTests");
- }
-
- public JCAProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(JCAProjectCreationOperationTest.class);
- }
-
- public void testConnector10_Defaults() throws Exception{
- IDataModel dm = getConnectorDataModel("aConnector", null, null, JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector15_Defaults() throws Exception{
- IDataModel dm = getConnectorDataModel("bConnector", null, null, JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector16_Defaults() throws Exception{
- IDataModel dm = getConnectorDataModel("iConnector", null, null, JavaEEFacetConstants.CONNECTOR_16);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector10_WithEAR() throws Exception{
- IDataModel dm = getConnectorDataModel("cConnector", "myEAR", null, JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector15_WithEAR() throws Exception{
- IDataModel dm = getConnectorDataModel("dConnector", "yourEAR", null, JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector16_WithEAR() throws Exception{
- IDataModel dm = getConnectorDataModel("jConnector", "herEAR", null, JavaEEFacetConstants.CONNECTOR_16);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector10_ChangedSrouceFolder() throws Exception{
- IDataModel dm = getConnectorDataModel("eConnector",null, "mySrc", JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector15_ChangedSrouceFolder() throws Exception{
- IDataModel dm = getConnectorDataModel("fConnector", null, "ourSrc", JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector16_ChangedSrouceFolder() throws Exception{
- IDataModel dm = getConnectorDataModel("kConnector", null, "herSrc", JavaEEFacetConstants.CONNECTOR_16);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector10_ChangedSrouceFolder_WithEAR() throws Exception{
- IDataModel dm = getConnectorDataModel("gConnector", "coolEAR", "theirSrc", JavaEEFacetConstants.CONNECTOR_1);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector15_ChangedSrouceFolder_WithEAR() throws Exception{
- IDataModel dm = getConnectorDataModel("hConnector", "netoEAR", "weSrc", JavaEEFacetConstants.CONNECTOR_15);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testConnector16_ChangedSrouceFolder_WithEAR() throws Exception{
- IDataModel dm = getConnectorDataModel("lConnector", "niceEAR", "hisSrc", JavaEEFacetConstants.CONNECTOR_16);
- OperationTestCase.runAndVerify(dm);
- }
-
- /**
- * Creates and returns an Connector Data Model with the given name and of the given version.
- * If earName is not null then Connector will be added to the EAR with earName.
- * Can also specify none default source folder
- *
- * @param projName name of the project to create
- * @param earName name of the EAR to add the project too, if NULL then don't add to an EAR
- * @param sourceFolder name of the source folder to use, if NULL then use default
- * @param version version of Application Client to use
- * @return a Connector Model with the appropriate properties set
- */
- public static IDataModel getConnectorDataModel(String projName, String earName, String sourceFolder, IProjectFacetVersion version){
- IDataModel dm = DataModelFactory.createDataModel(new ConnectorFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- if(earName != null) {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earName);
- } else {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, false);
- }
-
- FacetDataModelMap facetMap = (FacetDataModelMap) dm.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JCA);
- facetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, version);
-
- if(sourceFolder != null) {
- facetModel.setProperty(IConnectorFacetInstallDataModelProperties.CONFIG_FOLDER, sourceFolder);
- }
-
- //be sure to use Java5 with JEE5
- if(version == JavaEEFacetConstants.CONNECTOR_15){
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_5);
- }
- else if(version == JavaEEFacetConstants.CONNECTOR_16) {
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_6);
- }
-
- return dm;
- }
-
-// public IDataModel getComponentCreationDataModel() {
-// return DataModelFactory.createDataModel(IConnectorFacetInstallDataModelProperties.class);
-// }
-//
-// public IDataModel getComponentCreationDataModelWithEar() {
-// IDataModel model = getComponentCreationDataModel();
-// FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
-// IDataModel facetDM = map.getFacetDataModel(IConnectorFacetInstallDataModelProperties.JCA);
-// facetDM.setBooleanProperty( IJ2EEModuleFacetInstallDataModelProperties.ADD_TO_EAR, true );
-// return model;
-// }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/AllPluginTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/AllPluginTests.java
deleted file mode 100644
index 840cd5d7..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/AllPluginTests.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code Generation - Code and
- * Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.plugin;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeType;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-import org.eclipse.wst.server.core.ServerCore;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code
- * and Comments
- */
-public class AllPluginTests extends TestSuite {
-
- public static IRuntime JONAS_SERVER = createJONASRuntime();
-
- public static Test suite() {
- return new AllPluginTests();
- }
-
- public AllPluginTests() {
- super();
- addTest(org.eclipse.jst.j2ee.tests.bvt.EnterpriseBVT.suite());
- addTest(org.eclipse.jst.j2ee.tests.bvt.EJBBVT.suite());
- addTest(org.eclipse.jst.j2ee.tests.bvt.WebBVT.suite());
- addTest(org.eclipse.jst.j2ee.tests.bvt.CoreInfrastructureBVT.suite());
- addTest(org.eclipse.jst.j2ee.tests.bvt.ModelProviderBVT.suite());
- addTest(org.eclipse.jst.j2ee.tests.bvt.ExtendedModelProviderBVT.suite());
- }
-
- public static IRuntime createJONASRuntime() {
- String s = System.getProperty("org.eclipse.jst.server.jonas.432");
- if (s == null || s.length() == 0)
- return null;
- try {
- IRuntimeType rt = ServerCore.findRuntimeType("org.eclipse.jst.server.core.runtimeType");
- IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
- wc.setLocation(new Path(s));
- return wc.save(true, null);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/AllTestsSuite.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/AllTestsSuite.java
deleted file mode 100644
index 2a2c2eb8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/AllTestsSuite.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Created on Apr 1, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.plugin;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jst.j2ee.archive.emftests.AllTests;
-import org.eclipse.jst.j2ee.tests.bvt.AutomatedBVT;
-import org.eclipse.wst.common.frameworks.artifactedit.tests.ArtifactEditAPITests;
-import org.eclipse.wst.common.frameworks.datamodel.tests.DataModelAPITests;
-
-
-/**
- * @author jsholl
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class AllTestsSuite extends TestSuite {
-
- public static String baseDirectory = System.getProperty("user.dir") + java.io.File.separatorChar + "TestData" + java.io.File.separatorChar;
-
- static {
- try {
- IPluginDescriptor pluginDescriptor = Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.jst.j2ee.tests");
- URL url = pluginDescriptor.getInstallURL();
- AutomatedBVT.baseDirectory = Platform.asLocalURL(url).getFile() + "TestData"+ java.io.File.separatorChar;
- } catch (Exception e) {
- System.err.println("Using working directory since a workspace URL could not be located.");
- }
- }
-
- public static int unimplementedMethods;
-
- public static void main(String[] args) {
- unimplementedMethods = 0;
- TestRunner.run(suite());
- if (unimplementedMethods > 0) {
- System.out.println("\nCalls to warnUnimpl: " + unimplementedMethods);
- }
- }
-
- public AllTestsSuite() {
- super();
- TestSuite suite = (TestSuite) AutomatedBVT.suite();
- for (int i = 0; i < suite.testCount(); i++) {
- addTest(suite.testAt(i));
- }
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.jst.j2ee.test.bvt");
- //WST common
- suite.addTest(org.eclipse.wst.common.frameworks.componentcore.tests.AllTests.suite());
- suite.addTest(DataModelAPITests.suite());
- suite.addTest(ArtifactEditAPITests.suite());
- //j2ee.core
- suite.addTest(AllTests.suite());
- //j2ee
- suite.addTest(AllPluginTests.suite());
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/HeadlessTestsPlugin.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/HeadlessTestsPlugin.java
deleted file mode 100644
index 084ffd33..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/plugin/HeadlessTestsPlugin.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.plugin;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.wst.common.tests.DataModelVerifierFactory;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.DataModelVerifierListGenerator;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class HeadlessTestsPlugin extends Plugin {
- //The shared instance.
- private static HeadlessTestsPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public HeadlessTestsPlugin() {
- super();
- plugin = this;
- try {
- resourceBundle= ResourceBundle.getBundle("org.eclipse.wtp.j2ee.wb.tests.TestsPluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- }
-
- /**
- * Returns the shared instance.
- */
- public static HeadlessTestsPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle= getDefault().getResourceBundle();
- try {
- return (bundle!=null ? bundle.getString(key) : key);
- } catch (MissingResourceException e) {
- return key;
- }
- }
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
-
- //needed so that jee operation tests will verify correctly
- DataModelVerifierFactory.getInstance().addToDataModelVerifiersMap(DataModelVerifierListGenerator.getVerifiers());
- }
-
- /**
- * Returns the plugin's resource bundle,
- */
- public ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/AllTests.java
deleted file mode 100644
index 7bf64f3c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/AllTests.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.utility.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author itewk
- */
-public class AllTests extends TestSuite {
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("Java Utility Operation Tests");
- addTest(UtilityProjectCreationOperationTest.suite());
- addTest(UtilityExportOperationTest.suite());
- addTest(UtilityImportOperationTest.suite());
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityExportOperationTest.java
deleted file mode 100644
index c1bc6204..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityExportOperationTest.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- *
- */
-package org.eclipse.wtp.j2ee.headless.tests.utility.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaFileTestingUtilities;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTest;
-
-/**
- * @author itewk
- *
- */
-public class UtilityExportOperationTest extends ModuleExportOperationTest {
- private static final String EAR_PROJECT_NAME = "testEAR";
-
- public UtilityExportOperationTest() {
- super("UtilityExportOperationTests");
- }
-
- public UtilityExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(UtilityExportOperationTest.class);
- }
-
-
- public void testUtilityExport_Defaults() throws Exception {
- IDataModel dm = UtilityProjectCreationOperationTest.getUtilityDataModel("aJavaUtility", EAR_PROJECT_NAME);
- OperationTestCase.runAndVerify(dm);
-
- runExportTests_All(dm);
- }
-
- public void testUtilityExport_AddToExisitingEAR12() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel(EAR_PROJECT_NAME, null, null, null, JavaEEFacetConstants.EAR_12, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = UtilityProjectCreationOperationTest.getUtilityDataModel("cJavaUtility", EAR_PROJECT_NAME);
- OperationTestCase.runAndVerify(dm);
-
- runExportTests_All(dm);
- }
-
- public void testUtilityExport_AddToExisitingEAR13() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel(EAR_PROJECT_NAME, null, null, null, JavaEEFacetConstants.EAR_13, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = UtilityProjectCreationOperationTest.getUtilityDataModel("dJavaUtility", EAR_PROJECT_NAME);
- OperationTestCase.runAndVerify(dm);
-
- runExportTests_All(dm);
- }
-
- public void testUtilityExport_AddToExisitingEAR14() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel(EAR_PROJECT_NAME, null, null, null, JavaEEFacetConstants.EAR_14, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = UtilityProjectCreationOperationTest.getUtilityDataModel("eJavaUtility", EAR_PROJECT_NAME);
- OperationTestCase.runAndVerify(dm);
-
- runExportTests_All(dm);
- }
-
- public void testUtilityExport_AddToExisitingEAR5_WithoutDD() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel(EAR_PROJECT_NAME, null, null, null, JavaEEFacetConstants.EAR_5, false);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = UtilityProjectCreationOperationTest.getUtilityDataModel("fJavaUtility", EAR_PROJECT_NAME);
- OperationTestCase.runAndVerify(dm);
-
- runExportTests_All(dm);
- }
-
- public void testUtilityExport_AddToExisitingEAR5_WithDD() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel(EAR_PROJECT_NAME, null, null, null, JavaEEFacetConstants.EAR_5, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = UtilityProjectCreationOperationTest.getUtilityDataModel("gJavaUtility", EAR_PROJECT_NAME);
- OperationTestCase.runAndVerify(dm);
-
- runExportTests_All(dm);
- }
-
-
- @Override
- protected void addJavaFilesToProject(String projectName,
- String[] classNames, String prackageName) throws Exception {
-
- //will be exporting the utility project within an EAR thus use utitilities for EARs to added files
- IProject earProject = JavaEEProjectUtilities.getProject(EAR_PROJECT_NAME);
- JavaFileTestingUtilities.addJavaFilesToAllProjectsInEAR(earProject);
- }
-
- @Override
- protected void verifyJavaFilesExported(String archivePath,
- String[] classNames, String packageName, boolean withClassFiles,
- boolean withSource) throws Exception {
-
- //project was exported within an EAR so need to verify files based on this
- JavaFileTestingUtilities.verifyAllJavaFilesExportedToProjectsInEAR(archivePath, withClassFiles, withSource);
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName,
- String destination, boolean exportSource, boolean runBuild,
- boolean overwriteExisting) {
-
- //only makes sence to test exporting the utility project within an EAR
- return EARExportOperationTest.getEARExportDataModel(EAR_PROJECT_NAME, destination, exportSource, runBuild, overwriteExisting);
- }
-
- @Override
- protected String getModuleExtension() {
- //using .ear and not .jar because we are testing exporting the utilities within EARs a
- return ".ear";
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityImportOperationTest.java
deleted file mode 100644
index 0c3fd5c3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityImportOperationTest.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/**
- *
- */
-package org.eclipse.wtp.j2ee.headless.tests.utility.operations;
-
-import java.util.Collections;
-import java.util.List;
-
-import junit.framework.Test;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.internal.archive.ArchiveWrapper;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-
-/**
- * @author itewk
- *
- */
-public class UtilityImportOperationTest extends ModuleImportOperationTest {
- private IArchive archive;
-
- public UtilityImportOperationTest() {
- super("UtilityImportOperationTests");
-
- archive = null;
- }
-
- public UtilityImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(UtilityImportOperationTest.class);
- }
-
- public void testUtilityImport_Defaults() throws Exception{
- runImportTests_All("Utility_Defaults");
- }
-
- public void testUtilityImport_AddToExisitingEAR12() throws Exception {
- runImportTests_All("Utility_AddToExisitingEAR12");
- }
-
- public void testUtilityImport_AddToExisitingEAR13() throws Exception {
- runImportTests_All("Utility_AddToExisitingEAR13");
- }
-
- public void testUtilityImport_AddToExisitingEAR14() throws Exception {
- runImportTests_All("Utility_AddToExisitingEAR14");
- }
-
- /*
- public void testUtilityImport_AddToExisitingEAR5_WithoutDD() throws Exception {
- runImportTests_All("Utility_AddToExisitingEAR5_WithoutDD");
- }
- */
-
- public void testUtilityImport_AddToExisitingEAR5_WithDD() throws Exception {
- runImportTests_All("Utility_AddToExisitingEAR5_WithDD");
- }
-
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JEEImportOperationTest#getExportDataModel(java.lang.String, java.lang.String, boolean, boolean, boolean)
- */
- @Override
- protected IDataModel getExportDataModel(String projectName,
- String destination, boolean exportSource, boolean runBuild,
- boolean overwriteExisting) {
-
- //only makes since to test utility projects exported/imported within an EAR
- return EARExportOperationTest.getEARExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JEEImportOperationTest#getImportDataModel(java.lang.String, java.lang.String, org.eclipse.jst.j2ee.internal.archive.operations.IOverwriteHandler, org.eclipse.wst.common.frameworks.datamodel.IDataModel, boolean)
- */
- @Override
- protected IDataModel getImportDataModel(String filePath,
- String projectName,
- IDataModel creationModel, boolean closeArchiveOnDispose) throws Exception {
-
- //only makes sense to test utility projects exported/imported within an EAR
- IDataModel earImportModel = EARImportOperationTest.getEARImportDataModel(filePath, projectName, creationModel, closeArchiveOnDispose);
-
- archive = null;
- List <ArchiveWrapper> utilityArchiveWrappers = Collections.EMPTY_LIST;
-
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(filePath));
- ArchiveWrapper wrappedArchive = new ArchiveWrapper(archive);
-
- utilityArchiveWrappers = wrappedArchive.getEARUtilitiesAndWebLibs();
- if (utilityArchiveWrappers.size() > 0){
- filterEJBClientJars(utilityArchiveWrappers, wrappedArchive);
- }
-
-
- earImportModel = EARImportOperationTest.setExtendedEARImportDataModelProperties(earImportModel, null, utilityArchiveWrappers, null, null, null, null);
- return earImportModel;
- }
- /**
- * Should run all of the needed import tests for the child's type of import
- */
- @Override
- protected void runImportTests_All(String testName) throws Exception {
- String archiveName = null;
-
- //need to keep the archive open for as long as the ImportDataModel is alive, otherwise it crashes because the
- // nested Utility archives get closed
-
- try {
- archiveName = testName + "_Defaults" + getModuleExtension();
- runAndVerifyImport_ExportedDefaults(archiveName);
- OperationTestCase.deleteAllProjects();
- } finally {
- if (null != archive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
-
- try {
- archiveName = testName + "_Source" + getModuleExtension();
- runAndVerifyImport_ExportedWithSource(archiveName);
- OperationTestCase.deleteAllProjects();
- } finally {
- if (null != archive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
-
- try {
- archiveName = testName + "_NoBuild" + getModuleExtension();
- runAndVerifyImport_ExportedWithDontRunBuild(archiveName);
- OperationTestCase.deleteAllProjects();
- } finally {
- if (null != archive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
-
- try {
- archiveName = testName + "_Source_NoBuild" + getModuleExtension();
- runAndVerifyImport_ExportedWithSrouce_ExportedWithDontRunBuild(archiveName);
- OperationTestCase.deleteAllProjects();
- } finally {
- if (null != archive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JEEImportOperationTest#getModuleExtension()
- */
- @Override
- protected String getModuleExtension() {
- //using .ear and not .jar because we are testing exporting the utilities within EARs a
- return ".ear";
- }
-
- private void filterEJBClientJars(List <ArchiveWrapper> utilities, ArchiveWrapper earWrapper) {
- List <ArchiveWrapper> modules = earWrapper.getEarModules();
- for(ArchiveWrapper module : modules){
- if(module.isEJBJarFile()){
- ArchiveWrapper clientWrapper = earWrapper.getEJBClientArchiveWrapper(module);
- if(null != clientWrapper){
- boolean removed = false;
- for(int i=0;i<utilities.size() && !removed; i++){
- if(clientWrapper.getUnderLyingArchive() == utilities.get(i).getUnderLyingArchive()){
- utilities.remove(i);
- removed = true;
- }
- }
- }
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityProjectCreationOperationTest.java
deleted file mode 100644
index 2253593f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/utility/operations/UtilityProjectCreationOperationTest.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/**
- *
- */
-package org.eclipse.wtp.j2ee.headless.tests.utility.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.UtilityProjectCreationDataModelProvider;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.ear.operations.EARProjectCreationOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-/**
- * @author itewk
- */
-public class UtilityProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
- public UtilityProjectCreationOperationTest() {
- super("JavaUtilityProjectCreationOperationTests");
- }
-
- public UtilityProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(UtilityProjectCreationOperationTest.class);
- }
-
- public void testUtility_Defaults() throws Exception{
- IDataModel dm = getUtilityDataModel("aJavaUtility", null);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testUtility_AddToEAR() throws Exception{
- IDataModel dm = getUtilityDataModel("bJavaUtility", "bEAR");
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testUtility_AddToExisitingEAR12() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel("cEAR", null, null, null, JavaEEFacetConstants.EAR_12, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = getUtilityDataModel("cJavaUtility", "cEAR");
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testUtility_AddToExisitingEAR13() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel("dEAR", null, null, null, JavaEEFacetConstants.EAR_13, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = getUtilityDataModel("dJavaUtility", "dEAR");
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testUtility_AddToExisitingEAR14() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel("eEAR", null, null, null, JavaEEFacetConstants.EAR_14, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = getUtilityDataModel("eJavaUtility", "eEAR");
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testUtility_AddToExisitingEAR5_WithoutDD() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel("fEAR", null, null, null, JavaEEFacetConstants.EAR_5, false);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = getUtilityDataModel("fJavaUtility", "fEAR");
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testUtility_AddToExisitingEAR5_WithDD() throws Exception {
- IDataModel earModel = EARProjectCreationOperationTest.getEARDataModel("gEAR", null, null, null, JavaEEFacetConstants.EAR_5, true);
- //IMPROVE PERFORMENCE: don't need to verify export model again here, its already bean done in other tests
- runDataModel(earModel);
-
- IDataModel dm = getUtilityDataModel("gJavaUtility", "gEAR");
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public static IDataModel getUtilityDataModel(String projName, String earName){
- IDataModel model = DataModelFactory.createDataModel(new UtilityProjectCreationDataModelProvider());
-
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- if(earName != null) {
- model.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- model.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earName);
- } else {
- model.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, false);
- }
-
- return model;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/AddWebArtifactOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/AddWebArtifactOperationTest.java
deleted file mode 100644
index 34e03b60..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/AddWebArtifactOperationTest.java
+++ /dev/null
@@ -1,417 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- * Kaloyan Raev, kaloyan.raev@sap.com - bug 218496
- *******************************************************************************/
-/*
- * Created on May 13, 2004
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.operations;
-
-import java.util.ArrayList;
-import java.util.List;
-
-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.Preferences;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties;
-import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
-import org.eclipse.jst.j2ee.internal.web.operations.NewFilterClassDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.operations.NewListenerClassDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.operations.NewServletClassDataModelProvider;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.javaee.core.DisplayName;
-import org.eclipse.jst.javaee.core.UrlPatternType;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-
-public class AddWebArtifactOperationTest extends OperationTestCase implements
- INewJavaClassDataModelProperties {
-
- public static final String WEB_PROJECT_NAME = "WebProject"; //$NON-NLS-1$
-
- public static final String PACKAGE = "test"; //$NON-NLS-1$
-
- public static final String SERVLET_NAME = "TestServlet"; //$NON-NLS-1$
- public static final String SERVLET_CLASS_NAME = PACKAGE + "." + SERVLET_NAME; //$NON-NLS-1$
- public static final String SERVLET_DEFAULT_MAPPING = "/" + SERVLET_NAME; //$NON-NLS-1$
-
- public static final String FILTER_NAME = "TestFilter"; //$NON-NLS-1$
- public static final String FILTER_CLASS_NAME = PACKAGE + "." + FILTER_NAME; //$NON-NLS-1$
- public static final String FILTER_DEFAULT_MAPPING = "/" + FILTER_NAME; //$NON-NLS-1$
-
- public static final String LISTENER_NAME = "TestListener"; //$NON-NLS-1$
- public static final String LISTENER_CLASS_NAME = PACKAGE + "." + LISTENER_NAME; //$NON-NLS-1$
-
- /**
- * @param name
- */
- public AddWebArtifactOperationTest(String name) {
- super(name);
- }
-
- /**
- * Default constructor
- */
- public AddWebArtifactOperationTest() {
- super();
- }
-
- public static Test suite() {
- return new TestSuite(AddWebArtifactOperationTest.class);
- }
-
- public void testAddServlet_Web24_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddServlet_Web24_Defaults();
- enableJETEmitter();
- }
-
- public void testAddServlet_Web24_Defaults() throws Exception {
- createWebProject(WEB_PROJECT_NAME, JavaEEFacetConstants.WEB_24);
- WebArtifactEdit webEdit = null;
- IProject proj = ProjectUtilities.getProject(WEB_PROJECT_NAME);
- try {
- webEdit = new WebArtifactEdit(proj, false, true);
- WebApp webApp = webEdit.getWebApp();
- addServlet_Defaults();
- if (webApp != null) {
- assertJavaFileExists(SERVLET_CLASS_NAME);
-
- Servlet servlet = webApp.getServletNamed(SERVLET_NAME);
- assertNotNull("Servlet " + SERVLET_NAME + " not found in the model", servlet);
- assertEquals("Servlet points to an unexpected deployment descriptor object",
- webApp, servlet.getWebApp());
- assertEquals("Servlet name is expected to be " + SERVLET_NAME + ", but it is " + servlet.getServletName(),
- SERVLET_NAME, servlet.getServletName());
- assertEquals("Display name is expected to be " + SERVLET_NAME + ", but it is " + servlet.getDisplayName(),
- SERVLET_NAME, servlet.getDisplayName());
-
- List params = servlet.getInitParams();
- assertNotNull("List of initialization parameters cannot be retrieved", params);
- assertEquals("None initialization parameter is expected, but " + params.size() + " are found",
- 0, params.size());
-
- List mappings = servlet.getMappings();
- assertEquals(1, mappings.size());
- ServletMapping mapping = (ServletMapping) mappings.get(0);
- assertEquals("Servlet name of the mapping is expected to be " + SERVLET_NAME + ", but it is " + mapping.getName(),
- SERVLET_NAME, mapping.getName());
- assertEquals("Servlet mapping URL pattern value is expected to be " + SERVLET_DEFAULT_MAPPING + ", but it is " + mapping.getUrlPattern(),
- SERVLET_DEFAULT_MAPPING, mapping.getUrlPattern());
- assertEquals("Servlet mapping is expected to point to servlet " + servlet.getServletName() + ", but it points to servlet " + mapping.getServlet().getServletName(),
- servlet, mapping.getServlet());
- }
- } finally {
- if (webEdit != null)
- webEdit.dispose();
- }
- }
-
- public void testAddServlet_Web25_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddServlet_Web25_Defaults();
- enableJETEmitter();
- }
-
- public void testAddServlet_Web25_Defaults() throws Exception {
- createWebProject(WEB_PROJECT_NAME, JavaEEFacetConstants.WEB_25);
- IProject proj = ProjectUtilities.getProject(WEB_PROJECT_NAME);
-
- IModelProvider provider = ModelProviderManager.getModelProvider(proj);
- org.eclipse.jst.javaee.web.WebApp webApp = (org.eclipse.jst.javaee.web.WebApp) provider.getModelObject();
-
- addServlet_Defaults();
-
- assertJavaFileExists(SERVLET_CLASS_NAME);
-
- List servlets = webApp.getServlets();
- assertEquals("Exactly one filter is expected in the model, but " + servlets.size() + " are found",
- 1, servlets.size());
- org.eclipse.jst.javaee.web.Servlet servlet = (org.eclipse.jst.javaee.web.Servlet) servlets.get(0);
- assertEquals("Servlet name is expected to be " + SERVLET_NAME + ", but it is " + servlet.getServletName(),
- SERVLET_NAME, servlet.getServletName());
- assertEquals("Servlet class name is expected to be " + SERVLET_CLASS_NAME + ", but it is " + servlet.getServletClass(),
- SERVLET_CLASS_NAME, servlet.getServletClass());
- List displayNames = servlet.getDisplayNames();
- assertEquals("Exactly one display name is expected, but " + displayNames.size() + " are found",
- 1, displayNames.size());
- DisplayName displayName = (DisplayName) displayNames.get(0);
- assertEquals("Display name is expected to be " + SERVLET_NAME + ", but it is " + displayName.getValue(),
- SERVLET_NAME, displayName.getValue());
-
- List params = servlet.getInitParams();
- assertNotNull("List of initialization parameters cannot be retrieved", params);
- assertEquals("None initialization parameter is expected, but " + params.size() + " are found",
- 0, params.size());
-
- List mappings = webApp.getServletMappings();
- assertEquals("Exactly one servlet mapping is expected, but " + mappings.size() + " are found",
- 1, mappings.size());
- org.eclipse.jst.javaee.web.ServletMapping mapping = (org.eclipse.jst.javaee.web.ServletMapping) mappings.get(0);
- assertEquals("Servlet name of the mapping is expected to be " + SERVLET_NAME + ", but it is " + mapping.getServletName(),
- SERVLET_NAME, mapping.getServletName());
- List urlPatterns = mapping.getUrlPatterns();
- assertEquals("Exactly one URL pattern is expected in the mapping, but " + urlPatterns.size() + " are found",
- 1, urlPatterns.size());
- UrlPatternType urlPattern = (UrlPatternType) urlPatterns.get(0);
- assertEquals("Servlet mapping URL pattern value is expected to be " + SERVLET_DEFAULT_MAPPING + ", but it is " + urlPattern.getValue(),
- SERVLET_DEFAULT_MAPPING, urlPattern.getValue());
- }
-
- public void testAddFilter_Web24_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddFilter_Web24_Defaults();
- enableJETEmitter();
- }
-
- public void testAddFilter_Web24_Defaults() throws Exception {
- createWebProject(WEB_PROJECT_NAME, JavaEEFacetConstants.WEB_24);
- WebArtifactEdit webEdit = null;
- IProject proj = ProjectUtilities.getProject(WEB_PROJECT_NAME);
- try {
- webEdit = new WebArtifactEdit(proj, false, true);
- WebApp webApp = webEdit.getWebApp();
- addFilter_Defaults();
- if (webApp != null) {
- assertJavaFileExists(FILTER_CLASS_NAME);
-
- Filter filter = webApp.getFilterNamed(FILTER_NAME);
- assertNotNull("Filter " + FILTER_NAME + " not found in the model", filter);
- assertEquals("Filter name is expected to be " + FILTER_NAME + ", but it is " + filter.getName(),
- FILTER_NAME, filter.getName());
- assertEquals("Display name is expected to be " + FILTER_NAME + ", but it is " + filter.getDisplayName(),
- FILTER_NAME, filter.getDisplayName());
- assertEquals("Filter class name is expected to be " + FILTER_CLASS_NAME + ", but it is " + filter.getFilterClassName(),
- FILTER_CLASS_NAME, filter.getFilterClassName());
-
- List params = filter.getInitParams();
- assertNotNull("List of initialization parameters cannot be retrieved", params);
- assertEquals("None initialization parameter is expected, but " + params.size() + " are found",
- 0, params.size());
-
- List mappings = webApp.getFilterMappings();
- assertEquals("Exactly one filter mapping is expected, but " + mappings.size() + " are found",
- 1, mappings.size());
- FilterMapping mapping = (FilterMapping) mappings.get(0);
- assertEquals("Filter of the mapping is expected to be " + filter.getName() + ", but it is " + mapping.getFilter().getName(),
- filter, mapping.getFilter());
- assertEquals("Filter mapping URL pattern value is expected to be " + FILTER_DEFAULT_MAPPING + ", but it is " + mapping.getUrlPattern(),
- FILTER_DEFAULT_MAPPING, mapping.getUrlPattern());
- assertEquals("The filter mapping is not expected to point to a servlet, but it points to servlet " + mapping.getServlet(),
- null, mapping.getServlet());
- assertEquals("The filter mapping is not expected to point to a servlet, but it points to servlet " + mapping.getServlet(),
- null, mapping.getServletName());
- List dispatchers = mapping.getDispatcherType();
- assertEquals("None dispatcher is expected in the filter mapping, but " + dispatchers.size() + " are found",
- 0, dispatchers.size());
- }
- } finally {
- if (webEdit != null)
- webEdit.dispose();
- }
- }
-
- public void testAddFilter_Web25_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddFilter_Web25_Defaults();
- enableJETEmitter();
- }
-
- public void testAddFilter_Web25_Defaults() throws Exception {
- createWebProject(WEB_PROJECT_NAME, JavaEEFacetConstants.WEB_25);
- IProject proj = ProjectUtilities.getProject(WEB_PROJECT_NAME);
-
- IModelProvider provider = ModelProviderManager.getModelProvider(proj);
- org.eclipse.jst.javaee.web.WebApp webApp = (org.eclipse.jst.javaee.web.WebApp) provider.getModelObject();
-
- addFilter_Defaults();
-
- assertJavaFileExists(FILTER_CLASS_NAME);
-
- List filters = webApp.getFilters();
- assertEquals("Exactly one filter is expected in the model, but " + filters.size() + " are found",
- 1, filters.size());
- org.eclipse.jst.javaee.web.Filter filter = (org.eclipse.jst.javaee.web.Filter) filters.get(0);
- assertEquals("Filter name is expected to be " + FILTER_NAME + ", but it is " + filter.getFilterName(),
- FILTER_NAME, filter.getFilterName());
- assertEquals("Filter class name is expected to be " + FILTER_CLASS_NAME + ", but it is " + filter.getFilterClass(),
- FILTER_CLASS_NAME, filter.getFilterClass());
- List displayNames = filter.getDisplayNames();
- assertEquals("Exactly one display name is expected, but " + displayNames.size() + " are found",
- 1, displayNames.size());
- DisplayName displayName = (DisplayName) displayNames.get(0);
- assertEquals("Display name is expected to be " + FILTER_NAME + ", but it is " + displayName.getValue(),
- FILTER_NAME, displayName.getValue());
-
- List params = filter.getInitParams();
- assertNotNull("List of initialization parameters cannot be retrieved", params);
- assertEquals("None initialization parameter is expected, but " + params.size() + " are found",
- 0, params.size());
-
- List mappings = webApp.getFilterMappings();
- assertEquals("Exactly one filter mapping is expected, but " + mappings.size() + " are found",
- 1, mappings.size());
- org.eclipse.jst.javaee.web.FilterMapping mapping = (org.eclipse.jst.javaee.web.FilterMapping) mappings.get(0);
- assertEquals("Filter name of the mapping is expected to be " + FILTER_NAME + ", but it is " + mapping.getFilterName(),
- FILTER_NAME, mapping.getFilterName());
- List urlPatterns = mapping.getUrlPatterns();
- assertEquals("Exactly one URL pattern is expected in the mapping, but " + urlPatterns.size() + " are found",
- 1, urlPatterns.size());
- UrlPatternType urlPattern = (UrlPatternType) urlPatterns.get(0);
- assertEquals("Filter mapping URL pattern value is expected to be " + FILTER_DEFAULT_MAPPING + ", but it is " + urlPattern.getValue(),
- FILTER_DEFAULT_MAPPING, urlPattern.getValue());
- assertEquals("None servlet name is expected in the filter mapping, but " + mapping.getServletNames().size() + " are found",
- 0, mapping.getServletNames().size());
- assertEquals("None dispatcher is expected in the filter mapping, but " + mapping.getDispatchers().size() + " are found",
- 0, mapping.getDispatchers().size());
- }
-
- public void testAddListener_Web24_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddListener_Web24_Defaults();
- enableJETEmitter();
- }
-
- public void testAddListener_Web24_Defaults() throws Exception {
- createWebProject(WEB_PROJECT_NAME, JavaEEFacetConstants.WEB_24);
- WebArtifactEdit webEdit = null;
- IProject proj = ProjectUtilities.getProject(WEB_PROJECT_NAME);
- try {
- webEdit = new WebArtifactEdit(proj, false, true);
- WebApp webApp = webEdit.getWebApp();
- addListener_Defaults();
- if (webApp != null) {
- assertJavaFileExists(LISTENER_CLASS_NAME);
-
- List listeners = webApp.getListeners();
- assertEquals("Exactly one listener is expected in the model, but " + listeners.size() + " are found",
- 1, listeners.size());
- Listener listener = (Listener) listeners.get(0);
- assertEquals("Listener " + LISTENER_CLASS_NAME + " is expected in the model, but " + listener.getListenerClassName() + " is found",
- LISTENER_CLASS_NAME, listener.getListenerClassName());
- }
- } finally {
- if (webEdit != null)
- webEdit.dispose();
- }
- }
-
- public void testAddListener_Web25_Defaults_NoJETEmitter() throws Exception {
- disableJETEmitter();
- testAddListener_Web25_Defaults();
- enableJETEmitter();
- }
-
- public void testAddListener_Web25_Defaults() throws Exception {
- createWebProject(WEB_PROJECT_NAME, JavaEEFacetConstants.WEB_25);
- IProject proj = ProjectUtilities.getProject(WEB_PROJECT_NAME);
-
- IModelProvider provider = ModelProviderManager.getModelProvider(proj);
- org.eclipse.jst.javaee.web.WebApp webApp = (org.eclipse.jst.javaee.web.WebApp) provider.getModelObject();
-
- addListener_Defaults();
-
- assertJavaFileExists(LISTENER_CLASS_NAME);
-
- List listeners = webApp.getListeners();
- assertEquals("Exactly one listener is expected in the model, but " + listeners.size() + " are found",
- 1, listeners.size());
- org.eclipse.jst.javaee.core.Listener listener = (org.eclipse.jst.javaee.core.Listener) listeners.get(0);
- assertEquals("Listener " + LISTENER_CLASS_NAME + " is expected in the model, but " + listener.getListenerClass() + " is found",
- LISTENER_CLASS_NAME, listener.getListenerClass());
- }
-
- @Override
- protected void tearDown() throws Exception {
- // uncomment the below line if you want to dump a check whether the
- // .JETEmitters projects is created as a result of the executed
- // operation
-// System.out.println(".JETEmitters exists : "
-// + ResourcesPlugin.getWorkspace().getRoot().getProject(
-// WTPJETEmitter.PROJECT_NAME).exists());
- super.tearDown();
- }
-
- private void enableJETEmitter() {
- Preferences preferences = J2EEPlugin.getDefault().getPluginPreferences();
- preferences.setValue(J2EEPlugin.DYNAMIC_TRANSLATION_OF_JET_TEMPLATES_PREF_KEY, true);
- }
-
- private void disableJETEmitter() {
- Preferences preferences = J2EEPlugin.getDefault().getPluginPreferences();
- preferences.setValue(J2EEPlugin.DYNAMIC_TRANSLATION_OF_JET_TEMPLATES_PREF_KEY, false);
- }
-
- public void createWebProject(String projectName, IProjectFacetVersion version) throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel(
- projectName, null, null, null, null, version, false);
- runAndVerify(dm);
- }
-
- private void addServlet_Defaults() throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(NewServletClassDataModelProvider.class);
- dm.setProperty(PROJECT_NAME, WEB_PROJECT_NAME);
- dm.setProperty(JAVA_PACKAGE, PACKAGE);
- dm.setProperty(CLASS_NAME, SERVLET_NAME);
- runAndVerify(dm);
- }
-
- private void addFilter_Defaults() throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(NewFilterClassDataModelProvider.class);
- dm.setProperty(PROJECT_NAME, WEB_PROJECT_NAME);
- dm.setProperty(JAVA_PACKAGE, PACKAGE);
- dm.setProperty(CLASS_NAME, FILTER_NAME);
- runAndVerify(dm);
- }
-
- private void addListener_Defaults() throws Exception {
- IDataModel dm = DataModelFactory.createDataModel(NewListenerClassDataModelProvider.class);
- dm.setProperty(PROJECT_NAME, WEB_PROJECT_NAME);
- dm.setProperty(JAVA_PACKAGE, PACKAGE);
- dm.setProperty(CLASS_NAME, LISTENER_NAME);
- List interfaces = new ArrayList();
- interfaces.add(NewListenerClassDataModelProvider.LISTENER_INTERFACES[0]);
- dm.setProperty(INTERFACES, interfaces);
- runAndVerify(dm);
- }
-
- private void assertJavaFileExists(String fullyQualifiedName) throws JavaModelException {
- IJavaProject javaProject = JavaCore.create(
- ResourcesPlugin.getWorkspace().getRoot())
- .getJavaModel().getJavaProject(WEB_PROJECT_NAME);
- assertNotNull("Java project " + WEB_PROJECT_NAME + " not found", javaProject);
- IType type = javaProject.findType(fullyQualifiedName);
- assertNotNull("Java type " + fullyQualifiedName + " not found", type);
- IFile file = (IFile) type.getResource();
- assertNotNull("Source file for Java type " + fullyQualifiedName + " not found", file);
- assertTrue(file.exists());
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/AllTests.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/AllTests.java
deleted file mode 100644
index a2145a37..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/AllTests.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.flexible.project.fvtests.WebDeployTest;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeType;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-import org.eclipse.wst.server.core.ServerCore;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AllTests extends TestSuite {
-
- public static IRuntime TOMCAT_RUNTIME = createRuntime();
- public static IRuntime JONAS_TOMCAT_RUNTIME = createJONASRuntime();
-
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("Web Operation, Servlet, & Deploy Tests");
- addTest(WebImportOperationTest.suite());
- addTest(WebExportOperationTest.suite());
- addTest(WebProjectCreationOperationTest.suite());
-
- addTest(WebDeployTest.suite());
- addTest(StaticWebProjectCreationOperationTest.suite());
- addTest(AddWebArtifactOperationTest.suite());
- addTest(UrlPatternTest.suite());
- // addTest(WebComponentCreationTest.suite());
- //addTest(new SimpleTestSuite(WebSaveStrategyTests.class));
- }
-
- public static IRuntime createRuntime() {
- String s = "D:/Program Files/Apache Software Foundation/Tomcat 5.0";
- if (s == null || s.length() == 0)
- return null;
- try {
- IRuntimeType rt = ServerCore.findRuntimeType("org.eclipse.jst.server.tomcat.runtime.50");
- IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
- wc.setLocation(new Path(s));
- return wc.save(true, null);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
-
- public static IRuntime createJONASRuntime() {
- String s = "D:/JOnAS-4.3.2";
- if (s == null || s.length() == 0)
- return null;
- try {
- IRuntimeType rt = ServerCore.findRuntimeType("org.eclipse.jst.server.tomcat.runtime.50");
- IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
- wc.setLocation(new Path(s));
- return wc.save(true, null);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/StaticWebProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/StaticWebProjectCreationOperationTest.java
deleted file mode 100644
index 845fb88b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/StaticWebProjectCreationOperationTest.java
+++ /dev/null
@@ -1,46 +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.wtp.j2ee.headless.tests.web.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.project.facet.SimpleWebFacetProjectCreationDataModelProvider;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-public class StaticWebProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
-
- public StaticWebProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new TestSuite(StaticWebProjectCreationOperationTest.class);
- }
-
- public static IDataModel getStaticWebDataModel(String projName, String earName){
- IDataModel model = DataModelFactory.createDataModel(new SimpleWebFacetProjectCreationDataModelProvider());
-
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- return model;
- }
-
-
- public void testStatic_Defaults() throws Exception{
- IDataModel dm = getStaticWebDataModel("aStaticWeb",null);
- OperationTestCase.runAndVerify(dm);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/UrlPatternTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/UrlPatternTest.java
deleted file mode 100644
index e5727b63..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/UrlPatternTest.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.web.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.jst.j2ee.web.validation.UrlPattern;
-import org.eclipse.wst.common.tests.BaseTestCase;
-
-public class UrlPatternTest extends BaseTestCase {
-
- public static Test suite() {
- return new TestSuite(UrlPatternTest.class);
- }
-
- public void testIsValid() {
- // test an empty string
- assertFalse(UrlPattern.isValid(""));
-
- // test a string containing Carriage Return char
- assertFalse(UrlPattern.isValid("\r"));
- assertFalse(UrlPattern.isValid("/\r"));
- assertFalse(UrlPattern.isValid("/some\r"));
- assertFalse(UrlPattern.isValid("/some\rthing"));
- assertFalse(UrlPattern.isValid("*.something\r"));
- assertFalse(UrlPattern.isValid("*.some\rthing"));
-
- // test a string containing New Line char
- assertFalse(UrlPattern.isValid("\n"));
- assertFalse(UrlPattern.isValid("/\n"));
- assertFalse(UrlPattern.isValid("/some\n"));
- assertFalse(UrlPattern.isValid("/some\nthing"));
- assertFalse(UrlPattern.isValid("/some\r\nthing"));
- assertFalse(UrlPattern.isValid("/some\rthi\nng"));
- assertFalse(UrlPattern.isValid("*.something\n"));
- assertFalse(UrlPattern.isValid("*.some\nthing"));
-
- // test the path mappings
- assertTrue(UrlPattern.isValid("/"));
- assertTrue(UrlPattern.isValid("/*"));
- assertTrue(UrlPattern.isValid("/something"));
- assertTrue(UrlPattern.isValid("/something/"));
- assertTrue(UrlPattern.isValid("/something/*"));
- assertTrue(UrlPattern.isValid("/some/thing"));
- assertTrue(UrlPattern.isValid("/some/thing/*"));
- assertTrue(UrlPattern.isValid("/some/thing/else"));
- assertFalse(UrlPattern.isValid("/some/thing/*.else"));
-
- // test extension mappings
- assertTrue(UrlPattern.isValid("*."));
- assertTrue(UrlPattern.isValid("*.some"));
- assertTrue(UrlPattern.isValid("*.some*thing"));
- assertFalse(UrlPattern.isValid("*.some/thing"));
-
- // test other situations
- assertFalse(UrlPattern.isValid("something"));
- assertFalse(UrlPattern.isValid("some/thing"));
- assertFalse(UrlPattern.isValid(".something"));
- assertFalse(UrlPattern.isValid(".some/thing"));
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebExportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebExportOperationTest.java
deleted file mode 100644
index 05d4da36..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebExportOperationTest.java
+++ /dev/null
@@ -1,554 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.web.datamodel.properties.IWebComponentExportDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaFileTestingUtilities;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTest;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class WebExportOperationTest extends ModuleExportOperationTest {
- public WebExportOperationTest() {
- super("WebExportOperationTests");
- }
-
- public WebExportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebExportOperationTest.class);
- }
-
- public void testWebExport22_Defaults() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("testWebExport", null, null, null, null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_Defaults() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("superWeb", null, null, null, null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_Defaults() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("crazyWeb", null, null, null, null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_Defaults() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("netoWeb", null, null, null, null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport22_ChangedContentDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("goodWeb", null, null, "myAwesomeContentDir", null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContentDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("niceWeb", null, null, "contentHere", null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContentDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("spiderWeb", null, null, "iLikeContent", null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hotWeb", null, null, "fooContent", null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("penWeb", null, null, null, "myJavaSrc", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("pencilWeb", null, null, null, "fooSrc", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("clipWeb", null, null, null, "barSrc", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("markerWeb", null, null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("aWeb", null, null, "contentA", "srcHi", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("bWeb", null, null, "contentB", "srcBy", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("cWeb", null, null, "contentC", "srcKite", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("dWeb", null, null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_Defaults_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("testWebExport", "teatEAR", null, null, null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_Defaults_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("superWeb", "superEAR", null, null, null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_Defaults_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("crazyWeb", "crazyEAR", null, null, null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_Defaults_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("netoWeb", "netoEAR", null, null, null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("myWeb", "earMy", "superContextRoot", null, null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("yourWeb", "earYour", "contextRootFoo", null, null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("ourWeb", "earOur", "barContextRoot", null, null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("theirWeb", "earTheir", "theRootOfContext", null, null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("goodWeb", "aEAR", null, "myAwesomeContentDir", null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("niceWeb", "bEAR", null, "contentHere", null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("spiderWeb", "cEAR", null, "iLikeContent", null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hotWeb", "dEAR", null, "fooContent", null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("penWeb", "fEAR", null, null, "myJavaSrc", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("pencilWeb", "gEAR", null, null, "fooSrc", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("clipWeb", "hEAR", null, null, "barSrc", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("markerWeb", "iEAR", null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("redWeb", "jEAR", "superCR", "content", null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("yellowWeb", "kEAR", "fooCR", "goContent", null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("blackWeb", "lEAR", "barCR", "stopContent", null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("whiteWeb", "mEAR", "theROfC", "testContent", null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("farWeb", "nEAR", "ourCR", null, "superSrc", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("closeWeb", "oEAR", "theirCR", null, "netoSrc", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("neerWeb", "pEAR", "myCR", null, "niceSrc", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("awayWeb", "qEAR", "yourCR", null, "coolSrc", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("aWeb", "aEAR", null, "contentA", "srcHi", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("bWeb", "bEAR", null, "contentB", "srcBy", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("cWeb", "cEAR", null, "contentC", "srcKite", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("dWeb", "dEAR", null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
- public void testWebExport22_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("eWeb", "eEAR", "eRoot", "eContDir", "srcE", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport23_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("fWeb", "fEAR", "fRoot", "fContDir", "srcF", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport24_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("gWeb", "gEAR", "gRoot", "gContDir", "srcG", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hWeb", "hEAR", "hRoot", "hContDir", "srgH", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
-
-
- public void testWebExport25_Defaults_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("netoWeb", null, null, null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("theirWeb", null, "theRootOfContext", null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hotWeb", null, null, "fooContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("markerWeb", null, null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("whiteWeb", null, "theROfC", "testContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("awayWeb", null, "yourCR", null, "coolSrc", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("dWeb", null, null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hWeb", null, "hRoot", "hContDir", "srgH", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_Defaults_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("netoWeb", "netoEAR", null, null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("theirWeb", "earTheir", "theRootOfContext", null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hotWeb", "dEAR", null, "fooContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("markerWeb", "iEAR", null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("whiteWeb", "mEAR", "theROfC", "testContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("awayWeb", "qEAR", "yourCR", null, "coolSrc", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("dWeb", "dEAR", null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- public void testWebExport25_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = WebProjectCreationOperationTest.getWebDataModel("hWeb", "hEAR", "hRoot", "hContDir", "srgH", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runDataModel(dm);
-
- runExportTests_All(dm);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".war";
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return getWebExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting, false);
- }
-
- /**
- * @param projectName name of the project to export
- * @param destination destination to export to
- * @param exportSource if TRUE export source files, else don't
- * @param runBuild if TRUE run a build before exporting, else don't
- * @param overwriteExisting if TRUE overwrite existing files, else don't
- * @param excludeCompileJSP indicates whether or not to export compiled JSP files
- * @return an EJBComponentExport data model with all of the given settings.
- */
- public static IDataModel getWebExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting, boolean excludeCompileJSP){
- IDataModel exportModel = DataModelFactory.createDataModel(new WebComponentExportDataModelProvider());
-
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME, projectName);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION, destination);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.EXPORT_SOURCE_FILES, exportSource);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.OVERWRITE_EXISTING, overwriteExisting);
- exportModel.setProperty(IJ2EEComponentExportDataModelProperties.RUN_BUILD, runBuild);
-
- exportModel.setProperty(IWebComponentExportDataModelProperties.EXCLUDE_COMPILE_JSP, excludeCompileJSP);
-
- return exportModel;
- }
-
- @Override
- protected void addJavaFilesToProject(String projectName, String[] classNames, String prackageName) throws Exception {
- JavaFileTestingUtilities.addJavaFilesToWeb(projectName, classNames, prackageName);
- }
-
- @Override
- protected void verifyJavaFilesExported(String archiveName, String[] classNames, String packageName, boolean withClassFiles, boolean withSource) throws Exception {
- JavaFileTestingUtilities.verifyJavaFilesInWAR(archiveName, classNames, packageName, withClassFiles, withSource);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebImportOperationBaseTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebImportOperationBaseTest.java
deleted file mode 100644
index 10ef7cb3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebImportOperationBaseTest.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.j2ee.headless.tests.web.operations;
-
-import java.util.List;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.web.datamodel.properties.IWebComponentImportDataModelProperties;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-
-public class WebImportOperationBaseTest extends ModuleImportOperationTest{
-
- public WebImportOperationBaseTest() {
- super("WebImportOperationBaseTest");
- }
-
- public WebImportOperationBaseTest(String name) {
- super(name);
- }
-
- @Override
- protected String getModuleExtension() {
- return ".war";
- }
-
- @Override
- protected IDataModel getImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose) {
- return getWebImportDataModel(filePath, projectName, creationModel, closeArchiveOnDispose, null, null);
- }
-
- public static IDataModel getWebImportDataModel(String filePath, String projectName, IDataModel creationModel, boolean closeArchiveOnDispose, List<IArchive> webLibArchivesToExpand, String contextRoot) {
- IDataModel importModel = DataModelFactory.createDataModel(new WebComponentImportDataModelProvider());
-
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filePath);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.CLOSE_ARCHIVE_ON_DISPOSE, closeArchiveOnDispose);
-
-
- if(creationModel != null) {
- importModel.setProperty(IJ2EEComponentImportDataModelProperties.NESTED_MODEL_J2EE_COMPONENT_CREATION, creationModel);
- }
-
- if(webLibArchivesToExpand != null) {
- importModel.setProperty(IWebComponentImportDataModelProperties.WEB_LIB_ARCHIVES_SELECTED, webLibArchivesToExpand);
- }
-
- if(contextRoot != null) {
- importModel.setProperty(IWebComponentImportDataModelProperties.CONTEXT_ROOT, contextRoot);
- }
-
- return importModel;
- }
-
- @Override
- protected IDataModel getExportDataModel(String projectName, String destination, boolean exportSource, boolean runBuild, boolean overwriteExisting) {
- return WebExportOperationTest.getWebExportDataModel(projectName, destination, exportSource, runBuild, overwriteExisting, false);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebImportOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebImportOperationTest.java
deleted file mode 100644
index 053eb375..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebImportOperationTest.java
+++ /dev/null
@@ -1,240 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class WebImportOperationTest extends WebImportOperationBaseTest {
-
- public WebImportOperationTest() {
- super("WebImportOperationTests");
- }
-
- public WebImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebImportOperationTest.class);
- }
-
- public void testWebImport22_Defaults() throws Exception {
- runImportTests_All("Web22_Defaults");
- }
-
- public void testWebImport23_Defaults() throws Exception {
- runImportTests_All("Web23_Defaults");
- }
-
- public void testWebImport24_Defaults() throws Exception {
- runImportTests_All("Web24_Defaults");
- }
-
- public void testWebImport22_DiffContentDir() throws Exception {
- runImportTests_All("Web22_DiffContentDir");
- }
-
- public void testWebImport23_DiffContentDir() throws Exception {
- runImportTests_All("Web23_DiffContentDir");
- }
-
- public void testWebImport24_DiffContentDir() throws Exception {
- runImportTests_All("Web24_DiffContentDir");
- }
-
- public void testWebImport22_DiffSrcDir() throws Exception {
- runImportTests_All("Web22_DiffSrcDir");
- }
-
- public void testWebImport23_DiffSrcDir() throws Exception {
- runImportTests_All("Web23_DiffSrcDir");
- }
-
- public void testWebImport24_DiffSrcDir() throws Exception {
- runImportTests_All("Web24_DiffSrcDir");
- }
-
- public void testWebImport22_DiffContentDir_DiffSrcDir() throws Exception {
- runImportTests_All("Web22_DiffContentDir_DiffSrcDir");
- }
-
- public void testWebImport23_DiffContentDir_DiffSrcDir() throws Exception {
- runImportTests_All("Web23_DiffContentDir_DiffSrcDir");
- }
-
- public void testWebImport24_DiffContentDir_DiffSrcDir() throws Exception {
- runImportTests_All("Web24_DiffContentDir_DiffSrcDir");
- }
-
- public void testWebImport22_Defaults_WithEAR() throws Exception {
- runImportTests_All("Web22_Defaults_WithEAR");
- }
-
- public void testWebImport23_Defaults_WithEAR() throws Exception {
- runImportTests_All("Web23_Defaults_WithEAR");
- }
-
- public void testWebImport24_Defaults_WithEAR() throws Exception {
- runImportTests_All("Web24_Defaults_WithEAR");
- }
-
- public void testWebImport22_DiffContextRoot_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffContextRoot_WithEAR");
- }
-
- public void testWebImport23_DiffContextRoot_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffContextRoot_WithEAR");
- }
-
- public void testWebImport24_DiffContextRoot_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffContextRoot_WithEAR");
- }
-
- public void testWebImport22_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffContentDir_WithEAR");
- }
-
- public void testWebImport23_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffContentDir_WithEAR");
- }
-
- public void testWebImport24_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffContentDir_WithEAR");
- }
-
- public void testWebImport22_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport23_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport24_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport22_DiffContextRoot_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffContextRoot_DiffContentDir_WithEAR");
- }
-
- public void testWebImport23_DiffContextRoot_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffContextRoot_DiffContentDir_WithEAR");
- }
-
- public void testWebImport24_DiffContextRoot_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffContextRoot_DiffContentDir_WithEAR");
- }
-
- public void testWebImport22_DiffContextRoot_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffContextRoot_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport23_DiffContextRoot_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffContextRoot_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport24_DiffContextRoot_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffContextRoot_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport22_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport23_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport24_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web22_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web23_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web24_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport25_Defaults_WithDD() throws Exception {
- runImportTests_All("Web25_Defaults_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_WithDD");
- }
-
- public void testWebImport25_DiffContentDir_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContentDir_WithDD");
- }
-
- public void testWebImport25_DiffSrcDir_WithDD() throws Exception {
- runImportTests_All("Web25_DiffSrcDir_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_DiffContentDir_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffContentDir_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_DiffSrcDir_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffSrcDir_WithDD");
- }
-
- public void testWebImport25_DiffContentDir_DiffSrcDir_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContentDir_DiffSrcDir_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithDD");
- }
-
- public void testWebImport25_Defaults_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_Defaults_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffContentDir_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContentDir_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffSrcDir_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffSrcDir_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_DiffContentDir_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffContentDir_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffSrcDir_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffContentDir_DiffSrcDir_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContentDir_DiffSrcDir_WithEAR_WithDD");
- }
-
- public void testWebImport25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_WithDD");
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebProjectCreationOperationTest.java
deleted file mode 100644
index 9b88cee5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/web/operations/WebProjectCreationOperationTest.java
+++ /dev/null
@@ -1,573 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Nov 7, 2003
- *
- * To change the template for this generated file go to
- * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-
-public class WebProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
-
- public WebProjectCreationOperationTest() {
- super("WebProjectCreationOperationTests");
- }
-
- public WebProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebProjectCreationOperationTest.class);
- }
-
- public void testWeb22_Defaults() throws Exception {
- IDataModel dm = getWebDataModel("testWeb", null, null, null, null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_Defaults() throws Exception {
- IDataModel dm = getWebDataModel("superWeb", null, null, null, null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_Defaults() throws Exception {
- IDataModel dm = getWebDataModel("crazyWeb", null, null, null, null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_Defaults() throws Exception {
- IDataModel dm = getWebDataModel("netoWeb", null, null, null, null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults() throws Exception {
- IDataModel dm = getWebDataModel("badWeb", null, null, null, null, JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContentDir() throws Exception {
- IDataModel dm = getWebDataModel("goodWeb", null, null, "myAwesomeContentDir", null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContentDir() throws Exception {
- IDataModel dm = getWebDataModel("niceWeb", null, null, "contentHere", null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContentDir() throws Exception {
- IDataModel dm = getWebDataModel("spiderWeb", null, null, "iLikeContent", null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir() throws Exception {
- IDataModel dm = getWebDataModel("hotWeb", null, null, "fooContent", null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir() throws Exception {
- IDataModel dm = getWebDataModel("madWeb", null, null, "madContent", null, JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb22_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("penWeb", null, null, null, "myJavaSrc", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("pencilWeb", null, null, null, "fooSrc", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("clipWeb", null, null, null, "barSrc", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("markerWeb", null, null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("booWeb", null, null, null, "booSrc", JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("aWeb", null, null, "contentA", "srcHi", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("bWeb", null, null, "contentB", "srcBy", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("cWeb", null, null, "contentC", "srcKite", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("dWeb", null, null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebDataModel("eeWeb", null, null, "contentEE", "srcTry", JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_Defaults_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("testWeb", "teatEAR", null, null, null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_Defaults_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("superWeb", "superEAR", null, null, null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_Defaults_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("crazyWeb", "crazyEAR", null, null, null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_Defaults_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("netoWeb", "netoEAR", null, null, null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("badWeb", "badEAR", null, null, null, JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb22_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("myWeb", "earMy", "superContextRoot", null, null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("yourWeb", "earYour", "contextRootFoo", null, null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("ourWeb", "earOur", "barContextRoot", null, null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("theirWeb", "earTheir", "theRootOfContext", null, null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("herWeb", "earHer", "herContextRoot", null, null, JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("goodWeb", "aEAR", null, "myAwesomeContentDir", null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("niceWeb", "bEAR", null, "contentHere", null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("spiderWeb", "cEAR", null, "iLikeContent", null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("hotWeb", "dEAR", null, "fooContent", null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("madWeb", "eeEAR", null, "madContent", null, JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("penWeb", "fEAR", null, null, "myJavaSrc", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("pencilWeb", "gEAR", null, null, "fooSrc", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("clipWeb", "hEAR", null, null, "barSrc", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("markerWeb", "iEAR", null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("booWeb", "jjEAR", null, null, "booSrc", JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("redWeb", "jEAR", "superCR", "content", null, JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("yellowWeb", "kEAR", "fooCR", "goContent", null, JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("blackWeb", "lEAR", "barCR", "stopContent", null, JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("whiteWeb", "mEAR", "theROfC", "testContent", null, JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("pinkWeb", "nnEAR", "pinkCR", "pinkContent", null, JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("farWeb", "nEAR", "ourCR", null, "superSrc", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("closeWeb", "oEAR", "theirCR", null, "netoSrc", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("neerWeb", "pEAR", "myCR", null, "niceSrc", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("awayWeb", "qEAR", "yourCR", null, "coolSrc", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("veryfarWeb", "rEAR", "herCR", null, "verybadSrc", JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("aWeb", "aEAR", null, "contentA", "srcHi", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("bWeb", "bEAR", null, "contentB", "srcBy", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("cWeb", "cEAR", null, "contentC", "srcKite", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("dWeb", "dEAR", null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("eeWeb", "eeEAR", null, "contentEE", "srcTry", JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb22_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("eWeb", "eEAR", "eRoot", "eContDir", "srcE", JavaEEFacetConstants.WEB_22, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb23_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("fWeb", "fEAR", "fRoot", "fContDir", "srcF", JavaEEFacetConstants.WEB_23, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb24_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("gWeb", "gEAR", "gRoot", "gContDir", "srcG", JavaEEFacetConstants.WEB_24, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("hWeb", "hEAR", "hRoot", "hContDir", "srgH", JavaEEFacetConstants.WEB_25, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebDataModel("iiWeb", "iiEAR", "iiRoot", "iiContDir", "srgII", JavaEEFacetConstants.WEB_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- public void testWeb25_Defaults_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("netoWeb", null, null, null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("theirWeb", null, "theRootOfContext", null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("hotWeb", null, null, "fooContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("markerWeb", null, null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("whiteWeb", null, "theROfC", "testContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("awayWeb", null, "yourCR", null, "coolSrc", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("dWeb", null, null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("hWeb", null, "hRoot", "hContDir", "srgH", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_Defaults_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("netoWeb", "netoEAR", null, null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("theirWeb", "earTheir", "theRootOfContext", null, null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("hotWeb", "dEAR", null, "fooContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("markerWeb", "iEAR", null, null, "srcOfCool", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("whiteWeb", "mEAR", "theROfC", "testContent", null, JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("awayWeb", "qEAR", "yourCR", null, "coolSrc", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("dWeb", "dEAR", null, "contentD", "srcBike", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb25_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("hWeb", "hEAR", "hRoot", "hContDir", "srgH", JavaEEFacetConstants.WEB_25, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("badWeb", null, null, null, null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("herWeb", null, "herRootOfContext", null, null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("madWeb", null, null, "madContent", null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("pinkWeb", null, "pinkRC", "tryContent", null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("farawayWeb", null, "farawayCR", null, "farSrc", JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("eeWeb", null, null, "contentE", "srcTry", JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("badWeb", "badEAR", null, null, null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("herWeb", "earHer", "herContextRoot", null, null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("madWeb", "eeEAR", null, "madContent", null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("booWeb", "jjEAR", null, null, "booSrc", JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("pinkWeb", "nnEAR", "pinkCR", "pinkContent", null, JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("veryfarWeb", "rEAR", "herCR", null, "verybadSrc", JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("eeWeb", "eeEAR", null, "contentEE", "srcTry", JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebDataModel("iiWeb", "iiEAR", "iiRoot", "iiContDir", "srgII", JavaEEFacetConstants.WEB_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- /**
- * Creates and returns a Web Data Model with the given name and of the given version.
- * Can also be used to specify none default context root, content directory, and/or
- * the java source directory.
- * If earName is not null then Web will be added to the EAR with earName, and if appropriate
- * with or without a deployment descriptor.
- *
- * @param projName name of the project to create
- * @param earName name of the ear to add the project too, if NULL then don't add to an EAR
- * @param contextRoot the context root to use for this project, use default if NULL
- * @param contentDir the content directory to use for this project, use default if NULL
- * @param javaSrcDir the java source directory to use for this project, use default if NULL
- * @param version version of Web to use
- * @param createDD only used if version is JEE5, if true then create DD else don't
- * @return a Web Data Model with the appropriate properties set
- */
- public static IDataModel getWebDataModel(String projName, String earName, String contextRoot, String contentDir, String javaSrcDir, IProjectFacetVersion version, boolean createDD){
- IDataModel dm = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
-
- if(earName != null) {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, true);
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, earName);
- } else {
- dm.setProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR, false);
- }
-
- FacetDataModelMap facetMap = (FacetDataModelMap) dm.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.DYNAMIC_WEB);
- facetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, version);
-
- //if no contextRoot provided use default, contextRoot only matters if adding to EAR
- if(contextRoot != null && earName != null) {
- facetModel.setStringProperty(IWebFacetInstallDataModelProperties.CONTEXT_ROOT, contextRoot);
- }
-
- //if no contentDir provided use default
- if(contentDir != null) {
- facetModel.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER, contentDir);
- }
-
- //if no javaSrcDir provided use default
- if(javaSrcDir != null) {
- facetModel.setStringProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, javaSrcDir);
- }
-
- facetModel.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, createDD);
-
- if(version.equals(JavaEEFacetConstants.WEB_30)) {
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_6);
- }
- else{
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_5);
- }
-
- return dm;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/webfragment/operations/WebFragmentProjectCreationOperationTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/webfragment/operations/WebFragmentProjectCreationOperationTest.java
deleted file mode 100644
index 44a09503..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/wtp/j2ee/headless/tests/webfragment/operations/WebFragmentProjectCreationOperationTest.java
+++ /dev/null
@@ -1,219 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.j2ee.headless.tests.webfragment.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.WebFragmentFacetInstallDataModelProvider;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.JavaEEFacetConstants;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
-
-
-public class WebFragmentProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
-
- public WebFragmentProjectCreationOperationTest() {
- super("WebProjectCreationOperationTests");
- }
-
- public WebFragmentProjectCreationOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebFragmentProjectCreationOperationTest.class);
- }
-
- public void testWeb30_Defaults() throws Exception {
- IDataModel dm = getWebFragmentDataModel("badWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir() throws Exception {
- IDataModel dm = getWebFragmentDataModel("madWeb", "madContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebFragmentDataModel("booWeb", null, "booSrc", JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir() throws Exception {
- IDataModel dm = getWebFragmentDataModel("eeWeb", "contentEE", "srcTry", JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("badWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("herWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("madWeb", "madContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("booWeb", null, "booSrc", JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("pinkWeb", "pinkContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("veryfarWeb", null, "verybadSrc", JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("eeWeb", "contentEE", "srcTry", JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR() throws Exception {
- IDataModel dm = getWebFragmentDataModel("iiWeb", "iiContDir", "srgII", JavaEEFacetConstants.WEBFRAGMENT_30, false);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("badWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("herWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("madWeb", "madContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("pinkWeb", "tryContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("farawayWeb", null, "farSrc", JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("eeWeb", "contentE", "srcTry", JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_Defaults_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("badWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("herWeb", null, null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("madWeb", "madContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("booWeb", null, "booSrc", JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("pinkWeb", "pinkContent", null, JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("veryfarWeb", null, "verybadSrc", JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("eeWeb", "contentEE", "srcTry", JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
- public void testWeb30_ChangedContextRoot_ChangedContentDir_ChangedJavaSrcDir_WithEAR_WithDD() throws Exception {
- IDataModel dm = getWebFragmentDataModel("iiWeb", "iiContDir", "srgII", JavaEEFacetConstants.WEBFRAGMENT_30, true);
- OperationTestCase.runAndVerify(dm);
- }
-
-
- /**
- * Creates and returns a Web Fragment Data Model with the given name and of the given version.
- * Can also be used to specify none default context root, content directory, and/or
- * the java source directory.
- * If earName is not null then Web will be added to the EAR with earName, and if appropriate
- * with or without a deployment descriptor.
- *
- * @param projName name of the project to create
- * @param contentDir the content directory to use for this project, use default if NULL
- * @param javaSrcDir the java source directory to use for this project, use default if NULL
- * @param version version of Web to use
- * @param createDD - if true then create DD else don't
- * @return a Web Fragment Data Model with the appropriate properties set
- */
- public static IDataModel getWebFragmentDataModel(String projName, String contentDir, String javaSrcDir, IProjectFacetVersion version, boolean createDD){
- IDataModel dm = DataModelFactory.createDataModel(new WebFragmentFacetInstallDataModelProvider());
- dm.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
- dm.setProperty(IFacetDataModelProperties.FACET_VERSION, version);
-
- //if no contentDir provided use default
- if(contentDir != null) {
- dm.setStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER, contentDir);
- }
-
- //if no javaSrcDir provided use default
- if(javaSrcDir != null) {
- dm.setStringProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, javaSrcDir);
- }
-
- dm.setBooleanProperty(IJ2EEFacetInstallDataModelProperties.GENERATE_DD, createDD);
-
-/* does the Java version get set correctly?
- if(version.equals(JavaEEFacetConstants.WEBFRAGMENT_30)) {
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_6);
- }
- else{
- IDataModel javaFacetModel = facetMap.getFacetDataModel(IJ2EEFacetConstants.JAVA);
- javaFacetModel.setProperty(IFacetDataModelProperties.FACET_VERSION, JavaEEFacetConstants.JAVA_5);
- }
-*/
-
- return dm;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBExportDataModelVerifier.java
deleted file mode 100644
index e0f70cad..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBExportDataModelVerifier.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers;
-
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleExportDataModelVerifier;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class EJBExportDataModelVerifier extends ModuleExportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.EJB_TYPE;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBImportDataModelVerifier.java
deleted file mode 100644
index 00adc8c8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBImportDataModelVerifier.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers;
-
-import java.util.Collection;
-
-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.runtime.IPath;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleImportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class EJBImportDataModelVerifier extends ModuleImportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.EJB_TYPE;
- }
-
- @Override
- protected void verifyImportedResources(
- Collection<IArchiveResource> sourceResources,
- Collection<IArchiveResource> importedClassesResources,
- Collection<IArchiveResource> otherResources,
- Collection<IArchive> nestedArchives,
- IContainer rootFolder, IFolder importedClassesFolder) {
-
- IPath resourcePath = null;
- IFile resourceFile = null;
-
- //verify all of the resources from the archive were imported to the project correctly
- for(IArchiveResource sourceResource : sourceResources) {
- resourcePath = sourceResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The file " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchiveResource importedClassResource : importedClassesResources) {
- resourcePath = importedClassResource.getPath();
- resourceFile = importedClassesFolder.getFile(resourcePath);
- Assert.assertTrue("The imported class " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchiveResource otherResource : otherResources) {
- resourcePath = otherResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The resource " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchive nestedArchive : nestedArchives) {
-
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBProjectCreationDataModelVerifier.java
deleted file mode 100644
index ab75c2ed..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/ejb/verifiers/EJBProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.dependency.tests.util.DependencyVerificationUtil;
-import org.eclipse.jst.j2ee.ejb.project.operations.IEjbFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.project.EarUtilities;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.ejb.EJBJar;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleProjectCreationDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window -
- * Preferences - Java - Code Generation - Code and Comments
- */
-public class EJBProjectCreationDataModelVerifier extends ModuleProjectCreationDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.verifyClient();
- }
-
- @Override
- protected void setFacetProjectType() {
- this.facetProjectType = J2EEProjectUtilities.EJB;
- }
-
- @Override
- protected IFile getDDFile() {
- return component.getRootFolder().getFile(J2EEConstants.EJBJAR_DD_URI).getUnderlyingFile();
- }
-
- @Override
- protected void verifyDD(Object modelObj) {
- String version = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- if(version.equals(J2EEVersionConstants.VERSION_3_0_TEXT) || version.equals(J2EEVersionConstants.VERSION_3_1_TEXT) ){
- EJBJar ejb = (EJBJar)modelObj;
- Assert.assertEquals("Invalid project version", version, ejb.getVersion());
- } else {
- org.eclipse.jst.j2ee.ejb.EJBJar ejb = (org.eclipse.jst.j2ee.ejb.EJBJar)modelObj;
- Assert.assertEquals("Invalid project version", version, ejb.getVersion());
- }
- }
-
- private void verifyClient() throws Exception{
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(facetProjectType);
- boolean createClient = facetModel.getBooleanProperty(IEjbFacetInstallDataModelProperties.CREATE_CLIENT);
- boolean addToEAR = model.getBooleanProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR);
-
- //can only have client if added to EAR
- if(createClient && addToEAR) {
- //be sure the client project exists
- String clientName = facetModel.getStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_NAME);
- IProject clientProject = ProjectUtilities.getProject(clientName);
- Assert.assertTrue("Client project should exist", clientProject.exists());
-
- String earName = model.getStringProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME);
-
- //be sure the created EAR has reference to the created EJB client
- IProject ear = ProjectUtilities.getProject(earName);
- boolean foundEARRefToClient = false;
- IVirtualReference[] refs = EarUtilities.getUtilityModuleReferences(ComponentCore.createComponent(ear));
- IVirtualComponent clientComp = ComponentCore.createComponent(clientProject);
- for (int i = 0; i < refs.length; i++) {
- IVirtualReference virtualReference = refs[i];
- if (virtualReference.getReferencedComponent().equals(clientComp))
- foundEARRefToClient = true;
- }
- Assert.assertTrue("The created EAR should have a reference to the created EJB client project", foundEARRefToClient);
-
- //be sure EJB has a MANIFEST entry to the EJB client
- String ejbName = facetModel.getStringProperty(IEjbFacetInstallDataModelProperties.FACET_PROJECT_NAME);
- String ejbClientURI = facetModel.getStringProperty(IEjbFacetInstallDataModelProperties.CLIENT_URI);
- IProject ejbProject = ProjectUtilities.getProject(ejbName);
- DependencyVerificationUtil.verifyManifestReference(ejbProject, ejbClientURI, true);
-
-
- //be sure the EJB client source folder was created
- String clientSourceFolderPath = facetModel.getStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER);
- IFolder clientSourceFolder = clientProject.getFolder(clientSourceFolderPath);
- Assert.assertTrue("Client source folder should exist", clientSourceFolder.exists());
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/DataModelVerifierListGenerator.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/DataModelVerifierListGenerator.java
deleted file mode 100644
index a6012dcc..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/DataModelVerifierListGenerator.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- *
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jst.j2ee.application.internal.operations.AppClientComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.EARComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.application.internal.operations.J2EEUtilityJarImportDataModelProvider;
-import org.eclipse.jst.j2ee.applicationclient.internal.creation.AppClientComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.applicationclient.internal.creation.AppClientFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EJBComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.ejb.project.operations.EjbFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.jca.operations.ConnectorComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.jca.operations.ConnectorComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.project.facet.EARFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentImportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.jca.project.facet.ConnectorFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.project.facet.UtilityProjectCreationDataModelProvider;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers.EJBExportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers.EJBImportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.verifiers.EJBProjectCreationDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.jca.verifiers.JCAExportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.jca.verifiers.JCAImportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.jca.verifiers.JCAProjectCreationDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.utility.verifiers.UtilityImportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.utility.verifiers.UtilityProjectCreationDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.web.verifiers.WebExportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.web.verifiers.WebImportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tests.web.verifiers.WebProjectCreationDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tets.appclient.verifiers.AppClientExportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tets.appclient.verifiers.AppClientImportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tets.appclient.verifiers.AppClientProjectCreationDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tets.ear.verifiers.EARExportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tets.ear.verifiers.EARImportDataModelVerifier;
-import org.eclipse.wtp.j2ee.headless.tets.ear.verifiers.EARProjectCreationDataModelVerifier;
-
-
-/**
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- */
-public class DataModelVerifierListGenerator {
- private static Map verifiers;
-
- public static Map getVerifiers() {
- if(verifiers == null || verifiers.isEmpty()) {
- verifiers = new HashMap();
-
- verifiers.put(AppClientFacetProjectCreationDataModelProvider.class.getName(), AppClientProjectCreationDataModelVerifier.class);
- verifiers.put(AppClientComponentImportDataModelProvider.class.getName(), AppClientImportDataModelVerifier.class);
- verifiers.put(AppClientComponentExportDataModelProvider.class.getName(),AppClientExportDataModelVerifier.class);
-
- verifiers.put(EjbFacetProjectCreationDataModelProvider.class.getName(), EJBProjectCreationDataModelVerifier.class);
- verifiers.put(EJBComponentImportDataModelProvider.class.getName(), EJBImportDataModelVerifier.class);
- verifiers.put(EJBComponentExportDataModelProvider.class.getName(), EJBExportDataModelVerifier.class);
-
- verifiers.put(WebFacetProjectCreationDataModelProvider.class.getName(), WebProjectCreationDataModelVerifier.class);
- verifiers.put(WebComponentImportDataModelProvider.class.getName(), WebImportDataModelVerifier.class);
- verifiers.put(WebComponentExportDataModelProvider.class.getName(), WebExportDataModelVerifier.class);
-
- verifiers.put(ConnectorFacetProjectCreationDataModelProvider.class.getName(), JCAProjectCreationDataModelVerifier.class);
- verifiers.put(ConnectorComponentImportDataModelProvider.class.getName(), JCAImportDataModelVerifier.class);
- verifiers.put(ConnectorComponentExportDataModelProvider.class.getName(), JCAExportDataModelVerifier.class);
-
- verifiers.put(UtilityProjectCreationDataModelProvider.class.getName(), UtilityProjectCreationDataModelVerifier.class);
-// verifiers.put(J2EEUtilityJarImportDataModelProvider.class.getName(), UtilityImportDataModelVerifier.class);
- verifiers.put((new J2EEUtilityJarImportDataModelProvider()).getID(), UtilityImportDataModelVerifier.class);
-
- verifiers.put(EARFacetProjectCreationDataModelProvider.class.getName(), EARProjectCreationDataModelVerifier.class);
- verifiers.put(EARComponentImportDataModelProvider.class.getName(), EARImportDataModelVerifier.class);
- verifiers.put(EARComponentExportDataModelProvider.class.getName(), EARExportDataModelVerifier.class);
- }
-
- return verifiers;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEExportDataModelVerifier.java
deleted file mode 100644
index 4cfbff51..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEExportDataModelVerifier.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import java.io.File;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.util.internal.JavaEEQuickPeek;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.AssertWarn;
-import org.eclipse.wst.common.tests.DataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public abstract class JEEExportDataModelVerifier extends DataModelVerifier {
- protected IDataModel model = null;
-
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.model = model;
-
- this.verifyArchiveExists();
- this.verifyArchiveTypeAndVersion();
- }
-
- protected abstract int getExportType();
-
- private void verifyArchiveExists() {
- String archivePath = model.getStringProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION);
- File archive = new File(archivePath);
- Assert.assertTrue("The exported archive must exist.", archive.exists());
- }
-
- public static boolean isEE5WithoutDD(IProject project) throws Exception{
- String sProjVersion = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- int iProjVersion = J2EEVersionUtil.convertVersionStringToInt(sProjVersion);
- IArchive projectArchive = null;
- try {
- projectArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(ComponentCore.createComponent(project));
- JavaEEQuickPeek archiveQuickPeek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(projectArchive);
- if(archiveQuickPeek.getJavaEEVersion() == J2EEVersionConstants.JEE_5_0_ID){
- boolean hasDD = false;
- switch(archiveQuickPeek.getType()){
- case J2EEVersionConstants.APPLICATION_CLIENT_TYPE:
- hasDD = projectArchive.containsArchiveResource(new Path(J2EEConstants.APP_CLIENT_DD_URI));
- break;
- case J2EEVersionConstants.APPLICATION_TYPE:
- hasDD = projectArchive.containsArchiveResource(new Path(J2EEConstants.APPLICATION_DD_URI));
- break;
- case J2EEVersionConstants.EJB_TYPE:
- hasDD = projectArchive.containsArchiveResource(new Path(J2EEConstants.EJBJAR_DD_URI));
- break;
- case J2EEVersionConstants.WEB_TYPE:
- hasDD = projectArchive.containsArchiveResource(new Path(J2EEConstants.WEBAPP_DD_URI));
- break;
- }
- if(!hasDD){
- System.err.println("TODO -- NO DD import support needs to be implemented.");
- System.err.println(" -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=194679");
- return true;
- }
- }
- } finally {
- if (null != projectArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(projectArchive);
- }
- }
- return false;
- }
-
- private void verifyArchiveTypeAndVersion() throws Exception {
- String projName = model.getStringProperty(IJ2EEComponentExportDataModelProperties.PROJECT_NAME);
- IProject exportedProj = ProjectUtilities.getProject(projName);
-
- IArchive projectArchive = null;
- try {
- projectArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(ComponentCore.createComponent(exportedProj));
- JavaEEQuickPeek archiveQuickPeek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(projectArchive);
- int type = archiveQuickPeek.getType();
- AssertWarn.warnEquals("Archive type did not match exported type", getExportType(), type);
- } finally {
- if (null != projectArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(projectArchive);
- }
- }
-
- String archivePath = model.getStringProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION);
- IArchive zipArchive = null;
-
- try {
- zipArchive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(archivePath));
-
- JavaEEQuickPeek archiveQuickPeek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(zipArchive);
- int type = archiveQuickPeek.getType();
- AssertWarn.warnEquals("Archive type did not match exported type", getExportType(), type);
- int iVersionConstant = archiveQuickPeek.getVersion();
- String sProjVersion = J2EEProjectUtilities.getJ2EEDDProjectVersion(exportedProj);
- int iProjVersion = J2EEVersionUtil.convertVersionStringToInt(sProjVersion);
- AssertWarn.warnEquals("Archive version did not match exported project version", iProjVersion, iVersionConstant);
- } finally {
- if (null != zipArchive) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(zipArchive);
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEImportDataModelVerifier.java
deleted file mode 100644
index c31b7942..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEImportDataModelVerifier.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import java.util.StringTokenizer;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEModuleImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.jst.jee.util.internal.JavaEEQuickPeek;
-import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.AssertWarn;
-import org.eclipse.wst.common.tests.DataModelVerifier;
-import org.eclipse.wst.common.tests.ProjectUtility;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public abstract class JEEImportDataModelVerifier extends DataModelVerifier {
- private static final String CLASS_EXTENSION = "class";
- private static final String JAVA_EXTENSION = "java";
- private static final String JAR_EXTENSION = "jar";
- private static final String RAR_EXTENSION = "rar";
- private static final String WAR_EXTENSION = "war";
-
- protected IDataModel model;
- protected IProject project;
-
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.model = model;
- String projectName = model.getStringProperty(IJ2EEModuleImportDataModelProperties.PROJECT_NAME);
- project = ProjectUtility.getProject(projectName);
-
- this.verifyProjectCreated();
-
- String archivePath = model.getStringProperty(IJ2EEModuleImportDataModelProperties.FILE_NAME);
-
- IArchive archive = null;
- try {
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(new Path(archivePath));
-
- this.verifyImportedProjectTypeAndVersion(archive);
- this.verifyAllFilesImported(archive);
-
- } finally {
- if (null != archive && archive.isOpen()) {
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
-
- /**
- * used for verifying imported archives that are nested inside of other archives
- *
- * @param nestedArchiveImportModel
- * @param importedNestedArchive
- */
- public void verify(IDataModel nestedArchiveImportModel, IArchive importedNestedArchive) throws Exception {
- this.model = nestedArchiveImportModel;
- String projectName = model.getStringProperty(IJ2EEModuleImportDataModelProperties.PROJECT_NAME);
- project = ProjectUtility.getProject(projectName);
-
- this.verifyProjectCreated();
-
- this.verifyImportedProjectTypeAndVersion(importedNestedArchive);
- this.verifyAllFilesImported(importedNestedArchive);
- }
-
- protected abstract int getExportType();
-
- private void verifyImportedProjectTypeAndVersion(IArchive archive) throws Exception {
- if(JavaEEProjectUtilities.isUtilityProject(project)){
- JavaEEQuickPeek archiveQuickPeek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(archive);
- int type = archiveQuickPeek.getType();
- if(JavaEEQuickPeek.UNKNOWN != type){
- AssertWarn.warnEquals("Archive is not a utility, but was imported as such, archive="+archive, getExportType(), type);
- }
- } else {
- JavaEEQuickPeek archiveQuickPeek = JavaEEArchiveUtilities.INSTANCE.getJavaEEQuickPeek(archive);
- int type = archiveQuickPeek.getType();
-
- if(getExportType() != type){
- AssertWarn.warnEquals("Archive type did not match imported project type, archive="+archive, getExportType(), type);
- }
-
- String sProjVersion = J2EEProjectUtilities.getJ2EEDDProjectVersion(project);
- int iProjVersion = J2EEVersionUtil.convertVersionStringToInt(sProjVersion);
- int iVersionConstant = archiveQuickPeek.getVersion();
- if(iProjVersion != iVersionConstant){
- AssertWarn.warnEquals("Archive version did not match imported project version, archive="+archive, iProjVersion, iVersionConstant);
- }
- }
- }
-
- private void verifyProjectCreated() {
- Assert.assertTrue("A project with name, " + project.getName() + ", should have been created by import", project.exists());
- }
-
-
- protected boolean isClassWithoutSource(IArchive archive, IArchiveResource aFile) {
- String javaUri = classUriToJavaUri(aFile.getPath().toString());
- if (javaUri == null)
- return false;
- return !archive.containsArchiveResource(new Path(javaUri));
- }
-
- protected final String DOT_CLASS = ".class"; //$NON-NLS-1$
-
- protected final String DOT_JAVA = ".java"; //$NON-NLS-1$
-
- public String classUriToJavaUri(String classUri) {
- if (classUri == null || !classUri.endsWith(DOT_CLASS))
- return null;
-
- String truncated = truncateIgnoreCase(classUri, DOT_CLASS);
- StringTokenizer tok = new StringTokenizer(truncated, "$"); //$NON-NLS-1$
- return tok.nextToken().concat(DOT_JAVA);
- }
-
- /**
- * Return a substring of the first parameter, up to the last index of the
- * second
- */
- public static String truncateIgnoreCase(String aString, String trailingSubString) {
- int index = aString.toLowerCase().lastIndexOf(trailingSubString.toLowerCase());
- if (index != -1)
- return aString.substring(0, index);
- return aString;
- }
- private void verifyAllFilesImported(IArchive archive) throws Exception {
- List<IArchiveResource> resources = archive.getArchiveResources();
- IPath resourcePath = null;
- IFolder importedClassesFolder = project.getFolder("ImportedClasses");
-
- IVirtualComponent projectComponent = ComponentUtilities.getComponent(project.getName());
- IVirtualFolder rootVirtFolder = projectComponent.getRootFolder();
- IContainer rootFolder = rootVirtFolder.getUnderlyingFolder();
- Assert.assertTrue("The root folder " + rootFolder.getName() + " should exist in the project" , rootFolder.exists());
-
- // when the for loops is done the classes will contain only those classes that were imported,
- // the sourceResources list will contain a list of all of the java source resources,
- // the otherResources list will contain all other resources that are not nested archives,
- // and any nested archive in this archive will have been set as a nested archive in 'archive'
- List<IArchiveResource> classes = new ArrayList<IArchiveResource>();
- List<IArchiveResource> sourceResources = new ArrayList<IArchiveResource>();
- List<IArchiveResource> otherResources = new ArrayList<IArchiveResource>();
-
- String extension = null;
- for(IArchiveResource resource : resources) {
- resourcePath = resource.getPath();
-
- switch (resource.getType()) {
- case IArchiveResource.FILE_TYPE :
- extension = resourcePath.getFileExtension();
-
- // Note: For war archive, the class must be in WEB-INF/classes, otherwise it's just content
- if(extension.equals(CLASS_EXTENSION) &&
- ((getExportType() == J2EEVersionConstants.WEB_TYPE) ? (resourcePath.segmentCount() > 2 && resourcePath.segment(0).equals("WEB-INF") && resourcePath.segment(1).equals("classes")) : true)){
- if(isClassWithoutSource(archive, resource)){
- classes.add(resource);
- }
- } else if(extension.equals(JAVA_EXTENSION)){
- sourceResources.add(resource);
- } else if(extension.equals(JAR_EXTENSION) || extension.equals(RAR_EXTENSION) || extension.equals(WAR_EXTENSION)) {
- archive.getNestedArchive(resource);
- } else {
- otherResources.add(resource);
- }
-
- break;
- case IArchiveResource.DIRECTORY_TYPE :
-
- break;
- case IArchiveResource.ARCHIVE_TYPE :
-
- break;
- }
- }
-
- List<IArchive> nestedArchives = archive.getNestedArchives();
-
- verifyImportedResources(sourceResources, classes, otherResources, nestedArchives, rootFolder, importedClassesFolder);
- }
-
- protected abstract void verifyImportedResources(Collection<IArchiveResource> sourceResources, Collection<IArchiveResource> importedClassesResources, Collection<IArchiveResource> otherResources, Collection<IArchive> nestedArchives, IContainer rootFolder, IFolder importedClassesFolder) throws Exception;
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEProjectCreationDataModelVerifier.java
deleted file mode 100644
index c0fa1b8b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/JEEProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.IProjectFacet;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.eclipse.wst.common.project.facet.core.internal.ProjectFacetVersion;
-import org.eclipse.wst.common.tests.DataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public abstract class JEEProjectCreationDataModelVerifier extends DataModelVerifier {
- protected IDataModel model = null;
- protected IProject project = null;
- protected IVirtualComponent component = null;
- protected String facetProjectType = null;
-
- //need this because Utility Projects don't have ModelProviders
- protected boolean hasModelProvider = true;
-
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.model = model;
- this.setFacetProjectType();
-
- String projName = model.getStringProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME);
- project = ProjectUtilities.getProject(projName);
- this.verifyProject();
-
- component = ComponentCore.createComponent(project);
- this.verifyComponent();
-
- this.verifyProjectVersion();
-
- if(hasModelProvider) {
- this.verifyModelProvider();
- }
- }
-
- protected abstract void setFacetProjectType();
-
- protected abstract IFile getDDFile();
-
- protected abstract void verifyDD(Object modelObj);
-
- private void verifyProject(){
- Assert.assertTrue("The project should exist", project.exists());
- }
-
- private void verifyComponent() {
- Assert.assertNotNull("Component should not be null", component);
- Assert.assertTrue("Component should exist", component.exists());
- }
-
- private void verifyProjectVersion() throws Exception{
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(facetProjectType);
- ProjectFacetVersion version = (ProjectFacetVersion)facetModel.getProperty(IFacetDataModelProperties.FACET_VERSION);
-
- IProjectFacet projFact = version.getProjectFacet();
- String projFactID = projFact.getId();
- boolean verifyVersion = ProjectFacetsManager.isProjectFacetDefined(projFactID);
- Assert.assertTrue("Project facet: "+projFactID+" should be defined", verifyVersion);
-
- IFacetedProject facetedProject = ProjectFacetsManager.create(project);
- Assert.assertTrue("Project fact version: "+version+"should be defined", facetedProject.getProjectFacets().contains(version));
- }
-
-
- protected void verifyModelProvider() throws Exception {
- IModelProvider provider = ModelProviderManager.getModelProvider(project);
- Object modelObj = provider.getModelObject();
- Assert.assertNotNull("Project Deployment Descriptor should not be null", modelObj);
- this.verifyDD(modelObj);
- IArchive archive = null;
- try{
- archive = JavaEEArchiveUtilities.INSTANCE.openArchive(component);
- if(archive.containsModelObject()){
- Object modelObj2 = archive.getModelObject();
- Assert.assertNotNull("Archive Deployment Descriptor should not be null", modelObj2);
- if(modelObj != modelObj2){
- System.err.println("TODO -- Project and IArchive Deployment Descriptor should be equal");
- System.err.println(" -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=195670");
- //AssertWarn.warnTrue("Project and IArchive Deployment Descriptor should be equal", modelObj == modelObj2);
- }
- }
- } finally {
- if(archive != null){
- JavaEEArchiveUtilities.INSTANCE.closeArchive(archive);
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleExportDataModelVerifier.java
deleted file mode 100644
index 560483cb..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleExportDataModelVerifier.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import java.io.FileInputStream;
-import java.util.jar.JarInputStream;
-import java.util.jar.Manifest;
-
-import junit.framework.Assert;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * @author mdelder
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- */
-public abstract class ModuleExportDataModelVerifier extends JEEExportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- if(checkManifest()){
- /**
- * The manifest must be the first file in the archive.
- */
- String archivePath = model.getStringProperty(IJ2EEComponentExportDataModelProperties.ARCHIVE_DESTINATION);
-
- FileInputStream fIn = null;
- Manifest mf = null;
- try {
- fIn = new FileInputStream(archivePath);
- JarInputStream jarIn = new JarInputStream(fIn);
- mf = jarIn.getManifest();
-
- } finally{
- if(fIn != null){
- fIn.close();
- }
- }
- if(null == mf){
- Assert.assertNotNull(mf);
- }
- }
- }
-
- protected boolean checkManifest() {
- return true;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleImportDataModelVerifier.java
deleted file mode 100644
index cd4bab0a..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleImportDataModelVerifier.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public abstract class ModuleImportDataModelVerifier extends JEEImportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleProjectCreationDataModelVerifier.java
deleted file mode 100644
index 2c72b803..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/j2ee/verifiers/ModuleProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public abstract class ModuleProjectCreationDataModelVerifier extends JEEProjectCreationDataModelVerifier {
- /* (non-Javadoc)
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.J2EEProjectCreationDataModelVerifier#verify(org.eclipse.wtp.common.operation.WTPOperationDataModel)
- */
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.verifyProjectAddToEAR();
- }
-
- private void verifyProjectAddToEAR() throws Exception{
- boolean addToEAR = model.getBooleanProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR);
- if(addToEAR) {
- String earName = model.getStringProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME);
- IProject ear = ProjectUtilities.getProject(earName);
- Assert.assertTrue("The EAR should exist", ear.exists());
-
- IProject[] referencedProjs = ear.getReferencedProjects();
- boolean foundRef = false;
- for(int i = 0; i < referencedProjs.length && !foundRef; i++) {
- foundRef = referencedProjs[i].getName().equals(project.getName());
- }
- Assert.assertTrue("EAR did not have a reference to the project", foundRef);
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAExportDataModelVerifier.java
deleted file mode 100644
index d0662af5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAExportDataModelVerifier.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.jca.verifiers;
-
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleExportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class JCAExportDataModelVerifier extends ModuleExportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.CONNECTOR_TYPE;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAImportDataModelVerifier.java
deleted file mode 100644
index f6f96255..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAImportDataModelVerifier.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.jca.verifiers;
-
-import java.util.Collection;
-
-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.runtime.IPath;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleImportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class JCAImportDataModelVerifier extends ModuleImportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.CONNECTOR_TYPE;
- }
-
- @Override
- protected void verifyImportedResources(
- Collection<IArchiveResource> sourceResources,
- Collection<IArchiveResource> importedClassesResources,
- Collection<IArchiveResource> otherResources,
- Collection<IArchive> nestedArchives,
- IContainer rootFolder, IFolder importedClassesFolder) {
-
- IPath resourcePath = null;
- IFile resourceFile = null;
-
- //verify all of the resources from the archive were imported to the project correctly
- for(IArchiveResource sourceResource : sourceResources) {
- resourcePath = sourceResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The file " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchiveResource importedClassResource : importedClassesResources) {
- resourcePath = importedClassResource.getPath();
- resourceFile = importedClassesFolder.getFile(resourcePath);
- Assert.assertTrue("The imported class " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchiveResource otherResource : otherResources) {
- resourcePath = otherResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The resource " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchive nestedArchive : nestedArchives) {
-
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAProjectCreationDataModelVerifier.java
deleted file mode 100644
index 613c941c..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/jca/verifiers/JCAProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.jca.verifiers;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.project.facet.IConnectorFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleProjectCreationDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class JCAProjectCreationDataModelVerifier extends ModuleProjectCreationDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.verifySourceFolder();
- }
-
- @Override
- protected void setFacetProjectType() {
- this.facetProjectType = J2EEProjectUtilities.JCA;
- }
-
- @Override
- protected IFile getDDFile() {
- return component.getRootFolder().getFile(J2EEConstants.RAR_DD_URI).getUnderlyingFile();
- }
-
- @Override
- protected void verifyDD(Object modelObj) {
- String projectVersion = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- String modelVersion = null;
- if (J2EEVersionConstants.VERSION_1_6_TEXT.equals(projectVersion))
- {
- org.eclipse.jst.javaee.jca.Connector connector = (org.eclipse.jst.javaee.jca.Connector)modelObj;
- modelVersion = connector.getVersion();
- }
- else
- {
- Connector connector = (Connector)modelObj;
- modelVersion = connector.getVersion();
- }
- if(projectVersion == null || !projectVersion.equals(modelVersion)){
- //TODO see https://bugs.eclipse.org/bugs/show_bug.cgi?id=197014
- System.err.println("TODO -- connector version incorrect.");
- System.err.println(" -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=197014");
- //AssertWarn.warnEquals("Invalid project version", projectVersion, modelVersion);
- }
- }
-
- private void verifySourceFolder() {
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(J2EEProjectUtilities.JCA);
- String sourceFolder = facetModel.getStringProperty(IConnectorFacetInstallDataModelProperties.CONFIG_FOLDER);
- IPath sourceFolderPath = new Path(sourceFolder);
- Assert.assertTrue("Source directory should exist", project.exists(sourceFolderPath));
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/utility/verifiers/UtilityImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/utility/verifiers/UtilityImportDataModelVerifier.java
deleted file mode 100644
index 59b314d5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/utility/verifiers/UtilityImportDataModelVerifier.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- *
- */
-package org.eclipse.wtp.j2ee.headless.tests.utility.verifiers;
-
-import java.util.Collection;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.AssertWarn;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleImportDataModelVerifier;
-
-/**
- * @author itewk
- *
- */
-public class UtilityImportDataModelVerifier extends ModuleImportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- //super.verify(model);
- }
-
- @Override
- public void verify(IDataModel nestedArchiveImportModel,
- IArchive importedNestedArchive) throws Exception {
-
- super.verify(nestedArchiveImportModel, importedNestedArchive);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.JEEImportDataModelVerifier#getExportType()
- */
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.UNKNOWN;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.JEEImportDataModelVerifier#verifyImportedResources(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, org.eclipse.core.resources.IFolder, org.eclipse.core.resources.IFolder)
- */
- @Override
- protected void verifyImportedResources(
- Collection<IArchiveResource> sourceResources,
- Collection<IArchiveResource> importedClassesResources,
- Collection<IArchiveResource> otherResources,
- Collection<IArchive> nestedArchives, IContainer rootFolder,
- IFolder importedClassesFolder) throws Exception {
-
- IPath resourcePath = null;
- IFile resourceFile = null;
-
- //verify all of the resources from the archive were imported to the project correctly
- for(IArchiveResource sourceResource : sourceResources) {
- resourcePath = sourceResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
-// Assert.assertTrue("The file " + resourcePath + " should exist in the project in the " + rootFolder.getFullPath() + " directory", resourceFile.exists());
- AssertWarn.warnTrue("The file " + resourcePath + " should exist in the project in the " + rootFolder.getFullPath() + " directory", resourceFile.exists());
- }
-
- for(IArchiveResource importedClassResource : importedClassesResources) {
- resourcePath = importedClassResource.getPath();
- resourceFile = importedClassesFolder.getFile(resourcePath);
-// Assert.assertTrue("The imported class " + resourcePath + " should exist in the project in the " + importedClassesFolder.getFullPath() + " directory", resourceFile.exists());
- if(!resourceFile.exists()){
- AssertWarn.warnTrue("The imported class " + resourcePath + " should exist in the project in the " + importedClassesFolder.getFullPath() + " directory", resourceFile.exists());
- }
- }
-
- for(IArchiveResource otherResource : otherResources) {
- resourcePath = otherResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
-// Assert.assertTrue("The resource " + resourcePath + " should exist in the project in the " + rootFolder.getFullPath() + " directory", resourceFile.exists());
- AssertWarn.warnTrue("The resource " + resourcePath + " should exist in the project in the " + rootFolder.getFullPath() + " directory", resourceFile.exists());
- }
-
- for(IArchive nestedArchive : nestedArchives) {
-
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/utility/verifiers/UtilityProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/utility/verifiers/UtilityProjectCreationDataModelVerifier.java
deleted file mode 100644
index e8467558..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/utility/verifiers/UtilityProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.eclipse.wtp.j2ee.headless.tests.utility.verifiers;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleProjectCreationDataModelVerifier;
-
-/**
- * @author itewk
- */
-public class UtilityProjectCreationDataModelVerifier extends ModuleProjectCreationDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- this.hasModelProvider = false;
-
- super.verify(model);
- }
-
- @Override
- protected IFile getDDFile() {
- //Utility projects don't have DDs
- return null;
- }
-
- @Override
- protected void setFacetProjectType() {
- this.facetProjectType = J2EEProjectUtilities.UTILITY;
- }
-
- @Override
- protected void verifyDD(Object modelObj) {
- //Utility projects don't have DDs
- return;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebExportDataModelVerifier.java
deleted file mode 100644
index 7b72fe8b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebExportDataModelVerifier.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.verifiers;
-
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleExportDataModelVerifier;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class WebExportDataModelVerifier extends ModuleExportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.WEB_TYPE;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebImportDataModelVerifier.java
deleted file mode 100644
index cbbfffd3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebImportDataModelVerifier.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.verifiers;
-
-import java.io.FileNotFoundException;
-import java.util.Collection;
-
-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.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveConstants;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleImportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class WebImportDataModelVerifier extends ModuleImportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.WEB_TYPE;
- }
-
- @Override
- protected void verifyImportedResources(
- Collection<IArchiveResource> sourceResources,
- Collection<IArchiveResource> importedClassesResources,
- Collection<IArchiveResource> otherResources,
- Collection<IArchive> nestedArchives,
- IContainer rootFolder, IFolder importedClassesFolder) {
-
- IPath resourcePath = null;
- IFile resourceFile = null;
- IFolder sourceFolder = project.getFolder("src");
-
- //verify all of the resources from the archive were imported to the project correctly
- for(IArchiveResource sourceResource : sourceResources) {
- resourcePath = sourceResource.getPath();
- resourcePath = resourcePath.removeFirstSegments(2);
- resourceFile = sourceFolder.getFile(resourcePath);
- Assert.assertTrue("The file " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchiveResource importedClassResource : importedClassesResources) {
- resourcePath = importedClassResource.getPath().removeFirstSegments(2);
- resourceFile = importedClassesFolder.getFile(resourcePath);
- if(!resourceFile.exists()){
- Assert.fail("The imported class " + resourcePath + " should exist in the project");
- }
- }
-
- for(IArchiveResource otherResource : otherResources) {
- resourcePath = otherResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The resource " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchive nestedArchive : nestedArchives) {
-
- }
- }
-
- protected boolean isClassWithoutSource(IArchive archive, IArchiveResource aFile) {
- String javaUri = ArchiveUtil.classUriToJavaUri(aFile.getPath().toString());
- if (javaUri == null)
- return true;
- IPath javaPath = new Path(javaUri);
- if (archive.containsArchiveResource(javaPath)) {
- return false;
- }
- // see if it is a JSP
- String jspUri = javaUri.substring(0, javaUri.indexOf(ArchiveUtil.DOT_JAVA));
- int lastSlash = jspUri.lastIndexOf('/');
- int _index = lastSlash == -1 ? ArchiveConstants.WEBAPP_CLASSES_URI.length() : lastSlash + 1;
- if (jspUri.length() > _index && jspUri.charAt(_index) == '_') {
- jspUri = jspUri.substring(ArchiveConstants.WEBAPP_CLASSES_URI.length(), _index) + jspUri.substring(_index + 1) + ArchiveUtil.DOT_JSP;
- IPath jspPath = new Path(jspUri);
- if (archive.containsArchiveResource(jspPath)) {
- return false;
- }
- }
-
- //This is to handle archives created by an earlier version
- //The format was to include the source files in a directory called source in WEB-INF
- //Example: class is in WEB-INF/classes/test/Foo.class
- // source is in WEB-INF/source/test/Foo.java
- if(javaPath.segmentCount() > 2 && javaPath.segment(0).equals("WEB-INF") && javaPath.segment(1).equals("classes")){
- String alternateJavaUri = javaUri.replaceFirst("classes", "source");
- IPath alternateJavaPath = new Path(alternateJavaUri);
- if (archive.containsArchiveResource(alternateJavaPath)){
- IArchiveResource sourceFile;
- try {
- sourceFile = archive.getArchiveResource(alternateJavaPath);
- if(sourceFile != null){
- return false;
- }
- } catch (FileNotFoundException e) {
- }
-
- }
-
- }
-
- return true;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebProjectCreationDataModelVerifier.java
deleted file mode 100644
index 154f1ccd..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tests/web/verifiers/WebProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tests.web.verifiers;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.application.WebModule;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.model.IModelProvider;
-import org.eclipse.jst.j2ee.model.ModelProviderManager;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties;
-import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.application.Application;
-import org.eclipse.jst.javaee.application.Module;
-import org.eclipse.jst.javaee.web.WebApp;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleProjectCreationDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class WebProjectCreationDataModelVerifier extends ModuleProjectCreationDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.verifyContextRoot();
- this.verifyContentDir();
- this.verifyJavaSrcDir();
- }
-
- @Override
- protected void setFacetProjectType() {
- this.facetProjectType = J2EEProjectUtilities.DYNAMIC_WEB;
- }
-
- @Override
- protected IFile getDDFile() {
- return component.getRootFolder().getFile(J2EEConstants.WEBAPP_DD_URI).getUnderlyingFile();
- }
-
- @Override
- protected void verifyDD(Object modelObj) {
- String version = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- if(version.equals(J2EEVersionConstants.VERSION_2_5_TEXT) || version.equals(J2EEVersionConstants.VERSION_3_0_TEXT)){
- WebApp web = (WebApp)modelObj;
- Assert.assertEquals("Invalid project version", version, web.getVersion().getLiteral());
- } else {
- org.eclipse.jst.j2ee.webapplication.WebApp web = (org.eclipse.jst.j2ee.webapplication.WebApp)modelObj;
- Assert.assertEquals("Invalid project version", version, web.getVersion());
- }
- }
-
- private void verifyContextRoot() {
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(J2EEProjectUtilities.DYNAMIC_WEB);
-
-
- boolean addToEAR = model.getBooleanProperty(IJ2EEFacetProjectCreationDataModelProperties.ADD_TO_EAR);
-
- //context root need only be tested if project added to EAR
- if(addToEAR) {
- String expectedContextRoot = facetModel.getStringProperty(IWebFacetInstallDataModelProperties.CONTEXT_ROOT);
- String earName = model.getStringProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME);
- IProject ear = ProjectUtilities.getProject(earName);
-
- IVirtualComponent earComponent = ComponentCore.createComponent(ear);
- IVirtualReference projRef = J2EEProjectUtilities.getComponentReference(earComponent, project.getName());
- IVirtualComponent projComponentFromEARRef = projRef.getReferencedComponent();
- IProject projFromEARRef = projComponentFromEARRef.getProject();
- Assert.assertTrue("EAR reference to the project should be identical to the project", project == projFromEARRef);
-
- //TODO this check should be replaced with the proper API defined in https://bugs.eclipse.org/bugs/show_bug.cgi?id=199920
- IModelProvider earProvider = ModelProviderManager.getModelProvider(ear);
- System.err.println("TODO -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=199920");
- IVirtualFolder rootFolder = earComponent.getRootFolder();
- IPath path = new Path(J2EEConstants.APPLICATION_DD_URI);
- IVirtualFile vFile = rootFolder.getFile(path);
- if(vFile.exists()){
- Object earModelObj = earProvider.getModelObject();
- //this test can only be performed if EAR had DD
- if(earModelObj != null) {
- String actualContextRoot = null;
- String projArchiveName = projRef.getArchiveName();
- String version = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- if(version.equals(J2EEVersionConstants.VERSION_2_5_TEXT)){
- Application earApp = (Application)earModelObj;
- Module projMod = earApp.getFirstModule(projArchiveName);
- actualContextRoot = projMod.getWeb().getContextRoot();
- } else {
- org.eclipse.jst.j2ee.application.Application earApp = (org.eclipse.jst.j2ee.application.Application)earModelObj;
- org.eclipse.jst.j2ee.application.Module projMod = earApp.getFirstModule(projArchiveName);
- WebModule webModule = (WebModule)projMod;
- actualContextRoot = webModule.getContextRoot();
- }
- Assert.assertEquals("EAR should have module with context root: " + expectedContextRoot, expectedContextRoot, actualContextRoot);
- }
- }
- }
- }
-
- private void verifyContentDir() {
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(J2EEProjectUtilities.DYNAMIC_WEB);
- String contentDir = facetModel.getStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER);
- IPath contentDirPath = new Path(contentDir);
- Assert.assertTrue("Content directory should exist", project.exists(contentDirPath));
- }
-
- private void verifyJavaSrcDir() {
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(J2EEProjectUtilities.DYNAMIC_WEB);
- String javaSrcDir = facetModel.getStringProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER);
- IPath javaSrcDirPath = new Path(javaSrcDir);
- Assert.assertTrue("Java source directory should exist", project.exists(javaSrcDirPath));
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientExportDataModelVerifier.java
deleted file mode 100644
index b2551a54..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientExportDataModelVerifier.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tets.appclient.verifiers;
-
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleExportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AppClientExportDataModelVerifier extends ModuleExportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.APPLICATION_CLIENT_TYPE;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientImportDataModelVerifier.java
deleted file mode 100644
index c8c5adc5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientImportDataModelVerifier.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tets.appclient.verifiers;
-
-import java.util.Collection;
-
-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.runtime.IPath;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleImportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AppClientImportDataModelVerifier extends ModuleImportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.APPLICATION_CLIENT_TYPE;
- }
-
- @Override
- protected void verifyImportedResources(
- Collection<IArchiveResource> sourceResources,
- Collection<IArchiveResource> importedClassesResources,
- Collection<IArchiveResource> otherResources,
- Collection<IArchive> nestedArchives,
- IContainer rootFolder, IFolder importedClassesFolder) {
-
- IPath resourcePath = null;
- IFile resourceFile = null;
-
- //verify all of the resources from the archive were imported to the project correctly
- for(IArchiveResource sourceResource : sourceResources) {
- resourcePath = sourceResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- if(!resourceFile.exists()){
- Assert.fail("The file " + resourcePath + " should exist in the project");
- }
- }
-
- for(IArchiveResource importedClassResource : importedClassesResources) {
- resourcePath = importedClassResource.getPath();
- resourceFile = importedClassesFolder.getFile(resourcePath);
- Assert.assertTrue("The imported class " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchiveResource otherResource : otherResources) {
- resourcePath = otherResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The resource " + resourcePath + " should exist in the project", resourceFile.exists());
- }
-
- for(IArchive nestedArchive : nestedArchives) {
-
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientProjectCreationDataModelVerifier.java
deleted file mode 100644
index dc77adc5..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/appclient/verifiers/AppClientProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tets.appclient.verifiers;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.j2ee.project.facet.IAppClientFacetInstallDataModelProperties;
-import org.eclipse.jst.javaee.applicationclient.ApplicationClient;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFile;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.ModuleProjectCreationDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AppClientProjectCreationDataModelVerifier extends ModuleProjectCreationDataModelVerifier {
-
-
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.verifyMainClassField();
- }
-
- @Override
- protected void setFacetProjectType() {
- this.facetProjectType = J2EEProjectUtilities.APPLICATION_CLIENT;
- }
-
- @Override
- protected IFile getDDFile() {
- return component.getRootFolder().getFile(J2EEConstants.APP_CLIENT_DD_URI).getUnderlyingFile();
- }
-
- @Override
- protected void verifyDD(Object modelObj) {
- String version = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- if(version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)){
- ApplicationClient client = (ApplicationClient)modelObj;
- Assert.assertEquals("Invalid project version", J2EEVersionConstants.VERSION_5_TEXT, client.getVersion());
- } else if(version.equals(J2EEVersionConstants.VERSION_6_0_TEXT)){
- ApplicationClient client = (ApplicationClient)modelObj;
- Assert.assertEquals("Invalid project version", J2EEVersionConstants.VERSION_6_TEXT, client.getVersion());
- } else {
- org.eclipse.jst.j2ee.client.ApplicationClient client = (org.eclipse.jst.j2ee.client.ApplicationClient)modelObj;
- Assert.assertEquals("Invalid project version", version, client.getVersion());
- }
- }
-
- private void verifyMainClassField() {
- FacetDataModelMap facetMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel facetModel = facetMap.getFacetDataModel(J2EEProjectUtilities.APPLICATION_CLIENT);
- boolean createDefaultClass = facetModel.getBooleanProperty(IAppClientFacetInstallDataModelProperties.CREATE_DEFAULT_MAIN_CLASS);
-
- if(createDefaultClass) {
- String projName = model.getStringProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME);
- IProject proj = ProjectUtilities.getProject(projName);
- IVirtualComponent appClient = ComponentUtilities.getComponent(projName);
- IVirtualFolder appClientRootFolder = appClient.getRootFolder();
- IVirtualFile vertMainClass = appClientRootFolder.getFile("Main.java");
- Assert.assertTrue("Default main class Main.java should exist", vertMainClass.exists());
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARExportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARExportDataModelVerifier.java
deleted file mode 100644
index b136fcf8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARExportDataModelVerifier.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tets.ear.verifiers;
-
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.JEEExportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author Ian Tewksbury (ictewksb@us.ibm.com)
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class EARExportDataModelVerifier extends JEEExportDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.APPLICATION_TYPE;
- }
-
- protected boolean checkManifest() {
- return false;
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARImportDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARImportDataModelVerifier.java
deleted file mode 100644
index dc6eabf8..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARImportDataModelVerifier.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tets.ear.verifiers;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-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.runtime.IPath;
-import org.eclipse.jst.j2ee.datamodel.properties.IEARComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEModuleImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.archive.ArchiveWrapper;
-import org.eclipse.jst.jee.archive.IArchive;
-import org.eclipse.jst.jee.archive.IArchiveResource;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.operations.IProjectCreationPropertiesNew;
-import org.eclipse.wst.common.tests.AssertWarn;
-import org.eclipse.wst.common.tests.DataModelVerifierFactory;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.JEEImportDataModelVerifier;
-
-/**
- * @author Administrator
- * @author itewk
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class EARImportDataModelVerifier extends JEEImportDataModelVerifier {
-
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
- }
-
- @Override
- protected int getExportType() {
- return J2EEVersionConstants.APPLICATION_TYPE;
- }
-
- @Override
- protected void verifyImportedResources (
- Collection<IArchiveResource> sourceResources,
- Collection<IArchiveResource> importedClassesResources,
- Collection<IArchiveResource> otherResources,
- Collection<IArchive> nestedArchives,
- IContainer rootFolder, IFolder importedClassesFolder)throws Exception {
-
- IPath resourcePath = null;
- IFile resourceFile = null;
-
- for(IArchiveResource otherResource : otherResources) {
- resourcePath = otherResource.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- if(resourceFile.getName().equalsIgnoreCase("Manifest.mf")) {
- AssertWarn.warnTrue("The resource " + resourcePath + " should exist in the project " + project.getName(), resourceFile.exists());
- } else {
- Assert.assertTrue("The resource " + resourcePath + " should exist in the project " + project.getName(), resourceFile.exists());
- }
- }
-
- Map<IPath,IArchive> nestedArchiveMap = new HashMap<IPath,IArchive>();
- for(IArchive nestedArchive : nestedArchives) {
- resourcePath = nestedArchive.getPath();
- resourceFile = rootFolder.getFile(resourcePath);
- Assert.assertTrue("The nested archive " + resourcePath + " should exist in the project", resourceFile.exists());
- nestedArchiveMap.put(nestedArchive.getPath(), nestedArchive);
- }
-
- List<IDataModel> selectedModelsList = (List)model.getProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST);
- DataModelVerifierFactory verifierFactory = DataModelVerifierFactory.getInstance();
- JEEImportDataModelVerifier verifier = null;
- ArchiveWrapper nestedArchiveWrapper = null;
- IArchive nestedArchive = null;
- for(IDataModel selectedModel : selectedModelsList) {
- verifier = (JEEImportDataModelVerifier)verifierFactory.createVerifier(selectedModel);
- nestedArchiveWrapper = (ArchiveWrapper)selectedModel.getProperty(IJ2EEModuleImportDataModelProperties.ARCHIVE_WRAPPER);
- nestedArchive = nestedArchiveMap.get(nestedArchiveWrapper.getPath());
- Assert.assertNotNull("There should be a nested archive object for this selected model: " + selectedModel, nestedArchive);
- verifier.verify(selectedModel, nestedArchive);
- }
-
- List<IDataModel> moduleModelsList = (List)model.getProperty(IEARComponentImportDataModelProperties.MODULE_MODELS_LIST);
- moduleModelsList.removeAll(selectedModelsList);
- String projectName = null;
- nestedArchive = null;
- for(IDataModel nonExplodedNestedModels : moduleModelsList) {
- projectName = nonExplodedNestedModels.getStringProperty(IProjectCreationPropertiesNew.PROJECT_NAME);
- nestedArchiveWrapper = (ArchiveWrapper)nonExplodedNestedModels.getProperty(IJ2EEModuleImportDataModelProperties.ARCHIVE_WRAPPER);
- Assert.assertFalse("The nested archive, " + nestedArchiveWrapper.getPath() + " should not have been exploded into a project.", ProjectUtility.getProject(projectName).exists());
- }
-
-
- List utilityList = (List)model.getProperty(IEARComponentImportDataModelProperties.UTILITY_LIST);
- List ejbClientList = (List)model.getProperty(IEARComponentImportDataModelProperties.EJB_CLIENT_LIST);
- List utilityModelsList = (List)model.getProperty(IEARComponentImportDataModelProperties.UTILITY_MODELS_LIST);
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARProjectCreationDataModelVerifier.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARProjectCreationDataModelVerifier.java
deleted file mode 100644
index c5a05cae..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/j2ee-verifiers/org/eclipse/wtp/j2ee/headless/tets/ear/verifiers/EARProjectCreationDataModelVerifier.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Created on Jan 5, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.j2ee.headless.tets.ear.verifiers;
-
-import java.util.List;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.earcreation.IEarFacetInstallDataModelProperties;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities;
-import org.eclipse.jst.javaee.application.Application;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.JEEProjectCreationDataModelVerifier;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class EARProjectCreationDataModelVerifier extends JEEProjectCreationDataModelVerifier {
- @Override
- public void verify(IDataModel model) throws Exception {
- super.verify(model);
-
- this.verifyContentDir();
- this.verifyProjectDependencies();
- }
-
- @Override
- protected void setFacetProjectType() {
- this.facetProjectType = J2EEProjectUtilities.ENTERPRISE_APPLICATION;
- }
-
- @Override
- protected IFile getDDFile() {
- return component.getRootFolder().getFile(J2EEConstants.APPLICATION_DD_URI).getUnderlyingFile();
- }
-
- @Override
- protected void verifyDD(Object modelObj) {
- String version = J2EEProjectUtilities.getJ2EEProjectVersion(project);
- if(version.equals(J2EEVersionConstants.VERSION_5_0_TEXT)){
- Application ear = (Application)modelObj;
- Assert.assertEquals("Invalid project version", J2EEVersionConstants.VERSION_5_TEXT, ear.getVersion());
- } else if(version.equals(J2EEVersionConstants.VERSION_6_0_TEXT)){
- Application ear = (Application)modelObj;
- Assert.assertEquals("Invalid project version", J2EEVersionConstants.VERSION_6_TEXT, ear.getVersion());
- } else {
- org.eclipse.jst.j2ee.application.Application ear = (org.eclipse.jst.j2ee.application.Application)modelObj;
- Assert.assertEquals("Invalid project version", version, ear.getVersion());
- }
- }
-
- private void verifyContentDir() {
- FacetDataModelMap factMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel earModel = (IDataModel) factMap.get(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
- String contentDir = earModel.getStringProperty(IEarFacetInstallDataModelProperties.CONTENT_DIR);
-
- IFolder contentFolder = project.getFolder(contentDir);
- Assert.assertTrue("Content directory should exist", contentFolder.exists());
- }
-
- private void verifyProjectDependencies()throws Exception {
- FacetDataModelMap factMap = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel earModel = (IDataModel) factMap.get(IEarFacetInstallDataModelProperties.ENTERPRISE_APPLICATION);
-
- List j2eeDependencies = (List)earModel.getProperty(IEarFacetInstallDataModelProperties.J2EE_PROJECTS_LIST);
- List javaDependencies = (List)earModel.getProperty(IEarFacetInstallDataModelProperties.JAVA_PROJECT_LIST);
-
- IProject[] referencedProjs = project.getReferencedProjects();
-
- boolean foundDependency = false;
- IProject dependencyProj = null;
-
- //be sure this EAR has a referenced project for each J2EE dependency
- if(j2eeDependencies != null) {
- for(int i = 0; i < j2eeDependencies.size(); i++) {
- dependencyProj = (IProject)j2eeDependencies.get(i);
-
- for(int j = 0; j < referencedProjs.length && !foundDependency; j++) {
- foundDependency = (dependencyProj == referencedProjs[j]);
- }
-
- Assert.assertTrue("EAR should have a referenced project " + dependencyProj.getName(), foundDependency);
- }
- }
-
- //be sure this EAR has a referenced project for each Java dependency
- if(javaDependencies != null) {
- for(int i = 0; i < javaDependencies.size(); i++) {
- dependencyProj = (IProject)javaDependencies.get(i);
-
- for(int j = 0; j < referencedProjs.length && !foundDependency; j++) {
- foundDependency = (dependencyProj == referencedProjs[j]);
- }
-
- Assert.assertTrue("EAR should have a referenced project " + dependencyProj.getName(), foundDependency);
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/plugin.xml b/tests/org.eclipse.jst.j2ee.tests/plugin.xml
deleted file mode 100644
index 5da2b7a3..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/plugin.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
- <extension
- point="org.eclipse.wst.common.tests.collector.suites">
- <suite
- class="org.eclipse.wtp.j2ee.headless.tests.web.operations.AllTests"
- name="Web Operations"/>
- <suite
- class="org.eclipse.jst.j2ee.core.tests.bvt.AutomatedBVT"
- name="J2EE Headless BVT Tests"/>
- <suite
- class="org.eclipse.wtp.headless.tests.savestrategy.AllTests"
- name="SaveStrategy Tests"/>
- <suite
- class="org.eclipse.jst.j2ee.defect.tests.DefectVerificationTestsSuite"
- name="J2EE Defect Verification Tests"/>
-
- </extension>
-
- <extension
- point="org.eclipse.jst.common.annotations.core.annotationsProvider">
- <annotationsProvider
- className="org.eclipse.jst.common.annotations.tests.TestAnnotationProvider"/>
- </extension>
-
-
- <extension
- id="org.eclipse.jst.j2ee.bindingshelper.tests.TestBindingHelper"
- point="org.eclipse.jst.j2ee.core.jndiBindingsHelpers">
- <jndiBindingsHelper
- class="org.eclipse.jst.j2ee.bindingshelper.tests.FooBindingsHelper"
- id="org.eclipse.jst.j2ee.bindingshelper.tests.fooBindingsHelper"/>
- <jndiBindingsHelper
- class="org.eclipse.jst.j2ee.bindingshelper.tests.BarBindingsHelper"
- id="org.eclipse.jst.j2ee.bindingshelper.tests.barBindingsHelper"/>
- </extension>
- <extension
- point="org.eclipse.wst.common.modulecore.referenceResolver">
- <resolver
- class="org.eclipse.wtp.j2ee.headless.tests.exportmodel.TestExportReferenceResolver"
- id="org.eclipse.jst.j2ee.tests.resolver1">
- </resolver>
- </extension>
-
-
-</plugin>
diff --git a/tests/org.eclipse.jst.j2ee.tests/savestrategy-tests/org/eclipse/wtp/headless/tests/savestrategy/ThreadingTest.java b/tests/org.eclipse.jst.j2ee.tests/savestrategy-tests/org/eclipse/wtp/headless/tests/savestrategy/ThreadingTest.java
deleted file mode 100644
index 7ad07b5f..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/savestrategy-tests/org/eclipse/wtp/headless/tests/savestrategy/ThreadingTest.java
+++ /dev/null
@@ -1,233 +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
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.wtp.headless.tests.savestrategy;
-
-import java.io.File;
-import java.net.URL;
-import java.util.List;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentImportDataModelProvider;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.OperationTestCase;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-public class ThreadingTest extends OperationTestCase {
-
- public final String WEB_TESTS_PATH;
-
- public ThreadingTest(String name) {
- super(name);
- String relativeImportTestsPath = "TestData" + File.separator + getDirectory() + File.separator;
- URL fullImportTestsPath = HeadlessTestsPlugin.getDefault().find(new Path(relativeImportTestsPath));
- WEB_TESTS_PATH = fullImportTestsPath.getPath();
- }
-
- public static Test suite() {
- return new TestSuite(ThreadingTest.class);
- }
-
- protected String getDirectory() {
- return "WARImportTests";
- }
-
- protected List getImportableArchiveFileNames() {
- return ProjectUtility.getWarsInDirectory(HeadlessTestsPlugin.getDefault(), WEB_TESTS_PATH);
- }
-
- protected IDataModel getModelInstance() {
- return DataModelFactory.createDataModel(new WebComponentImportDataModelProvider());
- }
-
- public void testThreading() throws Exception {
- final List projects = getImportableArchiveFileNames();
- final IProject[] projectArray = new IProject[projects.size()];
- final int iterationMax = 20;
- for (int iterationCount = 0; iterationCount < iterationMax; iterationCount++) {
- System.out.println("Importing Projects " + iterationCount);
- for (int i = 0; i < projects.size(); i++) {
- String jarName = projects.get(i).toString();
- String projectName = jarName.substring(jarName.lastIndexOf(File.separator) + 1, jarName.length() - 4);
- IDataModel dataModel = getModelInstance();
- dataModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, jarName);
- dataModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- runDataModel(dataModel);
- projectArray[i] = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
- }
- final Thread[] threads = new Thread[10 + 10 * iterationCount];
-
- class ReadyCounter {
-
- private boolean kill = false;
- private boolean ready = false;
- private int count = 0;
-
- private int requiredCount = 0;
-
- public ReadyCounter(int requiredCount) {
- this.requiredCount = requiredCount;
- }
-
- public synchronized void increment() {
- if (ready) {
- throw new RuntimeException();
- }
- count++;
- if (count == requiredCount) {
- ready = true;
- }
- }
-
- public synchronized void decrement() {
- count--;
- }
-
- public int getCurrentCount() {
- return count;
- }
-
- public synchronized boolean isReady() {
- return ready || kill;
- }
-
- public synchronized boolean isZero() {
- return count == 0;
- }
-
- public boolean isKill() {
- return kill;
- }
-
- public void kill() {
- System.out.println("Killing!!!!");
- kill = true;
- }
-
- }
-
- final ReadyCounter readyCounter = new ReadyCounter(threads.length);
-
- for (int threadCount = 0; threadCount < threads.length; threadCount++) {
- final int threadNum = threadCount;
- threads[threadCount] = new Thread(new Runnable() {
-
- private void kill(Exception e) {
- e.printStackTrace();
- readyCounter.kill();
- sleep(1);
- }
-
- public void run() {
- System.out.println("Thread " + threadNum + " started.");
- try {
- readyCounter.increment();
- for (int waitCount = 1; !readyCounter.isReady(); waitCount *= 2) {
- System.out.println("Thread " + threadNum + " waiting " + waitCount + " currentCount=" + readyCounter.getCurrentCount());
- sleep(waitCount);
- }
- for (int iterationCount = 0; iterationCount < iterationMax; iterationCount++) {
- StructureEdit[][] readStructureEdits = new StructureEdit[iterationMax][projects.size()];
- StructureEdit[][] writeStructureEdits = new StructureEdit[readStructureEdits.length][projectArray.length];
-
- try {
- for (int structureEditCount = 0; structureEditCount < readStructureEdits.length; structureEditCount++) {
- for (int projectCount = 0; projectCount < projectArray.length; projectCount++) {
- readStructureEdits[structureEditCount][projectCount] = StructureEdit.getStructureEditForRead(projectArray[projectCount]);
- writeStructureEdits[structureEditCount][projectCount] = StructureEdit.getStructureEditForWrite(projectArray[projectCount]);
- }
- }
-
- for (int structureEditCount = 0; structureEditCount < readStructureEdits.length; structureEditCount++) {
- for (int projectCount = 0; projectCount < projects.size(); projectCount++) {
- if (null != readStructureEdits[structureEditCount][projectCount]) {
- readStructureEdits[structureEditCount][projectCount].getComponentModelRoot();
- }
- if (null != writeStructureEdits[structureEditCount][projectCount]) {
- IProject project = StructureEdit.getContainingProject(writeStructureEdits[structureEditCount][projectCount].getComponent());
- }
- }
- }
-
-
- } catch (IllegalStateException e) {
- if (!e.getMessage().equals("Edit Model already disposed")) {
- kill(e);
- }
- } catch (RuntimeException e) {
- if (!e.getMessage().equals("This resource has been deleted and can no longer be used.")) {
- kill(e);
- }
- } catch (Exception e) {
- kill(e);
- } finally {
- for (int structureEditCount = 0; structureEditCount < readStructureEdits.length; structureEditCount++) {
- for (int projectCount = 0; projectCount < projectArray.length; projectCount++) {
- if (null != readStructureEdits[structureEditCount][projectCount]) {
- readStructureEdits[structureEditCount][projectCount].dispose();
- }
- if (null != writeStructureEdits[structureEditCount][projectCount]) {
- writeStructureEdits[structureEditCount][projectCount].dispose();
- }
- }
- }
- }
- }
- } finally {
- System.out.println("Thread " + threadNum + " finshed.");
- readyCounter.decrement();
- }
- }
- });
- }
- System.out.println("Starting Threads " + iterationCount);
- for (int threadCount = 0; threadCount < threads.length; threadCount++) {
- threads[threadCount].start();
- }
- while (!readyCounter.isReady()) {
- System.out.println("Main Thread Waiting ---------");
- sleep(1);
- }
- sleep(1);
- System.out.println("Before Deleting Projects " + iterationCount);
- ProjectUtility.deleteAllProjects();
- System.out.println("After Deleting Projects " + iterationCount);
- while (!readyCounter.isZero()) {
- sleep(1);
- }
- if (readyCounter.isKill()) {
- fail();
- }
- }
- }
-
- private static void sleep(int time) {
- try {
- Thread.sleep(time);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-}
diff --git a/tests/org.eclipse.jst.j2ee.tests/testHOLD.xml b/tests/org.eclipse.jst.j2ee.tests/testHOLD.xml
deleted file mode 100644
index 33fe4163..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/testHOLD.xml
+++ /dev/null
@@ -1,122 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="testsuite" default="run" basedir=".">
- <!-- The property ${eclipse-home} should be passed into this script -->
- <!-- Set a meaningful default value for when it is not. -->
- <property name="eclipse-home" value="${basedir}\..\.." />
-
- <!-- sets the properties eclipse-home, and library-file -->
- <property name="plugin-name" value="org.eclipse.jst.j2ee.tests" />
- <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.3.0/library.xml" />
- <property name="extraVMargs" value="-Dorg.eclipse.jst.server.jonas.432=${jonas432Dir}" />
-
- <property name="workspace" value="${basedir}/${plugin-name}" />
-
- <!-- Read the properties that will enable/disable the different targets below. -->
- <property file="bvt.properties" />
-
- <!-- This target holds all initialization code that needs to be done for -->
- <!-- all tests that are to be run. Initialization for individual tests -->
- <!-- should be done within the body of the suite target. -->
- <target name="init">
- <tstamp />
- <delete>
- <fileset dir="${eclipse-home}" includes="org*.xml" />
- </delete>
- <delete dir="${workspace}" quiet="true" />
- </target>
-
- <target name="AutomatedBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.AutomatedBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="EnterpriseBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.EnterpriseBVT" unless="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.EnterpriseBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="WebBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.WebBVT" unless="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.WebBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="EJBBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.EJBBVT" unless="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.EJBBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="CoreBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.CoreInfrastructureBVT" unless="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.CoreInfrastructureBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="ModelProviderBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.ModelProviderBVT" unless="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.ModelProviderBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="ExtendedModelProviderBVTSuite" if="org.eclipse.jst.j2ee.tests.bvt.ExtendedModelProviderBVT" unless="org.eclipse.jst.j2ee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.j2ee.tests.bvt.ExtendedModelProviderBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite" depends="AutomatedBVTSuite, EnterpriseBVTSuite, WebBVTSuite, EJBBVTSuite, CoreBVTSuite, ModelProviderBVTSuite, ExtendedModelProviderBVTSuite">
- </target>
-
- <!-- This target holds code to cleanup the testing environment after -->
- <!-- after all of the tests have been run. You can use this target to -->
- <!-- delete temporary files that have been created. -->
- <target name="cleanup">
- <delete dir="${workspace}" quiet="true" />
- </target>
-
- <!-- This target runs the test suite. Any actions that need to happen -->
- <!-- after all the tests have been run should go here. -->
- <target name="run" depends="init,suite,cleanup">
- <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
- <property name="includes" value="org*.xml" />
- <property name="output-file" value="${plugin-name}.xml" />
- </ant>
- </target>
-
-</project>
-
-
-
diff --git a/tests/org.eclipse.jst.j2ee.tests/webmodule-tests/org/eclipse/wtp/j2ee/headless/tests/web/container/WebAppLibrariesContainerTests.java b/tests/org.eclipse.jst.j2ee.tests/webmodule-tests/org/eclipse/wtp/j2ee/headless/tests/web/container/WebAppLibrariesContainerTests.java
deleted file mode 100644
index 6699571b..00000000
--- a/tests/org.eclipse.jst.j2ee.tests/webmodule-tests/org/eclipse/wtp/j2ee/headless/tests/web/container/WebAppLibrariesContainerTests.java
+++ /dev/null
@@ -1,384 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2006 BEA Systems, Inc.
- * 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:
- * Konstantin Komissarchik - initial API and implementation
- ******************************************************************************/
-
-package org.eclipse.wtp.j2ee.headless.tests.web.container;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-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.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jst.common.project.facet.JavaFacetUtils;
-import org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesContainer;
-import org.eclipse.jst.j2ee.web.project.facet.WebFacetUtils;
-import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.osgi.framework.Bundle;
-
-/**
- * @author <a href="mailto:kosta@bea.com">Konstantin Komissarchik</a>
- */
-
-public final class WebAppLibrariesContainerTests
-
- extends TestCase
-
-{
- private static final String WEBCONTENT_DIR = "WebContent";
- private static final String WEBINF_DIR = WEBCONTENT_DIR + "/WEB-INF";
- private static final String WEBINFLIB_DIR = WEBINF_DIR + "/lib";
-
- private static final String ABC_JAR_NAME = "abc.jar";
-
- private static final String ABC_JAR_PATH
- = "TestData/WebAppLibrariesContainerTests/" + ABC_JAR_NAME;
-
- private static final String FOO_JAR_NAME = "foo.jar";
-
- private static final String FOO_JAR_PATH
- = "TestData/WebAppLibrariesContainerTests/" + FOO_JAR_NAME;
-
- private static final IProjectFacetVersion UTILITY_FACET
- = ProjectFacetsManager.getProjectFacet( "jst.utility" ).getVersion( "1.0" );
-
- private IProject webProject;
- private IProject utilityProject;
-
- private IFile jarFile1;
- private IPath jarFile1Path;
- private IFile jarFile2;
- private IPath jarFile2Path;
-
- private final Set resourcesToCleanup = new HashSet();
-
- private WebAppLibrariesContainerTests( final String name )
- {
- super( name );
- }
-
- public static Test suite()
- {
- final TestSuite suite = new TestSuite();
-
- suite.setName( "Web App Libraries Container Tests" );
-
- suite.addTest( new WebAppLibrariesContainerTests( "testDetectionOfAddedJar" ) );
- suite.addTest( new WebAppLibrariesContainerTests( "testDetectionOfTwoAddedJars" ) );
- suite.addTest( new WebAppLibrariesContainerTests( "testDetectionOfRemovedJar" ) );
- suite.addTest( new WebAppLibrariesContainerTests( "testDetectionOfTwoRemovedJars" ) );
-
- return suite;
- }
-
- public void testDetectionOfAddedJar()
-
- throws Exception
-
- {
- copyFromPlugin( ABC_JAR_PATH, this.jarFile1 );
- waitForCondition( cpContains( this.webProject, this.jarFile1Path ) );
- waitForCondition( cpContains( this.utilityProject, this.jarFile1Path ) );
- }
-
- public void testDetectionOfTwoAddedJars()
-
- throws Exception
-
- {
- copyFromPlugin( ABC_JAR_PATH, this.jarFile1 );
- waitForCondition( cpContains( this.webProject, this.jarFile1Path ) );
- waitForCondition( cpContains( this.utilityProject, this.jarFile1Path ) );
-
- copyFromPlugin( FOO_JAR_PATH, this.jarFile2 );
- waitForCondition( cpContains( this.webProject, this.jarFile2Path ) );
- waitForCondition( cpContains( this.utilityProject, this.jarFile2Path ) );
- }
-
- public void testDetectionOfRemovedJar()
-
- throws Exception
-
- {
- copyFromPlugin( ABC_JAR_PATH, this.jarFile1 );
- waitForCondition( cpContains( this.webProject, this.jarFile1Path ) );
- waitForCondition( cpContains( this.utilityProject, this.jarFile1Path ) );
-
- this.jarFile1.delete( true, null );
- waitForCondition( cpDoesNotContain( this.webProject, this.jarFile1Path ) );
- waitForCondition( cpDoesNotContain( this.utilityProject, this.jarFile1Path ) );
- }
-
- public void testDetectionOfTwoRemovedJars()
-
- throws Exception
-
- {
- copyFromPlugin( ABC_JAR_PATH, this.jarFile1 );
- waitForCondition( cpContains( this.webProject, this.jarFile1Path ) );
- waitForCondition( cpContains( this.utilityProject, this.jarFile1Path ) );
-
- copyFromPlugin( FOO_JAR_PATH, this.jarFile2 );
- waitForCondition( cpContains( this.webProject, this.jarFile2Path ) );
- waitForCondition( cpContains( this.utilityProject, this.jarFile2Path ) );
-
- this.jarFile1.delete( true, null );
- waitForCondition( cpDoesNotContain( this.webProject, this.jarFile1Path ) );
- assertCondition( cpContains( this.webProject, this.jarFile2Path ) );
- waitForCondition( cpDoesNotContain( this.utilityProject, this.jarFile1Path ) );
- assertCondition( cpContains( this.utilityProject, this.jarFile2Path ) );
-
- this.jarFile2.delete( true, null );
- waitForCondition( cpDoesNotContain( this.webProject, this.jarFile2Path ) );
- waitForCondition( cpDoesNotContain( this.utilityProject, this.jarFile2Path ) );
- }
-
- protected void setUp()
-
- throws Exception
-
- {
- System.setProperty( "wtp.autotest.noninteractive", "true" );
-
- IFacetedProject fpj;
-
- fpj = ProjectFacetsManager.create( "abc", null, null );
-
- fpj.installProjectFacet( JavaFacetUtils.JAVA_50, null, null );
- fpj.installProjectFacet( WebFacetUtils.WEB_24, null, null );
-
- this.webProject = fpj.getProject();
-
- this.jarFile1 = this.webProject.getFile( WEBINFLIB_DIR + "/" + ABC_JAR_NAME );
- this.jarFile1Path = this.jarFile1.getLocation();
-
- this.jarFile2 = this.webProject.getFile( WEBINFLIB_DIR + "/" + FOO_JAR_NAME );
- this.jarFile2Path = this.jarFile2.getLocation();
-
- addResourceToCleanup( this.webProject );
-
- fpj = ProjectFacetsManager.create( "subordinate", null, null );
-
- fpj.installProjectFacet( JavaFacetUtils.JAVA_50, null, null );
- fpj.installProjectFacet( UTILITY_FACET, null, null );
-
- final IPath path
- = ( new Path( WebAppLibrariesContainer.CONTAINER_ID ) ).append( "abc" );
-
- final IClasspathEntry cpe = JavaCore.newContainerEntry( path );
-
- addToClasspath( JavaCore.create( fpj.getProject() ), cpe );
-
- this.utilityProject = fpj.getProject();
-
- addResourceToCleanup( this.utilityProject );
- }
-
- protected void tearDown()
-
- throws Exception
-
- {
- for( Iterator itr = this.resourcesToCleanup.iterator(); itr.hasNext(); )
- {
- final IResource r = (IResource) itr.next();
- r.delete( true, null );
- }
- }
-
- private void addResourceToCleanup( final IResource resource )
- {
- this.resourcesToCleanup.add( resource );
- }
-
- private static void copyFromPlugin( final String src,
- final IFile dest )
-
- throws CoreException, IOException
-
- {
- final Bundle bundle = Platform.getBundle( "org.eclipse.jst.j2ee.tests" );
- final URL entryUrl = bundle.getEntry( src );
- final InputStream in = entryUrl.openStream();
-
- try
- {
- dest.create( in, true, null );
- }
- finally
- {
- try
- {
- in.close();
- }
- catch( IOException e ) {}
- }
- }
-
- private static void addToClasspath( final IJavaProject jproj,
- final IClasspathEntry cpe )
-
- throws JavaModelException
-
- {
- final IClasspathEntry[] oldcp = jproj.getRawClasspath();
- final IClasspathEntry[] newcp = new IClasspathEntry[ oldcp.length + 1 ];
-
- System.arraycopy( oldcp, 0, newcp, 0, oldcp.length );
- newcp[ oldcp.length ] = cpe;
-
- jproj.setRawClasspath( newcp, null );
- }
-
- private static void waitForCondition( final ICondition condition )
-
- throws Exception
-
- {
- waitForCondition( condition, 10 );
- }
-
- private static void waitForCondition( final ICondition condition,
- final int seconds )
-
- throws Exception
-
- {
- for( int i = 0; i < seconds && ! condition.check(); i++ )
- {
- try
- {
- Thread.sleep( 1000 );
- }
- catch( InterruptedException e ) {}
- }
-
- assertCondition( condition );
- }
-
- private static void assertCondition( final ICondition condition )
-
- throws Exception
-
- {
- assertTrue( condition.check() );
- }
-
- private static ICondition cpContains( final IProject project,
- final IPath entry )
- {
- return new ClasspathContainsCondition( project, entry );
- }
-
- private static ICondition cpDoesNotContain( final IProject project,
- final IPath entry )
- {
- return new ClasspathDoesNotContainCondition( project, entry );
- }
-
- private static interface ICondition
- {
- boolean check() throws Exception;
- }
-
- private static abstract class AbstractClasspathCondition
-
- implements ICondition
-
- {
- private final IProject project;
- private final IPath entry;
-
- public AbstractClasspathCondition( final IProject project,
- final IPath entry )
- {
- this.project = project;
- this.entry = entry;
- }
-
- protected boolean internalCheck()
-
- throws Exception
-
- {
- final IJavaProject jproj = JavaCore.create( this.project );
- final IClasspathEntry[] cp = jproj.getResolvedClasspath( true );
-
- for( int i = 0; i < cp.length; i++ )
- {
- if( cp[ i ].getPath().equals( this.entry ) )
- {
- return true;
- }
- }
-
- return false;
- }
- }
-
- private static final class ClasspathContainsCondition
-
- extends AbstractClasspathCondition
-
- {
- public ClasspathContainsCondition( final IProject project,
- final IPath entry )
- {
- super( project, entry );
- }
-
- public boolean check()
-
- throws Exception
-
- {
- return internalCheck();
- }
- }
-
- private static final class ClasspathDoesNotContainCondition
-
- extends AbstractClasspathCondition
-
- {
- public ClasspathDoesNotContainCondition( final IProject project,
- final IPath entry )
- {
- super( project, entry );
- }
-
- public boolean check()
-
- throws Exception
-
- {
- return ! internalCheck();
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.jee.tests/.classpath b/tests/org.eclipse.jst.jee.tests/.classpath
deleted file mode 100644
index 1bc4c24e..00000000
--- a/tests/org.eclipse.jst.jee.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="jee-tests"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.jst.jee.tests/.project b/tests/org.eclipse.jst.jee.tests/.project
deleted file mode 100644
index 05198600..00000000
--- a/tests/org.eclipse.jst.jee.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.jee.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d5ac5e5d..00000000
--- a/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,59 +0,0 @@
-#Fri Nov 19 14:37:44 CST 2010
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.problem.nullReference=ignore
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.source=1.6
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
diff --git a/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 5993ccb4..00000000
--- a/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Sat Mar 24 11:01:21 EDT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/>
diff --git a/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index ed079711..00000000
--- a/tests/org.eclipse.jst.jee.tests/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,15 +0,0 @@
-#Sat Mar 24 10:56:39 EDT 2007
-compilers.incompatible-environment=1
-compilers.p.build=1
-compilers.p.deprecated=1
-compilers.p.missing-packages=1
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=1
-compilers.p.unknown-attribute=1
-compilers.p.unknown-class=1
-compilers.p.unknown-element=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/tests/org.eclipse.jst.jee.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.jee.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 2b880d6e..00000000
--- a/tests/org.eclipse.jst.jee.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,20 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name
-Bundle-SymbolicName: org.eclipse.jst.jee.tests;singleton:=true
-Bundle-Version: 1.0.000.qualifier
-Bundle-ClassPath: jee-tests.jar
-Bundle-Activator: org.eclipse.wtp.jee.headless.tests.plugin.HeadlessTestsPlugin
-Bundle-Localization: plugin
-Export-Package: org.eclipse.jst.jee.tests.bvt,
- org.eclipse.wtp.jee.headless.tests.appclient.operations,
- org.eclipse.wtp.jee.headless.tests.ejb.operations,
- org.eclipse.wtp.jee.headless.tests.plugin,
- org.eclipse.wtp.jee.headless.tests.web.operations
-Require-Bundle: org.eclipse.jst.j2ee.tests,
- org.eclipse.wst.common.tests,
- org.eclipse.wst.server.core,
- org.eclipse.jem.util,
- org.eclipse.core.runtime
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/tests/org.eclipse.jst.jee.tests/META-INF/eclipse.inf b/tests/org.eclipse.jst.jee.tests/META-INF/eclipse.inf
deleted file mode 100644
index 86da494b..00000000
--- a/tests/org.eclipse.jst.jee.tests/META-INF/eclipse.inf
+++ /dev/null
@@ -1,6 +0,0 @@
-# We do not want any nested jars
-# signed or normalized for packing
-# see bug 274743 Some unit tests are sensitive to details of build
-# https://bugs.eclipse.org/bugs/show_bug.cgi?id=274743
-jarprocessor.exclude=true
-jarprocessor.exclude.children=true
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Defaults.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Defaults.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_NoBuild.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index 1be3b0ea..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_NoBuild.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source_NoBuild.jar
deleted file mode 100644
index 2d6a5786..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_AddToEAR_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Defaults.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_NoBuild.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source_NoBuild.jar
deleted file mode 100644
index 8f4fee53..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Defaults.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_NoBuild.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source_NoBuild.jar
deleted file mode 100644
index c5d27063..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_InterestingName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Defaults.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_NoBuild.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source_NoBuild.jar
deleted file mode 100644
index 1d171478..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC50_NoDefaultClass_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Defaults.jar
deleted file mode 100644
index a6350a29..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_NoBuild.jar
deleted file mode 100644
index 63191727..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source.jar
deleted file mode 100644
index 8afc75c1..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar
deleted file mode 100644
index fbc1719e..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_InterestingName_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Defaults.jar
deleted file mode 100644
index fd2e0a98..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_NoBuild.jar
deleted file mode 100644
index a4ec26df..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source.jar
deleted file mode 100644
index 7cf87d21..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 5eb844e4..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_AddToEAR_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Defaults.jar
deleted file mode 100644
index 30abbedc..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_NoBuild.jar
deleted file mode 100644
index 9e98f9b8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source.jar
deleted file mode 100644
index 81603416..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 4e10e375..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_NoDefaultClass_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Defaults.jar
deleted file mode 100644
index cacb37c9..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_NoBuild.jar
deleted file mode 100644
index de17b044..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source.jar
deleted file mode 100644
index fd4e308b..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 6849c8c7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/AppClientImportOperationTest/AC60_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Defaults.jar
deleted file mode 100644
index b09afce6..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_NoBuild.jar
deleted file mode 100644
index da70bea2..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source.jar
deleted file mode 100644
index da70bea2..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source_NoBuild.jar
deleted file mode 100644
index da70bea2..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Defaults.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index bce64a32..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_NoBuild.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source_NoBuild.jar
deleted file mode 100644
index 0b4213ad..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientName_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Defaults.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_NoBuild.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
deleted file mode 100644
index 7a3f0bd0..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_DiffClientSourceFolder_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Defaults.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_NoBuild.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source_NoBuild.jar
deleted file mode 100644
index ee27df24..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_AddToEAR_NoClient_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Defaults.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_NoBuild.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source_NoBuild.jar
deleted file mode 100644
index ae70f7a7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB30_Defaults_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Defaults.jar
deleted file mode 100644
index 183137ea..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_NoBuild.jar
deleted file mode 100644
index 99e278ad..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source.jar
deleted file mode 100644
index 3fdead63..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source_NoBuild.jar
deleted file mode 100644
index aa208aae..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_Defaults_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar
deleted file mode 100644
index 17d5b5cf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar
deleted file mode 100644
index 0422489e..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar
deleted file mode 100644
index 274aaf52..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 9fd3d2cc..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Defaults.jar
deleted file mode 100644
index af93e198..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_NoBuild.jar
deleted file mode 100644
index 8342436b..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source.jar
deleted file mode 100644
index a88a79e2..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar
deleted file mode 100644
index d19297e3..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientName_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar
deleted file mode 100644
index c9f8808b..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar
deleted file mode 100644
index 46f09c5e..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar
deleted file mode 100644
index 2346692c..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
deleted file mode 100644
index da365c32..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_DiffClientSourceFolder_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Defaults.jar
deleted file mode 100644
index ffcaa28f..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_NoBuild.jar
deleted file mode 100644
index 5f7dde62..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source.jar
deleted file mode 100644
index 26cb8657..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 38db407c..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_AddToEAR_NoClient_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Defaults.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Defaults.jar
deleted file mode 100644
index dd0647d0..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Defaults.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_NoBuild.jar
deleted file mode 100644
index 2592c8b8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source.jar
deleted file mode 100644
index 731966fb..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source_NoBuild.jar b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source_NoBuild.jar
deleted file mode 100644
index 2e2d5c35..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/EJBImportOperationTest/EJB31_Defaults_WithDD_Source_NoBuild.jar
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Defaults.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_NoBuild.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source_NoBuild.war
deleted file mode 100644
index ac74c9cc..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Defaults.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_NoBuild.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 1a24adec..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_Defaults_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Defaults.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Defaults.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_NoBuild.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 2aaf30e7..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5d22dac8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_NoBuild.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source_NoBuild.war
deleted file mode 100644
index 95687f88..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5080a4ba..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 81ad6ea8..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 5ae3c0bf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffContentDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index fb15fcaf..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Defaults.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_NoBuild.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 30c1bf43..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffContextRoot_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Defaults.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_NoBuild.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source_NoBuild.war
deleted file mode 100644
index 119bedab..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Defaults.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Defaults.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Defaults.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_NoBuild.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source_NoBuild.war b/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source_NoBuild.war
deleted file mode 100644
index 3fad1a9d..00000000
--- a/tests/org.eclipse.jst.jee.tests/TestData/JEEImportOperationTests/WebImportOperationTest/Web25_DiffSrcDir_WithEAR_Source_NoBuild.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.jee.tests/about.html b/tests/org.eclipse.jst.jee.tests/about.html
deleted file mode 100644
index 2199df3f..00000000
--- a/tests/org.eclipse.jst.jee.tests/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/tests/org.eclipse.jst.jee.tests/build.properties b/tests/org.eclipse.jst.jee.tests/build.properties
deleted file mode 100644
index 4a01f5ba..00000000
--- a/tests/org.eclipse.jst.jee.tests/build.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-###############################################################################
-# Copyright (c) 2005, 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-source.jee-tests.jar =
-output.jee-tests.jar = bin/
-bin.includes = plugin.xml,\
- jee-tests.jar,\
- TestData/,\
- test.xml,\
- about.html,\
- DefectTestData/,\
- META-INF/,\
- bvt.properties,\
- plugin.properties
-src.includes = build.properties,\
- test.xml,\
- plugin.xml,\
- TestData/,\
- DefectTestData/,\
- bvt.properties
-source.jee-tests.jar = jee-tests/
diff --git a/tests/org.eclipse.jst.jee.tests/bvt.properties b/tests/org.eclipse.jst.jee.tests/bvt.properties
deleted file mode 100644
index 8a742a0c..00000000
--- a/tests/org.eclipse.jst.jee.tests/bvt.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2010 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
-###############################################################################
-
-# To run all the buckets in the BVT, uncomment org.eclipse.jst.j2ee.tests.bvt.ALL (the rest of the
-# properties will be ignored).
-# To run individual buckets, comment out org.eclipse.jst.2ee.tests.bvt.ALL and
-# uncomment the corresponding properties.
-
-#org.eclipse.jst.jee.tests.bvt.ALL = true
-org.eclipse.jst.jee.tests.bvt.EnterpriseBVT = true
-org.eclipse.jst.jee.tests.bvt.EJBBVT = true
-org.eclipse.jst.jee.tests.bvt.WebBVT = true
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/AutomatedBVT.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/AutomatedBVT.java
deleted file mode 100644
index ade654cd..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/AutomatedBVT.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.jee.tests.bvt;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wtp.jee.headless.tests.plugin.AllPluginTests;
-
-
-public class AutomatedBVT extends TestSuite {
-
- public static String baseDirectory = System.getProperty("user.dir") + java.io.File.separatorChar + "TestData" + java.io.File.separatorChar;
-
- static {
- try {
- IPluginDescriptor pluginDescriptor = Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.jst.jee.tests");
- URL url = pluginDescriptor.getInstallURL();
- AutomatedBVT.baseDirectory = Platform.asLocalURL(url).getFile() + "TestData"+ java.io.File.separatorChar;
- } catch (Exception e) {
- System.err.println("Using working directory since a workspace URL could not be located.");
- }
- }
-
- public static int unimplementedMethods;
-
- public static void main(String[] args) {
- unimplementedMethods = 0;
- TestRunner.run(suite());
- if (unimplementedMethods > 0) {
- System.out.println("\nCalls to warnUnimpl: " + unimplementedMethods);
- }
- }
-
- public AutomatedBVT() {
- super();
- TestSuite suite = (TestSuite) AutomatedBVT.suite();
- for (int i = 0; i < suite.testCount(); i++) {
- addTest(suite.testAt(i));
- }
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.jst.jee.test.bvt");
- suite.addTest(AllPluginTests.suite());
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/EJBBVT.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/EJBBVT.java
deleted file mode 100644
index af25392d..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/EJBBVT.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.jee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class EJBBVT extends TestSuite {
-
- public EJBBVT() {
- super();
- addTest(org.eclipse.wtp.jee.headless.tests.ejb.operations.AllTests.suite());
- }
-
- public static Test suite(){
- return new EJBBVT();
- }
-
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/EnterpriseBVT.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/EnterpriseBVT.java
deleted file mode 100644
index e0097e34..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/EnterpriseBVT.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.jee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class EnterpriseBVT extends TestSuite {
-
- public EnterpriseBVT(){
- super();
- addTest(org.eclipse.wtp.jee.headless.tests.appclient.operations.AllTests.suite());
- }
-
- public static Test suite(){
- return new EnterpriseBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/WebBVT.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/WebBVT.java
deleted file mode 100644
index e524d42f..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/jst/jee/tests/bvt/WebBVT.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.jst.jee.tests.bvt;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class WebBVT extends TestSuite {
-
- public WebBVT() {
- super();
- addTest(org.eclipse.wtp.jee.headless.tests.web.operations.AllTests.suite());
- }
- public static Test suite(){
- return new WebBVT();
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/appclient/operations/AllTests.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/appclient/operations/AllTests.java
deleted file mode 100644
index 1ed2bd37..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/appclient/operations/AllTests.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.appclient.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class AllTests extends TestSuite {
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("Application Client Operation Tests");
- addTest(AppClientImportOperationTest.suite());
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/appclient/operations/AppClientImportOperationTest.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/appclient/operations/AppClientImportOperationTest.java
deleted file mode 100644
index 9e8f3394..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/appclient/operations/AppClientImportOperationTest.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.appclient.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.appclient.operations.AppClientImportOperationBaseTest;
-
-public class AppClientImportOperationTest extends AppClientImportOperationBaseTest {
-
- public AppClientImportOperationTest() {
- super("AppClientImportOperationTests");
- }
-
- public AppClientImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(AppClientImportOperationTest.class);
- }
-
- public void testACImport50_Defaults() throws Exception {
- runImportTests_All("AC50_Defaults");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testACImport60_Defaults() throws Exception {
-// runImportTests_All("AC60_Defaults");
-// }
-
- public void testACImport50_NoDefaultClass() throws Exception {
- runImportTests_All("AC50_NoDefaultClass");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testACImport60_NoDefaultClass() throws Exception {
-// runImportTests_All("AC60_NoDefaultClass");
-// }
-
-
- public void testACImport50_AddToEAR() throws Exception {
- runImportTests_All("AC50_AddToEAR");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testACImport60_AddToEAR() throws Exception {
-// runImportTests_All("AC60_AddToEAR");
-// }
-
-
- public void testACImport50_InterestingName() throws Exception{
- runImportTests_All("AC50_InterestingName");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testACImport60_InterestingName() throws Exception{
-// runImportTests_All("AC60_InterestingName");
-// }
-
-
- public void testACImport50_AddToEAR_InterestingName() throws Exception{
- runImportTests_All("AC50_AddToEAR_InterestingName");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testACImport60_AddToEAR_InterestingName() throws Exception{
-// runImportTests_All("AC60_AddToEAR_InterestingName");
-// }
-
-
- public void testACImport60_WithDD() throws Exception {
- runImportTests_All("AC60_WithDD");
- }
-
- public void testACImport60_NoDefaultClass_WithDD() throws Exception {
- runImportTests_All("AC60_NoDefaultClass_WithDD");
- }
-
- public void testACImport60_AddToEAR_WithDD() throws Exception {
- runImportTests_All("AC60_AddToEAR_WithDD");
- }
-
- public void testACImport60_AddToEAR_InterestingName_WithDD() throws Exception {
- runImportTests_All("AC60_AddToEAR_InterestingName_WithDD");
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/ejb/operations/AllTests.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/ejb/operations/AllTests.java
deleted file mode 100644
index b3dc584c..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/ejb/operations/AllTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.ejb.operations;
-
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-public class AllTests extends TestSuite {
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("EJB Operation Tests");
- addTest(EJBImportOperationTest.suite());
- }
-
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/ejb/operations/EJBImportOperationTest.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/ejb/operations/EJBImportOperationTest.java
deleted file mode 100644
index c87b65ec..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/ejb/operations/EJBImportOperationTest.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.ejb.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.ejb.operations.EJBImportOperationBaseTest;
-
-
-public class EJBImportOperationTest extends EJBImportOperationBaseTest {
- public EJBImportOperationTest() {
- super("EJBImportOperationTests");
- }
-
- public EJBImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(EJBImportOperationTest.class);
- }
-
- public void testEJBImport30_Defaults() throws Exception {
- runImportTests_All("EJB30_Defaults");
- }
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testEJBImport31_Defaults() throws Exception {
-// runImportTests_All("EJB31_Defaults");
-// }
-
- public void testEJBImport30_AddToEAR_Defaults() throws Exception {
- runImportTests_All("EJB30_AddToEAR_Defaults");
- }
-
- public void testEJBImport31_AddToEAR_Defaults() throws Exception {
- runImportTests_All("EJB30_AddToEAR_Defaults");
- }
-
- public void testEJBImport30_AddToEAR_NoClient() throws Exception {
- runImportTests_All("EJB30_AddToEAR_NoClient");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testEJBImport31_AddToEAR_NoClient() throws Exception {
-// runImportTests_All("EJB31_AddToEAR_NoClient");
-// }
-
- public void testEJBImport30_AddToEAR_DifClientName() throws Exception {
- runImportTests_All("EJB30_AddToEAR_DiffClientName");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testEJBImport31_AddToEAR_DifClientName() throws Exception {
-// runImportTests_All("EJB31_AddToEAR_DiffClientName");
-// }
-
- public void testEJBImport30_AddToEAR_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB30_AddToEAR_DiffClientSourceFolder");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testEJBImport31_AddToEAR_DiffClientSourceFolder() throws Exception {
-// runImportTests_All("EJB31_AddToEAR_DiffClientSourceFolder");
-// }
-
- public void testEJBImport30_AddToEAR_DiffClientName_DiffClientSourceFolder() throws Exception {
- runImportTests_All("EJB30_AddToEAR_DiffClientName_DiffClientSourceFolder");
- }
-
- //TODO -- annotations to scan?
- //EE6TODO
-// public void testEJBImport31_AddToEAR_DiffClientName_DiffClientSourceFolder() throws Exception {
-// runImportTests_All("EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder");
-// }
-
- public void testEJBImport31_Defaults_WithDD() throws Exception {
- runImportTests_All("EJB31_Defaults_WithDD");
- }
-
- public void testEJBImport31_AddToEAR_Defaults_WithDD() throws Exception {
- runImportTests_All("EJB31_AddToEAR_Defaults_WithDD");
- }
-
- public void testEJBImport31_AddToEAR_NoClient_WithDD() throws Exception {
- runImportTests_All("EJB31_AddToEAR_NoClient_WithDD");
- }
-
- public void testEJBImport31_AddToEAR_DiffClientName_WithDD() throws Exception {
- runImportTests_All("EJB31_AddToEAR_DiffClientName_WithDD");
- }
-
- public void testEJBImport31_AddToEAR_DiffClientSourceFolder_WithDD() throws Exception {
- runImportTests_All("EJB31_AddToEAR_DiffClientSourceFolder_WithDD");
- }
-
- public void testEJBImport31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD() throws Exception {
- runImportTests_All("EJB31_AddToEAR_DiffClientName_DiffClientSourceFolder_WithDD");
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/plugin/AllPluginTests.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/plugin/AllPluginTests.java
deleted file mode 100644
index 3f72a6c4..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/plugin/AllPluginTests.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.plugin;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeType;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-import org.eclipse.wst.server.core.ServerCore;
-
-
-public class AllPluginTests extends TestSuite {
-
- public static IRuntime JONAS_SERVER = createJONASRuntime();
-
- public static Test suite() {
- return new AllPluginTests();
- }
-
- public AllPluginTests() {
- super();
- addTest(org.eclipse.jst.jee.tests.bvt.EnterpriseBVT.suite());
- addTest(org.eclipse.jst.jee.tests.bvt.EJBBVT.suite());
- addTest(org.eclipse.jst.jee.tests.bvt.WebBVT.suite());
- }
-
- public static IRuntime createJONASRuntime() {
- String s = System.getProperty("org.eclipse.jst.server.jonas.432");
- if (s == null || s.length() == 0)
- return null;
- try {
- IRuntimeType rt = ServerCore.findRuntimeType("org.eclipse.jst.server.core.runtimeType");
- IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
- wc.setLocation(new Path(s));
- return wc.save(true, null);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/plugin/HeadlessTestsPlugin.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/plugin/HeadlessTestsPlugin.java
deleted file mode 100644
index 134031ff..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/plugin/HeadlessTestsPlugin.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.plugin;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.wst.common.tests.DataModelVerifierFactory;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.verifiers.DataModelVerifierListGenerator;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class HeadlessTestsPlugin extends Plugin {
- //The shared instance.
- private static HeadlessTestsPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public HeadlessTestsPlugin() {
- super();
- plugin = this;
- try {
- resourceBundle= ResourceBundle.getBundle("org.eclipse.wtp.jee.wb.tests.TestsPluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- }
-
- /**
- * Returns the shared instance.
- */
- public static HeadlessTestsPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle= getDefault().getResourceBundle();
- try {
- return (bundle!=null ? bundle.getString(key) : key);
- } catch (MissingResourceException e) {
- return key;
- }
- }
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
-
- //needed so that jee operation tests will verify correctly
- DataModelVerifierFactory.getInstance().addToDataModelVerifiersMap(DataModelVerifierListGenerator.getVerifiers());
- }
-
- /**
- * Returns the plugin's resource bundle,
- */
- public ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/web/operations/AllTests.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/web/operations/AllTests.java
deleted file mode 100644
index bb6e47a0..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/web/operations/AllTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.web.operations;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class AllTests extends TestSuite {
-
- public static Test suite(){
- return new AllTests();
- }
-
- public AllTests(){
- super("Web Operation, Servlet, & Deploy Tests");
- addTest(WebImportOperationTest.suite());
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/web/operations/WebImportOperationTest.java b/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/web/operations/WebImportOperationTest.java
deleted file mode 100644
index fb958de9..00000000
--- a/tests/org.eclipse.jst.jee.tests/jee-tests/org/eclipse/wtp/jee/headless/tests/web/operations/WebImportOperationTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.wtp.jee.headless.tests.web.operations;
-
-import junit.framework.Test;
-
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.web.operations.WebImportOperationBaseTest;
-
-public class WebImportOperationTest extends WebImportOperationBaseTest {
-
- public WebImportOperationTest() {
- super("WebImportOperationTests");
- }
-
- public WebImportOperationTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebImportOperationTest.class);
- }
-
- public void testWebImport25_Defaults() throws Exception {
- runImportTests_All("Web25_Defaults");
- }
-
- public void testWebImport25_DiffContentDir() throws Exception {
- runImportTests_All("Web25_DiffContentDir");
- }
-
- public void testWebImport25_DiffSrcDir() throws Exception {
- runImportTests_All("Web25_DiffSrcDir");
- }
-
- public void testWebImport25_DiffContentDir_DiffSrcDir() throws Exception {
- runImportTests_All("Web25_DiffContentDir_DiffSrcDir");
- }
-
- public void testWebImport25_Defaults_WithEAR() throws Exception {
- runImportTests_All("Web25_Defaults_WithEAR");
- }
-
- public void testWebImport25_DiffContextRoot_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_WithEAR");
- }
-
- public void testWebImport25_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffContentDir_WithEAR");
- }
-
- public void testWebImport25_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport25_DiffContextRoot_DiffContentDir_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffContentDir_WithEAR");
- }
-
- public void testWebImport25_DiffContextRoot_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport25_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffContentDir_DiffSrcDir_WithEAR");
- }
-
- public void testWebImport25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR() throws Exception {
- runImportTests_All("Web25_DiffContextRoot_DiffContentDir_DiffSrcDir_WithEAR");
- }
-}
diff --git a/tests/org.eclipse.jst.jee.tests/plugin.properties b/tests/org.eclipse.jst.jee.tests/plugin.properties
deleted file mode 100644
index a8f2ce83..00000000
--- a/tests/org.eclipse.jst.jee.tests/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################
-# Copyright (c) 2010 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
-###############################################################################
-#Properties file for org.eclipse.jst.jee.tests
-Bundle-Name = JEE Tests Plug-in \ No newline at end of file
diff --git a/tests/org.eclipse.jst.jee.tests/plugin.xml b/tests/org.eclipse.jst.jee.tests/plugin.xml
deleted file mode 100644
index a95eea2e..00000000
--- a/tests/org.eclipse.jst.jee.tests/plugin.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
-
-
-
-
-
-</plugin>
diff --git a/tests/org.eclipse.jst.jee.tests/test.xml b/tests/org.eclipse.jst.jee.tests/test.xml
deleted file mode 100644
index df8e3e9d..00000000
--- a/tests/org.eclipse.jst.jee.tests/test.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="testsuite" default="run" basedir=".">
- <!-- The property ${eclipse-home} should be passed into this script -->
- <!-- Set a meaningful default value for when it is not. -->
- <property name="eclipse-home" value="${basedir}\..\.." />
-
- <!-- sets the properties eclipse-home, and library-file -->
- <property name="plugin-name" value="org.eclipse.jst.jee.tests" />
- <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.3.0/library.xml" />
- <property name="extraVMargs" value="-Dorg.eclipse.jst.server.jonas.432=${jonas432Dir}" />
-
- <property name="workspace" value="${basedir}/${plugin-name}" />
-
- <!-- Read the properties that will enable/disable the different targets below. -->
- <property file="bvt.properties" />
- <property name="org.eclipse.jst.jee.tests.bvt.EnterpriseBVT" value="true" />
- <property name="org.eclipse.jst.jee.tests.bvt.EJBBVT" value="true" />
- <property name="org.eclipse.jst.jee.tests.bvt.WebBVT" value="true" />
-
- <!-- This target holds all initialization code that needs to be done for -->
- <!-- all tests that are to be run. Initialization for individual tests -->
- <!-- should be done within the body of the suite target. -->
- <target name="init">
- <tstamp />
- <delete>
- <fileset dir="${eclipse-home}" includes="org*.xml" />
- </delete>
- <delete dir="${workspace}" quiet="true" />
- </target>
-
- <target name="AutomatedBVTSuite" if="org.eclipse.jst.jee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.jee.tests.bvt.AutomatedBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="EnterpriseBVTSuite" if="org.eclipse.jst.jee.tests.bvt.EnterpriseBVT" unless="org.eclipse.jst.jee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.jee.tests.bvt.EnterpriseBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="WebBVTSuite" if="org.eclipse.jst.jee.tests.bvt.WebBVT" unless="org.eclipse.jst.jee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.jee.tests.bvt.WebBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
- <target name="EJBBVTSuite" if="org.eclipse.jst.jee.tests.bvt.EJBBVT" unless="org.eclipse.jst.jee.tests.bvt.ALL">
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}" />
- <property name="plugin-name" value="${plugin-name}" />
- <property name="classname" value="org.eclipse.jst.jee.tests.bvt.EJBBVT" />
- <property name="extraVMargs" value="${extraVMargs}" />
- </ant>
- <antcall target="cleanup"/>
- </target>
-
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite" depends="AutomatedBVTSuite, EnterpriseBVTSuite, WebBVTSuite, EJBBVTSuite">
- </target>
-
- <!-- This target holds code to cleanup the testing environment after -->
- <!-- after all of the tests have been run. You can use this target to -->
- <!-- delete temporary files that have been created. -->
- <target name="cleanup">
- <delete dir="${workspace}" quiet="true" />
- </target>
-
- <!-- This target runs the test suite. Any actions that need to happen -->
- <!-- after all the tests have been run should go here. -->
- <target name="run" depends="init,suite,cleanup">
- <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
- <property name="includes" value="org*.xml" />
- <property name="output-file" value="${plugin-name}.xml" />
- </ant>
- </target>
-
-</project>
-
-
-
diff --git a/tests/org.eclipse.jst.servlet.tests/.classpath b/tests/org.eclipse.jst.servlet.tests/.classpath
deleted file mode 100644
index 95657eef..00000000
--- a/tests/org.eclipse.jst.servlet.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="webmodule-tomcat-tests"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.jst.servlet.tests/.cvsignore b/tests/org.eclipse.jst.servlet.tests/.cvsignore
deleted file mode 100644
index 3336e347..00000000
--- a/tests/org.eclipse.jst.servlet.tests/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bin
-temp.folder
-build.xml
-ui.jar
-tests.jar
diff --git a/tests/org.eclipse.jst.servlet.tests/.project b/tests/org.eclipse.jst.servlet.tests/.project
deleted file mode 100644
index 732c1cfb..00000000
--- a/tests/org.eclipse.jst.servlet.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.j2ee.servlet.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.jst.servlet.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.jst.servlet.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f9abbd12..00000000
--- a/tests/org.eclipse.jst.servlet.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Sun Jun 03 01:24:17 EDT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.source=1.3
diff --git a/tests/org.eclipse.jst.servlet.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.servlet.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 1189cc21..00000000
--- a/tests/org.eclipse.jst.servlet.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,27 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %PLUGIN
-Bundle-SymbolicName: org.eclipse.jst.servlet.tests
-Bundle-Version: 1.1.400.qualifier
-Bundle-ClassPath: tests.jar
-Bundle-Activator: org.eclipse.jst.servlet.tests.ServletTestsPlugin
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-Localization: plugin
-Export-Package: org.eclipse.jst.servlet.tests,
- org.eclipse.jst.servlet.tests.bvt,
- org.eclipse.jst.servlet.tomcat.tests
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.commands,
- org.eclipse.jst.common.frameworks,
- org.eclipse.wst.common.frameworks,
- org.eclipse.jst.j2ee.core,
- org.eclipse.jst.j2ee.web,
- org.eclipse.wst.common.tests,
- org.junit,
- org.eclipse.jst.j2ee.tests,
- org.eclipse.jst.j2ee,
- org.eclipse.wst.server.core,
- org.eclipse.wst.common.modulecore,
- org.eclipse.wst.common.project.facet.core
-Eclipse-LazyStart: true
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
diff --git a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Example1.war b/tests/org.eclipse.jst.servlet.tests/WARImportTests/Example1.war
deleted file mode 100644
index 9c30a383..00000000
--- a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Example1.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test12Web.war b/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test12Web.war
deleted file mode 100644
index ba220b13..00000000
--- a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test12Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test13Web.war b/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test13Web.war
deleted file mode 100644
index 22aa926e..00000000
--- a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test13Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test14Web.war b/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test14Web.war
deleted file mode 100644
index 1eb2a3fb..00000000
--- a/tests/org.eclipse.jst.servlet.tests/WARImportTests/Test14Web.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.servlet.tests/WARImportTests/YourCompanyExample.war b/tests/org.eclipse.jst.servlet.tests/WARImportTests/YourCompanyExample.war
deleted file mode 100644
index 1c9628c7..00000000
--- a/tests/org.eclipse.jst.servlet.tests/WARImportTests/YourCompanyExample.war
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.jst.servlet.tests/about.html b/tests/org.eclipse.jst.servlet.tests/about.html
deleted file mode 100644
index 2199df3f..00000000
--- a/tests/org.eclipse.jst.servlet.tests/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/tests/org.eclipse.jst.servlet.tests/build.properties b/tests/org.eclipse.jst.servlet.tests/build.properties
deleted file mode 100644
index a5c1353f..00000000
--- a/tests/org.eclipse.jst.servlet.tests/build.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-###############################################################################
-# Copyright (c) 2005, 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-source.tests.jar = webmodule-tomcat-tests/
-output.tests.jar = bin/
-bin.includes = tests.jar,\
- WARImportTests/,\
- testHOLD.xml,\
- about.html,\
- plugin.properties,\
- META-INF/
diff --git a/tests/org.eclipse.jst.servlet.tests/plugin.properties b/tests/org.eclipse.jst.servlet.tests/plugin.properties
deleted file mode 100644
index 5da3c3cf..00000000
--- a/tests/org.eclipse.jst.servlet.tests/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2003, 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-
-PLUGIN=org.eclipse.jst.servlet.tests
-Bundle-Vendor.0 = Eclipse Web Tools Platform
diff --git a/tests/org.eclipse.jst.servlet.tests/testHOLD.xml b/tests/org.eclipse.jst.servlet.tests/testHOLD.xml
deleted file mode 100644
index cbbb98f5..00000000
--- a/tests/org.eclipse.jst.servlet.tests/testHOLD.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="testsuite" default="run" basedir=".">
- <!-- The property ${eclipse-home} should be passed into this script -->
- <!-- Set a meaningful default value for when it is not. -->
- <!-- <property name="eclipse-home" value="${basedir}\..\.."/> -->
- <echo message="basedir ${basedir}" />
- <echo message="eclipse place ${eclipse-home}" />
- <!-- sets the properties plugin-name, and library-file -->
- <property name="plugin-name" value="org.eclipse.jst.servlet.tests"/>
- <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml"/>
- <property name="extraVMargs" value="-Dorg.eclipse.jst.server.tomcat.50=${testDir}/${tomcat50Dir}"/>
-
- <!-- This target holds all initialization code that needs to be done for -->
- <!-- all tests that are to be run. Initialization for individual tests -->
- <!-- should be done within the body of the suite target. -->
- <target name="init">
- <tstamp/>
- <delete>
- <fileset dir="${eclipse-home}" includes="org*.xml"/>
- </delete>
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite">
- <property name="jst-folder" value="${eclipse-home}/jst_folder"/>
- <delete dir="${jst-folder}" quiet="true"/>
- <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${jst-folder}"/>
- <property name="plugin-name" value="${plugin-name}"/>
- <property name="classname" value="org.eclipse.jst.servlet.tests.bvt.AutomatedBVT" />
- <property name="extraVMargs" value="${extraVMargs}"/>
- </ant>
- </target>
-
- <!-- This target holds code to cleanup the testing environment after -->
- <!-- after all of the tests have been run. You can use this target to -->
- <!-- delete temporary files that have been created. -->
- <target name="cleanup">
- </target>
-
- <!-- This target runs the test suite. Any actions that need to happen -->
- <!-- after all the tests have been run should go here. -->
- <target name="run" depends="init,suite,cleanup">
- <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
- <property name="includes" value="org*.xml"/>
- <property name="output-file" value="${plugin-name}.xml"/>
- </ant>
- </target>
-</project> \ No newline at end of file
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/ServletTestsPlugin.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/ServletTestsPlugin.java
deleted file mode 100644
index 34b2a7a2..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/ServletTestsPlugin.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.eclipse.jst.servlet.tests;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class ServletTestsPlugin extends Plugin {
- //The shared instance.
- private static ServletTestsPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public ServletTestsPlugin() {
- 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 ServletTestsPlugin 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 = ServletTestsPlugin.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.jst.servlet.tests.ServletTestsPluginResources"); //$NON-NLS-1$
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- return resourceBundle;
- }
-}
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/bvt/AutomatedBVT.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/bvt/AutomatedBVT.java
deleted file mode 100644
index 69b2b28b..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/bvt/AutomatedBVT.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Created on Apr 1, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.jst.servlet.tests.bvt;
-
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.eclipse.core.runtime.Platform;
-
-
-/**
- * @author jsholl
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class AutomatedBVT extends TestSuite {
-
- public static String baseDirectory = System.getProperty("user.dir") + java.io.File.separatorChar + "WARImportTests" + java.io.File.separatorChar; //$NON-NLS-1$ //$NON-NLS-2$
-
- static {
- try {
- URL url = Platform.getBundle("org.eclipse.jst.servlet.tests").getEntry("/"); //$NON-NLS-1$ //$NON-NLS-2$
- AutomatedBVT.baseDirectory = Platform.asLocalURL(url).getFile() + "TestData"+ java.io.File.separatorChar; //$NON-NLS-1$
- } catch (Exception e) {
- System.err.println("Using working directory since a workspace URL could not be located."); //$NON-NLS-1$
- }
- }
-
- public static int unimplementedMethods;
-
- public static void main(String[] args) {
- unimplementedMethods = 0;
- TestRunner.run(suite());
- if (unimplementedMethods > 0) {
- System.out.println("\nCalls to warnUnimpl: " + unimplementedMethods); //$NON-NLS-1$
- }
- }
-
- public AutomatedBVT() {
- super();
- TestSuite suite = (TestSuite) AutomatedBVT.suite();
- for (int i = 0; i < suite.testCount(); i++) {
- addTest(suite.testAt(i));
- }
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.jst.servlet.tests.bvt"); //$NON-NLS-1$
- //suite.addTest(AllTomcatTests.suite());
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/bvt/AutomatedBVTEclipse.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/bvt/AutomatedBVTEclipse.java
deleted file mode 100644
index f71ff0c5..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tests/bvt/AutomatedBVTEclipse.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Created on Mar 25, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.servlet.tests.bvt;
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.Platform;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AutomatedBVTEclipse extends AutomatedBVT {
-
- public AutomatedBVTEclipse(){
- super();
- URL url = Platform.getBundle("org.eclipse.jst.servlet.tests").getEntry("/"); //$NON-NLS-1$ //$NON-NLS-2$
- try {
- AutomatedBVT.baseDirectory = Platform.asLocalURL(url).getFile() + "WARImportTests"+ java.io.File.separatorChar; //$NON-NLS-1$
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-}
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/AllTomcatTests.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/AllTomcatTests.java
deleted file mode 100644
index 948e35e5..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/AllTomcatTests.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Created on Feb 2, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.servlet.tomcat.tests;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeType;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-import org.eclipse.wst.server.core.ServerCore;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class AllTomcatTests extends TestSuite {
-
- public static IRuntime TOMCAT_RUNTIME = createRuntime();
-
- public static Test suite(){
- return new AllTomcatTests();
- }
-
- public AllTomcatTests(){
- super("WEB Tests"); //$NON-NLS-1$
- addTest(WebProjectCreationTomcatTest.suite());
- addTest(WebImportOperationTomcatTest.suite());
- addTest(WebExportOperationTomcatTest.suite());
-
- }
-
- public static IRuntime createRuntime() {
- String s = System.getProperty("org.eclipse.jst.server.tomcat.50"); //$NON-NLS-1$
-
- if (s == null || s.length() == 0)
- return null;
- try {
- IRuntimeType rt = ServerCore.findRuntimeType("org.eclipse.jst.server.tomcat.runtime.50"); //$NON-NLS-1$
- IRuntimeWorkingCopy wc = rt.createRuntime(null, null);
- wc.setLocation(new Path(s));
- return wc.save(true, null);
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebExportOperationTomcatTest.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebExportOperationTomcatTest.java
deleted file mode 100644
index 926b0175..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebExportOperationTomcatTest.java
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.servlet.tomcat.tests;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Test;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.application.internal.operations.J2EEComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebComponentExportDataModelProvider;
-import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class WebExportOperationTomcatTest extends ModuleExportOperationTest {
-
- protected boolean excludeCompileJsp = false;
- protected boolean exportSourceFiles = false;
- protected boolean overwriteExisting = false;
- protected boolean dataModelShouldBeValid = true;
-
- public WebExportOperationTomcatTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebExportOperationTomcatTest.class);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.OperationTestCase#setUp()
- */
- protected void setUp() throws Exception {
- super.setUp();
- excludeCompileJsp = false;
- }
-
- public void testExcludeCompileJspOn() throws Exception {
- excludeCompileJsp = true;
- testAllExportTestCases();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTestCase#getModelInstance()
- */
- protected IDataModel getModelInstance() {
- return DataModelFactory.createDataModel(new WebComponentExportDataModelProvider());
- }
- protected IProject[] getExportableProjects() throws Exception {
-
- deleteAllProjects();
- WebImportOperationTomcatTest importTestCase = (WebImportOperationTomcatTest)getImportTestCase();
- importTestCase.testAllImportTestCases();
-
- // if the projects aren't created successfully, the previous
- // line will fail so there's no need to verify
- IProject[] projs = ProjectUtility.getAllProjects();
-
- List filteredProjs = new ArrayList();
- for (int i = 0; i < projs.length; i++) {
- IProject project = projs[i];
- if (JavaEEProjectUtilities.isDynamicWebProject(project))
- filteredProjs.add(project);
- }
- return (IProject[]) filteredProjs.toArray(new IProject[filteredProjs.size()]);
-
- }
-
- public void testAllExportTestCases() throws Exception {
-
- File exportDirectory = new File(BASE_DATA_DIR);
- if (exportDirectory.isDirectory()) {
- File[] contents = exportDirectory.listFiles();
- for (int i = 0; i < contents.length; i++) {
- if (!contents[i].isDirectory())
- contents[i].delete();
- }
- }
- IProject[] projects = getExportableProjects();
- for (int i = 0; i < projects.length; i++) {
- testExport(ComponentCore.createComponent(projects[i]), getFileName(projects[i].getName()));
- }
- }
-
- public String getFileName(String baseName) {
- StringBuffer result = new StringBuffer(baseName);
- result.append((exportSourceFiles) ? "_withSource" : "_withoutSource").append(getModuleExtension());
- return result.toString();
- }
-
- public void testExport(IVirtualComponent component, String filename) throws Exception {
- IDataModel dataModel = getModelInstance();
- dataModel.setProperty(J2EEComponentExportDataModelProvider.ARCHIVE_DESTINATION, BASE_DATA_DIR + filename);
- dataModel.setProperty(J2EEComponentExportDataModelProvider.COMPONENT, component);
- dataModel.setBooleanProperty(J2EEComponentExportDataModelProvider.EXPORT_SOURCE_FILES, exportSourceFiles);
- dataModel.setBooleanProperty(J2EEComponentExportDataModelProvider.OVERWRITE_EXISTING, overwriteExisting);
-
- if (dataModelShouldBeValid)
- runAndVerify(dataModel);
- else
- verifyInvalidDataModel(dataModel);
- }
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTestCase#getImportTestCase()
- */
- protected ModuleImportOperationTest getImportTestCase() {
- return new WebImportOperationTomcatTest(""); //$NON-NLS-1$
- }
-
-
- protected void addJavaFilesToProject(String projectName,
- String[] classNames, String prackageName) throws Exception {
- }
-
- protected void verifyJavaFilesExported(String archivePath,
- String[] classNames, String packageName, boolean withClassFiles,
- boolean withSource) throws Exception {
-
- }
-
- protected IDataModel getExportDataModel(String projectName,
- String destination, boolean exportSource, boolean runBuild,
- boolean overwriteExisting) {
- return null;
- }
-
- protected String getModuleExtension() {
- return ".war";//$NON-NLS-1$
- }
-}
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebImportOperationTomcatTest.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebImportOperationTomcatTest.java
deleted file mode 100644
index b22b16ab..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebImportOperationTomcatTest.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.servlet.tomcat.tests;
-
-import java.io.File;
-import java.util.List;
-
-import junit.framework.Test;
-
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentImportDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTest;
-import org.eclipse.wtp.j2ee.headless.tests.plugin.HeadlessTestsPlugin;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class WebImportOperationTomcatTest extends ModuleImportOperationTest {
-
- private static final String TESTS_PATH = System.getProperty("user.dir") + java.io.File.separatorChar + "TestData" + java.io.File.separatorChar + "WARImportTests";
- protected boolean dataModelShouldBeValid = true;
-
- public WebImportOperationTomcatTest() {
- super("WebImportOperationTomcatTests");
- }
-
- public WebImportOperationTomcatTest(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new SimpleTestSuite(WebImportOperationTomcatTest.class);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTestCase#getModelInstance()
- */
- protected IDataModel getModelInstance() {
- return null; // new WebModuleImportDataModel();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTestCase#getImportableArchiveFileNames()
- */
- protected List getImportableArchiveFileNames() {
- return ProjectUtility.getWarsInDirectory(HeadlessTestsPlugin.getDefault(), TESTS_PATH);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTestCase#setServerTargetProperty(org.eclipse.jst.j2ee.application.operations.J2EEModuleImportDataModel)
- */
- public void setServerTargetProperty(IDataModel dataModel) {
- // dataModel.setProperty(ServerTargetDataModel.RUNTIME_TARGET_ID,AllTomcatTests.TOMCAT_RUNTIME.getId());
- }
-
- public void testAllImportTestCases() throws Exception {
-
- List projects = getImportableArchiveFileNames();
- for (int i = 0; i < projects.size(); i++) {
- String jarName = projects.get(i).toString();
- String projectName = jarName.substring(jarName.lastIndexOf(File.separator) + 1, jarName.length() - 4);
- testImport(projectName, jarName);
- }
- }
-
- public void testImportTestCase_0() throws Exception {
- importIndex(0);
- }
-
- public void testImportTestCase_1() throws Exception {
- importIndex(1);
- }
-
- public void testImportTestCase_2() throws Exception {
- importIndex(2);
- }
-
- public void testImportTestCase_3() throws Exception {
- importIndex(3);
- }
-
- public void testImportTestCase_4() throws Exception {
- importIndex(4);
- }
-
- public void testImportTestCase_5() throws Exception {
- importIndex(5);
- }
-
- public void testImportTestCase_6() throws Exception {
- importIndex(6);
- }
-
- public void testImportTestCase_7() throws Exception {
- importIndex(7);
- }
-
- public void testImportTestCase_8() throws Exception {
- importIndex(8);
- }
-
- public void testImportTestCase_9() throws Exception {
- importIndex(9);
- }
-
- private void importIndex(int index) throws Exception {
- List projects = getImportableArchiveFileNames();
- if (index < projects.size()) {
- String jarName = projects.get(index).toString();
- String projectName = jarName.substring(jarName.lastIndexOf(File.separator) + 1, jarName.length() - 4);
- testImport(projectName, jarName);
- }
- }
-
- public void testImportTestCase_rest() throws Exception {
- List projects = getImportableArchiveFileNames();
- for (int i = 10; i < projects.size(); i++) {
- String jarName = projects.get(i).toString();
- String projectName = jarName.substring(jarName.lastIndexOf(File.separator) + 1, jarName.length() - 4);
- testImport(projectName, jarName);
- }
- }
-
- public void testImport(String projectName, String filename) throws Exception {
- IDataModel dataModel = getModelInstance();
- dataModel.setProperty(IJ2EEComponentImportDataModelProperties.FILE_NAME, filename);
- dataModel.setProperty(IJ2EEComponentImportDataModelProperties.PROJECT_NAME, projectName);
- if (dataModelShouldBeValid)
- runAndVerify(dataModel);
- else
- verifyInvalidDataModel(dataModel);
- }
-
- public void testBadFileName() throws Exception {
-
- dataModelShouldBeValid = false;
- testImport("BobTheProject", "BobTheFile");
- }
-
- protected IDataModel getExportDataModel(String projectName,
- String destination, boolean exportSource, boolean runBuild,
- boolean overwriteExisting) {
- return null;
- }
-
- protected IDataModel getImportDataModel(String filePath,
- String projectName,
- IDataModel creationModel, boolean closeArchiveOnDispose) {
- return null;
- }
-
- protected String getModuleExtension() {
- return null;
- }
-
-}
diff --git a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebProjectCreationTomcatTest.java b/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebProjectCreationTomcatTest.java
deleted file mode 100644
index 1a12f556..00000000
--- a/tests/org.eclipse.jst.servlet.tests/webmodule-tomcat-tests/org/eclipse/jst/servlet/tomcat/tests/WebProjectCreationTomcatTest.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-/*
- * Created on Jan 6, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.servlet.tomcat.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.j2ee.application.internal.operations.IAnnotationsDataModel;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties;
-import org.eclipse.jst.j2ee.internal.web.archive.operations.WebFacetProjectCreationDataModelProvider;
-import org.eclipse.jst.j2ee.internal.web.operations.AddServletOperation;
-import org.eclipse.jst.j2ee.internal.web.operations.INewServletClassDataModelProperties;
-import org.eclipse.jst.j2ee.internal.web.operations.NewServletClassDataModelProvider;
-import org.eclipse.jst.j2ee.web.project.facet.IWebFacetInstallDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
-import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
-import org.eclipse.wst.common.componentcore.internal.operation.IArtifactEditOperationDataModelProperties;
-import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation;
-import org.eclipse.wst.common.tests.LogUtility;
-import org.eclipse.wst.common.tests.ProjectUtility;
-import org.eclipse.wst.common.tests.SimpleTestSuite;
-import org.eclipse.wst.common.tests.TaskViewUtility;
-
-/**
- * @author blancett
- *
- * To change the template for this generated type comment go to Window -
- * Preferences - Java - Code Generation - Code and Comments
- */
-public class WebProjectCreationTomcatTest extends TestCase {
-
- public void createSimpleProject(String projectName) throws Exception {
- IDataModel dataModel = DataModelFactory.createDataModel(new WebFacetProjectCreationDataModelProvider());
- dataModel.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projectName);
- setServerTargetProperty(dataModel);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
- }
-
- /**
- * @param dataModel
- */
- public void setServerTargetProperty(IDataModel dataModel) {
- dataModel.setProperty(IFacetProjectCreationDataModelProperties.FACET_RUNTIME, AllTomcatTests.TOMCAT_RUNTIME.getId());
- }
-
- public static void createServlet(IDataModel model) throws Exception {
- AddServletOperation op = new AddServletOperation(model);
- op.execute(null,null);
- ProjectUtility.verifyProject(op.getTargetProject().getName(), true);
- TaskViewUtility.verifyNoErrors();
- }
-
- public IDataModel setupStandaloneWebProject(String projectName, int j2eeVersion) throws Exception {
- createSimpleProject(projectName);
- IDataModel model = getWebComponentCreationDataModel(projectName, j2eeVersion);
- createStandaloneWebProject(model);
- createServlet(projectName);
- return model;
- }
-
- public IDataModel setupStandaloneAnnotatedWebProject(String projectName, int j2eeVersion) throws Exception {
- createSimpleProject(projectName);
-
- IDataModel model = getWebComponentCreationDataModel(projectName, j2eeVersion);
- createStandaloneWebProject(model);
- createAnnotatedServlet(projectName);
- return model;
- }
-
- public static void createStandaloneWebProject(IDataModel model) throws Exception {
- IDataModelOperation webOp = model.getDefaultOperation();
- webOp.execute(new NullProgressMonitor(), null);
- // ProjectUtility.verifyProject(model.getTargetProject().getName(),
- // true);
- TaskViewUtility.verifyNoErrors();
- }
-
- private IDataModel getWebComponentCreationDataModel(String projectName, int j2eeVersion) {
- IProject javaProject = ProjectUtility.getProject(projectName);
- String moduleName = projectName + "WebModule"; //$NON-NLS-1$
- String moduleDeployName = moduleName + ".war"; //$NON-NLS-1$
- IDataModel model = DataModelFactory.createDataModel(IWebFacetInstallDataModelProperties.class);
- model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, javaProject.getName());
- FacetDataModelMap map = (FacetDataModelMap) model.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel webModel = map.getFacetDataModel(IWebFacetInstallDataModelProperties.DYNAMIC_WEB);
- webModel.setIntProperty(IFacetDataModelProperties.FACET_VERSION,j2eeVersion);
- return model;
- }
-
- /**
- * @throws Exception
- */
- private void createServlet(String projectName) throws Exception {
- IDataModel servletModel = setupServletCreationDataModel(projectName, false);
- createServlet(servletModel);
- }
-
- /**
- * @throws Exception
- */
- private void createAnnotatedServlet(String projectName) throws Exception {
- IDataModel servletModel = setupServletCreationDataModel(projectName, true);
- createServlet(servletModel);
- }
-
- public IDataModel setupServletCreationDataModel(String projectName, boolean isAnnotated) {
- IDataModel servletDataModel = DataModelFactory.createDataModel(NewServletClassDataModelProvider.class);
- servletDataModel.setProperty(IArtifactEditOperationDataModelProperties.PROJECT_NAME, projectName);
- servletDataModel.setProperty(IArtifactEditOperationDataModelProperties.COMPONENT_NAME, projectName);
- servletDataModel.setProperty(INewJavaClassDataModelProperties.CLASS_NAME, "FooServlet"); //$NON-NLS-1$
- servletDataModel.setProperty(INewServletClassDataModelProperties.DISPLAY_NAME, "FooServlet"); //$NON-NLS-1$
- servletDataModel.setBooleanProperty(IAnnotationsDataModel.USE_ANNOTATIONS, isAnnotated);
- return servletDataModel;
- }
-
- public void createVaildProjectAndServletCreation(String projectName, int j2eeVersion) throws Exception {
- LogUtility.getInstance().resetLogging();
- IDataModel model = null;
- model = setupStandaloneWebProject(projectName, j2eeVersion);
- LogUtility.getInstance().verifyNoWarnings();
- checkValidDataModel(model);
- }
-
- public void createVaildAnnotatedProjectAndServletCreation(String projectName, int j2eeVersion) throws Exception {
- LogUtility.getInstance().resetLogging();
- IDataModel model = null;
- model = setupStandaloneAnnotatedWebProject(projectName, j2eeVersion);
- LogUtility.getInstance().verifyNoWarnings();
- checkValidDataModel(model);
- }
-
- /**
- * @param model
- */
- protected void checkValidDataModel(IDataModel model) {
- // DataModelVerifier verifier =
- // DataModelVerifierFactory.getInstance().createVerifier(model);
- // try {
- // verifier.verify(model);
- // } catch (Exception e) {
- // e.printStackTrace();
- // }
-
- }
-
- public void testVaild12WebProjectNameCreation() throws Exception {
- ProjectUtility.deleteAllProjects();
- createVaildProjectAndServletCreation("FooTomcatWebProject12", J2EEVersionConstants.WEB_2_2_ID); //$NON-NLS-1$
- }
-
- /*
- * TODO Uncomment this method when Annotation support for servlets is
- * enabled public void testVaild12AnnotatedWebProjectNameCreation() throws
- * Exception { ProjectUtility.deleteAllProjects();
- * createVaildAnnotatedProjectAndServletCreation("FooAnnotatedTomcatWebProject12",
- * J2EEVersionConstants.WEB_2_2_ID); }
- */
-
- public void testVaild13WebProjectNameCreation() throws Exception {
- ProjectUtility.deleteAllProjects();
- createVaildProjectAndServletCreation("Foo1TomcatWebProject13", J2EEVersionConstants.WEB_2_3_ID); //$NON-NLS-1$
- }
-
- /*
- * TODO Uncomment this method when Annotation support for servlets is
- * enabled public void testVaild13AnnotatedWebProjectNameCreation() throws
- * Exception { ProjectUtility.deleteAllProjects();
- * createVaildAnnotatedProjectAndServletCreation("Foo1TomcatWebProject13",
- * J2EEVersionConstants.WEB_2_3_ID); }
- */
-
- public void testVaild14WebProjectNameCreation() throws Exception {
- ProjectUtility.deleteAllProjects();
- createVaildProjectAndServletCreation("Foo1TomcatWebProject14", J2EEVersionConstants.WEB_2_4_ID); //$NON-NLS-1$
- }
-
- /*
- * TODO Uncomment this method when Annotation support for servlets is
- * enabled public void testVaild14AnnotatedWebProjectNameCreation() throws
- * Exception { ProjectUtility.deleteAllProjects();
- * createVaildAnnotatedProjectAndServletCreation("Foo1TomcatWebProject14",
- * J2EEVersionConstants.WEB_2_4_ID); }
- */
-
- public static Test suite() {
- return new SimpleTestSuite(WebProjectCreationTomcatTest.class);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest#getProjectCreationDataModel()
- */
- public IDataModel getProjectCreationDataModel() {
- return null;
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.sample/.classpath b/tests/org.eclipse.jst.validation.sample/.classpath
deleted file mode 100644
index f562172d..00000000
--- a/tests/org.eclipse.jst.validation.sample/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="propertiesValidator/"/>
- <classpathentry kind="src" path="propertiesValFS/"/>
- <classpathentry kind="src" path="propertiesValWB/"/>
- <classpathentry kind="src" path="filesystemFWK/"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.jst.validation.sample/.cvsignore b/tests/org.eclipse.jst.validation.sample/.cvsignore
deleted file mode 100644
index 512f0218..00000000
--- a/tests/org.eclipse.jst.validation.sample/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-build.xml
-runtime
-temp.folder
diff --git a/tests/org.eclipse.jst.validation.sample/.project b/tests/org.eclipse.jst.validation.sample/.project
deleted file mode 100644
index 190b477f..00000000
--- a/tests/org.eclipse.jst.validation.sample/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.validation.sample</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.jst.validation.sample/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.validation.sample/META-INF/MANIFEST.MF
deleted file mode 100644
index ccbd93d3..00000000
--- a/tests/org.eclipse.jst.validation.sample/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,21 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.jst.validation.sample; singleton:=true
-Bundle-Version: 1.1.1
-Bundle-ClassPath: runtime/propertiesValidator.jar
-Bundle-Activator: org.eclipse.jst.validation.sample.workbenchimpl.PropertiesValidatorPlugin
-Bundle-Localization: plugin
-Export-Package: org.eclipse.jst.validation.sample,
- org.eclipse.jst.validation.sample.filesystem,
- org.eclipse.jst.validation.sample.filesystemimpl,
- org.eclipse.jst.validation.sample.parser,
- org.eclipse.jst.validation.sample.workbenchimpl
-Require-Bundle: org.eclipse.core.resources,
- org.eclipse.jdt.core,
- org.eclipse.wst.validation,
- org.eclipse.help,
- org.eclipse.jem.util,
- org.eclipse.wst.common.frameworks,
- org.eclipse.core.runtime
-Bundle-ActivationPolicy: lazy
diff --git a/tests/org.eclipse.jst.validation.sample/about.html b/tests/org.eclipse.jst.validation.sample/about.html
deleted file mode 100644
index 2199df3f..00000000
--- a/tests/org.eclipse.jst.validation.sample/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/tests/org.eclipse.jst.validation.sample/build.properties b/tests/org.eclipse.jst.validation.sample/build.properties
deleted file mode 100644
index 186cb0aa..00000000
--- a/tests/org.eclipse.jst.validation.sample/build.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-source.runtime/propertiesValidator.jar = propertiesValidator/,\
- propertiesValFS/,\
- propertiesValWB/,\
- filesystemFWK/
-bin.includes = runtime/propertiesValidator.jar,\
- plugin.xml,\
- filesystem.bat,\
- prop.bat,\
- about.html,\
- META-INF/,\
- plugin.properties
-jars.compile.order = runtime/propertiesValidator.jar
-output.runtime/propertiesValidator.jar = bin/
diff --git a/tests/org.eclipse.jst.validation.sample/filesystem.bat b/tests/org.eclipse.jst.validation.sample/filesystem.bat
deleted file mode 100644
index 2dc85a98..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystem.bat
+++ /dev/null
@@ -1,46 +0,0 @@
-@echo off
-REM Licensed Material - Property of IBM
-REM (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
-REM US Government Users Restricted Rights - Use, duplication or disclosure
-REM restricted by GSA ADP Schedule Contract with IBM Corp.
-REM
-REM DISCLAIMER OF WARRANTIES.
-REM The following [enclosed] code is sample code created by IBM
-REM Corporation. This sample code is not part of any standard or IBM
-REM product and is provided to you solely for the purpose of assisting
-REM you in the development of your applications. The code is provided
-REM "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
-REM NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-REM FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
-REM THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
-REM for any damages arising out of your use of the sample code, even
-REM if it has been advised of the possibility of such damages.
-REM
-REM This batch file runs the "filesystem framework"'s application
-REM
-setlocal
-
-if "%JAVA_HOME%" EQU "" goto syntax
-
-set CLASSPATH=%CLASSPATH%;..\com.ibm.etools.logging.util_5.1.0\runtime\logutil.jar
-set CLASSPATH=%CLASSPATH%;..\com.ibm.etools.validation.core_5.1.0\runtime\common.jar
-set CLASSPATH=%CLASSPATH%;.\runtime\propertiesValidator.jar
-set CLASSPATH=%CLASSPATH%;.\runtime\filesystemFWK.jar
-set CLASSPATH=%CLASSPATH%;.\runtime\propertiesValWB.jar
-set CLASSPATH=%CLASSPATH%;.\runtime\propertiesValFS.jar
-
-%JAVA_HOME%\bin\java com.ibm.etools.validation.filesystem.FilesystemApplication %1
-goto :end
-
-:syntax
-echo.
-echo The JAVA_HOME environment variable must be set to the JRE directory.
-echo e.g., set JAVA_HOME=C:\JRE
-echo where JRE has a subdirectory named "bin"
-echo.
-echo.
-goto :end
-
-:end
-endlocal
-@echo on \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/filesystem.properties b/tests/org.eclipse.jst.validation.sample/filesystemFWK/filesystem.properties
deleted file mode 100644
index a7283494..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/filesystem.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Licensed Material - Property of IBM
-# (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
-# US Government Users Restricted Rights - Use, duplication or disclosure
-# restricted by GSA ADP Schedule Contract with IBM Corp.
-#
-# DISCLAIMER OF WARRANTIES.
-# The following [enclosed] code is sample code created by IBM
-# Corporation. This sample code is not part of any standard or IBM
-# product and is provided to you solely for the purpose of assisting
-# you in the development of your applications. The code is provided
-# "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
-# NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
-# THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
-# for any damages arising out of your use of the sample code, even
-# if it has been advised of the possibility of such damages.
-#
-
-# VFFS = Validation Framework File System
-VFFS0000 = VFFS0000E: Internal error caused premature termination of validator {0}. See the stack trace below. \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemApplication.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemApplication.java
deleted file mode 100644
index 4100732b..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemApplication.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-
-import org.eclipse.wst.validation.internal.core.IFileDelta;
-import org.eclipse.wst.validation.internal.core.Message;
-import org.eclipse.wst.validation.internal.core.ValidationException;
-import org.eclipse.wst.validation.internal.core.ValidatorLauncher;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-
-/**
- * This class is the representation of a file system based application
- * which needs to use the common validation APIs.
- */
-public class FilesystemApplication {
- /**
- * The argv[] parameter needs to be a fully-qualified list of file names
- * of files that should be validated.
- */
- public static void main(String argv[]) {
- IFileDelta[] files = FilesystemManager.getManager().getFileDeltas(argv);
- boolean fullBuild = ((files == null) || (files.length == 0));
-
- IReporter reporter = null;
- if (fullBuild) {
- reporter = new FullReporter();
- }
- else {
- reporter = new IncrementalReporter();
- }
-
- FilesystemLoader loaders[] = FilesystemManager.getManager().getLoaders(files);
- for (int i=0; i<loaders.length; i++) {
- FilesystemLoader loader = loaders[i];
- try {
- ValidatorLauncher.getLauncher().start(loader.getHelper(), loader.getValidator(), reporter);
- if (!fullBuild) {
- ((IncrementalReporter)reporter).report();
- }
- }
- catch (ValidationException exc) {
- Message message = new Message("filesystem", IMessage.HIGH_SEVERITY, "VFFS0000", new String[]{loader.getValidator().getClass().getName()}); //$NON-NLS-1$ //$NON-NLS-2$
- reporter.displaySubtask(loader.getValidator(), message);
-
- if(exc.getAssociatedMessage() != null) {
- System.out.println(exc.getAssociatedMessage());
- }
-
- exc.printStackTrace();
- if(exc.getAssociatedException() != null) {
- exc.getAssociatedException().printStackTrace();
- }
- // continue with the next validation
- }
- catch (Exception exc) {
- Message message = new Message("filesystem", IMessage.HIGH_SEVERITY, "VFFS0000", new String[]{loader.getValidator().getClass().getName()}); //$NON-NLS-1$ //$NON-NLS-2$
- reporter.displaySubtask(loader.getValidator(), message);
- // continue with the next validation
- exc.printStackTrace();
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemLoader.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemLoader.java
deleted file mode 100644
index 9b44fc6c..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemLoader.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class associates a Validator with a Helper and the file extensions that
- * the validator runs on.
- */
-public class FilesystemLoader {
- private IFilesystemHelper _helper = null;
- private IValidator _validator = null;
- private String[] _fileExtensions = null;
-
- public FilesystemLoader(String[] fileExtensions, IFilesystemHelper helper, IValidator validator) {
- super();
-
- _fileExtensions = fileExtensions;
- _helper = helper;
- _validator = validator;
- }
-
- /**
- * Return the helper that the validator needs to access information
- * in the filesystem validation framework.
- */
- public IFilesystemHelper getHelper() {
- return _helper;
- }
-
- /**
- * Return the validator that checks the rules.
- */
- public IValidator getValidator() {
- return _validator;
- }
-
- /**
- * Return a list of file name extensions that this validator validates.
- */
- public String[] getFileExtensions() {
- return _fileExtensions;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemManager.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemManager.java
deleted file mode 100644
index cad383ab..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FilesystemManager.java
+++ /dev/null
@@ -1,220 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import org.eclipse.wst.validation.internal.core.FileDelta;
-import org.eclipse.wst.validation.internal.core.IFileDelta;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class is the heart of the filesystem validation framework.
- * It &quot;loads&quot; each validator's metadata
- */
-public class FilesystemManager {
- private static FilesystemManager _inst = null;
- private Set _loaders = null;
-
- private FilesystemManager() {
- _loaders = new HashSet();
-
- // Please pretend that this metadata, i.e., the file extension, fully-qualified
- // class name of the helper, and fully-qualified class name of the validator,
- // was loaded generically somehow. In practice, this information could be stored
- // in .xml files, in a configuration file, etc., that the framework would read
- // to find the installed validators.
- try {
- _loaders.add(new FilesystemLoader(new String[]{".properties"}, loadHelper("org.eclipse.jst.validation.sample.filesystemimpl.FilesystemPropertiesHelper"), loadValidator("org.eclipse.jst.validation.sample.PropertiesValidator"))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- catch(IllegalArgumentException exc) {
- exc.printStackTrace();
- }
- catch(ClassNotFoundException exc) {
- exc.printStackTrace();
- }
- catch(IllegalAccessException exc) {
- exc.printStackTrace();
- }
- catch(InstantiationException exc) {
- exc.printStackTrace();
- }
- }
-
- /**
- * Given a fully-qualified name of a helper, return an instance of it.
- */
- private static IFilesystemHelper loadHelper(String className) throws IllegalArgumentException, ClassNotFoundException, IllegalAccessException, InstantiationException {
- return (IFilesystemHelper)loadClass(className);
- }
-
- /**
- * Given a fully-qualified name of a validator, return an instance of it.
- */
- private static IValidator loadValidator(String className) throws IllegalArgumentException, ClassNotFoundException, IllegalAccessException, InstantiationException {
- return (IValidator)loadClass(className);
- }
-
- /**
- * Return an instance of the class identified by the className parameter,
- * which contains the fully-qualified class name of the class.
- */
- private static Object loadClass(String className) throws IllegalArgumentException, ClassNotFoundException, IllegalAccessException, InstantiationException {
- if(className == null) {
- throw new IllegalArgumentException("loadClass argument must not be null"); //$NON-NLS-1$
- }
-
- Class clazz = Class.forName(className);
- return clazz.newInstance();
- }
-
- /**
- * Return the FilesystemManager singleton.
- */
- public static FilesystemManager getManager() {
- if(_inst == null) {
- _inst = new FilesystemManager();
- }
- return _inst;
- }
-
- /**
- * Given an array of file names, return an array of IFileDelta
- * instances to pass to the validator instance.
- */
- public IFileDelta[] getFileDeltas(String[] fileNames) {
- if((fileNames == null) || (fileNames.length == 0)) {
- return null;
- }
-
- FileDelta[] files = new FileDelta[fileNames.length];
- for(int i=0; i<fileNames.length; i++) {
- files[i] = new FileDelta(fileNames[i], IFileDelta.CHANGED);
- }
- return files;
- }
-
- /**
- * Given an array of IFileDelta instances, return an array
- * of the IValidator instances, with their associated IValidationContext instances,
- * that validate these particular delta instances.
- */
- public FilesystemLoader[] getLoaders(IFileDelta[] deltas) {
- if(deltas == null) {
- return getAllLoaders();
- }
-
- Set loaders = new HashSet();
- for(int i=0; i<deltas.length; i++) {
- FilesystemLoader[] loaderArray = getLoadersFor(deltas[i]);
- if(loaderArray != null) {
- for(int j=0; j<loaderArray.length; j++) {
- loaders.add(loaderArray[j]);
- }
- }
- }
-
- FilesystemLoader[] result = new FilesystemLoader[loaders.size()];
- loaders.toArray(result);
- return result;
- }
-
- /**
- * Given an IValidator instance, return the IValidationContext instance that the
- * IValidator uses to load information from the filesystem validation
- * framework environment.
- */
- public IFilesystemHelper getHelper(IValidator validator) {
- if(validator == null) {
- return null;
- }
-
- Iterator iterator = _loaders.iterator();
- while(iterator.hasNext()) {
- FilesystemLoader loader = (FilesystemLoader)iterator.next();
- if(validator.equals(loader.getValidator())) {
- return loader.getHelper();
- }
- }
-
- return null;
- }
-
- /**
- * Given the fully-qualified name of the validator, return the IValidator instance.
- * null will be returned if the IValidator cannot be found.
- */
- public IValidator getValidator(String validatorClassName) {
- if(validatorClassName == null) {
- return null;
- }
-
- Iterator iterator = _loaders.iterator();
- while(iterator.hasNext()) {
- FilesystemLoader loader = (FilesystemLoader)iterator.next();
- if(validatorClassName.equals(loader.getValidator().getClass().getName())) {
- return loader.getValidator();
- }
- }
-
- return null;
- }
-
- /**
- * Return an array of all FilesystemLoader instances. Each loader has
- * one IValidator and one IValidationContext.
- */
- public FilesystemLoader[] getAllLoaders() {
- FilesystemLoader[] result = new FilesystemLoader[_loaders.size()];
- _loaders.toArray(result);
- return result;
- }
-
- /**
- * Given a file name, return the loader which contains the validator & helper
- * which can validate that file, if one exists.
- */
- public FilesystemLoader[] getLoadersFor(IFileDelta delta) {
- Iterator iterator = _loaders.iterator();
- FilesystemLoader[] tempLoaders = new FilesystemLoader[_loaders.size()];
- int count = 0;
- while(iterator.hasNext()) {
- FilesystemLoader loader = (FilesystemLoader)iterator.next();
- String[] fileExtensions = loader.getFileExtensions();
- if(fileExtensions == null) {
- continue;
- }
-
- for(int i=0; i<fileExtensions.length; i++) {
- if(delta.getFileName().endsWith(fileExtensions[i]) && (delta.getDeltaType() == IFileDelta.ADDED || delta.getDeltaType() == IFileDelta.CHANGED || delta.getDeltaType() == IFileDelta.DELETED)) {
- tempLoaders[count++] = loader;
- }
- }
- }
-
- FilesystemLoader[] result = new FilesystemLoader[count];
- System.arraycopy(tempLoaders, 0, result, 0, count);
- return result;
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FullReporter.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FullReporter.java
deleted file mode 100644
index 1959b2a5..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/FullReporter.java
+++ /dev/null
@@ -1,92 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.List;
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This reporter is used when full validation is needed. It doesn't cache
- * anything, so it's faster than the IncrementalReporter.
- */
-public class FullReporter implements IReporter {
- public FullReporter() {
- super();
- }
-
- /**
- * @see IReporter#addMessage(IValidator, IMessage)
- */
- public void addMessage(IValidator validator, IMessage message) {
- if (message == null) {
- return;
- }
-
- System.out.println(MessageManager.formatMessage(validator, message));
- }
-
- /**
- * @see IReporter#displaySubtask(IValidator, IMessage)
- */
- public void displaySubtask(IValidator validator, IMessage message) {
- // Flush the message to the user immediately.
- System.err.println(message.getText());
- }
-
- /**
- * @see IReporter#getMessages()
- */
- public List getMessages() {
- // this reporter does not support message access
- return null;
- }
-
- /**
- * @see IReporter#isCancelled()
- */
- public boolean isCancelled() {
- // to make things easy, do not allow the user to cancel validation.
- return false;
- }
-
- /**
- * @see IReporter#removeAllMessages(IValidator)
- */
- public void removeAllMessages(IValidator validator) {
- // since no messages are stored, there's nothing to remove
- }
-
- /**
- * @see IReporter#removeAllMessages(IValidator, Object)
- */
- public void removeAllMessages(IValidator validator, Object object) {
- // since no messages are stored, there's nothing to remove
- }
-
- /**
- * @see IReporter#removeMessageSubset(IValidator, Object, String)
- */
- public void removeMessageSubset(IValidator validator, Object obj, String groupName) {
- // Since this reporter doesn't store messages, there is no removal of any messages
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/IFilesystemHelper.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/IFilesystemHelper.java
deleted file mode 100644
index 9938513a..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/IFilesystemHelper.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IValidationContext;
-
-/**
- * To integrate a validator into this framework, an implementation of this
- * IValidationContext must be provided.
- */
-public interface IFilesystemHelper extends IValidationContext {
- /**
- * Return the fully-qualified name of the file which the IMessage is reported against.
- */
- public String getFileName(IMessage message);
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/IncrementalReporter.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/IncrementalReporter.java
deleted file mode 100644
index e8e3dba4..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/IncrementalReporter.java
+++ /dev/null
@@ -1,168 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class is the file system specific implementation of an incremental IReporter.
- * It caches validation messages, so that messages can both be added and deleted.
- */
-public class IncrementalReporter implements IReporter {
-
- public IncrementalReporter() {
- super();
- }
-
- /**
- * @see IReporter#addMessage(IValidator, IMessage)
- */
- public void addMessage(IValidator validator, IMessage message) {
- if (validator == null) {
- return;
- }
-
- if (message == null) {
- return;
- }
-
- ValidatorMessages vm = MessageManager.getManager().getMessages(validator);
- if (vm != null) {
- vm.addValidationMessage(message);
- }
- }
-
- /**
- * @see IReporter#displaySubtask(IValidator, IMessage)
- */
- public void displaySubtask(IValidator validator, IMessage message) {
- // Flush the message to the user immediately.
- System.err.println(message.getText());
- }
-
- /**
- * @see IReporter#getMessages()
- */
- public List getMessages() {
- return null;
- }
-
- /**
- * Return a Map of String fully-qualified validator class names,
- * with a value of Collection, and the Collection contains the
- * MessageMetaData reported by the validator, of the given severity.
- */
- public Map getMessages(int messageType) {
- return MessageManager.getManager().getMessages(messageType);
- }
-
- /**
- * @see IReporter#isCancelled()
- */
- public boolean isCancelled() {
- // For simplicity, never allow cancellation.
- // In a production system, this method might query another object to find out its cancellation status.
- return false;
- }
-
- /**
- * @see IReporter#removeAllMessages(IValidator)
- */
- public void removeAllMessages(IValidator validator) {
- if (validator == null) {
- return;
- }
- MessageManager.getManager().removeAllMessages(validator);
- }
-
- /**
- * @see IReporter#removeAllMessages(IValidator, Object)
- */
- public void removeAllMessages(IValidator validator, Object object) {
- if (validator == null) {
- return;
- }
-
-
- MessageManager.getManager().removeAllMessages(validator, object);
- }
-
- /**
- * @see IReporter#removeMessageSubset(IValidator, Object, String)
- */
- public void removeMessageSubset(IValidator validator, Object obj, String groupName) {
- // implement later
- }
-
- /**
- * Display a formatted list of all of the problems found while
- * validating the file.
- */
- public void report() {
- System.out.println();
- System.out.println("Error messages"); //$NON-NLS-1$
- Map messages = getMessages(IMessage.HIGH_SEVERITY);
- report(messages);
-
- System.out.println();
- System.out.println("Warning messages"); //$NON-NLS-1$
- messages = getMessages(IMessage.NORMAL_SEVERITY);
- report(messages);
-
- System.out.println();
- System.out.println("Information messages"); //$NON-NLS-1$
- messages = getMessages(IMessage.LOW_SEVERITY);
- report(messages);
- }
-
- /**
- * @see IReporter#report(Map)
- */
- protected static void report(Map messages) {
- if(messages.size() == 0) {
- return;
- }
-
- Iterator iterator = messages.keySet().iterator();
- while(iterator.hasNext()) {
- String validatorClassName = (String)iterator.next();
- IValidator validator = FilesystemManager.getManager().getValidator(validatorClassName);
- IFilesystemHelper helper = FilesystemManager.getManager().getHelper(validator);
- List mssgList = (List)messages.get(validator);
- if(mssgList == null) {
- continue;
- }
-
- Collections.sort(mssgList, MessageManager.getManager().getMessageComparator(helper));
-
- for(int i=0; i<mssgList.size(); i++) {
- IMessage mssg = (IMessage)mssgList.get(i);
- System.out.println(MessageManager.formatMessage(validator, mssg));
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/MessageManager.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/MessageManager.java
deleted file mode 100644
index 2db1c9eb..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/MessageManager.java
+++ /dev/null
@@ -1,254 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class manages the validation messages for each validator. Each validator's
- * messages can be retrieved by using the validator's unique name as a key into the
- * table. (i.e., call getMessages with the validator's unique name as the parameter.)
- */
-public class MessageManager {
- private static MessageManager _singleton = null;
- private Comparator _comparator = null;
-
- private Map _validationMessages = null;
-
- private MessageManager() {
- super();
-
- _validationMessages = new HashMap(10);
- }
-
- /**
- * Return the MessageManager singleton.
- */
- public static MessageManager getManager() {
- if (_singleton == null) {
- _singleton = new MessageManager();
- }
- return _singleton;
- }
-
- /**
- * Return a map of all messages of the given severity. The key of the map
- * is the IValidator, the value of the IValidator is the List of IMessage
- * instances of the given severity.
- */
- public Map getMessages(int messageTypes) {
- Map messages = new HashMap();
-
- Iterator iterator = _validationMessages.values().iterator();
- while(iterator.hasNext()) {
- ValidatorMessages mssg = (ValidatorMessages) iterator.next();
-
- messages.put(mssg.getValidator().getClass().getName(), mssg.getMessages(messageTypes));
- }
- return messages;
- }
-
- /**
- * This method returns the ValidationMessage owned by the identified validator,
- * if one exists. If one doesn't exist, it is created & registered, and then
- * returned.
- */
- public ValidatorMessages getMessages(IValidator validator) {
- if (validator == null) {
- return null;
- }
-
- ValidatorMessages message = (ValidatorMessages) _validationMessages.get(validator.getClass().getName());
- if (message == null) {
- // if it doesn't exist, create it.
- message = new ValidatorMessages(validator);
- _validationMessages.put(validator.getClass().getName(), message);
- }
- return message;
- }
-
- /**
- * Remove all messages owned by the identified validator.
- */
- public void removeAllMessages(IValidator validator) {
- if (validator == null) {
- return;
- }
-
- _validationMessages.remove(validator.getClass().getName());
- }
-
- /**
- * Remove all messages, owned by the identified validator, reported
- * against the given target object.
- */
- public void removeAllMessages(IValidator validator, Object object) {
- if (validator == null) {
- return;
- }
-
- ValidatorMessages message = getMessages(validator);
- if (message != null) {
- message.removeAllMessages(object);
- }
- }
-
- /**
- * To support removal of a subset of validation messages, an IValidator
- * may assign group names to IMessages. An IMessage subset will be identified
- * by the name of its group. Default (null) means no group. This method will
- * remove only the IMessage's that are in the group identified by groupName.
- */
- public void removeMessageSubset(IValidator validator, Object object, String groupName) {
- if (validator == null) {
- return;
- }
-
- ValidatorMessages message = getMessages(validator);
- if (message != null) {
- message.removeAllMessages(object);
- }
- }
-
- /**
- * Return the IMessage as a String suitable for displaying to the user.
- */
- public static String formatMessage(IValidator validator, IMessage message) {
- if (message == null) {
- return ""; //$NON-NLS-1$
- }
-
- int severity = message.getSeverity();
- Object object = message.getTargetObject();
- StringBuffer formattedMessage = new StringBuffer();
- switch (severity) {
- case (IMessage.HIGH_SEVERITY) :
- {
- formattedMessage.append("Error: "); //$NON-NLS-1$
- break;
- }
-
- case (IMessage.LOW_SEVERITY) :
- {
- formattedMessage.append("Information: "); //$NON-NLS-1$
- break;
- }
-
- case (IMessage.NORMAL_SEVERITY) :
- default :
- {
- formattedMessage.append("Warning: "); //$NON-NLS-1$
- break;
- }
- }
-
- formattedMessage.append(message.getText());
-
- if (object != null) {
- String fileName = FilesystemManager.getManager().getHelper(validator).getFileName(message);
- int lineNumber = message.getLineNumber();
-
- if((fileName != null) || (lineNumber != IMessage.LINENO_UNSET)) {
- formattedMessage.append("["); //$NON-NLS-1$
- if(fileName != null) {
- formattedMessage.append(fileName);
- }
- if(lineNumber != IMessage.LINENO_UNSET) {
- formattedMessage.append(" line number: "); //$NON-NLS-1$
- formattedMessage.append(String.valueOf(lineNumber));
- }
- formattedMessage.append("] "); //$NON-NLS-1$
- }
- }
-
- return formattedMessage.toString();
- }
-
- /**
- * This Comparator is used to sort messages first by file name, then by line number.
- */
- public Comparator getMessageComparator(final IFilesystemHelper helper) {
- if(_comparator == null) {
- _comparator = new Comparator() {
- protected int compare(String a, String b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- return a.compareTo(b);
- }
-
- protected int compare(int a, int b) {
- if((a == IMessage.LINENO_UNSET) && (b == IMessage.LINENO_UNSET)) {
- return 0;
- }
- else if(a == IMessage.LINENO_UNSET) {
- return -1;
- }
- else if(b == IMessage.LINENO_UNSET) {
- return 1;
- }
-
- return (a - b);
- }
-
- public int compare(Object a, Object b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- IMessage aMssg = (IMessage)a;
- IMessage bMssg = (IMessage)b;
-
- // Sort by file name, then line number. Unset line numbers go to the start of the list.
- String aFileName = helper.getFileName(aMssg);
- String bFileName = helper.getFileName(bMssg);
- int result = compare(aFileName, bFileName);
- if(result != 0) {
- return result;
- }
-
- int aLineNumber = aMssg.getLineNumber();
- int bLineNumber = bMssg.getLineNumber();
- return compare(aLineNumber, bLineNumber);
- }
- };
- }
- return _comparator;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/ValidatorMessages.java b/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/ValidatorMessages.java
deleted file mode 100644
index f316df09..00000000
--- a/tests/org.eclipse.jst.validation.sample/filesystemFWK/org/eclipse/jst/validation/sample/filesystem/ValidatorMessages.java
+++ /dev/null
@@ -1,171 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystem;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class manages messages for one validator. Each validator
- * can store three types of messages: error (SeverityEnum.HIGH_SEVERITY),
- * warning (SeverityEnum.NORMAL_SEVERITY), and info (SeverityEnum.LOW_SEVERITY).
- * Each message is associated with an Object (for incremental validation).
- * If a message does not apply to a particular Object, the default Object
- * is used.
- *
- * Each Object is associated with either 0, 1, or >1 messages.
- */
-public class ValidatorMessages {
- private Map _messages = null;
- private IValidator _validator = null;
- protected static final Object DEFAULT_OBJECT = new Object();
-
- public ValidatorMessages(IValidator validator) {
- _messages = new HashMap();
- _validator = validator;
- }
-
- /**
- * Return the validator that owns these messages.
- */
- public IValidator getValidator() {
- return _validator;
- }
-
- /**
- * Add an IMessage to the default group.
- */
- public void addValidationMessage(IMessage message) {
- addValidationMessage(message, null);
- }
-
- /**
- * Add an IMessage to the named group.
- */
- public void addValidationMessage(IMessage message, String groupName) {
- if (message == null) {
- return;
- }
-
- if (message.getTargetObject() == null) {
- // If object is null, the error message does not apply to a particular object.
- //
- // This value might be used if, for example, the validator experiences an internal, unrecoverable error.
- // You need to let the user know that validation terminated abnormally, but a list
- // of the validation which proceeded normally can help to narrow down what part of the
- // code caused a problem.
- //
- // Or it could be something generic, e.g. it applies to a .jar file, instead of a file in the .jar.
- message.setTargetObject(getDefaultObject());
- }
-
- if(groupName != null) {
- message.setGroupName(groupName);
- }
-
- List list = (List) _messages.get(message.getTargetObject());
- if (list == null) {
- list = new ArrayList();
- }
- list.add(message);
- _messages.put(message.getTargetObject(), list);
- }
-
- /**
- * If the IMessage does not have a target object, the object
- * returned by this method is used as the key in the Map.
- */
- public static Object getDefaultObject() {
- return DEFAULT_OBJECT;
- }
-
- /**
- * Return all messages whose severity matches the messageTypes severity.
- */
- public List getMessages(int messageTypes) {
- List messages = new ArrayList();
-
- Iterator iterator = _messages.values().iterator();
- while (iterator.hasNext()) {
- List list = (List) iterator.next();
-
- Object[] listContents = list.toArray();
- for (int i = 0; i < listContents.length; i++) {
- IMessage message = (IMessage) listContents[i];
-
- if ((messageTypes & message.getSeverity()) != 0) {
- messages.add(message);
- }
- }
- }
- return messages;
- }
-
- /**
- * Remove all messages that apply to the given object. If object is
- * null, the messages owned by the default object are removed.
- */
- public void removeAllMessages(Object object) {
- if (object == null) {
- object = getDefaultObject();
- }
-
- _messages.remove(object);
- }
-
- /**
- * Remove all messages that apply to the given object which are in
- * the named group. If Object is null, the default object is used.
- */
- public void removeMessageSubset(Object object, String groupName) {
- if (groupName == null) {
- removeAllMessages(object);
- return;
- }
-
- if (object == null) {
- object = getDefaultObject();
- }
-
- List list = (List) _messages.get(object);
- if (list == null) {
- return;
- }
-
- if (list.size() == 0) {
- return;
- }
-
- Iterator iterator = list.iterator();
- while (iterator.hasNext()) {
- IMessage msg = (IMessage) iterator.next();
- String msgGroupName = msg.getGroupName();
- if (groupName.equals(msgGroupName)) {
- list.remove(msg);
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/plugin.properties b/tests/org.eclipse.jst.validation.sample/plugin.properties
deleted file mode 100644
index ae36f62e..00000000
--- a/tests/org.eclipse.jst.validation.sample/plugin.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-#Properties file for org.eclipse.jst.validation.sample
-Bundle-Name.0 = Properties Validator \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/plugin.xml b/tests/org.eclipse.jst.validation.sample/plugin.xml
deleted file mode 100644
index 02e2e2b9..00000000
--- a/tests/org.eclipse.jst.validation.sample/plugin.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
-
-<!--=======================================-->
-<!-- Properties Validator Contributions -->
-<!--=======================================-->
- <extension
- id="PropertiesValidator"
- name="Properties Validator"
- point="org.eclipse.wst.validation.validator">
- <validator>
- <projectNature
- id="org.eclipse.jdt.core.javanature">
- </projectNature>
- <filter
- objectClass="org.eclipse.core.resources.IFile"
- nameFilter="*.properties"
- action="add, change">
- </filter>
- <run
- enabled="false"
- async="false"
- class="org.eclipse.jst.validation.sample.PropertiesValidator">
- </run>
- <helper
- class="org.eclipse.jst.validation.sample.workbenchimpl.PropertiesHelper">
- </helper>
- </validator>
- </extension>
-<!--=======================================-->
-<!-- Validation Documentation -->
-<!--=======================================-->
-<!-- -->
-<!-- Validator Developer's Guide -->
-<!-- -->
-<!--
- <extension
- point="org.eclipse.help.toc">
- <toc
- file="doc/developerGuide/toc.xml"
- primary="true">
- </toc>
- </extension>
--->
-<!-- -->
-<!-- Validation Guide -->
-<!-- -->
-<!--
- <extension
- point="org.eclipse.help.toc">
- <toc
- file="doc/guide/toc.xml"
- primary="true">
- </toc>
- </extension>
--->
-
-</plugin>
diff --git a/tests/org.eclipse.jst.validation.sample/prop.bat b/tests/org.eclipse.jst.validation.sample/prop.bat
deleted file mode 100644
index 80bf9407..00000000
--- a/tests/org.eclipse.jst.validation.sample/prop.bat
+++ /dev/null
@@ -1,45 +0,0 @@
-@echo off
-REM Licensed Material - Property of IBM
-REM (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
-REM US Government Users Restricted Rights - Use, duplication or disclosure
-REM restricted by GSA ADP Schedule Contract with IBM Corp.
-REM
-REM DISCLAIMER OF WARRANTIES.
-REM The following [enclosed] code is sample code created by IBM
-REM Corporation. This sample code is not part of any standard or IBM
-REM product and is provided to you solely for the purpose of assisting
-REM you in the development of your applications. The code is provided
-REM "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
-REM NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-REM FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
-REM THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
-REM for any damages arising out of your use of the sample code, even
-REM if it has been advised of the possibility of such damages.
-REM
-REM This batch file fires off the property file parse or comparison.
-REM
-setlocal
-
-if "%JAVA_HOME%" EQU "" goto NO_JAVA
-
-set CLASSPATH=%CLASSPATH%;..\com.ibm.etools.validation.core_5.1.0\runtime\common.jar
-set CLASSPATH=%CLASSPATH%;.\runtime\propertiesValidator.jar
-if "%1" == "" goto syntax
-
-%JAVA_HOME%\bin\java com.ibm.etools.parser.Main %1 %2 %3
-goto :end
-
-:NO_JAVA
-echo.
-echo The JAVA_HOME environment variable must be set to the JRE directory.
-echo e.g., set JAVA_HOME=C:\JRE
-echo where JRE has a subdirectory named "bin"
-echo.
-goto :end
-
-:syntax
-%JAVA_HOME%\bin\java com.ibm.etools.parser.Main
-
-:end
-endlocal
-@echo on \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValFS/org/eclipse/jst/validation/sample/filesystemimpl/FilesystemPropertiesHelper.java b/tests/org.eclipse.jst.validation.sample/propertiesValFS/org/eclipse/jst/validation/sample/filesystemimpl/FilesystemPropertiesHelper.java
deleted file mode 100644
index 32bbfb37..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValFS/org/eclipse/jst/validation/sample/filesystemimpl/FilesystemPropertiesHelper.java
+++ /dev/null
@@ -1,203 +0,0 @@
-package org.eclipse.jst.validation.sample.filesystemimpl;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
-import java.io.LineNumberReader;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import org.eclipse.jst.validation.sample.PModelEnum;
-import org.eclipse.jst.validation.sample.filesystem.IFilesystemHelper;
-import org.eclipse.jst.validation.sample.parser.APropertyFile;
-import org.eclipse.jst.validation.sample.parser.PropertyLine;
-import org.eclipse.wst.validation.internal.core.FileDelta;
-import org.eclipse.wst.validation.internal.core.IFileDelta;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-
-/**
- * This class is the IValidationContext implementation, used by the PropertiesValidator,
- * when the validator is run in the filesystem validation framework.
- */
-public class FilesystemPropertiesHelper implements IFilesystemHelper {
- public FilesystemPropertiesHelper() {
- super();
- }
-
- /**
- * @see com.ibm.etools.validation.core.IValidationContext#loadModel(String)
- */
- public Object loadModel(String symbolicName) {
- return loadModel(symbolicName, null);
- }
-
- /**
- * @see com.ibm.etools.validation.core.IValidationContext#loadModel(String, Object[])
- */
- public Object loadModel(String symbolicName, Object[] parm) {
- if ((symbolicName == null) || (symbolicName.equals(""))) { //$NON-NLS-1$
- return null;
- }
-
- if (symbolicName.equals(PModelEnum.LINEINPUTREADER) && (parm != null) && (parm.length == 1) && (parm[0] instanceof String)) {
- return loadLineNumberReader((String) parm[0]);
- }
- else if (symbolicName.equals(PModelEnum.RELEASE_LINEINPUTREADER) && (parm != null) && (parm.length == 1) && (parm[0] instanceof LineNumberReader)) {
- return releaseLineNumberReader((LineNumberReader) parm[0]);
- }
- else if (symbolicName.equals(PModelEnum.ALL_PROPERTIES_FILES)) {
- return loadAllPropertiesFiles();
- }
- else if(symbolicName.equals(PModelEnum.FILTER)) {
- // Because this environment does not copy resources into a "bin" directory,
- // the input is already filtered.
- return parm;
- }
- else {
- return null;
- }
- }
-
- /**
- * Given the file name of an existing .properties file, return
- * the LineNumberReader that will read the file.
- */
- protected Object loadLineNumberReader(String fileName) {
- File propertyFile = new File(fileName);
- if (!propertyFile.exists() || !propertyFile.isFile()) {
- return null;
- }
-
- FileReader input = null;
- try {
- input = new FileReader(propertyFile);
- }
- catch (FileNotFoundException e) {
- return null;
- }
-
- // Because we want to read in a line at a time from the file, convert the FileReader to a LineReader
- LineNumberReader lineInput = new LineNumberReader(input);
- return lineInput;
- }
-
- /**
- * This method doesn't load anything; it releases the resources allocated
- * by the loadLineNumberReader method. Its result will never be used, so always
- * return null.
- */
- protected Object releaseLineNumberReader(LineNumberReader reader) {
- if (reader == null) {
- return null;
- }
-
- try {
- reader.close();
- }
- catch (IOException e) {
- }
-
- return null;
- }
-
- /**
- * When the validator is told to perform a full validation, this
- * method returns an IFileDelta[], with one IFileDelta for every
- * .properties file in the current directory and its subdirectories.
- */
- protected Object loadAllPropertiesFiles() {
- String pwd = System.getProperty("user.dir"); //$NON-NLS-1$
- File pwdDir = new File(pwd);
- if (!pwdDir.exists()) {
- return null;
- }
-
- if (!pwdDir.isDirectory()) {
- return null;
- }
-
- Set tempSet = new HashSet();
- traverseDirectories(pwdDir, tempSet);
-
- IFileDelta[] result = new IFileDelta[tempSet.size()];
- Iterator iterator = tempSet.iterator();
- int count = 0;
- while(iterator.hasNext()) {
- File file = (File)iterator.next();
- result[count++] = new FileDelta(file.getAbsolutePath(), IFileDelta.CHANGED);
- }
- tempSet.clear();
- tempSet = null;
- iterator = null;
- return result;
- }
-
- /**
- * Traverse the directory, looking for .properties files, and if a
- * .properties file is found then add it to the Set.
- */
- protected void traverseDirectories(File directoryToSearch, Set result) {
- if (directoryToSearch == null) {
- return;
- }
-
- if (directoryToSearch.isDirectory()) {
- // Traverse into this directory's children.
- String[] children = directoryToSearch.list();
- for (int i = 0; i < children.length; i++) {
- File child = new File(directoryToSearch, children[i]);
- traverseDirectories(child, result);
- }
- }
- else if(directoryToSearch.isFile()) {
- String fileName = directoryToSearch.getName();
- if((fileName != null) && fileName.endsWith("properties")) { //$NON-NLS-1$
- result.add(directoryToSearch);
- }
- }
- }
-
- /**
- * Given an IMessage, return the file name of the .properties file that
- * the message was reported against.
- */
- public String getFileName(IMessage message) {
- Object object = message.getTargetObject();
- if(object instanceof PropertyLine) {
- PropertyLine line = (PropertyLine)object;
- APropertyFile pFile = line.getFile();
- return pFile.getQualifiedFileName(); // a ValidationPropertyFile returns the file name as its qualified name
- }
- else if(object instanceof APropertyFile) {
- APropertyFile pFile = (APropertyFile)object;
- return pFile.getQualifiedFileName(); // a ValidationPropertyFile returns the file name as its qualified name
- }
- return ""; //$NON-NLS-1$
- }
-
- public String[] getURIs() {
- // TODO Auto-generated method stub
- return null;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java b/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java
deleted file mode 100644
index f1da946d..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PluginPropertyFile.java
+++ /dev/null
@@ -1,239 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.validation.sample.workbenchimpl;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.LineNumberReader;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.util.Locale;
-import java.util.logging.Level;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.IPluginRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.sample.parser.APropertyFile;
-import org.eclipse.jst.validation.sample.parser.MessageMetaData;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-
-/**
- * A PluginPropertyFile represents a resource bundle that is exported by a plugin.
- */
-public class PluginPropertyFile extends APropertyFile {
- private String _bundleName = null;
- private String _pluginId = null;
- private String _langVariant = null; // e.g., en_US vs en
- private ClassLoader _classLoader = null; // the ClassLoader used to load the bundle
-
-
- /**
- * Both the pluginId and the bundleName must not be null, must
- * refer to an existing plugin, and must refer to an existing bundle
- * exported by that plugin.
- */
- public PluginPropertyFile(String pluginId, String bundleName) {
- _pluginId = pluginId;
- _bundleName = bundleName;
-
- ClassLoader cl = null;
- InputStream inS = null;
- Plugin plugin = getPlugin(pluginId);
- if(bundleName.equals("plugin")) { //$NON-NLS-1$
- // Try loading it from the Plugin parent (a "plugin.properties")
- cl = getPluginPropertiesClassLoader(plugin);
- }
- else {
- cl = plugin.getDescriptor().getPluginClassLoader();
- }
- inS = getInputStream(cl, bundleName);
-
- InputStreamReader inR = new InputStreamReader(inS);
- LineNumberReader lineR = new LineNumberReader(inR);
- parseFile(lineR); // populate this property file
- try {
- lineR.close();
- inR.close();
- }
- catch(IOException exc) {
- Logger logger = PropertiesValidatorPlugin.getPlugin().getMsgLogger();;
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- }
-
- try {
- if(inS != null) {
- inS.close();
- }
- }
- catch(IOException exc) {
- Logger logger = PropertiesValidatorPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- }
-
- _classLoader = cl; // store the ClassLoader which was used to load the bundle
- }
-
- private InputStream getInputStream(ClassLoader cl, String bundleName) {
- Locale l = Locale.getDefault();
- String language = l.getLanguage();
- String country = l.getCountry();
- String variant = l.getVariant();
-
- String lang = null;
- String lang_country = null;
- String lang_country_variant = null;
- if((language != null) && !(language.equals(""))) { //$NON-NLS-1$
- lang = "_" + language; //$NON-NLS-1$
- }
-
- if((country != null) && !(country.equals(""))) { //$NON-NLS-1$
- lang_country = lang + "_" + country; //$NON-NLS-1$
- }
-
- if((variant != null) && !(variant.equals(""))) { //$NON-NLS-1$
- lang_country_variant = lang_country + "_" + variant; //$NON-NLS-1$
- }
-
- InputStream inS = null;
- if(lang_country_variant != null) {
- inS = getResourceAsStream(cl, bundleName, lang_country_variant);
- if(inS != null) {
- _langVariant = lang_country_variant;
- return inS;
- }
- }
-
- if(lang_country != null) {
- inS = getResourceAsStream(cl, bundleName, lang_country);
- if(inS != null) {
- _langVariant = lang_country;
- return inS;
- }
- }
-
- if(lang != null) {
- inS = getResourceAsStream(cl, bundleName, lang);
- if(inS != null) {
- _langVariant = lang;
- return inS;
- }
- }
-
- if(Locale.getDefault().equals(Locale.US)) {
- // Running the TVT plugin in en_US mode, so return the default .properties file.
- inS = getResourceAsStream(cl, bundleName, ""); //$NON-NLS-1$
- if(inS != null) {
- _langVariant = ""; //$NON-NLS-1$
- return inS;
- }
- }
-
- return null;
- }
-
- private final static InputStream getResourceAsStream(final ClassLoader cl, final String bundleName, final String language) {
- String resName = bundleName.replace('.', '/') + language + ".properties"; //$NON-NLS-1$
- return cl.getResourceAsStream(resName);
- }
-
- private static ClassLoader getPluginPropertiesClassLoader(Plugin p) {
- // Copied from PluginDescriptor.java's getResourceBundle method.
- URL[] cp = ((URLClassLoader)p.getDescriptor().getPluginClassLoader()).getURLs();
- URL[] newcp = new URL[cp.length+1];
- for (int i=0; i<cp.length; i++) newcp[i+1] = cp[i];
- try {
- newcp[0] = Platform.resolve(p.getBundle().getEntry("/")); //$NON-NLS-1$ // always try to resolve URLs used in loaders
- } catch(IOException e) {
- newcp[0] = p.getBundle().getEntry("/"); //$NON-NLS-1$
- }
- ClassLoader resourceLoader = new URLClassLoader(newcp, null);
- return resourceLoader;
- }
-
- private static Plugin getPlugin(String pluginId) {
- if (pluginId == null) {
- return null;
- }
-
- IPluginRegistry registry = Platform.getPluginRegistry();
- IPluginDescriptor pluginDesc = registry.getPluginDescriptor(pluginId);
- if(pluginDesc == null) {
- return null;
- }
-
- try {
- return pluginDesc.getPlugin();
- }
- catch(CoreException exc) {
- Logger logger = PropertiesValidatorPlugin.getPlugin().getMsgLogger();;
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- return null;
- }
-
- }
-
-
- /*
- * @see APropertyFile#report(String)
- */
- public void report(String str) {
- addParseWarning(new MessageMetaData(str));
- }
-
- public void report(IMessage message) {
- MessageMetaData mmd = new MessageMetaData(message.getBundleName(), message.getSeverity(), message.getId(), message.getParams(), message.getTargetObject(), message.getLineNumber(), message.getOffset(), message.getLength());
- addParseWarning(mmd);
- }
-
- public void report(MessageMetaData mmd) {
- addParseWarning(mmd);
- }
-
- public void addParseWarning(IMessage message) {
- MessageMetaData mmd = new MessageMetaData(message.getBundleName(), message.getSeverity(), message.getId(), message.getParams(), message.getTargetObject(), message.getLineNumber(), message.getOffset(), message.getLength());
- addParseWarning(mmd);
- }
-
- public String getPluginId() {
- return _pluginId;
- }
-
- public String getBundleName() {
- return _bundleName;
- }
-
- public String getQualifiedFileName() {
- StringBuffer buffer = new StringBuffer(getPluginId());
- buffer.append("::"); //$NON-NLS-1$
- buffer.append(getBundleName());
- buffer.append(_langVariant);
- return buffer.toString();
- }
-
- public String getLangVariant() {
- return _langVariant;
- }
-
- public ClassLoader getClassLoader() {
- return _classLoader;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PropertiesHelper.java b/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PropertiesHelper.java
deleted file mode 100644
index f3fa8aa9..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PropertiesHelper.java
+++ /dev/null
@@ -1,234 +0,0 @@
-package org.eclipse.jst.validation.sample.workbenchimpl;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.LineNumberReader;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceVisitor;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.sample.PModelEnum;
-import org.eclipse.jst.validation.sample.parser.APropertyFile;
-import org.eclipse.jst.validation.sample.parser.PropertyLine;
-import org.eclipse.wst.validation.internal.core.IFileDelta;
-import org.eclipse.wst.validation.internal.operations.WorkbenchContext;
-import org.eclipse.wst.validation.internal.operations.WorkbenchFileDelta;
-
-/**
- * This class implements the WebSphere Studio IValidationContext for the
- * Properties Validator.
- */
-public class PropertiesHelper extends WorkbenchContext {
- public PropertiesHelper() {
- super();
-
- registerModel(PModelEnum.LINEINPUTREADER, "loadLineNumberReader", new Class[]{java.lang.String.class}); //$NON-NLS-1$
- registerModel(PModelEnum.RELEASE_LINEINPUTREADER, "releaseLineNumberReader", new Class[]{java.io.LineNumberReader.class}); //$NON-NLS-1$
- registerModel(PModelEnum.ALL_PROPERTIES_FILES, "loadAllPropertiesFiles"); //$NON-NLS-1$
- registerModel(PModelEnum.MSGLOGGER, "getMsgLogger"); //$NON-NLS-1$
- registerModel(PModelEnum.FILTER, "filter", new Class[]{IFileDelta[].class}); //$NON-NLS-1$
- }
-
- /**
- * @see com.ibm.etools.validate.IWorkbenchContext#getTargetObjectName(Object)
- */
- public String getTargetObjectName(Object object) {
- return null;
- }
-
- /**
- * @see com.ibm.etools.validate.IWorkbenchContext#getResource(Object)
- */
- public IResource getResource(Object object) {
- IFile file = null;
- if(object instanceof PropertyLine) {
- PropertyLine line = (PropertyLine)object;
- APropertyFile pFile = line.getFile();
- String fileName = pFile.getQualifiedFileName(); // a ValidationPropertyFile returns the file name as its qualified name
- file = getFile(fileName);
- }
- else if(object instanceof APropertyFile) {
- APropertyFile pFile = (APropertyFile)object;
- String fileName = pFile.getQualifiedFileName(); // a ValidationPropertyFile returns the file name as its qualified name
- file = getFile(fileName);
- }
-
- if((file == null) || (!file.exists())) {
- return super.getResource(object);
- }
- return file;
- }
-
- /**
- * When a full validation is performed, this method returns an
- * IFileDelta[] containing one IFileDelta for each .properties
- * file in the IProject.
- */
- public IFileDelta[] loadAllPropertiesFiles() {
- IProject project = getProject();
-
- final Set files = new HashSet();
- IResourceVisitor visitor = new IResourceVisitor() {
- public boolean visit(IResource res) throws CoreException {
- if(!res.isAccessible()) {
- return false; // if the resource isn't accessible then neither are its children
- }
-
- if(isSrcFile(res)) { //$NON-NLS-1$
- WorkbenchFileDelta newFileDelta = new WorkbenchFileDelta(res.getFullPath().toString(), IFileDelta.CHANGED, res);
- files.add(newFileDelta);
- }
-
- return true; // visit the resource's children as well
- }
- };
-
- try {
- project.accept(visitor, IResource.DEPTH_INFINITE, true); // true means include phantom resources
- }
- catch(CoreException e) {
- Logger logger = getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(e);
- }
- }
-
- IFileDelta[] result = new IFileDelta[files.size()];
- files.toArray(result);
- return result;
- }
-
- /**
- * Return the IFile handle for the file identified by fileName.
- * null will be returned if the file does not exist.
- */
- public IFile getFile(String fileName) {
- IFile file = (IFile)ResourcesPlugin.getWorkspace().getRoot().findMember(fileName);
- return file;
- }
-
- /**
- * Given the file name of an existing .properties file, return
- * the LineNumberReader that will read the file.
- */
- public LineNumberReader loadLineNumberReader(String fileName) {
- try {
- IFile file = getFile(fileName);
- InputStream in = file.getContents();
- InputStreamReader reader = new InputStreamReader(in);
-
- // Because we want to read in a line at a time from the file, convert the InputStreamReader to a LineReader
- LineNumberReader lineInput = new LineNumberReader(reader);
- return lineInput;
- }
- catch(CoreException exc) {
- Logger logger = getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(exc);
- }
- return null;
- }
- }
-
- /**
- * This method doesn't load anything; it releases the resources allocated
- * by the loadLineNumberReader method. Its result will never be used, so always
- * return null.
- */
- public LineNumberReader releaseLineNumberReader(LineNumberReader reader) {
- if(reader == null) {
- return null;
- }
-
- try {
- reader.close();
- }
- catch (IOException exc) {
- Logger logger = getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(exc);
- }
- }
-
- return null;
- }
-
- /**
- * The MsgLogger from this method can be used to log exceptions.
- * This method will never return null.
- */
- public Logger getMsgLogger() {
- return PropertiesValidatorPlugin.getPlugin().getMsgLogger();
- }
-
- // package visibility for performance reasons (synthetic accessor method)
- boolean isSrcFile(IResource res) {
- // Want to filter out the copies in the "bin" directory.
- if(res == null) {
- return false;
- }
-
- if(!(res instanceof IFile)) {
- return false;
- }
-
- if(!"properties".equals(res.getFileExtension())) { //$NON-NLS-1$
- return false;
- }
-
- if(res.isDerived()) {
- // Created by eclipse
- return false;
- }
-
- return true;
- }
-
- public IFileDelta[] filter(IFileDelta[] changedFiles) {
- IFileDelta[] temp = new IFileDelta[changedFiles.length];
- int count = 0;
- for(int i=0; i<changedFiles.length; i++) {
- IFileDelta fd = changedFiles[i];
- IResource resource = ((WorkbenchFileDelta)fd).getResource();
- if(isSrcFile(resource)) {
- temp[count++] = fd;
- }
- }
-
- if(count == changedFiles.length) {
- return changedFiles;
- }
-
- IFileDelta[] result = new IFileDelta[count];
- System.arraycopy(temp, 0, result, 0, count);
- return result;
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PropertiesValidatorPlugin.java b/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PropertiesValidatorPlugin.java
deleted file mode 100644
index e4ba65d6..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValWB/org/eclipse/jst/validation/sample/workbenchimpl/PropertiesValidatorPlugin.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jst.validation.sample.workbenchimpl;
-
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.wst.common.frameworks.internal.WTPPlugin;
-/**
- * This class is the Plugin class identified by the com.ibm.etools.validation.core.prop's plugin.xml
- * file (i.e., the &lt;plugin <br><br>
- * class=&quot;class="com.ibm.etools.validation.core.properties.workbenchimpl.PropertiesValidatorPlugin"&quot&gt;
- */
-public class PropertiesValidatorPlugin extends WTPPlugin {
- private static PropertiesValidatorPlugin _inst = null;
- public static final String PLUGIN_ID = "org.eclipse.jst.validation.sample"; //$NON-NLS-1$
- private static Logger _logger;
- public PropertiesValidatorPlugin() {
- super();
- if (_inst == null) {
- _inst = this;
- }
- }
- public static PropertiesValidatorPlugin getPlugin() {
- return _inst;
- }
- public Logger getMsgLogger() {
- if (_logger == null)
- _logger = Logger.getLogger();
- return _logger;
- }
- /*
- * (non-Javadoc)
- *
- * @see com.ibm.wtp.common.WTPPlugin#getPluginID()
- */
- public String getPluginID() {
- return PLUGIN_ID;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/PModelEnum.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/PModelEnum.java
deleted file mode 100644
index 5616eede..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/PModelEnum.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.eclipse.jst.validation.sample;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-/**
- * This class contains the constants that uniquely identify each
- * model that the Properties Validator's helper must load. All of
- * these models must be supported by the IValidationContext implementation
- * or the helper cannot be used to support the Properties Validator.
- */
-public interface PModelEnum {
- public static final String LINEINPUTREADER = "get a LineInputReader for a .properties file"; //$NON-NLS-1$
- public static final String RELEASE_LINEINPUTREADER = "relase (close) the LineInputReader"; //$NON-NLS-1$
- public static final String ALL_PROPERTIES_FILES = "return an IFileDelta[] of all of the .properties files in the project"; //$NON-NLS-1$
- public static final String MSGLOGGER = "get the MsgLogger needed to log messages. This MsgLogger must never be null."; //$NON-NLS-1$
- public static final String FILTER = "get only the .properties files that are in src dir; filter out the .properties files that are in bin dir (i.e., don't validate the same file twice"; //$NON-NLS-1$
-
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/PropertiesValidator.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/PropertiesValidator.java
deleted file mode 100644
index 2ebfb288..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/PropertiesValidator.java
+++ /dev/null
@@ -1,107 +0,0 @@
-package org.eclipse.jst.validation.sample;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.LineNumberReader;
-import java.util.logging.Level;
-
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.sample.parser.IValidationConstants;
-import org.eclipse.wst.validation.internal.core.IFileDelta;
-import org.eclipse.wst.validation.internal.core.Message;
-import org.eclipse.wst.validation.internal.core.ValidationException;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.eclipse.wst.validation.internal.provisional.core.IValidationContext;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class checks that the .properties files has no syntax or
- * or problems. This validator can run in any validation framework
- * implementation.
- */
-public class PropertiesValidator implements IValidator {
-
- /*
- * @see IValidator#cleanup(IReporter)
- */
- public void cleanup(IReporter reporter) {
- // This validator doesn't cache anything so it doesn't need to clean anything up.
- }
-
- /*
- * @see IValidator#validate(IValidationContext, IReporter, IFileDelta[])
- */
- public void validate(IValidationContext helper, IReporter reporter) throws ValidationException {
- IFileDelta[] fileURIs = null;
- if((fileURIs == null) || (fileURIs.length == 0)) {
- fileURIs = (IFileDelta[])helper.loadModel(PModelEnum.ALL_PROPERTIES_FILES);
- }
- else {
- // Filter out the files that are in the "bin" directory.
- fileURIs = (IFileDelta[])helper.loadModel(PModelEnum.FILTER, new Object[]{helper.getURIs()});
- }
- if(fileURIs == null) {
- // Problem loading the files.
- Logger logger = (Logger)helper.loadModel(PModelEnum.MSGLOGGER);
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE,"changedFiles == null; terminating validation"); //$NON-NLS-1$
- return;
- }
- }
- String[] uris = helper.getURIs();
- for (int i = 0; i < uris.length; i++) {
- // Load the reader for the file
- LineNumberReader reader = null;
- try {
- reader = (LineNumberReader)helper.loadModel(PModelEnum.LINEINPUTREADER, new Object[]{uris[i]});
- if(reader == null) {
- // Either:
- // 1. The file doesn't exist or
- // 2. The file isn't a .properties file or
- // 3. The file can't be read
- IMessage message = new Message(IValidationConstants.BUNDLENAME, IMessage.NORMAL_SEVERITY, IValidationConstants.ABCD0090, new String[]{uris[i]});
- reporter.addMessage(this, message);
- continue;
- }
-
- // If we can get a reader then we can get a PropertyFile
- ValidatorPropertyFile propFile = new ValidatorPropertyFile(reader, uris[i], reporter, this);
- propFile.printSyntaxWarnings();
- propFile.printDuplicateMessageId();
- propFile.printDuplicateMessagePrefix();
- }
- finally {
- // Don't catch Throwable, MessageLimitException, OperationCanceledException, or ValidationException.
- // Let them travel up to the framework and the framework will log or cleanup as appropriate.
- if(reader != null) {
- // Release the reader for the file.
- // Because different validation frameworks may allocate LineNumberReaders
- // differently, don't close the reader in the validator. Instead, pass the
- // reader back to the helper, and regardless of whether the reader should
- // be closed or reused, the helper knows the right thing to do for its
- // framework environment.
- helper.loadModel(PModelEnum.RELEASE_LINEINPUTREADER, new Object[]{reader});
- }
- }
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/ValidatorPropertyFile.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/ValidatorPropertyFile.java
deleted file mode 100644
index d1dd36ea..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/ValidatorPropertyFile.java
+++ /dev/null
@@ -1,115 +0,0 @@
-package org.eclipse.jst.validation.sample;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.LineNumberReader;
-
-import org.eclipse.jst.validation.sample.parser.APropertyFile;
-import org.eclipse.jst.validation.sample.parser.MessageMetaData;
-import org.eclipse.wst.validation.internal.core.Message;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-/**
- * This class represents an APropertyFile that is instantiated by a validator.
- */
-public class ValidatorPropertyFile extends APropertyFile {
- private IReporter _reporter = null;
- private IValidator _validator = null;
- private String _fileName = null; // if this is created from a reader instead of a file name, we only have the bundle name
-
- public ValidatorPropertyFile(LineNumberReader reader, String fileName, IReporter reporter, IValidator validator) {
- super();
- setFileName(fileName);
- _reporter = reporter;
- _validator = validator;
- parseFile(reader);
- }
-
- public void setFileName(String bundleName) {
- _fileName = bundleName;
- }
-
- /**
- * Return the name of the .properties file (or bundle).
- */
- public String getFileName() {
- return _fileName;
- }
-
- /*
- * @see APropertyFile#report(String)
- */
- public void report(String str) {
- // Never print titles like "DUPLICATE MESSAGE IDS". Print only the IMessage.
- }
-
- /*
- * @see APropertyFile#report(MessageMetaData)
- */
- public void report(MessageMetaData mmd) {
- IMessage message = new Message();
- message.setBundleName(mmd.getBundleName());
- message.setSeverity(getSeverity(mmd.getSeverity()));
- message.setId(mmd.getId());
- message.setParams(mmd.getParams());
- message.setTargetObject(mmd.getTargetObject());
- message.setLineNo(mmd.getLineNumber());
- message.setLength(mmd.getLength());
- message.setOffset(mmd.getOffset());
- message.setLength(mmd.getLength());
- _reporter.addMessage(getValidator(), message);
- }
-
- /**
- * Given the severity of the MessageMetaData, return the corresponding
- * severity of the validation framework.
- */
- private static int getSeverity(int mmdSeverity) {
- switch(mmdSeverity) {
- case(MessageMetaData.ERROR): {
- return IMessage.HIGH_SEVERITY;
- }
-
- case(MessageMetaData.INFO): {
- return IMessage.LOW_SEVERITY;
- }
-
- default: {
- return IMessage.NORMAL_SEVERITY;
- }
- }
- }
-
- /**
- * Return the IValidator instance that is checking this file.
- */
- public IValidator getValidator() {
- return _validator;
- }
-
- /**
- * Return the name of this file that identifies this file uniquely.
- */
- public String getQualifiedFileName() {
- return getFileName();
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/APropertyFile.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/APropertyFile.java
deleted file mode 100644
index 2dc8b9e3..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/APropertyFile.java
+++ /dev/null
@@ -1,728 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
-import java.io.LineNumberReader;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-/**
- * This class represents a .properties file; extensions of this class implement
- * environment-specific messages, such as how to report the known problems. This
- * class, and every class in the org.eclipse.jst.validation.sample.parser package, is independent
- * of the framework environment.
- */
-public abstract class APropertyFile {
- private static final String EQUALS = "="; //$NON-NLS-1$
-
- private List _propertyLines = null; // The List of PropertyLine instances.
- private List _parseWarnings = null; // The List of MessageMetaData warnings found when parsing the .properties file.
- private boolean _debug = false;
-
- /**
- * Return a name that identifies this file uniquely.
- */
- public abstract String getQualifiedFileName();
-
- /**
- * Tell the user that there is a problem - in WebSphere Studio, this
- * shows up as a row in the Task View; in the sample filesystem framework,
- * this appears as a message to System.out.
- */
- public abstract void report(String str);
-
- /**
- * Tell the user that there is a problem - in WebSphere Studio, this
- * shows up as a row in the Task View; in the sample filesystem framework,
- * this appears as a message to System.out.
- */
- public abstract void report(MessageMetaData mmd);
-
- protected APropertyFile() {
- _propertyLines = new ArrayList();
- _parseWarnings = new ArrayList();
- }
-
- /**
- * Add the List of MessageMetaData to the list of warning messages.
- */
- public void addParseWarnings(List list) {
- _parseWarnings.addAll(list);
- }
-
- /**
- * Add a single warning message to the list of parse warnings.
- */
- public void addParseWarning(MessageMetaData mmd) {
- _parseWarnings.add(mmd);
- }
-
- /**
- * Return the List of warning messages that report problems found
- * while parsing the .properties file.
- */
- public List getParseWarnings() {
- return _parseWarnings;
- }
-
-
- public String toString() {
- return getQualifiedFileName();
- }
-
- /**
- * Should debug information be printed when parsing?
- */
- public boolean debug() {
- return _debug;
- }
-
- protected void setDebug(boolean d) {
- _debug = d;
- }
-
- public boolean equals(Object o) {
- if(o == null) {
- return false;
- }
-
- if(!(o instanceof PropertyFile)) {
- return false;
- }
-
- PropertyFile file = (PropertyFile)o;
- return getQualifiedFileName().equals(file.getQualifiedFileName());
- }
-
- public int hashCode() {
- return getQualifiedFileName().hashCode();
- }
-
- /**
- * Return the number of messages in the file, including duplicates & blanks.
- */
- public int getNumProperties() {
- return _propertyLines.size();
- }
-
- /**
- * Excluding message ids and error ids, output the number of words in the
- * .properties file.
- */
- public int getNumWords() {
- // NOT a fast method....how to optimize?
- Iterator iterator = _propertyLines.iterator();
- int count = 0;
- while (iterator.hasNext()) {
- PropertyLine line = (PropertyLine) iterator.next();
- count += line.getNumWords();
- }
- return count;
- }
-
- /**
- * Return a count of the number of unique message prefixes in the file.
- * (A message prefix starts the message text, e.g., ABCD0000E.)
- */
- public int getNumUniquePrefixes() {
- Set uniqueIds = new HashSet();
- Iterator iterator = getPropertyLines().iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if(line.hasMessagePrefix()) {
- uniqueIds.add(line.getMessagePrefix());
- }
- }
- return uniqueIds.size();
- }
-
- /**
- * Return a count of the number of message prefixes used in the file.
- * Usually this is the same as the number of unique prefixes, but if
- * a .properties file has variations of a message (slightly different
- * wording for a different context), then the number of prefixes will
- * be larger than the number of unique prefixess.
- */
- public int getNumPrefixes() {
- int count = 0;
- Iterator iterator = getPropertyLines().iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if(line.hasMessagePrefix()) {
- count++;
- }
- }
- return count;
- }
-
- /**
- * Return a count of the number of messages that do not use prefixes in the file.
- */
- public int getNumWithoutPrefixes() {
- int count = 0;
- Iterator iterator = getPropertyLines().iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if(!line.hasMessagePrefix()) {
- count++;
- }
- }
- return count;
- }
-
- /**
- * Return a List of the PropertyLine instances contained in this file.
- */
- public List getPropertyLines() {
- return _propertyLines;
- }
-
- /**
- * Return the PropertyLine instance that is identified by the
- * given messageId.
- */
- public PropertyLine getPropertyLine(String messageId) {
- Collections.sort(_propertyLines, PropertyLineComparator.getMessageIdComparator());
- int index = Collections.binarySearch(_propertyLines, messageId, PropertyLineComparator.getMessageIdComparator());
- if(index < 0) {
- return null;
- }
-
- PropertyLine result = (PropertyLine)_propertyLines.get(index);
- return result;
- }
-
- /**
- * Parse the file to create a collection of uniquely identified
- * keys with their associated values. If there are any duplicate
- * keys, the last value is the one that is stored. Store the
- * value of the duplicate keys, and the line number on which
- * each instance of the key (and its value) are located.
- */
- protected void parseFile(File propertyFile) {
- FileReader input = null;
- LineNumberReader lineInput = null;
- try {
- input = new FileReader(propertyFile);
- }
- catch (FileNotFoundException e) {
- // We can ignore this exception because we have already checked in the constructor that the
- // file exists.
- }
-
- // Because we want to read in a line at a time from the file, convert the FileReader to a LineReader
- lineInput = new LineNumberReader(input);
-
- parseFile(lineInput);
-
- try {
- lineInput.close();
- }
- catch (IOException e) {
- }
- input = null;
- lineInput = null;
- }
-
- /**
- * Given a LineNumberReader on a .properties file, read the
- * file and note any problems that may need to be reported to
- * the user.
- */
- protected void parseFile(LineNumberReader lineInput) {
- _propertyLines.clear();
- _parseWarnings.clear();
-
- boolean isNewKey = true;
- String key = null;
- int lineNumber = 0;
- String value = null;
- int offset = 0; // each .properties line needs to know its offset so that columns in the line can be calculated.
- int messageOffset = 0; // the offset, relative to the start of the line, where the message prefix starts
- String line = null;
- while (true) {
- try {
- line = lineInput.readLine(); // calculate the offset in the finally block
- if (line == null)
- break;
- line = line.trim();
-
- // ignore blank lines
- if (line.equals("")) //$NON-NLS-1$
- continue;
-
- // strip off lines that begin with '#'
- if (line.startsWith("#")) //$NON-NLS-1$
- continue;
-
- // strip off lines that begin with '/'
- if (line.startsWith("/")) //$NON-NLS-1$
- continue;
-
- if (isNewKey) {
- // We know that the line is of the form
- //
- // KEYNAME = VALUE
- //
- if (line.indexOf(EQUALS) != -1) {
- // Make sure the line is not of the form " = Message" (i.e., missing the message id).
- if(line.indexOf(EQUALS) == 0) {
- throw new java.util.NoSuchElementException();
- }
-
- // The user may or may not put spaces between the key
- // name, the equals sign, and the value. This gives us four cases:
- // 1. keyname=value
- // 2. keyname= value
- // 3. keyname =value
- // 4. keyname = value
- // The way to deal with all four cases is to find the index of the
- // '=' sign, and the value is the remainder of the line after the
- // sign.
- //
- key = line.substring(0, line.indexOf(EQUALS));
- key = key.trim();
-
- // add 1 to the EQUALS index because '=' is one character long
- value = line.substring(line.indexOf(EQUALS) + 1);
- value = value.trim();
-
- messageOffset = line.indexOf(value);
-
- lineNumber = lineInput.getLineNumber();
- }
- else {
- // error in line syntax
- throw new java.util.NoSuchElementException();
- }
- }
- else {
- // need to read in the multiple lines to get the multi-line value
- value += line;
- }
-
- if (value.endsWith("\\")) { //$NON-NLS-1$
- // multi-line value
- // read in every line from the file until you reach an end-of-line
- isNewKey = false;
- }
- else {
- // end of multi-line value, or end of single-line value
- isNewKey = true;
- PropertyLine pline = new PropertyLine(this, offset, messageOffset, key, value, lineNumber);
- _propertyLines.add(pline);
- }
- }
- catch (IOException e) {
- // When there is an IOException, we have reached the end of the file.
- break;
- }
- catch (NullPointerException e) {
- // If a line is not of the form KEYNAME = VALUE, there might be a null exception.
- // Just continue onto the next line in the file
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.ERROR, IValidationConstants.ABCD0080, null, this, lineInput.getLineNumber());
- report(mmd);
- break;
- }
- catch (java.util.NoSuchElementException e) {
- // If a line is not of the form KEYNAME = VALUE, there might be a NoSuchElement exception.
- // Just continue onto the next line in the file
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.ERROR, IValidationConstants.ABCD0080, null, this, lineInput.getLineNumber());
- report(mmd);
- }
- finally {
- if(line != null) {
- offset += line.length() + 2; // hack.
- // Can't get offset from BufferedReader, and since the reader strips
- // the '\n' and '\r' from the line before the line is returned, the
- // true length of the line can't be ascertained. This hack will not
- // work on Unix because unix's EOL char is different than Windows.
- //
- // When there's time, need to find an alternative to LineNumberReader.
- }
- }
- }
- }
-
- /**
- * Print a list of all message prefixes, e.g., ABCD0000E, that are used
- * in the .properties file.
- */
- public void printAllMessagePrefixes() {
- report("Line Number\tMessage prefix\tMessage id"); //$NON-NLS-1$
- Collections.sort(_propertyLines, PropertyLineComparator.getMessagePrefixComparator());
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if((line.getMessagePrefix() != null) && (!line.getMessagePrefix().equals(""))) { //$NON-NLS-1$
- StringBuffer buffer = new StringBuffer(String.valueOf(line.getLineNumber()));
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(line.getMessagePrefix());
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(line.getMessageId());
- report(buffer.toString());
- }
- }
- }
-
- /**
- * Print a list of all of the message prefixes, e.g., ABCD1111E,
- * that are not used in the file. A message prefix is considered
- * &quot;missing&quot; if a message prefix that precedes it,
- * e.g. ABCD0000E, and a message prefix that follows it,
- * e.g. ABCD2222E, are contained in the file, but the prefix is not.
- * This list is useful when adding a new message to the file;
- * the prefixes printed by this method are unused and one can be
- * selected for the new method.
- */
- public void printAllMissingMessagePrefixes() {
- int lastNumber = -1;
-
- Collections.sort(_propertyLines, PropertyLineComparator.getMessagePrefixComparator());
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- String prefix = line.getMessagePrefix();
- int prefixNumber = 0;
- if(prefix == null) {
- continue;
- }
-
- if(prefix.equals("")) { //$NON-NLS-1$
- continue;
- }
-
- String prefixLetters = prefix.substring(0, 4); // "ABCD" of "ABCD0000W"
- try {
- // Re: magic numbers "4" and "8" below.
- // Since the message prefix is of the form ABCD0000E,
- // strip off the first four characters up to (and excluding) the
- // eighth character, "E".
- prefixNumber = Integer.parseInt(prefix.substring(4, 8));
- }
- catch(NumberFormatException e) {
- // just continue
- continue;
- }
- if(lastNumber != -1) {
- if(prefixNumber != (lastNumber + 1)) {
- // Start at lastNumber + 1 because lastNumber exists.
- // Exclude prefixNumber because prefixNumber exists.
- for(int i=lastNumber+1; i<prefixNumber; i++) {
- report(prefixLetters + i);
- }
- }
- }
- lastNumber = prefixNumber;
- }
- }
-
- /**
- * Print all of the messages in the .properties file that use
- * a message prefix, e.g. ABCD0000E.
- */
- public void printAllMessagesWithAMessagePrefix() {
- report("MESSAGES WITH PREFIXES"); //$NON-NLS-1$
- Collections.sort(_propertyLines, PropertyLineComparator.getLineNoComparator());
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if(line.hasMessagePrefix()) {
- report(line.toString());
- }
- }
- }
-
- /**
- * Print all of the messages in the .properties file whose message
- * text does not begin with a message prefix, e.g., ABCD0000E.
- */
- public void printAllMessagesWithoutAMessagePrefix() {
- report("BLANK MESSAGE PREFIX"); //$NON-NLS-1$
- Collections.sort(_propertyLines, PropertyLineComparator.getLineNoComparator());
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if(!line.hasMessagePrefix()) {
- report(line.toString());
- }
- }
- }
-
- /**
- * Print a list of all messages whose text is the empty string (&quot;&quot;).
- */
- public void printAllMessagesWhichAreBlank() {
- report("BLANK MESSAGES"); //$NON-NLS-1$
- Collections.sort(_propertyLines, PropertyLineComparator.getLineNoComparator());
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- if(line.getMessage().equals("")) { //$NON-NLS-1$
- StringBuffer buffer = new StringBuffer("line number "); //$NON-NLS-1$
- buffer.append(line.getLineNumber());
- buffer.append(", message id "); //$NON-NLS-1$
- buffer.append(line.getMessageId());
- report(buffer.toString());
- }
- }
- }
-
- /**
- * Print a list of the lines that have syntax errors, for example,
- * missing the equals sign between the message id and the message
- * text.
- */
- public void printSyntaxWarnings() {
- List parseWarnings = getParseWarnings();
- Iterator iterator = parseWarnings.iterator();
- while (iterator.hasNext()) {
- report((MessageMetaData)iterator.next());
- }
- }
-
- /**
- * Print a list of all of the messages in the .properties file that
- * use the same message id. If more than one message uses the same
- * id, when the ResourceBundle is asked for that message id, it will
- * return the last message (i.e., the largest line number) with that
- * id in the file.
- */
- public void printDuplicateMessageId() {
- printDuplicateMessageId(true);
- }
-
- /**
- * Print a list of all of the messages in the .properties file that
- * use the same message id. If more than one message uses the same
- * id, when the ResourceBundle is asked for that message id, it will
- * return the last message (i.e., the largest line number) with that
- * id in the file.
- *
- * The boolean parameter is used to determine whether or not
- * the &quot;DUPLICATE MESSAGE IDS&quot; title is emitted before
- * the list of duplicates.
- */
- public void printDuplicateMessageId(boolean printTitle) {
- if(printTitle) {
- report("DUPLICATE MESSAGE IDS"); //$NON-NLS-1$
- }
- Comparator c = PropertyLineComparator.getMessageIdComparator();
- String messageId = IValidationConstants.ABCD0060;
- Collections.sort(_propertyLines, c);
- Iterator iterator = _propertyLines.iterator();
- PropertyLine lastLine = null;
- PropertyLine line = null;
- boolean needToPrintLast = false;
- while(iterator.hasNext()) {
- lastLine = line;
- line = (PropertyLine)iterator.next();
-
- if(c.compare(lastLine, line) == 0) {
- needToPrintLast = true;
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, messageId, new String[]{lastLine.getMessageId()}, lastLine, lastLine.getLineNumber());
- report(mmd);
- }
- else if(needToPrintLast) {
- // The last duplicate line needs to be printed, because lastLine is always printed but line needs to be printed too.
- needToPrintLast = false;
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, messageId, new String[]{lastLine.getMessageId()}, lastLine, lastLine.getLineNumber());
- report(mmd);
- }
- }
-
- if(needToPrintLast) {
- // The last duplicate line needs to be printed, because lastLine is always printed but line needs to be printed too.
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, messageId, new String[]{line.getMessageId()}, line, line.getLineNumber());
- report(mmd);
- }
- }
-
- /**
- * Print a list of all of the messages in the .properties file that
- * do not use a unique message prefix (e.g., ABCD0000E), with the
- * exception of all messages which are intended to be duplicates.
- * Generally, users expect one message prefix per problem, so
- * reused message prefixes can be confusing. Any message which
- * deliberately reuses a message prefix must use a message id
- * that starts with that prefix.
- */
- public void printDuplicateMessagePrefix() {
- printDuplicateMessagePrefix(true);
- }
-
- /**
- * Print a list of all of the messages in the .properties file that
- * do not use a unique message prefix (e.g., ABCD0000E), with the
- * exception of all messages which are intended to be duplicates.
- * Generally, users expect one message prefix per problem, so
- * reused message prefixes can be confusing. Any message which
- * deliberately reuses a message prefix must use a message id
- * that starts with that prefix.
- *
- * The boolean parameter is used to determine whether or not
- * the &quot;DUPLICATE MESSAGE PREFIXESS&quot; title is emitted
- * before the list of duplicates.
- */
- public void printDuplicateMessagePrefix(boolean printTitle) {
- if(printTitle) {
- report("DUPLICATE MESSAGE PREFIXES"); //$NON-NLS-1$
- }
- Comparator c = PropertyLineComparator.getMessagePrefixComparator();
- Collections.sort(_propertyLines, c);
- String messageId = IValidationConstants.ABCD0070;
- Iterator iterator = _propertyLines.iterator();
- PropertyLine lastLine = null;
- PropertyLine line = null;
- boolean needToPrintLast = false;
- while(iterator.hasNext()) {
- lastLine = line;
- line = (PropertyLine)iterator.next();
-
- if(lastLine != null) {
- if(!lastLine.getMessageId().startsWith(lastLine.getShortMessagePrefix())) {
- if(c.compare(lastLine, line) == 0) {
- needToPrintLast = true;
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, messageId, new String[]{lastLine.getMessagePrefix()}, lastLine, lastLine.getLineNumber());
- report(mmd);
- }
- else if(needToPrintLast) {
- // The last duplicate line needs to be printed, because lastLine is always printed but line needs to be printed too.
- needToPrintLast = false;
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, messageId, new String[]{lastLine.getMessagePrefix()}, lastLine, lastLine.getLineNumber());
- report(mmd);
- }
- }
- }
- }
-
- if(lastLine != null) {
- if(!lastLine.getMessageId().startsWith(lastLine.getShortMessagePrefix())) {
- if(needToPrintLast) {
- // The last duplicate line needs to be printed, because lastLine is always printed but line needs to be printed too.
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, messageId, new String[]{line.getMessagePrefix()}, line, line.getLineNumber());
- report(mmd);
- }
- }
- }
- }
-
- /**
- * Print a list of message prefixes whose first characters match
- * the prefix parameter. This method is useful when you want to see
- * if a range of prefixes is in use or not.
- */
- public void printMessagePrefixStartingWith(final String prefix) {
- report("Find all error prefixes starting with " + prefix); //$NON-NLS-1$
- Comparator c = PropertyLineComparator.getMessagePrefixComparator();
- Collections.sort(_propertyLines, c);
- Iterator iterator = _propertyLines.iterator();
- PropertyLine line = null;
- while(iterator.hasNext()) {
- line = (PropertyLine)iterator.next();
- if (line.getMessagePrefix().startsWith(prefix)) {
- StringBuffer buffer = new StringBuffer(String.valueOf(line.getLineNumber()));
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(line.getMessagePrefix());
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(line.getMessageId());
- report(buffer.toString());
- }
- }
- }
-
- /**
- * Print the last prefix (i.e., the one with the largest number,
- * e.g. ABCD2222 is larger than ABCD1111 or ABCD0000) in the file
- * whose first characters match the prefix parameter.
- */
- public void printLastMessagePrefixStartingWith(final String prefix) {
- report("Find last error prefix starting with " + prefix); //$NON-NLS-1$
- Comparator c = PropertyLineComparator.getMessagePrefixComparator();
- Collections.sort(_propertyLines, c);
- PropertyLine[] lines = new PropertyLine[_propertyLines.size()];
- _propertyLines.toArray(lines);
- boolean found = false;
- for(int i=lines.length; i>-1; i--) {
- PropertyLine line = lines[i];
- if (line.getMessagePrefix().startsWith(prefix)) {
- report(line.toString());
- found = true;
- break;
- }
- }
- if(!found) {
- report("No error ids were found that started with " + prefix); //$NON-NLS-1$
- }
- }
-
- /**
- * Given an estimate of the number of characters in a substitution parameter,
- * print a list of the number of characters in a given message, if each
- * parameter is replaced with &quot;length&quot; characters.
- */
- public void printExpectedStringLength(final int length) {
- report("EXPECTED LENGTH OF MESSAGE WITH PARAMETERS " + length + " LONG"); //$NON-NLS-1$ //$NON-NLS-2$
- Comparator c = PropertyLineComparator.getStringLengthComparator(length);
- Collections.sort(_propertyLines, c);
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
-
- StringBuffer buffer = new StringBuffer("Length: "); //$NON-NLS-1$
- buffer.append(line.getExpectedLength(length));
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(line.toStringWithExpectedLength(length));
- report(buffer.toString());
- }
- }
-
- /**
- * Print the number of characters in each message.
- */
- public void printStringLength() {
- // "0" means no substitution
- printExpectedStringLength(0);
- }
-
- /**
- * Print the contents of the .properties file, sorted by message id.
- */
- public void printContents() {
- report("CONTENTS OF .properties FILE, SORTED BY MESSAGE ID"); //$NON-NLS-1$
- Comparator c = PropertyLineComparator.getMessageIdComparator();
- Collections.sort(_propertyLines, c);
- Iterator iterator = _propertyLines.iterator();
- while(iterator.hasNext()) {
- PropertyLine line = (PropertyLine)iterator.next();
- report(line.toString());
- }
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/CompareProperties.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/CompareProperties.java
deleted file mode 100644
index 93ab4114..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/CompareProperties.java
+++ /dev/null
@@ -1,377 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-import java.util.StringTokenizer;
-import java.util.TreeMap;
-import java.util.TreeSet;
-
-/**
- * This class compares two .properties file and outputs a list
- * of the differences. This class is used to count the number
- * of words that have changed.
- */
-public class CompareProperties {
- public static final String lineSeparator = java.lang.System.getProperty("line.separator"); //$NON-NLS-1$
- private TreeSet _deleted = null;
- private TreeMap _changed = null;
- private TreeSet _added = null;
-// private PropertyFile _oldFile = null;
- private PropertyFile _newFile = null;
-
- /**
- * This class is used to store PropertyLine instances which have the same
- * message id, but different values. When the list of differences is output,
- * all values are output so that the user can compare the lines manually, to
- * see what's different.
- */
- class CompareLine implements Comparable {
- private ArrayList _lines;
- private final String _messageId;
-
- public CompareLine(String messageId) {
- _messageId = messageId;
- _lines = new ArrayList();
- }
-
- public void add(PropertyLine oldLine, PropertyLine newLine) {
- _lines.add(new PropertyLine[]{oldLine, newLine});
- }
-
- public String toString() {
- StringBuffer buffer = new StringBuffer();
- Iterator iterator = _lines.iterator();
- while (iterator.hasNext()) {
- buffer.append(lineSeparator);
- buffer.append("\t"); //$NON-NLS-1$
- PropertyLine[] lines = (PropertyLine[])iterator.next();
-
- buffer.append(lines[0]);
- buffer.append("\n"); //$NON-NLS-1$
- buffer.append(lines[1]);
- }
- return buffer.toString();
- }
-
- /**
- * Since this is a changed string, return the absolute difference of words between the strings.
- */
- public int getNumWords() {
- int numWords = 0;
- Iterator iterator = _lines.iterator();
- while (iterator.hasNext()) {
- PropertyLine[] lines = (PropertyLine[])iterator.next();
- numWords = numWords + compare(lines[0], lines[1]);
- }
- return numWords;
- }
-
- private int compare(PropertyLine oldLine, PropertyLine newLine) {
- // For every word in the old string, see if it exists in the new
- // string. The position of the word doesn't matter - if the word
- // exists in the new, then the word is not counted as a "changed"
- // word.
- // 1. If the word exists, remove the word from the newLine and
- // advance to the next old token. (Remove word from newLine
- // in case the word existed twice in the old string but only
- // once in the new. The second oldWord should be counted as
- // a changed word.)
- // 2. If the word doesn't exist, numChanged++ and advance to the
- // next old token.
- // 3. Once all of the oldWords have been checked, tokenize the
- // remaining newWord and count the number of words in the string.
- // These words have been added and each one counts as a
- // changed word.
- int numChangedWords = 0;
- StringTokenizer oldTokenizer = new StringTokenizer(oldLine.getMessage());
-
- // Need to be careful...want the entire word, not oldWord="on" mistaken for newWord="one" or newWord="bond"
- // Easier to create a list of new words to compare against.
- StringTokenizer newTokenizer = new StringTokenizer(newLine.getMessage());
- List newWords = new ArrayList(); // Can't use a set in case the newLine uses a word, e.g. "the", more than once.
- while(newTokenizer.hasMoreTokens()) {
- newWords.add(newTokenizer.nextToken());
- }
-
- while(oldTokenizer.hasMoreTokens()) {
- String oldWord = oldTokenizer.nextToken();
- if(newWords.contains(oldWord)) {
- newWords.remove(oldWord);
- }
- else {
- numChangedWords++;
- }
- }
-
- // Can count the tokens but not the elments.
- numChangedWords += newWords.size();
- return numChangedWords;
- }
-
- public String getMessageId() {
- return _messageId;
- }
-
- public int compareTo(Object o) {
- // by default, sort by message id
- if (!(o instanceof CompareLine)) {
- // then how on earth did this method get called??
- // put it at the end of the list
- return 1;
- }
-
- return getMessageId().compareTo(((CompareLine) o).getMessageId());
- }
- }
-
- /**
- * Compare the two PropertyFile and print out a list of the differences;
- * the first parameter is the older .properties file, and the second
- * parameter is the newer .properties file.
- */
- public CompareProperties(PropertyFile oldFile, PropertyFile newFile) {
- _deleted = new TreeSet();
- _changed = new TreeMap();
- _added = new TreeSet();
-
-// _oldFile = oldFile;
- _newFile = newFile;
-
- compare(oldFile, newFile);
- }
-
- /**
- * In the older PropertyFile, the message text was different; cache the
- * older version of the PropertyLine and the newer version of the PropertyLine.
- */
- private void addChanged(PropertyLine oldLine, PropertyLine newLine) {
- CompareLine cl = (CompareLine) _changed.get(oldLine.getMessageId());
- if (cl == null) {
- cl = new CompareLine(oldLine.getMessageId());
- }
- cl.add(oldLine, newLine);
- _changed.put(oldLine.getMessageId(), cl);
- }
-
- /**
- * Compare the two property files and build the collections of variable names with
- * their associated values.
- */
- public void compare(PropertyFile oldFile, PropertyFile newFile) {
- _added.clear();
- _deleted.clear();
- _changed.clear();
-
- // For each element in file 1, see if it exists in file 2
- // a) if it doesn't exist, add it to the list of "deleted" strings
- // b) if it exists, and if the value is different, add it to the list of "changed" strings
- // c) if it exists, and if the value is the same, add it to the list of "not changed" strings
- // d) delete the entry, if it exists, from file 2's hashtable so we don't check it twice.
- // For each element in file 2 not checked already, it cannot exist in file 1, so add it to the list of "new" strings
- //
- // Need some way to abort comparison if either of the files contains duplicate
- // message ids.
- //
- List oldKeys = new ArrayList(oldFile.getPropertyLines());
- List newKeys = new ArrayList(newFile.getPropertyLines());
- Collections.sort(oldKeys, PropertyLineComparator.getMessageIdComparator());
- Collections.sort(newKeys, PropertyLineComparator.getMessageIdComparator());
- Iterator oldIterator = oldKeys.iterator();
- Iterator newIterator = newKeys.iterator();
- PropertyLine oldLine = (oldIterator.hasNext()) ? (PropertyLine) oldIterator.next() : null;
- PropertyLine newLine = (newIterator.hasNext()) ? (PropertyLine) newIterator.next() : null;
- while ((oldLine != null) && (newLine != null)) {
- // oldLine message id is either <, =, or > newLine message id.
- // if <, message id has been deleted.
- // if =, see if changed (or just compare message ids.)
- // if >, new line is a new message id.
- // to increment, increment only the < (whether it's oldLine or newLine).
- int compare = oldLine.getMessageId().compareTo(newLine.getMessageId());
- if (compare < 0) {
- // deleted
- _deleted.add(oldLine);
- if (oldIterator.hasNext()) {
- oldLine = (PropertyLine) oldIterator.next();
- }
- else {
- oldLine = null;
- }
- }
- else if (compare == 0) {
- // existed before. Check if changed.
- if (!oldLine.getMessage().equals(newLine.getMessage())) {
- // changed
- addChanged(oldLine, newLine);
- }
- if (oldIterator.hasNext() && newIterator.hasNext()) {
- oldLine = (PropertyLine) oldIterator.next();
- newLine = (PropertyLine) newIterator.next();
- }
- else {
- oldLine = null;
- newLine = null;
- }
-
- }
- else {
- // added
- _added.add(newLine);
- if (newIterator.hasNext()) {
- newLine = (PropertyLine) newIterator.next();
- }
- else {
- newLine = null;
- }
- }
- }
-
- if (oldLine != null) {
- _deleted.add(oldLine);
- }
-
- if (newLine != null) {
- _added.add(newLine);
- }
-
- while (oldIterator.hasNext()) {
- // all of the rest have been deleted
- _deleted.add(oldIterator.next());
- }
-
- while (newIterator.hasNext()) {
- // all of the rest have been added
- _added.add(newIterator.next());
- }
- }
-
- /**
- * Return a Collction of PropertyLine instances that exist in
- * the newer PropertyFile that aren't in the older PropertyFile.
- */
- public Set getAdded() {
- return _added;
- }
-
- /**
- * Return a Collection of CompareLine instances that represent
- * the two PropertyLine instances; one from the older PropertyFile,
- * and one from the newer PropertyFile.
- */
- public Collection getChanged() {
- return _changed.values();
- }
-
- /**
- * Return a Collection of PropertyLine instances that do not
- * exist in the newer PropertyFile yet that exist in the older
- * PropertyFile.
- */
- public Set getDeleted() {
- return _deleted;
- }
-
- /**
- * Print out all of the collections of variable strings.
- */
- public void printResults() {
- // create an output log in the current directory, and in it list the strings in a section each.
- int numNew = printStrings("NEW PROPERTIES", _added); //$NON-NLS-1$
-
- int numWordsDeleted = printStrings("DELETED PROPERTIES", _deleted); //$NON-NLS-1$
- int numWordsChanged = printStrings("CHANGED PROPERTIES", _changed.values()); //$NON-NLS-1$
- float totalChange = numNew + numWordsDeleted + numWordsChanged;
- float numWords = _newFile.getNumWords();
- float percent = totalChange / numWords * 100;
-
- System.out.println();
- System.out.println("Number of new words: " + numNew); //$NON-NLS-1$
- System.out.println("Number of words in deleted messages: " + numWordsDeleted); //$NON-NLS-1$
- System.out.println("Number of changed words in modified messages: " + numWordsChanged); //$NON-NLS-1$
- System.out.println("Number of words in file " + _newFile.getQualifiedFileName() + ": " + numWords); //$NON-NLS-1$ //$NON-NLS-2$
- System.out.println("Total change of words: " + totalChange + ", which is a " + percent + "% change."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
- public void printResultsForTranslation() {
- // create an output log in the current directory, and in it list the strings in a section each.
- printStringsForTranslation("DELETED PROPERTIES", _deleted); //$NON-NLS-1$
- printStringsForTranslation("NEW PROPERTIES", _added); //$NON-NLS-1$
- printStringsForTranslation("CHANGED PROPERTIES", _changed.values()); //$NON-NLS-1$
- }
-
- /**
- * Print the number of lines in the .properties file.
- */
- private int printStrings(String header, Collection lines) {
- System.out.println();
- System.out.println(header);
- int count = 0;
- int numWords = 0;
- Iterator iterator = lines.iterator();
- while (iterator.hasNext()) {
- Object line = iterator.next();
- if(line instanceof PropertyLine) {
- numWords += ((PropertyLine)line).getNumWords();
- }
- else {
- // must be a compare line
- numWords += ((CompareLine)line).getNumWords();
- }
-
- count++;
- System.out.println(line);
- }
- System.out.println("Number of properties: " + count); //$NON-NLS-1$
- System.out.println();
- return numWords;
- }
-
- /**
- * Print the contents of the sorted collection of lines from the .properties file.
- */
- private void printStringsForTranslation(String header, Collection lines) {
- System.out.println();
- System.out.println(header);
- int count = 0;
- Iterator iterator = lines.iterator();
- while (iterator.hasNext()) {
- count++;
- Object line = iterator.next();
- if (line instanceof PropertyLine) {
- PropertyLine propline = (PropertyLine) line;
- System.out.println(propline.getMessageId());
- }
- else if (line instanceof CompareLine) {
- CompareLine propline = (CompareLine) line;
- System.out.println(propline.getMessageId());
- }
- else {
- System.out.println("instance of " + line.getClass().getName()); //$NON-NLS-1$
- }
- }
- System.out.println("Total: " + count); //$NON-NLS-1$
- System.out.println();
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/IValidationConstants.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/IValidationConstants.java
deleted file mode 100644
index c8ae9e48..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/IValidationConstants.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-/**
- * This interface contains the message ids of all of the Properties
- * Validator's messages, and the name of the resource bundle that
- * contains those messages.
- */
-public interface IValidationConstants {
- /*package*/ static final String BUNDLENAME = "propertiesValidator"; //$NON-NLS-1$
-
- /*package*/ static final String ABCD0000 = "ABCD0000"; //$NON-NLS-1$
- /*package*/ static final String ABCD0010E = "ABCD0010E"; //$NON-NLS-1$
- /*package*/ static final String ABCD0010W = "ABCD0010W"; //$NON-NLS-1$
- /*package*/ static final String ABCD0020 = "ABCD0020"; //$NON-NLS-1$
- /*package*/ static final String ABCD0030 = "ABCD0030"; //$NON-NLS-1$
- /*package*/ static final String ABCD0040 = "ABCD0040"; //$NON-NLS-1$
- /*package*/ static final String ABCD0050 = "ABCD0050"; //$NON-NLS-1$
- /*package*/ static final String ABCD0060 = "ABCD0060"; //$NON-NLS-1$
- /*package*/ static final String ABCD0070 = "ABCD0070"; //$NON-NLS-1$
- /*package*/ static final String ABCD0080 = "ABCD0080"; //$NON-NLS-1$
- /*package*/ static final String ABCD0090 = "ABCD0090"; //$NON-NLS-1$
- /*package*/ static final String ABCD0110 = "ABCD0110"; //$NON-NLS-1$
- /*package*/ static final String ABCD0120 = "ABCD0120"; //$NON-NLS-1$
- /*package*/ static final String ABCD0130 = "ABCD0130"; //$NON-NLS-1$
-
- /*package*/ static final String LINE_LOC = "LINE_LOC"; //$NON-NLS-1$
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/Main.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/Main.java
deleted file mode 100644
index a4d6ee1a..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/Main.java
+++ /dev/null
@@ -1,451 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.File;
-
-/**
- * This class is used to perform validation or .properties file queries
- * without using an IValidator.
- */
-public class Main {
- public static void main(String[] argv) {
- if(argv.length < 1) {
- System.out.println("prop -tr [-a | -ac | -am | -an | -al PREFIX | -ap PREFIX | -au | -b | -di | -dp | -l | -le <positive integer> | -p ] f:\\dir1\\dir2\\myPropertiesFile.properties"); //$NON-NLS-1$
- System.out.println("or "); //$NON-NLS-1$
- System.out.println("prop [-c|-ct] f:\\dir1\\dir2\\myPropertiesFile.properties f:\\dir1\\dir2\\myNewPropertiesFile.properties"); //$NON-NLS-1$
- System.out.println(" -a: print all error/warning/info prefixes in the file"); //$NON-NLS-1$
- System.out.println(" -ac: print a count of messages with and without prefixes in the file"); //$NON-NLS-1$
- System.out.println(" -am: print all messages with a prefix"); //$NON-NLS-1$
- System.out.println(" -an: print all messages without an error prefix"); //$NON-NLS-1$
- System.out.println(" -al: print the last error/warning/info prefix, starting with PREFIX, in the file"); //$NON-NLS-1$
- System.out.println(" -ap: print any error/warning/info prefixes, starting with PREFIX, in the file"); //$NON-NLS-1$
- System.out.println(" -au: print all error/warning/info prefixes that are not used in the file"); //$NON-NLS-1$
- System.out.println(" -b: print any blank messages in the properties file"); //$NON-NLS-1$
- System.out.println(" -c: compare the two property files listed. The first is the older, and the second is the newer."); //$NON-NLS-1$
- System.out.println(" -ct: compare the two property files listed. The first is the older, and the second is the newer. Output a list of the added, deleted, and changed strings, but print only the message id."); //$NON-NLS-1$
- System.out.println(" -di: print any duplicate message ids and syntax errors in the properties file"); //$NON-NLS-1$
- System.out.println(" -dp: print any duplicate error/warning/info prefixes in the file"); //$NON-NLS-1$
- System.out.println(" -l: print the length of each message in the file"); //$NON-NLS-1$
- System.out.println(" -le: print the length of each message in the file if each parameter is <positive integer> characters long."); //$NON-NLS-1$
- System.out.println(" -n: print the number of words in the file, including message prefixes and parameters"); //$NON-NLS-1$
- System.out.println(" -p: print the contents of the property file, sorted by message id"); //$NON-NLS-1$
- System.out.println(" -tr: print trace information while parsing the .properties file"); //$NON-NLS-1$
- System.out.println();
- System.out.println("The default action is to print the syntax errors, duplicates, and other types of errors in the given .properties file."); //$NON-NLS-1$
- System.exit(-1);
- }
-
- // This is not robust error-checking by any stretch of the imagination!
- int index = 0;
- String option = argv[index++].toLowerCase();
- boolean trace = false;
- if(option.equals("-tr")) { //$NON-NLS-1$
- trace = true;
- option = argv[index++].toLowerCase();
- }
-
- if (option.equals("-a") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printAllErrorPrefix(trace, files);
- }
- else if (option.equals("-ac") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printPrefixCount(trace, files);
- }
- else if (option.equals("-al") && (argv.length >= 3)) { //$NON-NLS-1$
- String[] files = new String[argv.length-2];
- System.arraycopy(argv, 2, files, 0, files.length);
- printErrorPrefix(trace, argv[index], files);
- }
- else if (option.equals("-am") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printErrorMessages(trace, files);
- }
- else if (option.equals("-an") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printMessagesWithoutPrefixes(trace, files);
- }
- else if (option.equals("-ap") && (argv.length >= 3)) { //$NON-NLS-1$
- String[] files = new String[argv.length-2];
- System.arraycopy(argv, 2, files, 0, files.length);
- printErrorPrefixRange(trace, argv[index], files);
- }
- else if (option.equals("-au") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printAllMissingErrorPrefix(trace, files);
- }
- else if (option.equals("-b") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printBlanks(trace, files);
- }
- else if (option.equals("-c") && (argv.length == 3)) { //$NON-NLS-1$
- File oldFile = new File(argv[index++]);
- File newFile = new File(argv[index]);
- compareFiles(trace, oldFile, newFile);
- }
- else if (option.equals("-ct") && (argv.length == 3)) { //$NON-NLS-1$
- File oldFile = new File(argv[index++]);
- File newFile = new File(argv[index]);
- compareFilesForTranslation(trace, oldFile, newFile);
- }
- else if (option.equals("-di") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printDuplicateIds(trace, files);
- }
- else if (option.equals("-dp") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printDuplicatePrefixes(trace, files);
- }
- else if (option.equals("-l") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printStringLength(trace, files);
- }
- else if (option.equals("-le") && (argv.length >= 3)) { //$NON-NLS-1$
- String[] files = new String[argv.length-2];
- System.arraycopy(argv, 2, files, 0, files.length);
- printExpectedStringLength(trace, argv[index], files);
- }
- else if (option.equals("-n") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printWordCount(trace, files);
- }
- else if (option.equals("-p") && (argv.length >= 2)) { //$NON-NLS-1$
- String[] files = new String[argv.length-1];
- System.arraycopy(argv, 1, files, 0, files.length);
- printFileContents(trace, files);
- }
- else {
- printDefault(trace, argv);
- }
- }
-
- public static void printAllErrorPrefix(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printAllMessagePrefixes();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printAllMissingErrorPrefix(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printAllMissingMessagePrefixes();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printBlanks(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printAllMessagesWhichAreBlank();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printMessagesWithoutPrefixes(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printAllMessagesWithoutAMessagePrefix();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void compareFiles(boolean trace, File oldFile, File newFile) {
- if(oldFile.isFile() && newFile.isFile()) {
- try {
- PropertyFile oldPropFile = new PropertyFile(oldFile.getAbsolutePath(), trace);
- PropertyFile newPropFile = new PropertyFile(newFile.getAbsolutePath(), trace);
- CompareProperties cp = new CompareProperties(oldPropFile, newPropFile);
- cp.printResults();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- else if(oldFile.isDirectory() && newFile.isDirectory()) {
- String[] oldChildren = oldFile.list();
- for(int i=0; i<oldChildren.length; i++) {
- File newChild = new File(newFile, oldChildren[i]);
- if(newChild.exists()) {
- // Found a file or directory that is named the same in the old & new. Compare.
- compareFiles(trace, new File(oldFile, oldChildren[i]), newChild);
- }
- }
- }
- else {
- System.out.println("Compare two files or two directories. Do not compare a file to a directory (" + oldFile.getName() + ", " + newFile.getName() + ")."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- }
-
- public static void compareFilesForTranslation(boolean trace, File oldFile, File newFile) {
- if(oldFile.isFile() && newFile.isFile()) {
- try {
- PropertyFile oldPropFile = new PropertyFile(oldFile.getAbsolutePath(), trace);
- PropertyFile newPropFile = new PropertyFile(newFile.getAbsolutePath(), trace);
- CompareProperties cp = new CompareProperties(oldPropFile, newPropFile);
- cp.printResultsForTranslation();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- else if(oldFile.isDirectory() && newFile.isDirectory()) {
- String[] oldChildren = oldFile.list();
- for(int i=0; i<oldChildren.length; i++) {
- File newChild = new File(newFile, oldChildren[i]);
- if(newChild.exists()) {
- // Found a file or directory that is named the same in the old & new. Compare.
- compareFilesForTranslation(trace, new File(oldFile, oldChildren[i]), newChild);
- }
- }
- }
- else {
- System.out.println("Compare two files or two directories. Do not compare a file to a directory (" + oldFile.getName() + ", " + newFile.getName() + ")."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- }
-
- public static void printDuplicateIds(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printDuplicateMessageId();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printErrorPrefix(boolean trace, String prefix, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printLastMessagePrefixStartingWith(prefix);
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printErrorPrefixRange(boolean trace, String prefix, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printMessagePrefixStartingWith(prefix);
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printDuplicatePrefixes(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printDuplicateMessagePrefix();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printStringLength(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printStringLength();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printExpectedStringLength(boolean trace, String slength, String[] files) {
- int length = 0;
-
- try {
- length = new Integer(slength).intValue();
- }
- catch(NumberFormatException exc) {
- System.out.println();
- System.out.println("Parameter must be an integer."); //$NON-NLS-1$
- System.out.println();
- return;
- }
-
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printExpectedStringLength(length);
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printErrorMessages(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printAllMessagesWithAMessagePrefix();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printWordCount(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- System.out.println(propFile.getQualifiedFileName() + ":: Number of words :: " + propFile.getNumWords()); //$NON-NLS-1$
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printPrefixCount(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- System.out.println("Usually the number of unique prefixes and the number of prefixes is the same, but if a .properties file has variations of a message (slightly different wording for a different context), then the number of prefix messages will be larger than the number of unique prefixes."); //$NON-NLS-1$
- System.out.println(propFile.getQualifiedFileName() + ":: Number of unique prefixes :: " + propFile.getNumUniquePrefixes()); //$NON-NLS-1$
- System.out.println(propFile.getQualifiedFileName() + ":: Number of messages with prefixes :: " + propFile.getNumPrefixes()); //$NON-NLS-1$
- System.out.println(propFile.getQualifiedFileName() + ":: Number of messages without prefixes :: " + propFile.getNumWithoutPrefixes()); //$NON-NLS-1$
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
- public static void printFileContents(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printContents();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void printDefault(boolean trace, String[] files) {
- for (int i = 0; i < files.length; i++) {
- try {
- // print all errors, warnings, etc.
- System.out.println("******************************************"); //$NON-NLS-1$
- PropertyFile propFile = new PropertyFile(files[i], trace);
- propFile.printSyntaxWarnings();
- propFile.printDuplicateMessageId();
- propFile.printDuplicateMessagePrefix();
- System.out.println("******************************************"); //$NON-NLS-1$
- System.out.println();
- }
- catch (java.io.IOException e) {
- System.out.println(e.getMessage());
- }
- }
- }
-
- public static void print(String[] argv) {
- for(int i =0;i<argv.length; i++) {
- System.out.println(i + ". " + argv[i]); //$NON-NLS-1$
- }
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/MessageMetaData.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/MessageMetaData.java
deleted file mode 100644
index 907e5586..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/MessageMetaData.java
+++ /dev/null
@@ -1,211 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.Locale;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-
-/**
- * This class holds the metadata for an IMessage that must be
- * reported to the user (i.e., a validation error, warning,
- * or information message).
- */
-public class MessageMetaData {
- public static final int INT_UNSET = -1;
- public static final int ERROR = 1;
- public static final int WARNING = 2;
- public static final int INFO = 3;
-
- private String _bundleName = null;
- private int _severity = INT_UNSET;
- private String _messageId = null;
- private String[] _parms = null;
- private Object _targetObject = null;
- private int _lineNumber = INT_UNSET;
- private int _offset = INT_UNSET;
- private int _length = INT_UNSET;
- private String _text = null;
-
- /**
- * This constructor should be used if the message text has already
- * been translated.
- */
- public MessageMetaData(String messageText) {
- _text = messageText;
- }
-
- /**
- * This constructor should be used if the message text is not translated
- * until just before the text should be shown to the user.
- *
- * @param bundleName - The name of the resource bundle in which the message is contained
- * @param severity - One of the com.ibm.etools.validation.core.SeverityEnum constants; this parameter represents the severity of the IMessage.
- * @param messageId - The message id that uniquely identifies the message to be retrieved from the bundle.
- * @param parms - The parameters to be substituted into the java.text.MessageText's patterns.
- * @param targetObject - The target object of the IMessage (see com.ibm.etools.validation.core.IMessage).
- * @param lineNumber - The line number where the problem can be found.
- */
- public MessageMetaData(String bundleName, int severity, String messageId, String[] parms, Object targetObject, int lineNumber) {
- this(bundleName, severity, messageId, parms, targetObject, lineNumber, INT_UNSET, INT_UNSET);
- }
-
- /**
- * This constructor should be used if the message text is not translated
- * until just before the text should be shown to the user.
- *
- * @param bundleName - The name of the resource bundle in which the message is contained
- * @param severity - One of the com.ibm.etools.validation.core.SeverityEnum constants; this parameter represents the severity of the IMessage.
- * @param messageId - The message id that uniquely identifies the message to be retrieved from the bundle.
- * @param parms - The parameters to be substituted into the java.text.MessageText's patterns.
- * @param targetObject - The target object of the IMessage (see com.ibm.etools.validation.core.IMessage).
- * @param lineNumber - The line number where the problem can be found.
- * @param offset - In number of characters, how many characters from the start of the .properties file to the location of the problem.
- * @param length - In number of characters, how many characters from the offset to the end of the problem.
- */
- public MessageMetaData(String bundleName, int severity, String messageId, String[] parms, Object targetObject, int lineNumber, int offset, int length) {
- _bundleName = bundleName;
- _severity = severity;
- _messageId = messageId;
- _parms = parms;
- _targetObject = targetObject;
- _lineNumber = lineNumber;
- _offset = offset;
- _length = length;
- }
-
- public String getBundleName() {
- return _bundleName;
- }
-
- public int getSeverity() {
- return _severity;
- }
-
- public String getId() {
- return _messageId;
- }
-
- public String[] getParams() {
- return _parms;
- }
-
- public Object getTargetObject() {
- return _targetObject;
- }
-
- public int getLineNumber() {
- return _lineNumber;
- }
-
- public int getOffset() {
- return _offset;
- }
-
- public int getLength() {
- return _length;
- }
-
- /**
- * Use the given ClassLoader to load this message's text
- * from the resource bundle.
- */
- public String getText(ClassLoader classLoader) {
- if(_text == null) {
- return getText(Locale.getDefault(), classLoader);
- }
- return _text;
- }
-
- /**
- * Use the given ClassLoader to load this message's text,
- * for the Locale, from the resource bundle.
- */
- public String getText(Locale locale, ClassLoader classLoader) {
- if(_text == null) {
- return getText(getBundleName(), locale, classLoader, getId(), getParams());
- }
-
- return _text;
- }
-
- /**
- * Return the translated message.
- *
- * @param bundleName The name of the resource bundle to search for the message.
- * @param locale The Locale for which the message should be loaded.
- * @param classLoader The ClassLoader which can locate the resource bundle.
- * @param messageId The unique id, in the resource bundle, that identifies the message.
- * @param parms The parameters to substitute into the pattern of the java.text.MessageFormat message.
- */
- public static java.lang.String getText(String bundleName, Locale locale, ClassLoader classLoader, String messageId, String[] parms) {
- String message = ""; //$NON-NLS-1$
-
- if (locale == null) {
- return message;
- }
-
- ResourceBundle bundle = getBundle(bundleName, locale, classLoader);
- if (bundle == null) {
- return message;
- }
-
- try {
- message = bundle.getString(messageId);
-
- if (parms != null) {
- message = java.text.MessageFormat.format(message, parms);
- }
- }
- catch (MissingResourceException exc) {
- System.err.println(exc.getMessage());
- System.err.println(messageId);
- }
- catch (NullPointerException exc) {
- System.err.println(exc.getMessage());
- System.err.println(messageId);
- }
-
- return message;
- }
-
- /**
- * Return the resource bundle which contains the messages, as identified by
- * @link #getBundleName()
- */
- public static ResourceBundle getBundle(String bundleName, Locale locale, ClassLoader classLoader) {
- ResourceBundle bundle = null;
- try {
- if (classLoader == null) {
- bundle = ResourceBundle.getBundle(bundleName, locale);
- }
- else {
- bundle = ResourceBundle.getBundle(bundleName, locale, classLoader);
- }
- }
- catch (MissingResourceException e) {
- e.printStackTrace();
- }
- return bundle;
- }
-
-}
-
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyFile.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyFile.java
deleted file mode 100644
index 8b60b140..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyFile.java
+++ /dev/null
@@ -1,106 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.io.File;
-
-/**
- * This PropertyFile is instantiated by code that isn't an IValidator.
- */
-public class PropertyFile extends APropertyFile {
- private String _enclosingZipFileName = null;
- private String _propertyFileName = null;
- private String _fileName = null;
-
- public PropertyFile(String fileName) throws java.io.IOException {
- this(fileName, false);
- }
-
- public PropertyFile(String fileName, boolean trace) throws java.io.IOException {
- this(new File(fileName), trace);
- }
-
- public PropertyFile(File propertyFile) throws java.io.IOException {
- this(propertyFile, false);
- }
-
- public PropertyFile(File propertyFile, boolean trace) throws java.io.IOException {
- this(null, propertyFile, trace);
- }
-
- public PropertyFile(String enclosingZipFileName, File propertyFile) throws java.io.IOException {
- this(enclosingZipFileName, propertyFile, false);
- }
-
- public PropertyFile(String enclosingZipFileName, File propertyFile, boolean debug) throws java.io.IOException {
- if (!propertyFile.exists())
- throw new java.io.IOException("Cannot find file " + propertyFile.getName()); //$NON-NLS-1$
- if (!propertyFile.isFile())
- throw new java.io.IOException(propertyFile.getName() + " is not a file"); //$NON-NLS-1$
- if (!propertyFile.canRead())
- throw new java.io.IOException("Cannot read " + propertyFile.getName()); //$NON-NLS-1$
- if (!propertyFile.getName().endsWith("properties")) //$NON-NLS-1$
- throw new java.io.IOException("Can parse only .properties files; ignoring " + propertyFile.getName()); //$NON-NLS-1$
-
- setDebug(debug);
-
- _enclosingZipFileName = enclosingZipFileName;
-
- _fileName = propertyFile.getName();
-
- report("File name: " + _fileName); //$NON-NLS-1$
- parseFile(propertyFile);
- report(""); //$NON-NLS-1$
-
- propertyFile = null;
- }
-
- /*
- * @see APropertyFile#report(String)
- */
- public void report(String str) {
- System.out.println(str);
- }
-
- /*
- * @see APropertyFile#report(MessageMetaData)
- */
- public void report(MessageMetaData message) {
- StringBuffer buffer = new StringBuffer(message.getText(getClass().getClassLoader()));
- buffer.append(ResourceHandler.getExternalizedMessage(IValidationConstants.BUNDLENAME, IValidationConstants.LINE_LOC, new String[]{String.valueOf(message.getLineNumber()), getQualifiedFileName()}));
- report(buffer.toString());
- }
-
- public String getQualifiedFileName() {
- if (_propertyFileName == null) {
- if (_enclosingZipFileName == null) {
- _propertyFileName = _fileName;
- }
- else {
- _propertyFileName = _enclosingZipFileName + "::" + _fileName; //$NON-NLS-1$
- }
- }
- return _propertyFileName;
- }
-
- public String getFileName() {
- return _fileName;
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyLine.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyLine.java
deleted file mode 100644
index c769c7fe..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyLine.java
+++ /dev/null
@@ -1,642 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.Iterator;
-import java.util.List;
-import java.util.StringTokenizer;
-
-/**
- * PropertyLine represents a line in a PropertyFile. It has a message id,
- * a message value (the text of the property; this is the text which is
- * translated), a line number, and, optionally, an unique error id (of the
- * form ABCD1234{E|W|I}).
- */
-public class PropertyLine implements Comparable {
- private String _messageId; // the message id (not translated)
- private String _message = null; // the message value with the error id (translated)
- private String _messagePrefix = null; // the prefix (e.g. ABCD1234{E|W|I}
- private String _shortMessage = null; // the message value without the error id (translated)
- private int _lineNumber = -1; // the line number of this message value
- private int _numWords = -1;
- private final String EMPTY = ""; //$NON-NLS-1$
- private APropertyFile _file = null;
- private int _offset = -1; // the offset, in the .properties file, where this line begins
- private int _messageOffset = -1; // the offset in the line, after the EQUALS, where the message prefix begins
-
- private static final char QUOTE = '\'';
- private static final char OBRACKET = '{';
- private static final char CBRACKET = '}';
-
- // The Enum for the message severity can be one of these four values. If there is an error id,
- // UNASSIGNED indicates an invalid value.
- public final static int UNASSIGNED = 0;
- public final static int ERROR = 0x1;
- public final static int WARNING = 0x2;
- public final static int INFO = 0x3;
-
- private int _severity = UNASSIGNED; // the severity of the message, if this message has an error id. UNASSIGNED means either that the severity was an invalid severity (not info, warn, or error), or that the message has no error id. Check the value of the error id to find out which of the two is the case.
- private int _numParms = 0;
-
- private static final char[] BLANK = " ".toCharArray(); // this string is 100 characters long. It's used to quickly get a blank string in the getBlank(int) method. Hopefully the user will never want more than 100 char in a given parameter. //$NON-NLS-1$
-
- public PropertyLine(APropertyFile file, int offset, int messageOffset, String messageId, String message, int lineNumber) {
- // Comment on the use of intern().
- // Because it's likely that we'll be comparing this string a lot,
- // load it into the Java constants space through intern(). Since we won't
- // be modifying this string, it's safe to load it into the constants space.
- //
- _offset = offset; // the offset in the .properties file where this line begins
- _messageOffset = messageOffset; // the offset in the line, after the EQUALS, where the message prefix begins
- _messageId = messageId;
- _message = message; // re: intern(). Ditto.
- _lineNumber = lineNumber;
- _file = file;
-
- parse(message);
- }
-
- public int compareTo(Object o) {
- // by default, sort by message id
- if (!(o instanceof PropertyLine)) {
- // then how on earth did this method get called??
- // put it at the end of the list
- return 1;
- }
-
- return getMessageId().compareTo(((PropertyLine) o).getMessageId());
- }
-
- public APropertyFile getFile() {
- return _file;
- }
-
- public String getMessagePrefix() {
- return _messagePrefix;
- }
-
- public boolean hasMessagePrefix() {
- if(_messagePrefix == null) {
- return false;
- }
-
- if(_messagePrefix.equals(EMPTY)) {
- return false;
- }
-
- return true;
- }
-
- public int getLineNumber() {
- return _lineNumber;
- }
- public String getMessage() {
- return _message;
- }
- public String getMessageId() {
- return _messageId;
- }
- public String getShortMessage() {
- return _shortMessage;
- }
-
- /**
- * This method returns the number of words in the message excluding
- * the message error id prefix.
- */
- public int getNumWords() {
- if(_numWords == -1) {
- _numWords = 0;
- StringTokenizer tokenizer = new StringTokenizer(getShortMessage());
- _numWords = tokenizer.countTokens();
- }
- return _numWords;
- }
-
- /**
- * This method returns the number of characters in the
- * message including the message prefix and parameters. (i.e., {0} would
- * be counted as three characters.)
- */
- public int getLength() {
- return getMessage().length();
- }
-
- /**
- * This method returns the number of characters in the
- * message including the message prefix and the expected
- * number of characters. (That is, the lengthParm parameter
- * is used as an approximation of the length of each parameter
- * in the message.)
- */
- public int getExpectedLength(int lengthParm) {
- if(hasParameters() && (lengthParm > 0)) {
- return getExpectedMessage(lengthParm).length();
- }
- return getLength();
- }
-
- /**
- * This method substitutes a blank stub of the given length
- * every place in the string where there is a parm.
- */
- public String getExpectedMessage(int lengthParm) {
- if(hasParameters() && (lengthParm > 0)) {
- // message cannot be null or blank or it wouldn't have parameters
- String blank = getBlank(lengthParm);
-
- int numParm = getNumParameters();
- String[] parm = new String[numParm];
- for(int i=0; i<parm.length; i++) {
- parm[i] = blank;
- }
-
- try {
- return java.text.MessageFormat.format(getMessage(), parm);
- }
- catch(IllegalArgumentException exc) {
- if(getFile().debug()) {
- getFile().report(exc.getMessage());
- getFile().report(getFile().getQualifiedFileName() + "::" + getMessageId()); //$NON-NLS-1$
- }
- return getMessage();
- }
- }
- return getMessage();
- }
-
- /**
- * Return a blank string of the given length.
- */
- public static String getBlank(int length) {
- char[] blank = new char[length];
- if(length > BLANK.length) {
- for(int i=0; i<length; i++) {
- blank[i] = ' ';
- }
- }
- else {
- System.arraycopy(BLANK, 0, blank, 0, length);
- }
- return new String(blank);
- }
-
- /**
- * Return true if the line has java.text.MessageFormat patterns.
- */
- public boolean hasParameters() {
- return getNumParameters() > 0;
- }
-
- /**
- * Return the number of java.text.MessageFormat patterns in the property line.
- */
- public int getNumParameters() {
- return _numParms;
- }
-
- /**
- * Return the number of characters, from the start of the file, to
- * the beginning of the message.
- */
- public int getMessageOffset() {
- return _messageOffset;
- }
-
- /**
- * The offset, in the .properties file, where this line begins.
- */
- public int getOffset() {
- return _offset;
- }
-
- /**
- * The severity of the message, if this message has an error id.
- * UNASSIGNED means either that the severity was an invalid severity
- * (not info, warn, or error), or that the message has no error id. Check
- * the value of the error id to find out which of the two is the case.
- */
- public int getSeverity() {
- return _severity;
- }
-
- /**
- * Parse the message value to extract the unique error id, if any exists.
- * This method initializes some of the fields in this class.
- */
- public void parse(String message) {
- // To see why it's safe to call intern(), read the comment in the
- // constructor.
-
- // Case 1: ABCD0000E: Blah Blah Blah
- // Case 2: ABCD0000E Blah Blah Blah
- // Case 3: ABCD0000E : Blah Blah Blah
- // Case 4: ABCD0000E Blah:Blah Blah
- // Case 5: ABCD0000E :
- // Case 6: Blah Blah Blah (i.e., no prefix)
- // Case 7: ABCD0000E: Blah
- // Case 8: ABCD0000E Blah
- // Case 9: ABCD0000E : Blah
- // Case 10: ABCD0000E Blah
- // Case 11: ABCD0000E
-
- if (message == null) {
- _messagePrefix = EMPTY;
- _shortMessage = EMPTY;
- return;
- }
-
- StringTokenizer tokenizer = new StringTokenizer(message);
- int numTokens = tokenizer.countTokens();
- if (numTokens == 0) {
- _messagePrefix = EMPTY;
- _shortMessage = message;
- }
- else {
- String errorId = tokenizer.nextToken();
- boolean prefixExists = false;
-
- // Sometimes the ':' isn't there or isn't in the right place, so don't determine the message prefix based on that.
- String afterPrefix = null;
- if(errorId.length() >= 9) {
- afterPrefix = errorId.substring(0, 9); // Must be of the form ABCD1234E, which is 9 char long
- char[] temp = afterPrefix.toCharArray();
- prefixExists = Character.isLetter(temp[0]) && Character.isUpperCase(temp[0]);
- prefixExists = prefixExists && Character.isLetter(temp[1]) && Character.isUpperCase(temp[0]);
- prefixExists = prefixExists && Character.isLetter(temp[2]) && Character.isUpperCase(temp[0]);
- prefixExists = prefixExists && Character.isLetter(temp[3]) && Character.isUpperCase(temp[0]);
- prefixExists = prefixExists && Character.isDigit(temp[4]);
- prefixExists = prefixExists && Character.isDigit(temp[5]);
- prefixExists = prefixExists && Character.isDigit(temp[6]);
- prefixExists = prefixExists && Character.isDigit(temp[7]);
- prefixExists = prefixExists && Character.isLetter(temp[8]) && Character.isUpperCase(temp[0]);
-
- if (prefixExists) {
- switch (temp[8]) {
- case ('E') :
- {
- _severity = ERROR;
- break;
- }
- case ('W') :
- {
- _severity = WARNING;
- break;
- }
- case ('I') :
- {
- _severity = INFO;
- break;
- }
-
- default :
- {
- _severity = UNASSIGNED;
- break;
- }
- }
- _messagePrefix = afterPrefix;
-
- int colonIndex = errorId.indexOf(':');
- boolean noColon = (colonIndex == -1);
-
- int shortMessageIndex = 10; // assume that only the ABCD0000E prefix will be stripped (i.e., no colon)
- if(noColon) {
- // No colon following message prefix immediately.
- // Is there whitespace before the colon?
- if (numTokens > 1) {
- String nextToken = tokenizer.nextToken();
- colonIndex = nextToken.indexOf(':');
- noColon = ((colonIndex == -1) || (nextToken.trim().indexOf(':') != 0)); // case 4 trim condition will be true
-
- // ":" should follow the message prefix immediately
- // Know there's a prefix, and that's 9 char
- if(noColon) {
- // Case 2, 4, 8 or 10
-// MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0120, new String[]{}, this, getLineNumber());
-// getFile().addParseWarning(mmd);
- shortMessageIndex = 10;
- }
- else {
-// MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0130, new String[]{}, this, getLineNumber());
-// getFile().addParseWarning(mmd);
-
- if(numTokens > 2) {
- // Case 3 or 9
- nextToken = tokenizer.nextToken();
- shortMessageIndex = message.indexOf(nextToken);
- }
- else {
- // Case 5
- shortMessageIndex = colonIndex + 1;
- }
- }
- _shortMessage = message.substring(shortMessageIndex, message.length());
- }
- else {
- // Case 11
- _shortMessage = EMPTY;
- }
- }
- else {
- // Case 1 or 7
- shortMessageIndex = colonIndex + 1;
- _shortMessage = message.substring(shortMessageIndex, message.length());
- }
- }
-
- }
-
- if (!prefixExists) {
- // Case 6
- _messagePrefix = EMPTY;
- _shortMessage = message;
- }
- }
-
- getFile().addParseWarnings(parseMessage());
- }
-
- /**
- * Once the field that holds the message text has been set (i.e., parse(String)
- * has been called), this method parses the message text, finds any syntax or
- * other problems, and returns a List of MessageMetaData, with one MessageMetaData
- * for each problem.
- */
- public List parseMessage() {
- // now parse to see if all apostrophes are in pairs, if there are parameters or not, etc.
- ArrayList intList = new ArrayList();
- int numObrackets = 0;
- int numCbrackets = 0;
- int index = 0;
- char token;
- int singleQuoteIndex = -1;
- int doubleQuoteIndex = -1;
- int missingTerminatingQuoteIndex = -1;
- boolean parmExists = false;
- int numCharBeforeShort = getMessageOffset() + getMessage().indexOf(getShortMessage());
-
- while (index < getShortMessage().length()) {
- token = getShortMessage().charAt(index++);
- if (token == QUOTE) {
- if (index < getShortMessage().length()) {
- token = getShortMessage().charAt(index++);
- }
- else {
- token = ' ';
- }
-
- if ((token == OBRACKET) || (token == CBRACKET)){
- if (index < getShortMessage().length()) {
- token = getShortMessage().charAt(index++);
- }
- else {
- token = ' ';
- }
-
- // Does the { or } character have a terminating single quote?
- if(token != QUOTE) {
- missingTerminatingQuoteIndex = (numCharBeforeShort + index-1);
- }
- }
- else if ((token == QUOTE)) {
- doubleQuoteIndex = (numCharBeforeShort + index-1);
- }
- else {
- // '{' means that a { will be output,
- // '}' means that a } will be output,
- // '' means that a ' will be output.
-
- // Since the quote is a special character, and the opening bracket is a
- // special character, keep track of the number of open brackets. If the
- // following character isn't a quote or opening bracket, warn the user
- // that it takes two apostrophes to see one apostrophe.
- singleQuoteIndex = (numCharBeforeShort + index-1);
- }
-
- }
- else if (token == OBRACKET) {
- numObrackets++;
- parmExists = true;
- StringBuffer numBuffer = null;
- if (index < getShortMessage().length()) {
- numBuffer = new StringBuffer();
- while (index < getShortMessage().length()) {
- char digit = getShortMessage().charAt(index);
- if ((Character.isDigit(digit)) || (digit == '-') || (digit == '+')) {
- numBuffer.append(digit);
- index++;
- }
- else {
- break;
- }
- }
- }
- else {
- // not an error; just not a number. Could be one of the other
- // ChoiceFormat, or whatever, formats. Do not get the next
- // token, because we still need to process this one.
- continue;
- }
-
- try {
- if ((numBuffer != null) && (numBuffer.length() > 0)) {
- Integer parmNum = Integer.valueOf(numBuffer.toString());
- intList.add(parmNum);
- }
- }
- catch (NumberFormatException exc) {
- // not an error; just not a number. Could be one of the other
- // ChoiceFormat, or whatever, formats. Do not get the next
- // token, because we still need to process this one.
- }
- }
- else if (token == CBRACKET) {
- numCbrackets++;
- }
- }
-
- _numParms = Math.max(numObrackets, numCbrackets);
-
- // find parse warnings
- List messages = new ArrayList();
- if (numObrackets != numCbrackets) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.ERROR, IValidationConstants.ABCD0000, new String[]{String.valueOf(numObrackets), String.valueOf(numCbrackets)}, this, getLineNumber());
- messages.add(mmd);
- }
-
- if(missingTerminatingQuoteIndex != -1) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0110, new String[]{String.valueOf(missingTerminatingQuoteIndex)}, this, getLineNumber(), getOffset() + missingTerminatingQuoteIndex, 1); // magic number 1 because a quote is one character long
- messages.add(mmd);
- }
-
- // Now sort the list, to see if there's any numbers missing, duplicated, or negative
- Collections.sort(intList, new Comparator() {
- public int compare(Object a, Object b) {
- // negative = b before a
- // zero = a = b
- // positive = a before b
- return ((Integer) a).intValue() - ((Integer) b).intValue();
- }
- });
- Iterator iterator = intList.iterator();
- int parmCount = 0;
- int lastNumber = -1;
- int largestNumber = -1;
- while (iterator.hasNext()) {
- Integer parm = (Integer) iterator.next();
- if (parm.intValue() < 0) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.ERROR, IValidationConstants.ABCD0010E, new String[]{String.valueOf(parm.intValue())}, this, getLineNumber());
- messages.add(mmd);
- }
- else if (parm.intValue() == lastNumber) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0020, new String[]{String.valueOf(lastNumber)}, this, getLineNumber());
- messages.add(mmd);
- }
- else if (parm.intValue() != parmCount) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0030, new String[]{String.valueOf(parmCount)}, this, getLineNumber());
- messages.add(mmd);
- }
- else {
- parmCount++;
- }
- lastNumber = parm.intValue();
- largestNumber = Math.max(largestNumber, parm.intValue());
- }
- if(largestNumber > 0) {
- // Not a choice format.
- //
- // Although the first default (counting the number of
- // brackets) is okay in most cases, sometimes a parameter
- // is missing, and so the number of paramters passed into
- // the MessageFormat needs to be larger. (e.g. {0} {2},
- // need String[] to be {"", "", ""}, not {"", ""}).
-
- // Need to add "1" to it because the numbers start at a 0 index.
- _numParms = largestNumber + 1;
- }
-
- if(largestNumber > 9) {
- // MessageFormat will not substitute in parameters after the 10 parameter (i.e., number 9).
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.WARNING, IValidationConstants.ABCD0010W, new String[]{String.valueOf(largestNumber)}, this, getLineNumber());
- messages.add(mmd);
- }
-
- if ((singleQuoteIndex > -1) && parmExists) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0040, new String[]{String.valueOf(singleQuoteIndex)}, this, getLineNumber(), getOffset() + singleQuoteIndex, 1); // magic number 1 because a quote is one character long
- messages.add(mmd);
- }
- else if ((doubleQuoteIndex > -1) && !parmExists) {
- MessageMetaData mmd = new MessageMetaData(IValidationConstants.BUNDLENAME, MessageMetaData.INFO, IValidationConstants.ABCD0050, new String[]{String.valueOf(doubleQuoteIndex)}, this, getLineNumber(), getOffset() + doubleQuoteIndex, 1); // magic number 1 because a quote is one character long
- messages.add(mmd);
- }
-
- return messages;
- }
-
- /**
- * Format this .properties line for display.
- */
- public String toString() {
- StringBuffer buffer = null;
- if(getFile() == null) {
- buffer = new StringBuffer();
- }
- else {
- buffer = new StringBuffer(getFile().getQualifiedFileName());
- }
- buffer.append("\tLine number: "); //$NON-NLS-1$
- buffer.append(String.valueOf(getLineNumber()));
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(getMessageId());
- buffer.append(" = "); //$NON-NLS-1$
- buffer.append(getMessage());
- return buffer.toString();
- }
-
- /**
- * Format this .properties line for display, and substitute a stub,
- * of the specified length, into each java.text.MessageFormat pattern.
- */
- public String toStringWithExpectedLength(int length) {
- StringBuffer buffer = null;
- if(getFile() == null) {
- buffer = new StringBuffer();
- }
- else {
- buffer = new StringBuffer(getFile().getQualifiedFileName());
- }
- buffer.append("\tLine number: "); //$NON-NLS-1$
- buffer.append(String.valueOf(getLineNumber()));
- buffer.append("\t"); //$NON-NLS-1$
- buffer.append(getMessageId());
- buffer.append(" = "); //$NON-NLS-1$
- buffer.append(getExpectedMessage(length));
- return buffer.toString();
- }
-
- /**
- * Return the message prefix without the severity, e.g.,
- * ABCD0000 instead of ABCD0000E.
- */
- public String getShortMessagePrefix() {
- String prefix = getMessagePrefix();
- if(prefix.equals("")) { //$NON-NLS-1$
- return ""; //$NON-NLS-1$
- }
-
- char prefixEnd = prefix.charAt(prefix.length() - 1);
- if ((prefixEnd == 'E') || (prefixEnd == 'W') || (prefixEnd == 'I')) {
- prefix = prefix.substring(0, prefix.length() - 1);
- }
- return prefix;
- }
-
- /**
- * A PropertyLine is equal if it is in the same file and on the same line number.
- */
- public boolean equals(Object o) {
- if(o == null) {
- return false;
- }
-
- if(!(o instanceof PropertyLine)) {
- return false;
- }
-
- PropertyLine oLine = (PropertyLine)o;
- if(!(getLineNumber() == oLine.getLineNumber())) {
- return false;
- }
-
- if(!getFile().equals(oLine.getFile())) {
- return false;
- }
-
- return true;
- }
-
- public int hashCode() {
- return (getFile().hashCode() + getLineNumber());
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyLineComparator.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyLineComparator.java
deleted file mode 100644
index 7daad29a..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/PropertyLineComparator.java
+++ /dev/null
@@ -1,254 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.Comparator;
-
-/**
- * This class contains all of the Comparator classes that can be used
- * to sort PropertyLine instances in an APropertyFile. (For example,
- * to find duplicate message ids, the MessageIdComparator would be used
- * to sort the lines according to message id. The sorted list is
- * traversed to find out if one line has an identical message id
- * to the line that follows it, and if so, a parse warning is reported.)
- */
-public class PropertyLineComparator {
- private static PropertyLineComparator inst = new PropertyLineComparator();
-
- private static final Comparator _messagePrefixComparator = inst.new MessagePrefixComparator();
- private static final Comparator _messageIdComparator = inst.new MessageIdComparator();
- private static Comparator _stringLengthComparator = new StringLengthComparator();
- private static final Comparator _valueComparator = inst.new ValueComparator();
- private static final Comparator _lineNoComparator = inst.new LineNoComparator();
-
- private PropertyLineComparator() {
- }
-
- /**
- * This class compares PropertyLine instances and sorts them according to
- * their message prefix (e.g., ABCD0000E).
- */
- private class MessagePrefixComparator implements java.util.Comparator {
- public int compare(Object a, Object b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- // Can't just look to see if they're the same; need to mark
- // them as the same even if the last letter (E|W|I) is different.
- String aid = ((PropertyLine) a).getMessagePrefix();
- String bid = ((PropertyLine) b).getMessagePrefix();
- if((aid == null) && (bid == null)) {
- return 0;
- }
- else if(aid == null) {
- return -1;
- }
- else if(bid == null) {
- return 1;
- }
-
- aid = aid.toUpperCase().trim();
- bid = bid.toUpperCase().trim();
-
- if((aid.equals("")) && (bid.equals(""))) { //$NON-NLS-1$ //$NON-NLS-2$
- return 0;
- }
- else if(aid.equals("")) { //$NON-NLS-1$
- return -1;
- }
- else if(bid.equals("")) { //$NON-NLS-1$
- return 1;
- }
-
- return ((PropertyLine)a).getShortMessagePrefix().toUpperCase().compareTo(((PropertyLine)b).getShortMessagePrefix().toUpperCase());
- }
- }
-
- /**
- * This comparator sorts PropertyLine by their message id.
- */
- private class MessageIdComparator implements java.util.Comparator {
- public int compare(Object a, Object b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- String aMessageId = null;
- String bMessageId = null;
- if(a instanceof PropertyLine) {
- aMessageId = ((PropertyLine)a).getMessageId();
- }
- else {
- aMessageId = (String)a;
- }
-
- if(b instanceof PropertyLine) {
- bMessageId = ((PropertyLine)b).getMessageId();
- }
- else {
- bMessageId = (String)b;
- }
-
-
- if((aMessageId == null) && (bMessageId == null)) {
- return 0;
- }
- else if(aMessageId == null) {
- return -1;
- }
- else if(bMessageId == null) {
- return 1;
- }
- else {
- return aMessageId.compareTo(bMessageId);
- }
- }
- }
-
- /**
- * Sort the PropertyLine by the length of characters in the message text;
- * if you want to substitute characters for the message parameters,
- * set the length field.
- */
- static class StringLengthComparator implements java.util.Comparator {
- public static int length = 0;
-
- public int compare(Object a, Object b) {
- // return a negative number if object a is less than object b
- // return a zero if the objects are equal
- // return a positive number if object a is greater than object b
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- int aLength = ((PropertyLine)a).getExpectedLength(length);
- int bLength = ((PropertyLine)b).getExpectedLength(length);
-
- return (aLength - bLength);
- }
- }
-
- /**
- * Alphabetize the message text of the PropertyLine.
- */
- private class ValueComparator implements java.util.Comparator {
- public int compare(Object a, Object b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- String aMessage = ((PropertyLine)a).getMessage();
- String bMessage = ((PropertyLine)b).getMessage();
- if((aMessage == null) && (bMessage == null)) {
- return 0;
- }
- else if(aMessage == null) {
- return -1;
- }
- else if(bMessage == null) {
- return 1;
- }
-
- return aMessage.compareTo(bMessage);
- }
- }
-
- /**
- * Sort by line number of the PropertyLine, with the smallest line
- * number first in the list.
- */
- private class LineNoComparator implements java.util.Comparator {
- public int compare(Object a, Object b) {
- // return a negative number if object a is less than object b
- // return a zero if the objects are equal
- // return a positive number if object a is greater than object b
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return -1;
- }
- else if(b == null) {
- return 1;
- }
-
- int aLineNo = ((PropertyLine)a).getLineNumber();
- int bLineNo = ((PropertyLine)b).getLineNumber();
- if((aLineNo < 0) && (bLineNo < 0)) {
- return 0;
- }
- else if(aLineNo < 0) {
- return -1;
- }
- else if(bLineNo < 0) {
- return 1;
- }
-
- return (aLineNo - bLineNo);
- }
- }
-
- public static Comparator getMessagePrefixComparator() {
- return _messagePrefixComparator;
- }
-
- public static Comparator getMessageIdComparator() {
- return _messageIdComparator;
- }
-
- public static Comparator getStringLengthComparator(int length) {
- StringLengthComparator.length = length;
- return _stringLengthComparator;
- }
-
- public static Comparator getValueComparator() {
- return _valueComparator;
- }
-
- public static Comparator getLineNoComparator() {
- return _lineNoComparator;
- }
-}
-
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/ResourceHandler.java b/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/ResourceHandler.java
deleted file mode 100644
index 4dd7b557..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/org/eclipse/jst/validation/sample/parser/ResourceHandler.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.eclipse.jst.validation.sample.parser;
-/*
- * Licensed Material - Property of IBM
- * (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- * DISCLAIMER OF WARRANTIES.
- * The following [enclosed] code is sample code created by IBM
- * Corporation. This sample code is not part of any standard or IBM
- * product and is provided to you solely for the purpose of assisting
- * you in the development of your applications. The code is provided
- * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
- * for any damages arising out of your use of the sample code, even
- * if it has been advised of the possibility of such damages.
- *
- */
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-/**
- * This class retrieves the Strings from the .properties file appropriate
- * for the machine's Locale.
- */
-public final class ResourceHandler {
- private static ResourceBundle _bundle = null;
-
- private ResourceHandler() {
- super();
- }
-
- /**
- * Return the resource bundle which contains the messages
- * in the resource identified by bundleName.
- */
- private static ResourceBundle getBundle(String bundleName) {
- if (_bundle == null) {
- try {
- _bundle = ResourceBundle.getBundle(bundleName);
- }
- catch (MissingResourceException exc) {
- _bundle = null;
- exc.printStackTrace();
- }
- }
- return _bundle;
- }
-
- /**
- * Given the name of the bundle and the message id (key) into the
- * bundle, return the message text identified by the id.
- */
- public static String getExternalizedMessage(String bundleName, String key) {
- try {
- ResourceBundle bundle = getBundle(bundleName);
- if (bundle == null) {
- return key;
- }
-
- return bundle.getString(key);
- }
- catch (NullPointerException exc) {
- exc.printStackTrace();
- }
- return key;
- }
-
- /**
- * Given the name of the bundle, the message id (key) into the
- * bundle, and parameters to be substituted into the java.text.MessageFormat's
- * patterns, return the message with the parameters substituted in.
- */
- public static String getExternalizedMessage(String bundleName, String key, String[] parms) {
- String res = ""; //$NON-NLS-1$
- try {
- res = java.text.MessageFormat.format(getExternalizedMessage(bundleName, key), parms);
- }
- catch (MissingResourceException exc) {
- exc.printStackTrace();
- }
- catch (NullPointerException exc) {
- exc.printStackTrace();
- }
- return res;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.sample/propertiesValidator/propertiesValidator.properties b/tests/org.eclipse.jst.validation.sample/propertiesValidator/propertiesValidator.properties
deleted file mode 100644
index 43a5bdec..00000000
--- a/tests/org.eclipse.jst.validation.sample/propertiesValidator/propertiesValidator.properties
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# Licensed Material - Property of IBM
-# (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
-# US Government Users Restricted Rights - Use, duplication or disclosure
-# restricted by GSA ADP Schedule Contract with IBM Corp.
-#
-# DISCLAIMER OF WARRANTIES.
-# The following [enclosed] code is sample code created by IBM
-# Corporation. This sample code is not part of any standard or IBM
-# product and is provided to you solely for the purpose of assisting
-# you in the development of your applications. The code is provided
-# "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
-# NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
-# THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
-# for any damages arising out of your use of the sample code, even
-# if it has been advised of the possibility of such damages.
-#
-
-ABCD0000 = ABCD0000E: Match the braces in the message. There are {0} '{' and {1} '}'. MessageFormat will throw a NullPointerException when there are mismatching braces.
-ABCD0010E = ABCD0010E: Change argument ('{'{0}'}') to an integer between 0 and 9 inclusive in the message. MessageFormat cannot process an integer parameter that is less than 0.
-ABCD0010W = ABCD0010W: Change argument ('{'{0}'}') to an integer between 0 and 9 inclusive in the message. MessageFormat ignores any parameters larger than 9.
-ABCD0020 = ABCD0020I: Remove redundant parameter '{'{0}'}' from the message. Make messages succinct.
-ABCD0030 = ABCD0030I: Check that argument '{'{0}'}' was omitted from the message deliberately. If it was omitted accidentally, and the code does not provide enough parameters, MessageFormat will throw a NullPointerException.
-ABCD0040 = ABCD0040I: Use two apostrophes in the message at column {0}. MessageFormat removes single apostrophes; for the message to display an apostrophe, two apostrophes must exist in the string. (An apostrophe is a reserved character of MessageFormat.)
-ABCD0050 = ABCD0050I: Use one apostrophe in the message at column {0}. MessageFormat processes only messages with parameters; without MessageFormat, the extra apostrophe will not be removed.
-
-ABCD0060 = ABCD0060W: Make {0} unique. When an id is used more than once in a file, ResourceBundle will use the value of the last message id.
-ABCD0070 = ABCD0070W: {0} may need to be unique. Conventionally, a message prefix applies to only one error condition.
-
-ABCD0080 = ABCD0080E: Fix the syntax error; each line must form MESSAGE_ID = MESSAGE.
-ABCD0090 = ABCD0090W: Check the read permissions of file {0}. The PropertiesValidator either cannot read or cannot find the file.
-
-ABCD0110 = ABCD0110I: Add a terminating apostrophe at column {0}. The '{' and '}' characters must be enclosed in apostrophes.
-
-ABCD0120 = ABCD0120I: Terminate message prefix {0} with a '':''. The IBM standard requires that message prefixes end with a colon.
-ABCD0130 = ABCD0130I: Remove the whitespace between {0} and the '':''. The IBM standard requires an absence of whitespace between the alphanumeric characters and the colon.
-
-# Outside WSAD, append the line number and file name to the end of the message.
-LINE_LOC = Line {0}, file {1}.
-
diff --git a/tests/org.eclipse.jst.validation.sample/test/test.properties b/tests/org.eclipse.jst.validation.sample/test/test.properties
deleted file mode 100644
index 90bc982b..00000000
--- a/tests/org.eclipse.jst.validation.sample/test/test.properties
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# Licensed Material - Property of IBM
-# (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
-# US Government Users Restricted Rights - Use, duplication or disclosure
-# restricted by GSA ADP Schedule Contract with IBM Corp.
-#
-# DISCLAIMER OF WARRANTIES.
-# The following [enclosed] code is sample code created by IBM
-# Corporation. This sample code is not part of any standard or IBM
-# product and is provided to you solely for the purpose of assisting
-# you in the development of your applications. The code is provided
-# "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
-# NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
-# THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
-# for any damages arising out of your use of the sample code, even
-# if it has been advised of the possibility of such damages.
-#
-
-# This file is used to test the Properties Validator.
-#
-
-MISMATCHED_BRACES = This line has '{0}' mismatching braces.
-MISMATCHED_BRACES_2 = This line has { a mismatching brace.
-MISMATCHED_BRACES_3 = This line has } a mismatching brace.
-MISMATCHED_BRACES_OKAY = This line has no '{' mismatching braces '}'.
-MISMATCHED_BRACES_OKAY2 = This line also has no mismatching braces {0} '{' '}'.
-
-TOO_MANY_ARGUMENTS = MessageFormat formats only 10 parameters {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10}.
-TOO_MANY_ARGUMENTS_2 = MessageFormat formats only 10 parameters {10}.
-
-NEGATIVE_ARGUMENT = This line uses a negative {-1} argument.
-B = okay
-REDUNDANT_ARGUMENT = This line uses a redundant {0} {0} argument.
-MISSED_PARM = This line uses {0} and {2} but not (1).
-NEEDS_DOUBLE_APOS = This line uses a single apostrophe (') but should use two {0}.
-NEEDS_SINGLE_APOS = This line uses a double apostrophe ('') but should use one.
-A = okay
-SYM
-DUPLICATE_ID = This line uses a duplicate message id.
-DUPLICATE_ID = This line also uses a duplicate message id.
-DUPLICATE_PREFIX = AAAA0000W: This line uses a duplicate message prefix.
-= jjj
-
-DUPLICATE_PREFIX2 = AAAA0000W: This line also uses a duplicate message prefix.
-Z_DUPLICATE = jjj
-Z_DUPLICATE = mmm
-
-# This is a comment
-Z_DUPLICATE = nnn
-C = okay
-F = a \
-b \
-c
-D = okay
-
-CASE1 = ABCD0000E: Blah Blah Blah
-CASE2 = ABCD0000E Blah Blah Blah
-CASE3 = ABCD0000E : Blah Blah Blah
-CASE4 = ABCD0000E Blah:Blah Blah
-CASE5 = ABCD0000E :
-CASE6 = Blah Blah Blah (i.e., no prefix)
-CASE7 = ABCD0000E: Blah
-CASE8 = ABCD0000E Blah
-CASE9 = ABCD0000E : Blah
-CASE10 = ABCD0000E Blah
-CASE11 = ABCD0000E
diff --git a/tests/org.eclipse.jst.validation.sample/test/test2.properties b/tests/org.eclipse.jst.validation.sample/test/test2.properties
deleted file mode 100644
index fdc0f329..00000000
--- a/tests/org.eclipse.jst.validation.sample/test/test2.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Licensed Material - Property of IBM
-# (C) Copyright IBM Corp. 2002, 2003 - All Rights Reserved.
-# US Government Users Restricted Rights - Use, duplication or disclosure
-# restricted by GSA ADP Schedule Contract with IBM Corp.
-#
-# DISCLAIMER OF WARRANTIES.
-# The following [enclosed] code is sample code created by IBM
-# Corporation. This sample code is not part of any standard or IBM
-# product and is provided to you solely for the purpose of assisting
-# you in the development of your applications. The code is provided
-# "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
-# NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
-# THIS CODE. THIS CODE MAY CONTAIN ERRORS. IBM shall not be liable
-# for any damages arising out of your use of the sample code, even
-# if it has been advised of the possibility of such damages.
-#
-
-#
-# This file is used to test the Properties Validator.
-#
-
-ID1 = This file has no errors in it. \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.sample/tvtplugin.xml b/tests/org.eclipse.jst.validation.sample/tvtplugin.xml
deleted file mode 100644
index a5250a3c..00000000
--- a/tests/org.eclipse.jst.validation.sample/tvtplugin.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="com.ibm.etools.validation.prop"
- name="Properties Validator"
- version="5.1.0"
- class="com.ibm.etools.validation.properties.workbenchimpl.PropertiesValidatorPlugin">
-
- <!--=================================================================-->
- <!-- When testing TVT in EJBDeploy, because org.eclipse.help isn't -->
- <!-- packaged with EJBDeploy, this plugin is deactivated. However, -->
- <!-- because the TVT plugin doesn't ship the documentation, all -->
- <!-- references to the help can be removed. -->
- <!--=================================================================-->
-
- <runtime>
- <library name="runtime/propertiesValidator.jar">
- <export name="*"/>
- </library>
- <library name="runtime/propertiesValFS.jar">
- <export name="*"/>
- </library>
- <library name="runtime/propertiesValWB.jar">
- <export name="*"/>
- </library>
- <library name="runtime/filesystemFWK.jar">
- <export name="*"/>
- </library>
- </runtime>
-
- <requires>
- <import plugin="org.eclipse.core.runtime" version="2.1" match="equivalent"/>
- <import plugin="org.eclipse.core.resources" version="2.1" match="equivalent"/>
- <import plugin="org.eclipse.jdt.core" version="2.1" match="equivalent"/>
- <import plugin="com.ibm.etools.validation" export="true" version="5.1" match="equivalent"/>
- <import plugin="com.ibm.etools.logging.util" version="5.1" match="equivalent"/>
- </requires>
-
- <!--=======================================-->
- <!-- Properties Validator Contributions -->
- <!--=======================================-->
- <extension
- id="PropertiesValidator"
- name="Properties Validator"
- point="com.ibm.etools.validation.validator">
- <validator>
- <projectNature id="org.eclipse.jdt.core.javanature"/>
- <filter objectClass="org.eclipse.core.resources.IFile" nameFilter="*.properties" action="add, change"/>
- <run class="com.ibm.etools.validation.properties.PropertiesValidator" enabled="false" async="true"/>
- <helper class="com.ibm.etools.validation.properties.workbenchimpl.PropertiesHelper"/>
- </validator>
- </extension>
-</plugin>
diff --git a/tests/org.eclipse.jst.validation.test/.classpath b/tests/org.eclipse.jst.validation.test/.classpath
deleted file mode 100644
index 7c27a9cb..00000000
--- a/tests/org.eclipse.jst.validation.test/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="jUnitWrapper/"/>
- <classpathentry kind="src" path="test/"/>
- <classpathentry kind="src" path="testFwk/"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.jst.validation.test/.cvsignore b/tests/org.eclipse.jst.validation.test/.cvsignore
deleted file mode 100644
index 0684c5df..00000000
--- a/tests/org.eclipse.jst.validation.test/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-build.xml
-temp.folder
-validationtest.jar
diff --git a/tests/org.eclipse.jst.validation.test/.project b/tests/org.eclipse.jst.validation.test/.project
deleted file mode 100644
index fca5c40f..00000000
--- a/tests/org.eclipse.jst.validation.test/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.validation.test</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.jst.validation.test/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.jst.validation.test/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 8c71ba3a..00000000
--- a/tests/org.eclipse.jst.validation.test/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,62 +0,0 @@
-#Fri Feb 15 05:43:08 EST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.codeComplete.argumentPrefixes=
-org.eclipse.jdt.core.codeComplete.argumentSuffixes=
-org.eclipse.jdt.core.codeComplete.fieldPrefixes=_
-org.eclipse.jdt.core.codeComplete.fieldSuffixes=
-org.eclipse.jdt.core.codeComplete.localPrefixes=
-org.eclipse.jdt.core.codeComplete.localSuffixes=
-org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=_
-org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.jst.validation.test/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.jst.validation.test/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 0dd6b9c7..00000000
--- a/tests/org.eclipse.jst.validation.test/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,6 +0,0 @@
-#Fri Feb 15 05:43:08 EST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.exception.name=e
-org.eclipse.jdt.ui.gettersetter.use.is=true
-org.eclipse.jdt.ui.keywordthis=false
-org.eclipse.jdt.ui.overrideannotation=true
diff --git a/tests/org.eclipse.jst.validation.test/META-INF/MANIFEST.MF b/tests/org.eclipse.jst.validation.test/META-INF/MANIFEST.MF
deleted file mode 100644
index 03ff4b7a..00000000
--- a/tests/org.eclipse.jst.validation.test/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,31 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.jst.validation.test;singleton:=true
-Bundle-Version: 1.1.100.qualifier
-Bundle-Localization: plugin
-Bundle-Activator: org.eclipse.jst.validation.test.BVTValidationPlugin
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.resources,
- org.eclipse.wst.validation,
- org.junit,
- org.eclipse.jst.validation.sample,
- org.eclipse.jem.util,
- org.eclipse.wst.common.frameworks,
- org.eclipse.jem,
- org.eclipse.emf.ecore,
- org.eclipse.jdt.core,
- org.eclipse.jem.workbench,
- org.eclipse.jst.j2ee
-Bundle-ActivationPolicy: lazy
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.jst.validation.api.test,
- org.eclipse.jst.validation.test,
- org.eclipse.jst.validation.test.fwk,
- org.eclipse.jst.validation.test.fwk.validator,
- org.eclipse.jst.validation.test.internal.registry,
- org.eclipse.jst.validation.test.internal.util,
- org.eclipse.jst.validation.test.junit,
- org.eclipse.jst.validation.test.setup
-Bundle-ClassPath: validationtest.jar
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/tests/org.eclipse.jst.validation.test/about.html b/tests/org.eclipse.jst.validation.test/about.html
deleted file mode 100644
index 2199df3f..00000000
--- a/tests/org.eclipse.jst.validation.test/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/tests/org.eclipse.jst.validation.test/build.properties b/tests/org.eclipse.jst.validation.test/build.properties
deleted file mode 100644
index 42b026be..00000000
--- a/tests/org.eclipse.jst.validation.test/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-source.validationtest.jar = jUnitWrapper/,\
- test/,\
- testFwk/,\
- validators/
-bin.includes = plugin.xml,\
- testInput/,\
- validationtest.jar,\
- about.html,\
- META-INF/,\
- test.xml,\
- plugin.properties
-output.validationtest.jar = bin/
-jars.compile.order = validationtest.jar
-source.validationtest.jar = jUnitWrapper/,\
- test/,\
- testFwk/
- \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.test/build/buildcontrol.properties b/tests/org.eclipse.jst.validation.test/build/buildcontrol.properties
deleted file mode 100644
index 94147dea..00000000
--- a/tests/org.eclipse.jst.validation.test/build/buildcontrol.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-CONTACT=ruthdaly@ca.ibm.com
-ComponentShortName=ValTest
-ComponentFullName=Validation BVT Plugin
-ComponentCompetency=BVT
-JavaCompile.1=srcjar
-BuildVerification.1=dir \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.test/build/package.xml b/tests/org.eclipse.jst.validation.test/build/package.xml
deleted file mode 100644
index a590d8b2..00000000
--- a/tests/org.eclipse.jst.validation.test/build/package.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<project name="com.ibm.etools.validation.test" default="packagingPlugin" basedir="./..">
- <target name="init">
- <property name="packageDir" value=""/>
- <property name="plugin.directory" value="${basedir}"/>
- <property name="plugin.id" value="com.ibm.etools.validation.test"/>
- <property name="plugin.version" value=""/>
- </target>
- <target name="packagingPlugin" depends="init">
- <echo message="${plugin.id}"/>
- <copy todir="${packageDir}/plugins/${plugin.id}_${plugin.version}">
- <fileset dir="${plugin.directory}">
- <include name="plugin.xml"/>
- <include name="testvalidation.bat"/>
- <include name="testvalidation.sh"/>
- <include name="runtime/test.jar"/>
- <include name="runtime/jUnitWrapper.jar"/>
- </fileset>
- </copy>
- </target>
-</project>
diff --git a/tests/org.eclipse.jst.validation.test/build/sourcejar.txt b/tests/org.eclipse.jst.validation.test/build/sourcejar.txt
deleted file mode 100644
index 69bd4736..00000000
--- a/tests/org.eclipse.jst.validation.test/build/sourcejar.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-test
-jUnitWrapper
-
-
-
-
diff --git a/tests/org.eclipse.jst.validation.test/build/wsBuild.xml b/tests/org.eclipse.jst.validation.test/build/wsBuild.xml
deleted file mode 100644
index dedb95a8..00000000
--- a/tests/org.eclipse.jst.validation.test/build/wsBuild.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE project [
- <!ENTITY baseBuild SYSTEM "file:../../wsBuildDef.xml">
-]>
-
-<project name="buildPlugin" default="build" basedir="./..">
-
-<!-- include the common xml build file -->
-&baseBuild;
-
-<!-- customize the jar creation here for multi-jar builds -->
-<target name="build" depends="prepare" if="plugin.id">
- <antcall target="buildjar">
- <param name="jarname" value="test"/>
- <param name="jarclasspath" value="${plugin.classpath}"/>
- </antcall>
-
- <antcall target="buildjar">
- <param name="jarname" value="jUnitWrapper"/>
- <param name="jarclasspath" value="${plugin.classpath};${plugin.directory}/${plugin.library.directory}/test.jar"/>
- </antcall>
-
-</target>
-
-</project>
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/AutomatedValidationBVT.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/AutomatedValidationBVT.java
deleted file mode 100644
index c9548cc7..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/AutomatedValidationBVT.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Created on Feb 9, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.validation.test.junit;
-
-
-import java.io.File;
-import java.net.URL;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.jst.validation.api.test.ApiTestsSuite;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-
-
-/**
- * @author jsholl
- * @author jialin
- *
- */
-public class AutomatedValidationBVT extends TestSuite {
-
- public static String baseDirectory = null;
-
- static {
- try {
- URL url = BVTValidationPlugin.getPlugin().getBundle().getEntry("/");
- AutomatedValidationBVT.baseDirectory = FileLocator.toFileURL(url).getFile() + "validationResources" + File.separatorChar;
- } catch (Exception e) {
- System.err.println("Using working directory since a workspace URL could not be located.");
- }
- }
-
- public static int unimplementedMethods;
-
- public static void main(String[] args) {
- unimplementedMethods = 0;
- TestRunner.run(suite());
- if (unimplementedMethods > 0) {
- System.out.println("\nCalls to warnUnimpl: " + unimplementedMethods);
- }
- }
-
- public AutomatedValidationBVT() {
- super();
- TestSuite suite = (TestSuite) AutomatedValidationBVT.suite();
- for (int i = 0; i < suite.testCount(); i++) {
- addTest(suite.testAt(i));
- }
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.jst.validation.test");
- //suite.addTest(BVTSuite.suite());
- suite.addTest(ApiTestsSuite.suite());
- return suite;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/BVTSuite.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/BVTSuite.java
deleted file mode 100644
index e3734558..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/BVTSuite.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.eclipse.jst.validation.test.junit;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.validation.test.internal.registry.OperationTestcase;
-import org.eclipse.jst.validation.test.internal.registry.ValidatorTestcase;
-import org.eclipse.jst.validation.test.internal.util.BVTValidationUtility;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-/**
- * Wraps the existing validation bvt code in a JUnit artifact
- * so that the tests can be run within JUnit. Instances of this
- * class wrap all of the ValidatorSuite instances that must be run.
- */
-public class BVTSuite extends TestSuite {
- private Map _validatorSuites = null;
-
- public BVTSuite() {
- _validatorSuites = new HashMap();
- loadValidatorSuites();
- loadOperationSuites();
- }
-
- private void loadValidatorSuites() {
- IProgressMonitor monitor = new NullProgressMonitor();
-
- ValidatorTestcase[] tmds = BVTValidationUtility.getValidatorTests(monitor);
- for(int i=0; i<tmds.length; i++) {
- ValidatorTestcase tmd = tmds[i];
-
- if(tmd.isVisible()) {
- ValidatorMetaData vmd = tmd.getValidatorMetaData();
- ValidatorSuite vs = (ValidatorSuite)_validatorSuites.get(vmd);
- if(vs == null) {
- vs = new ValidatorSuite(vmd);
- }
- ValidatorTest vt = new ValidatorTest(tmd, vs);
- vs.addTest(vt);
- _validatorSuites.put(vmd, vs);
- }
- }
-
- Iterator iterator = _validatorSuites.values().iterator();
- while(iterator.hasNext()) {
- ValidatorSuite vs = (ValidatorSuite)iterator.next();
- addTest(vs);
- }
- }
-
- private void loadOperationSuites() {
- IProgressMonitor monitor = new NullProgressMonitor();
-
- OperationTestcase[] tmds = BVTValidationUtility.getOperationTests(monitor);
- OperationSuite os = new OperationSuite();
- for(int i=0; i<tmds.length; i++) {
- OperationTestcase tmd = tmds[i];
-
- if(tmd.isVisible()) {
- OperationTest ot = new OperationTest(tmd, os);
- os.addTest(ot);
- }
- }
-
- addTest(os);
- }
-
- public static Test suite() {
- return new BVTSuite();
- }
-
- public String toString() {
- return "Validation BVT Suite"; //$NON-NLS-1$
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/BuildInfo.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/BuildInfo.java
deleted file mode 100644
index aef06d12..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/BuildInfo.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.eclipse.jst.validation.test.junit;
-public class BuildInfo {
- public static final String copyright = "Licensed Materials -- Property of IBM\n(c) Copyright International Business Machines Corporation, 2001,2003\nUS Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.";
- public static final String fgBuildLevel = "20031112_1915-WB212-AD-V511D-W5";
- public static String level() { return fgBuildLevel; }
- public static String getWSABuildLevel() { return fgBuildLevel; }
-}
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/JUnitBuffer.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/JUnitBuffer.java
deleted file mode 100644
index ae9fe60e..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/JUnitBuffer.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Created on Apr 16, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.jst.validation.test.junit;
-
-import java.io.File;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.BufferedTaskStatus;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-
-
-/**
- * When the tests are run as part of JUnit, redirect the output
- * to the JUnit test case.
- */
-public class JUnitBuffer implements IBuffer {
- private String _logFileName = null;
- private BufferedTaskStatus _status = null;
-
- JUnitBuffer(String logFileName) {
- _status = new BufferedTaskStatus(getLogFileName(logFileName), new NullProgressMonitor());
- }
-
- public void setProgressMonitor(IProgressMonitor monitor) {
- _status.setProgressMonitor(monitor);
- }
-
- private String getLogFileName(String logFileName) {
- if(_logFileName == null) {
- logFileName = logFileName.replace(' ', '_');
- IPath stateLocation = BVTValidationPlugin.getPlugin().getStateLocation();
- File log = new File(stateLocation.toOSString(), logFileName); //$NON-NLS-1$
- _logFileName = log.getAbsolutePath();
- }
- return _logFileName;
- }
-
- public String getLogFileName() {
- return _status.getLogFileName();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#clear()
- */
- public void clear() {
- _status.clear();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#delineate(java.lang.String)
- */
- public void delineate(String taskName) {
- _status.delineate(taskName);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#getProgressMonitor()
- */
- public IProgressMonitor getProgressMonitor() {
- return _status.getProgressMonitor();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#report()
- */
- public void report() {
- _status.report();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#write(java.lang.String)
- */
- public void write(String message) {
- _status.write(message);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#addElapsedTime(java.lang.String, long)
- */
- public void addElapsedTime(String taskName, long elapsedTime) {
- _status.addElapsedTime(taskName, elapsedTime);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#addExecutionStatus(java.lang.String, int, org.eclipse.jst.validation.test.setup.IBuffer, java.lang.String)
- */
- public void addExecutionStatus(String testcaseName, String subTaskName, int passOrFail, IBuffer buffer, String message) {
- _status.addExecutionStatus(testcaseName, subTaskName, passOrFail, buffer, message);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#addGlobalExecutionStatus(java.lang.String, int)
- */
- public void addExecutionStatus(String testPassName, boolean pass) {
- _status.addExecutionStatus(testPassName, pass);
- }
-
- public void addExecutionStatus(String testPassName, String subTaskName, boolean pass) {
- _status.addExecutionStatus(testPassName, subTaskName, pass);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#isSuccessful()
- */
- public boolean isSuccessful() {
- return _status.isSuccessful();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#isSuccessful()
- */
- public boolean isSuccessful(String testName) {
- return _status.isSuccessful(testName);
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/OperationSuite.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/OperationSuite.java
deleted file mode 100644
index cff7d0b2..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/OperationSuite.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.eclipse.jst.validation.test.junit;
-
-import junit.framework.TestResult;
-import junit.framework.TestSuite;
-
-/**
- * Instances of this class wrap all of the operations, in plugin.xml,
- * for the validation framework.
- */
-public class OperationSuite extends TestSuite {
- private JUnitBuffer _buffer = null;
-
- public OperationSuite() {
- }
-
- public String toString() {
- return "Validation Framework Tests"; //$NON-NLS-1$
- }
-
- public JUnitBuffer getBuffer() {
- if(_buffer == null) {
- _buffer = new JUnitBuffer(toString() + System.currentTimeMillis() + ".log"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return _buffer;
- }
-
- /* (non-Javadoc)
- * @see junit.framework.Test#run(junit.framework.TestResult)
- */
- public void run(TestResult result) {
- super.run(result);
- getBuffer().report(); // report only after all of the tests in this suite have finished
- getBuffer().clear();
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/OperationTest.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/OperationTest.java
deleted file mode 100644
index 6c0b76b5..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/OperationTest.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package org.eclipse.jst.validation.test.junit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.validation.test.internal.registry.OperationTestcase;
-import org.eclipse.jst.validation.test.internal.registry.TestcaseUtility;
-import org.eclipse.jst.validation.test.internal.util.BVTRunner;
-
-
-/**
- * Instances of this class run an IWorkspaceRunnable that tests the
- * validation framework.
- */
-public class OperationTest extends TestCase {
- private OperationSuite _suite = null;
- private OperationTestcase _tmd = null;
-
- public OperationTest(OperationTestcase tmd, OperationSuite suite) {
- super(tmd.getName()); // the method named "test" runs the test.
- _tmd = tmd;
- _suite = suite;
- }
-
- public JUnitBuffer getBuffer() {
- return _suite.getBuffer();
- }
-
- public String toString() {
- return _tmd.getName();
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#runTest()
- */
- protected void runTest() throws Throwable {
- try {
- IProject project = TestcaseUtility.findProject(_tmd);
- if((project == null) || !project.exists()) {
- // File needs to be imported (i.e., set up the test).
- if(!BVTRunner.singleton().setupTests(getBuffer(), _tmd, false)) {
- fail("Could not import input from directory " + TestcaseUtility.getInputDir(_tmd)); //$NON-NLS-1$
- }
- }
-
- if(!project.isAccessible()) {
- fail("Project " + project.getName() + " is not accessible."); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- _tmd.run(getBuffer(), project);
- if(!getBuffer().isSuccessful(_tmd.getName())) {
- fail(_tmd.getName() + " failed. Read the log for details. " + getBuffer().getLogFileName()); //$NON-NLS-1$
- }
- }
- finally {
- // Whether this test case fails or not, send its results to the log.
- getBuffer().delineate(_tmd.getName());
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/ValidatorSuite.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/ValidatorSuite.java
deleted file mode 100644
index b6fea36c..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/ValidatorSuite.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.eclipse.jst.validation.test.junit;
-
-import junit.framework.TestResult;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-/**
- * Instances of this class wrap all of the <test> instances,
- * contributed in plugin.xml, for one validator.
- */
-public class ValidatorSuite extends TestSuite {
- private ValidatorMetaData _vmd = null;
- private JUnitBuffer _buffer = null;
-
- public ValidatorSuite(ValidatorMetaData vmd) {
- _vmd = vmd;
- }
-
- public String toString() {
- return _vmd.getValidatorDisplayName();
- }
-
- public JUnitBuffer getBuffer() {
- if(_buffer == null) {
- _buffer = new JUnitBuffer(toString() + System.currentTimeMillis() + ".log"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return _buffer;
- }
-
- /* (non-Javadoc)
- * @see junit.framework.Test#run(junit.framework.TestResult)
- */
- public void run(TestResult result) {
- super.run(result);
- getBuffer().report(); // report only after all of the tests in this suite have finished
- getBuffer().clear();
- }
-}
-
diff --git a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/ValidatorTest.java b/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/ValidatorTest.java
deleted file mode 100644
index 3abd0fb6..00000000
--- a/tests/org.eclipse.jst.validation.test/jUnitWrapper/org/eclipse/jst/validation/test/junit/ValidatorTest.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.validation.test.junit;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.validation.test.internal.registry.TestcaseUtility;
-import org.eclipse.jst.validation.test.internal.registry.ValidatorTestcase;
-import org.eclipse.jst.validation.test.internal.util.BVTRunner;
-import org.eclipse.wst.validation.internal.operations.ValidatorManager;
-
-
-/**
- * Instances of this class represent one <test>, contributed in
- * plugin.xml, for one validator.
- */
-public class ValidatorTest extends TestCase {
- private ValidatorTestcase _tmd = null;
- private ValidatorSuite _suite = null;
-
- public ValidatorTest(ValidatorTestcase tmd, ValidatorSuite suite) {
- super(tmd.getName()); // the method named "test" runs the test.
- _tmd = tmd;
- _suite = suite;
- }
-
- public JUnitBuffer getBuffer() {
- return _suite.getBuffer();
- }
-
- public String toString() {
- return _tmd.getProjectName();
- }
-
- /* (non-Javadoc)
- * @see junit.framework.TestCase#runTest()
- */
- protected void runTest() throws Throwable {
- try {
- IProject project = TestcaseUtility.findProject(_tmd);
- if((project == null) || !project.exists()) {
- // File needs to be imported (i.e., set up the test).
- if(!BVTRunner.singleton().setupTests(getBuffer(), _tmd, false)) {
- fail("Could not import input from directory " + TestcaseUtility.getInputDir(_tmd)); //$NON-NLS-1$
- }
- }
-
- if(!project.isAccessible()) {
- fail("Project " + project.getName() + " is not accessible."); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- _tmd.run(getBuffer(), project);
- if(!getBuffer().isSuccessful(_tmd.getName())) {
- fail(_tmd.getName() + " failed. Read the log for details. " + getBuffer().getLogFileName()); //$NON-NLS-1$
- }
- ValidatorManager vm = ValidatorManager.getManager();
- ValidatorManager.addProjectBuildValidationSupport(project);
- vm.enableValidator("ClasspathDependencyValidator");
- vm.disableValidator("EarValidator");
- vm.enableValidator("WarValidator", project, true, false);
- vm.disableValidator("EJBValidator", project, true, true);
- }
- finally {
- // Whether this test case fails or not, send its results to the log.
- getBuffer().delineate(_tmd.getName());
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/plugin.properties b/tests/org.eclipse.jst.validation.test/plugin.properties
deleted file mode 100644
index d647a6f0..00000000
--- a/tests/org.eclipse.jst.validation.test/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-Bundle-Name.0 = Testcases for Validation Framework
-Bundle-Vendor.0 = Eclipse Web Tools Platform
-
diff --git a/tests/org.eclipse.jst.validation.test/plugin.xml b/tests/org.eclipse.jst.validation.test/plugin.xml
deleted file mode 100644
index 5442c085..00000000
--- a/tests/org.eclipse.jst.validation.test/plugin.xml
+++ /dev/null
@@ -1,422 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
-<!--============================-->
-<!-- Validation Contributions -->
-<!--============================-->
-<!-- Validation extension points -->
- <extension-point id="test" name="validator test"/>
- <extension-point id="testSetup" name="testSetup"/>
- <extension-point id="opTest" name="operation test"/>
-
-<!-- ====================================================== -->
-<!-- JUnit BVT Test Suite -->
-<!-- ====================================================== -->
- <extension
- point="org.eclipse.wst.common.tests.collector.suites">
- <suite
- name="Validation BVT Suite"
- class="org.eclipse.jst.validation.test.junit.BVTSuite">
- </suite>
- </extension>
-<!-- batch BVT -->
- <!-- <extension
- id="bvt_batch"
- point="org.eclipse.core.runtime.applications">
- <application>
- <run
- class="org.eclipse.jst.validation.test.BVTValidationBatch">
- </run>
- </application>
- </extension> -->
-
-<!--========================================-->
-<!-- Builder (used only for BVT test input) -->
-<!--========================================-->
- <extension
- id="bvtbuilder"
- name="Validation BVT Test Builder"
- point="org.eclipse.core.resources.builders">
- <builder>
- <run
- class="org.eclipse.jst.validation.test.fwk.TestOpConstrBuilder">
- </run>
- </builder>
- </extension>
-<!--=============================================================-->
-<!-- FWK Test Validators -->
-<!-- -->
-<!-- These validators must not be enabled by default or some -->
-<!-- other BVT test cases (e.g. j2ee) will fail because -->
-<!-- messages will exist in the task list. -->
-<!--=============================================================-->
-<!--
- The FWKTestValidator supports full validation, and manual
- incremental build validation, but not automatic incremental
- build validation.
- -->
- <extension
- id="FwkTestValidator"
- name="VF Test Validator"
- point="org.eclipse.wst.validation.validator">
- <validator>
- <projectNature
- id="org.eclipse.jdt.core.javanature">
- </projectNature>
- <filter
- objectClass="org.eclipse.core.resources.IFile"
- nameFilter="*.java">
- </filter>
- <helper
- class="org.eclipse.jst.validation.test.fwk.validator.FwkTestHelper">
- </helper>
- <run
- enabled="false"
- class="org.eclipse.jst.validation.test.fwk.validator.FwkTestValidator"
- incremental="false">
- </run>
- </validator>
- </extension>
-<!--
- The FWKNoBuildTestValidator supports full validation, and does not
- support any build validation.
- -->
- <extension
- id="FwkNoBuildTestValidator"
- name="VF NoBuild Test Validator"
- point="org.eclipse.wst.validation.validator">
- <validator>
- <projectNature
- id="org.eclipse.jdt.core.javanature">
- </projectNature>
- <filter
- objectClass="org.eclipse.core.resources.IFile"
- nameFilter="*.java">
- </filter>
- <helper
- class="org.eclipse.jst.validation.test.fwk.validator.FwkNoBuildTestHelper">
- </helper>
- <run
- fullBuild="false"
- enabled="false"
- class="org.eclipse.jst.validation.test.fwk.validator.FwkNoBuildTestValidator"
- incremental="false">
- </run>
- </validator>
- </extension>
-<!--=====================================-->
-<!-- Fwk Test Validator BVT test setup -->
-<!--=====================================-->
- <extension
- id="FwkTestValidatorBVT_testSetup"
- name="Fwk Test Validator BVT TestSetup"
- point="org.eclipse.jst.validation.test.testSetup">
- <import
- input="FWK/BVT/opConstr.jar"
- operation="org.eclipse.jst.validation.test.setup.JARImportOperation">
- </import>
- </extension>
-<!--=============================================================-->
-<!-- Visible Framework BVT tests -->
-<!--=============================================================-->
- <extension
- id="TestOpConstructors"
- name="Test Operation Constructors"
- point="org.eclipse.jst.validation.test.opTest">
- <optest
- input="FWK/BVT/opConstr.jar"
- operation="org.eclipse.jst.validation.test.fwk.TestOpConstrOperation"
- project="opConstr"
- visible="false">
- </optest>
- </extension>
- <!--<extension
- id="VALFWK02"
- name="VALFWK02"
- point="org.eclipse.jst.validation.test.opTest">
- <optest
- input="FWK/BVT/opConstr.jar"
- operation="org.eclipse.jst.validation.test.fwk.VALFWK02Operation"
- project="opConstr"
- visible="false">
- </optest>
- </extension>-->
-<!--=============================================================-->
-<!-- Fwk Test Validator BVT tests -->
-<!-- None of these tests are visible on the Test Collector menu -->
-<!-- Instead, these are used as part of the VALFWK02 and -->
-<!-- TestOpConstr tests. -->
-<!--=============================================================-->
- <extension
- id="FwkTestValidatorBVT"
- name="Fwk Test Validator BVT Tests"
- point="org.eclipse.jst.validation.test.test">
- <test
- input="FWK/BVT/opConstr.jar"
- validator="org.eclipse.jst.validation.test.fwk.validator.FwkTestValidator"
- project="opConstr"
- visible="false">
- <message
- location="1"
- prefix=""
- resource="ITest.java"
- text="This is a test message for the validation framework, reported by VF Test Validator. Please ignore.">
- </message>
- <message
- location="1"
- prefix=""
- resource="Test1.java"
- text="This is a test message for the validation framework, reported by VF Test Validator. Please ignore.">
- </message>
- <message
- location="1"
- prefix=""
- resource="test2/ITest2.java"
- text="This is a test message for the validation framework, reported by VF Test Validator. Please ignore.">
- </message>
- <message
- location="1"
- prefix=""
- resource="test2/Test2.java"
- text="This is a test message for the validation framework, reported by VF Test Validator. Please ignore.">
- </message>
- </test>
- </extension>
- <extension
- id="FwkNoBuildTestValidatorBVT"
- name="Fwk NoBuild Test Validator BVT Tests"
- point="org.eclipse.jst.validation.test.test">
- <test
- input="FWK/BVT/opConstr.jar"
- validator="org.eclipse.jst.validation.test.fwk.validator.FwkNoBuildTestValidator"
- project="opConstr"
- visible="false">
- <message
- location="1"
- prefix=""
- resource="ITest.java"
- text="This is a test message for the validation framework, reported by VF NoBuild Test Validator. Please ignore.">
- </message>
- <message
- location="1"
- prefix=""
- resource="Test1.java"
- text="This is a test message for the validation framework, reported by VF NoBuild Test Validator. Please ignore.">
- </message>
- <message
- location="1"
- prefix=""
- resource="test2/ITest2.java"
- text="This is a test message for the validation framework, reported by VF NoBuild Test Validator. Please ignore.">
- </message>
- <message
- location="1"
- prefix=""
- resource="test2/Test2.java"
- text="This is a test message for the validation framework, reported by VF NoBuild Test Validator. Please ignore.">
- </message>
- </test>
- </extension>
- <extension
- id="PropertiesValidatorBVT"
- name="Properties Validator BVT Tests"
- point="org.eclipse.jst.validation.test.test">
- <test
- input="FWK/BVT/opConstr.jar"
- validator="org.eclipse.jst.validation.sample.PropertiesValidator"
- project="opConstr"
- visible="false">
- <message
- location="3"
- prefix="ABCD0000"
- resource="resources/test.properties"
- text="ABCD0000E: Match the braces in the message. There are 0 { and 1 }. MessageFormat will throw a NullPointerException when there are mismatching braces.">
- </message>
- <message
- location="2"
- prefix="ABCD0000"
- resource="resources/test.properties"
- text="ABCD0000E: Match the braces in the message. There are 1 { and 0 }. MessageFormat will throw a NullPointerException when there are mismatching braces.">
- </message>
- <message
- location="1"
- prefix="ABCD0000"
- resource="resources/test.properties"
- text="ABCD0000E: Match the braces in the message. There are 0 { and 1 }. MessageFormat will throw a NullPointerException when there are mismatching braces.">
- </message>
- <message
- location="10"
- prefix="ABCD0010"
- resource="resources/test.properties"
- text="ABCD0010E: Change argument ({-1}) to an integer between 0 and 9 inclusive in the message. MessageFormat cannot process an integer parameter that is less than 0.">
- </message>
- <message
- location="8"
- prefix="ABCD0010"
- resource="resources/test.properties"
- text="ABCD0010W: Change argument ({10}) to an integer between 0 and 9 inclusive in the message. MessageFormat ignores any parameters larger than 9.">
- </message>
- <message
- location="7"
- prefix="ABCD0010"
- resource="resources/test.properties"
- text="ABCD0010W: Change argument ({10}) to an integer between 0 and 9 inclusive in the message. MessageFormat ignores any parameters larger than 9.">
- </message>
- <message
- location="12"
- prefix="ABCD0020"
- resource="resources/test.properties"
- text="ABCD0020I: Remove redundant parameter {0} from the message. Make messages succinct.">
- </message>
- <message
- location="13"
- prefix="ABCD0030"
- resource="resources/test.properties"
- text="ABCD0030I: Check that argument {1} was omitted from the message deliberately. If it was omitted accidentally, and the code does not provide enough parameters, MessageFormat will throw a NullPointerException.">
- </message>
- <message
- location="8"
- prefix="ABCD0030"
- resource="resources/test.properties"
- text="ABCD0030I: Check that argument {0} was omitted from the message deliberately. If it was omitted accidentally, and the code does not provide enough parameters, MessageFormat will throw a NullPointerException.">
- </message>
- <message
- location="14"
- prefix="ABCD0040"
- resource="resources/test.properties"
- text="ABCD0040I: Use two apostrophes in the message at column 57. MessageFormat removes single apostrophes; for the message to display an apostrophe, two apostrophes must exist in the string. (An apostrophe is a reserved character of MessageFormat.)">
- </message>
- <message
- location="15"
- prefix="ABCD0050"
- resource="resources/test.properties"
- text="ABCD0050I: Use one apostrophe in the message at column 57. MessageFormat processes only messages with parameters; without MessageFormat, the extra apostrophe will not be removed.">
- </message>
- <message
- location="25"
- prefix="ABCD0060"
- resource="resources/test.properties"
- text="ABCD0060W: Make Z_DUPLICATE unique. When an id is used more than once in a file, ResourceBundle will use the value of the last message id.">
- </message>
- <message
- location="24"
- prefix="ABCD0060"
- resource="resources/test.properties"
- text="ABCD0060W: Make Z_DUPLICATE unique. When an id is used more than once in a file, ResourceBundle will use the value of the last message id.">
- </message>
- <message
- location="19"
- prefix="ABCD0060"
- resource="resources/test.properties"
- text="ABCD0060W: Make DUPLICATE_ID unique. When an id is used more than once in a file, ResourceBundle will use the value of the last message id.">
- </message>
- <message
- location="18"
- prefix="ABCD0060"
- resource="resources/test.properties"
- text="ABCD0060W: Make DUPLICATE_ID unique. When an id is used more than once in a file, ResourceBundle will use the value of the last message id.">
- </message>
- <message
- location="28"
- prefix="ABCD0060"
- resource="resources/test.properties"
- text="ABCD0060W: Make Z_DUPLICATE unique. When an id is used more than once in a file, ResourceBundle will use the value of the last message id.">
- </message>
- <message
- location="43"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="42"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="41"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="39"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="38"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="37"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="36"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="45"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="44"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="35"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: ABCD0000E may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="23"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: AAAA0000W may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="20"
- prefix="ABCD0070"
- resource="resources/test.properties"
- text="ABCD0070W: AAAA0000W may need to be unique. Conventionally, a message prefix applies to only one error condition.">
- </message>
- <message
- location="21"
- prefix="ABCD0080"
- resource="resources/test.properties"
- text="ABCD0080E: Fix the syntax error; each line must form MESSAGE_ID = MESSAGE.">
- </message>
- <message
- location="17"
- prefix="ABCD0080"
- resource="resources/test.properties"
- text="ABCD0080E: Fix the syntax error; each line must form MESSAGE_ID = MESSAGE.">
- </message>
- <message
- location="1"
- prefix="ABCD0110"
- resource="resources/test.properties"
- text="ABCD0110I: Add a terminating apostrophe at column 36. The { and } characters must be enclosed in apostrophes.">
- </message>
- </test>
- </extension>
-
-
-
-
-</plugin>
diff --git a/tests/org.eclipse.jst.validation.test/test.xml b/tests/org.eclipse.jst.validation.test/test.xml
deleted file mode 100644
index 8c2ba8c5..00000000
--- a/tests/org.eclipse.jst.validation.test/test.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="testsuite" default="run" basedir=".">
- <!--==============================================================-->
- <!-- The property ${eclipse-home} should be passed into this script. -->
- <!-- Set a meaningful default value for when it is not. -->
- <!--==============================================================-->
- <!-- <property name="eclipse-home" value="${basedir}\.."/> -->
-
- <!--==============================================================-->
- <!-- Set the environment properties. -->
- <!--==============================================================-->
- <property name="plugin-name" value="org.eclipse.jst.validation.test"/>
- <property name="library-file"
- value="${eclipse-home}/plugins/org.eclipse.test_3.2.0/library.xml"/>
- <property name="extraVMargs" value="-Xmx700M"/>
-
- <!--===============================================================-->
- <!-- This target initializes all of the tests that will run. -->
- <!-- Initialization for individual tests should be done within the -->
- <!-- body of the suite target. -->
- <!--===============================================================-->
- <target name="init">
- <tstamp/>
- <delete>
- <fileset dir="${eclipse-home}" includes="org.*.xml"/>
- </delete>
- </target>
-
- <!--==============================================================-->
- <!-- This target defines the tests that need to run. -->
- <!--==============================================================-->
- <target name="suite">
- <property name="workspace" value="${eclipse-home}/jst_folder"/>
- <delete dir="${workspace}" quiet="true"/>
- <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${workspace}"/>
- <property name="plugin-name" value="${plugin-name}"/>
- <property name="classname" value="org.eclipse.jst.validation.test.junit.AutomatedValidationBVT"/>
- <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/>
- <property name="extraVMargs" value="${extraVMargs}"/>
- </ant>
- </target>
-
- <!--==================================================================-->
- <!-- This target holds code to cleanup the testing environment after -->
- <!-- all of the tests have been run. You can use this target to -->
- <!-- delete temporary files that have been created. -->
- <!--==================================================================-->
- <target name="cleanup">
- </target>
-
- <!--==================================================================-->
- <!-- This target runs the test suite. Any actions that need to happen -->
- <!-- after all the tests have been run should go here. -->
- <!--==================================================================-->
- <target name="run" depends="init,suite,cleanup">
- <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
- <property name="includes" value="org.*.xml"/>
- <property name="output-file" value="${plugin-name}.xml"/>
- </ant>
- </target>
-
-</project>
-
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/api/test/ApiTestsSuite.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/api/test/ApiTestsSuite.java
deleted file mode 100644
index 95067e0b..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/api/test/ApiTestsSuite.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.eclipse.jst.validation.api.test;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class ApiTestsSuite extends TestSuite {
-
- public static Test suite(){
- return new ApiTestsSuite();
- }
-
- public ApiTestsSuite() {
- super();
- addTest(ValidationRegistryApiTest.suite());
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/api/test/ValidationRegistryApiTest.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/api/test/ValidationRegistryApiTest.java
deleted file mode 100644
index ee197f90..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/api/test/ValidationRegistryApiTest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.eclipse.jst.validation.api.test;
-
-import junit.framework.Assert;
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.validation.internal.provisional.ValidationFactory;
-import org.eclipse.wst.validation.internal.provisional.core.IValidator;
-
-public class ValidationRegistryApiTest extends TestCase {
-
- public static Test suite() {
- return new TestSuite(ValidationRegistryApiTest.class);
- }
-
- public ValidationRegistryApiTest() {
- super();
- }
-
- public ValidationRegistryApiTest(String name) {
- super(name);
- }
-
- public void test_getValidator() {
- try {
- ValidationFactory valFactory = ValidationFactory.instance;
- IValidator validator = valFactory.getValidator("org.eclipse.jst.j2ee.internal.ejb.workbench.validation.UIEjbValidator");
- Assert.assertNotNull(validator);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationBatch.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationBatch.java
deleted file mode 100644
index 56d22074..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationBatch.java
+++ /dev/null
@@ -1,107 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPlatformRunnable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.internal.util.BVTRunner;
-import org.eclipse.jst.validation.test.internal.util.BVTValidationUtility;
-/**
- */
-public class BVTValidationBatch implements IPlatformRunnable {
- private String _dir = null; // The test cases (.ear, .jar) are identified through a relative directory, and this is the parent of that relative directory.
- private boolean _verbose = false;
- static Boolean _passed = null;
-
- boolean isVerbose() {
- return _verbose;
- }
-
- void setVerbose(boolean v) {
- _verbose = v;
- }
-
- String getDir() {
- return _dir;
- }
-
- void setDir(String dir) {
- _dir = dir;
- }
-
- private void parseUserSettings(Object args) {
- if(args == null) {
- // nothing to set
- return;
- }
-
- if(args instanceof String[]) {
- String[] userSettings = (String[])args;
- if(userSettings.length == 0) {
- return;
- }
-
- for(int i=0; i<userSettings.length; i++) {
- if(userSettings[i].equals("-dir")) { //$NON-NLS-1$
- setDir(userSettings[i+1]);
- }
-
- if(userSettings[i].equals("-trace")) { //$NON-NLS-1$
- setVerbose(true);
- }
- }
-
- // turn on framework validation logging
- if(isVerbose()) {
- BVTValidationPlugin.getPlugin().getMsgLogger().setLevel(Level.FINEST);
- }
- }
- }
-
-
- /**
- * Parse the user's settings, import the test cases, and run the test cases.
- */
- public Object run(Object args) throws BVTValidationException {
- parseUserSettings(args);
-
- IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) {
- try {
- monitor.subTask("Workspace is located at: " + BVTValidationPlugin.getPlugin().getStateLocation().toOSString()); //$NON-NLS-1$
-
- ConsoleBuffer buffer = new ConsoleBuffer();
- BVTRunner.singleton().setupTests(buffer, isVerbose());
-
- int numTests = BVTValidationUtility.numValidatorTests(monitor, ResourcesPlugin.getWorkspace().getRoot().getProjects());
- int numPassed = BVTRunner.singleton().test(buffer, ResourcesPlugin.getWorkspace().getRoot().getProjects());
- _passed = ((numPassed == numTests) ? Boolean.TRUE : Boolean.FALSE);
- }
- catch(BVTValidationException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc.getMessage());
- logger.write(Level.SEVERE, exc);
- if(exc.getTargetException() != null) {
- logger.write(Level.SEVERE, exc.getTargetException());
- }
- }
- }
- }
- };
-
- try {
- ConsoleProgressMonitor monitor = new ConsoleProgressMonitor();
- ResourcesPlugin.getWorkspace().run(runnable, monitor);
- }
- catch(CoreException exc) {
- throw new BVTValidationException(exc);
- }
- return _passed;
- }
-
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationException.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationException.java
deleted file mode 100644
index ed809d99..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationException.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-public class BVTValidationException extends Exception {
- private Throwable _target = null;
-
- public BVTValidationException(Throwable t) {
- setTargetException(t);
- }
-
- public BVTValidationException(String s) {
- super(s);
- }
-
- public BVTValidationException(String s, Throwable target) {
- super(s);
- setTargetException(target);
- }
-
- public Throwable getTargetException() {
- return _target;
- }
-
- public void setTargetException(Throwable target) {
- _target = target;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationPlugin.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationPlugin.java
deleted file mode 100644
index 57d22e76..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BVTValidationPlugin.java
+++ /dev/null
@@ -1,104 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-import java.util.logging.Level;
-
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jem.util.logger.proxyrender.DefaultPluginTraceRenderer;
-import org.osgi.framework.BundleContext;
-
-
-/**
- * Plugin for TVT testing.
- */
-public class BVTValidationPlugin extends Plugin {
- private static BVTValidationPlugin inst = null;
- public static final String PLUGIN_ID = "org.eclipse.jst.validation.test"; //$NON-NLS-1$
- private ResourceBundle resourceBundle;
- protected static Logger logger = null;
-
- /**
- * ValidationTVTPlugin constructor comment.
- * @param descriptor org.eclipse.core.runtime.IPluginDescriptor
- */
- public BVTValidationPlugin() {
- super();
- inst = this;
- }
-
- public static BVTValidationPlugin getPlugin() {
- return inst;
- }
-
- public String getPluginID() {
- return PLUGIN_ID;
- }
-
- public Logger getMsgLogger() {
- if (logger == null) {
- logger = Logger.getLogger(getPluginID());
- setRenderer(logger);
- }
- return logger;
- }
-
- /**
- * @param aLogger
- */
- protected void setRenderer(Logger aLogger) {
- new DefaultPluginTraceRenderer(aLogger);
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle= getPlugin().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.jst.validation.test.BVTValidationPluginResource");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- return resourceBundle;
- }
-
- /**
- * 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);
- inst = null;
- resourceBundle = null;
- }
-
- public void handleException(Throwable e) {
- getMsgLogger().log(e);
- }
-
- public void log(Level severe, String msg) {
- // TODO Auto-generated method stub
-
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BufferedTaskStatus.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BufferedTaskStatus.java
deleted file mode 100644
index 3254686f..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BufferedTaskStatus.java
+++ /dev/null
@@ -1,155 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jst.validation.test.internal.registry.TestcaseUtility;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-
-
-public class BufferedTaskStatus extends TaskStatus implements IBuffer {
- public static final String NEWLINE = System.getProperty("line.separator"); //$NON-NLS-1$
- private IProgressMonitor _monitor = null;
- private StringBuffer _buffer = null;
- private String _logFileName = null;
-
- public BufferedTaskStatus() {
- }
-
- public BufferedTaskStatus(String logFileName) {
- this(logFileName, null);
- }
-
- public BufferedTaskStatus(String logFileName, IProgressMonitor monitor) {
- _buffer = new StringBuffer();
- setProgressMonitor(monitor);
- setLogFileName(logFileName);
- }
-
- public void clear() {
- super.clear();
- _buffer = null;
- _buffer = new StringBuffer();
- _monitor.done();
- _monitor = null;
- }
-
- public String getLogFileName() {
- return _logFileName;
- }
-
- public void setLogFileName(String name) {
- _logFileName = name;
- }
-
- public StringBuffer getBuffer() {
- return _buffer;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#getProgressMonitor()
- */
- public IProgressMonitor getProgressMonitor() {
- if(_monitor == null) {
- _monitor = new NullProgressMonitor();
- }
- return _monitor;
- }
-
- public void setProgressMonitor(IProgressMonitor m) {
- _monitor = m;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#report()
- */
- public void report() {
- _buffer.append(NEWLINE);
- _buffer.append(">>>>>>>>>>>>>>>>TEST SUITE RESULTS>>>>>>>>>>>>>>>>"); //$NON-NLS-1$
- _buffer.append(NEWLINE);
- _buffer.append(NEWLINE);
-
- if(getElapsedTime().size() > 0) {
- Iterator iterator = getElapsedTime().keySet().iterator();
- long total = 0;
- _buffer.append(">>>>>>>>>>>>>>>>ELAPSED TIME>>>>>>>>>>>>>>>>"); //$NON-NLS-1$
- _buffer.append(NEWLINE);
- while(iterator.hasNext()) {
- String taskName = (String)iterator.next();
- Long elapsedTime = (Long)getElapsedTime().get(taskName);
- total += elapsedTime.longValue();
- _buffer.append("Total elapsed time of task "); //$NON-NLS-1$
- _buffer.append(taskName);
- _buffer.append(" is "); //$NON-NLS-1$
- _buffer.append(elapsedTime);
- _buffer.append(NEWLINE);
- }
- _buffer.append("Total time of all tasks is " + total + ", which is " + (total/1000/60) + " minutes."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- _buffer.append(NEWLINE);
- }
-
- int totNumPass = 0;
- Map taskStatus = getTaskStatus();
- Iterator iterator = taskStatus.keySet().iterator();
- _buffer.append(NEWLINE);
- _buffer.append(">>>>>>>>>>>>>>>>PASS/FAIL SUMMARY>>>>>>>>>>>>>>>>"); //$NON-NLS-1$
- _buffer.append(NEWLINE);
- while(iterator.hasNext()) {
- String taskName = (String)iterator.next();
- TestStatus ts = (TestStatus)taskStatus.get(taskName);
- _buffer.append(ts);
- _buffer.append(NEWLINE);
- if(ts.isSuccessful()) {
- totNumPass++;
- }
- }
-
- _buffer.append(NEWLINE);
- _buffer.append(NEWLINE);
- _buffer.append("Total Number Of Tests: "); //$NON-NLS-1$
- _buffer.append(numTests());
- _buffer.append(NEWLINE);
- _buffer.append("Number Passed: "); //$NON-NLS-1$
- _buffer.append(totNumPass);
- _buffer.append(NEWLINE);
-
- if(getLogFileName() != null) {
- _buffer.append("This report is stored in the following log file: "); //$NON-NLS-1$
- _buffer.append(getLogFileName());
-
- TestcaseUtility.flush(getLogFileName(), _buffer.toString(), true);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#delineate()
- */
- public void delineate(String testcaseName) {
- TaskStatus. TestStatus ts = getTestStatus(testcaseName);
- if(ts == null) {
- // nothing to report
- return;
- }
- StringBuffer errorsBuffer = new StringBuffer();
- errorsBuffer.append(ts.numFailure());
- errorsBuffer.append(" errors were reported and "); //$NON-NLS-1$
- errorsBuffer.append(ts.numWarnings());
- errorsBuffer.append(" warnings were reported. Read "); //$NON-NLS-1$
- errorsBuffer.append(getLogFileName());
- errorsBuffer.append(" for details."); //$NON-NLS-1$
- write(errorsBuffer.toString());
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#write(java.lang.String)
- */
- public void write(String message) {
- // Can't write to the JUnit log. Can only write to the log by failing the
- // test case with a message; instead, write to the buffer, and send this
- // information to a log in the validation.test plugin's state location.
- _buffer.append(message);
- _buffer.append(NEWLINE);
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BuildInfo.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BuildInfo.java
deleted file mode 100644
index 532c6ef5..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/BuildInfo.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.eclipse.jst.validation.test;
-public class BuildInfo {
- public static final String copyright = "Licensed Materials -- Property of IBM\n(c) Copyright International Business Machines Corporation, 2001,2003\nUS Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.";
- public static final String fgBuildLevel = "20031112_1915-WB212-AD-V511D-W5";
- public static String level() { return fgBuildLevel; }
- public static String getWSABuildLevel() { return fgBuildLevel; }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ConsoleBuffer.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ConsoleBuffer.java
deleted file mode 100644
index 8b8bdcb8..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ConsoleBuffer.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-
-
-/**
- * Sends the TestCaseGeneratorOperation output to System.out.
- */
-public class ConsoleBuffer implements IBuffer {
- private BufferedTaskStatus _status = null;
-
- public ConsoleBuffer() {
- _status = new BufferedTaskStatus(); // no log file
- }
-
- /**
- * @see org.eclipse.jst.validation.test.setup.IBuffer#report()
- */
- public void report() {
- _status.report();
- System.out.println(_status.getBuffer().toString());
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#clear()
- */
- public void clear() {
- _status.clear();
- }
-
- public String getLogFileName() {
- return _status.getLogFileName();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#delineate(java.lang.String)
- */
- public void delineate(String taskName) {
- _status.delineate(taskName);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#getProgressMonitor()
- */
- public IProgressMonitor getProgressMonitor() {
- return _status.getProgressMonitor();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#write(java.lang.String)
- */
- public void write(String message) {
- _status.write(message);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#addElapsedTime(java.lang.String, long)
- */
- public void addElapsedTime(String taskName, long elapsedTime) {
- _status.addElapsedTime(taskName, elapsedTime);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#addExecutionStatus(java.lang.String, int, org.eclipse.jst.validation.test.setup.IBuffer, java.lang.String)
- */
- public void addExecutionStatus(String testcaseName, String subTaskName, int passOrFail, IBuffer buffer, String message) {
- _status.addExecutionStatus(testcaseName, subTaskName, passOrFail, buffer, message);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#addGlobalExecutionStatus(java.lang.String, int)
- */
- public void addExecutionStatus(String testPassName, boolean pass) {
- _status.addExecutionStatus(testPassName, pass);
- }
-
- public void addExecutionStatus(String testPassName, String subTaskName, boolean pass) {
- _status.addExecutionStatus(testPassName, subTaskName, pass);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#isSuccessful()
- */
- public boolean isSuccessful() {
- return _status.isSuccessful();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#isSuccessful()
- */
- public boolean isSuccessful(String testName) {
- return _status.isSuccessful(testName);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.IBuffer#setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor)
- */
- public void setProgressMonitor(IProgressMonitor monitor) {
- _status.setProgressMonitor(monitor);
- }
-
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ConsoleProgressMonitor.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ConsoleProgressMonitor.java
deleted file mode 100644
index a6d9f6f6..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ConsoleProgressMonitor.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-
-/**
- * This progress monitor directs all task information to std.out.
- */
-public class ConsoleProgressMonitor implements IProgressMonitor {
- private int _totalWork = 0;
- private int _workDoneSoFar = 0;
- private boolean _cancelRequested = false;
-
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#beginTask(String, int)
- */
- public void beginTask(String name, int totalWork) {
- _totalWork = totalWork;
- report(name);
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#done()
- */
- public void done() {
- int workRemaining = _totalWork - _workDoneSoFar;
- worked(workRemaining);
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#internalWorked(double)
- */
- public void internalWorked(double work) {
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#isCanceled()
- */
- public boolean isCanceled() {
- return _cancelRequested;
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#setCanceled(boolean)
- */
- public void setCanceled(boolean value) {
- _cancelRequested = value;
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(String)
- */
- public void setTaskName(String name) {
- report(name);
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#subTask(String)
- */
- public void subTask(String name) {
- report(name);
- }
-
- /**
- * @see org.eclipse.core.runtime.IProgressMonitor#worked(int)
- */
- public void worked(int work) {
- _workDoneSoFar += work;
- }
-
- private void report(String message) {
- System.out.println(message);
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/IOperationRunnable.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/IOperationRunnable.java
deleted file mode 100644
index cd7b66d4..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/IOperationRunnable.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-
-
-/**
- * Instances of this interface are run as part of the Test Collector BVT.
- */
-public interface IOperationRunnable extends IWorkspaceRunnable {
- public void setBuffer(IBuffer b);
- public void setProject(IProject p);
- public void setName(String testName);
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/TaskStatus.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/TaskStatus.java
deleted file mode 100644
index e2989d67..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/TaskStatus.java
+++ /dev/null
@@ -1,269 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.jst.validation.test.setup.IBuffer;
-import org.eclipse.jst.validation.test.setup.ITestStatus;
-
-
-/**
- * All of the IBuffer instances need to be able to track elapsed time
- * and execution status. Each buffer can create an internal instance of
- * this class to perform those tasks.
- */
-public class TaskStatus implements ITestStatus {
- private Map _elapsedTime = null;
- private Map _taskStatus = null;
-
- public TaskStatus() {
- _elapsedTime = new HashMap();
- _taskStatus = new HashMap();
- }
-
- /**
- * @see org.eclipse.jst.validation.test.setup.IBuffer#addElapsedTime(String, long)
- */
- public void addElapsedTime(String taskName, long elapsedTime) {
- Long time = (Long)_elapsedTime.get(taskName);
- if(time == null) {
- time = new Long(elapsedTime);
- }
- else {
- time = new Long(time.longValue() + elapsedTime);
- }
- _elapsedTime.put(taskName, time);
- }
-
- public void addExecutionStatus(String taskName, boolean pass) {
- addExecutionStatus(taskName, null, pass);
- }
-
- public void addExecutionStatus(String taskName, String subTaskName, boolean pass) {
- int success = (pass) ? ITestStatus.PASS : ITestStatus.FAIL;
- addExecutionStatus(taskName, subTaskName, success, null, null);
- }
-
- public int numTests() {
- return _taskStatus.size();
- }
-
- protected Map getElapsedTime() {
- return _elapsedTime;
- }
-
- protected Map getTaskStatus() {
- return _taskStatus;
- }
-
- public void addExecutionStatus(String testcaseName, String subTaskName, int severity, IBuffer buffer, String message) {
- TestStatus ts = getTestStatus(testcaseName);
- if(ts == null) {
- ts = new TestStatus(testcaseName);
- _taskStatus.put(testcaseName, ts);
- }
- if(subTaskName == null) {
- ts.addExecutionStatus(severity);
- }
- else {
- ts.addExecutionStatus(subTaskName, severity);
- }
-
- if(message != null) {
- buffer.write(message);
- }
- }
-
- protected TestStatus getTestStatus(String testcaseName) {
- return (TestStatus)_taskStatus.get(testcaseName);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.setup.ITestStatus#isSuccessful()
- */
- public boolean isSuccessful() {
- if(_taskStatus.size() == 0) {
- return true;
- }
-
- Iterator iterator = _taskStatus.keySet().iterator();
- while(iterator.hasNext()) {
- String tsName = (String)iterator.next();
- TestStatus ts = (TestStatus)_taskStatus.get(tsName);
- if(ts == null || !ts.isSuccessful()) {
- return false;
- }
- }
-
- return true;
- }
-
- public boolean isSuccessful(String testName) {
- if(_taskStatus.size() == 0) {
- return true;
- }
-
- TestStatus ts = (TestStatus)_taskStatus.get(testName);
- if(ts == null || !ts.isSuccessful()) {
- return false;
- }
-
- return true;
- }
-
- public void clear() {
- _taskStatus.clear();
- _elapsedTime.clear();
- }
-
- protected class TestCount {
- public int numRan = 0;
- public int numWarn = 0; // Number of warning messages reported for a test case.
- public int numFail = 0; // Number of failure messages reported for a test case.
- public int numPass = 0; // Number of test cases that passed.
- }
-
- /**
- * Instances of this class track the number of test runs and the
- * number of test cases that pass.
- */
- protected class TestStatus implements Comparator {
- private String _testcaseName = null;
- private Map _testStatus = null;
-
- /**
- * Name must not be null.
- */
- public TestStatus(String name) {
- _testcaseName = name;
- _testStatus = new HashMap();
- }
-
- public void addExecutionStatus(String subTaskName, int severity) {
- TestCount soFar = (TestCount)_testStatus.get(subTaskName);
- if(soFar == null) {
- soFar = new TestCount();
- }
- soFar.numRan++;
- switch(severity) {
- case(ITestStatus.WARN): {
- soFar.numWarn++;
- soFar.numPass++;
- break;
- }
-
- case(ITestStatus.FAIL): {
- soFar.numFail++;
- break;
- }
-
- case(ITestStatus.PASS): {
- soFar.numPass++;
- }
-
- default: {
- // change nothing
- break;
- }
- }
-
- _testStatus.put(subTaskName, soFar);
- }
-
- public void addExecutionStatus(int severity) {
- addExecutionStatus(null, severity);
- }
-
- public String getTestcaseName() {
- return _testcaseName;
- }
-
- public int numWarnings() {
- int numWarnings = 0;
- Iterator iterator = _testStatus.values().iterator();
- while(iterator.hasNext()) {
- TestCount tc = (TestCount)iterator.next();
- numWarnings += tc.numWarn;
- }
- return numWarnings;
- }
-
- public int numFailure() {
- int numFail = 0;
- Iterator iterator = _testStatus.values().iterator();
- while(iterator.hasNext()) {
- TestCount tc = (TestCount)iterator.next();
- numFail += tc.numFail;
- }
- return numFail;
- }
-
- public boolean isSuccessful() {
- Iterator iterator = _testStatus.values().iterator();
- while(iterator.hasNext()) {
- TestCount tc = (TestCount)iterator.next();
- if(tc.numFail != 0) {
- return false;
- }
- }
- return true;
- }
-
- public String toString() {
- int total = 0;
- int pass = 0;
- int fail = 0;
- int warn = 0;
-
- Iterator iterator = _testStatus.values().iterator();
- while(iterator.hasNext()) {
- TestCount tc = (TestCount)iterator.next();
- total++;
- fail += tc.numFail;
- warn += tc.numWarn;
- pass += tc.numPass;
- }
-
- StringBuffer buffer = new StringBuffer(getTestcaseName());
- buffer.append(" Total:"); //$NON-NLS-1$
- buffer.append(total);
- buffer.append(" [Pass: "); //$NON-NLS-1$
- buffer.append(pass);
- buffer.append(" Fail: "); //$NON-NLS-1$
- buffer.append(fail);
- buffer.append(" Warn: "); //$NON-NLS-1$
- buffer.append(warn);
- buffer.append("]"); //$NON-NLS-1$
- return buffer.toString();
- }
-
- public boolean equals(Object o) {
- if(o instanceof TestStatus) {
- TestStatus s = (TestStatus)o;
- return(_testcaseName.equals(s.getTestcaseName()));
- }
-
- return false;
- }
-
- public int hashCode() {
- return getTestcaseName().hashCode();
- }
-
- /* (non-Javadoc)
- * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
- */
- public int compare(Object o1, Object o2) {
- if(!(o1 instanceof TestStatus) && (o2 instanceof TestStatus)) {
- // Should never happen, but if it does, say that these non-TestStatus objects are equal.
- return 0;
- }
-
- TestStatus a = (TestStatus)o1;
- TestStatus b = (TestStatus)o2;
- return a.getTestcaseName().compareTo(b.getTestcaseName());
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ValidationTypeEnum.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ValidationTypeEnum.java
deleted file mode 100644
index cfe10c37..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/ValidationTypeEnum.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.eclipse.jst.validation.test;
-
-import org.eclipse.core.resources.IncrementalProjectBuilder;
-
-/**
- * Enumeration of the types of validations that can be run.
- */
-public final class ValidationTypeEnum {
- private ValidationTypeEnum() {
- // Do not permit instances of this class to be created.
- }
-
- public static final int RUN_VALIDATION = 0; // Manual full invocation of a validation by a user. All validators must support this type of validation.
- public static final int FULL_VALIDATION = IncrementalProjectBuilder.FULL_BUILD; // Manual invocation of a full build by a user that triggers a full validation. Validators can, but are not required to, support this type of validation.
- public static final int INCREMENTAL_VALIDATION = IncrementalProjectBuilder.INCREMENTAL_BUILD; // Manual invocation of an incremental build by a user that triggers an incremental validation. Validators can, but are not required to, support this type of validation.
- public static final int AUTO_VALIDATION = IncrementalProjectBuilder.AUTO_BUILD; // Automatic invocation of an incremental build that triggers an incremental validation. Validators can, but are not required to, support this type of validation.
-
- public static final String RUN_VALIDATION_NAME = "RUN_VALIDATION"; //$NON-NLS-1$
- public static final String ASYNC_NAME = "ASYNC"; //$NON-NLS-1$
- public static final String INCREMENTAL_VALIDATION_NAME = "INCREMENTAL_BUILD"; //$NON-NLS-1$
- public static final String FULL_VALIDATION_NAME = "FULL_BUILD"; //$NON-NLS-1$
- public static final String AUTO_VALIDATION_NAME = "AUTO_BUILD"; //$NON-NLS-1$
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/BVTValidationRegistryReader.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/BVTValidationRegistryReader.java
deleted file mode 100644
index e1e4de9f..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/BVTValidationRegistryReader.java
+++ /dev/null
@@ -1,904 +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.jst.validation.test.internal.registry;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.IPluginRegistry;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.IOperationRunnable;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-import org.eclipse.jst.validation.test.setup.IImportOperation;
-import org.eclipse.wst.validation.internal.ValidationRegistryReader;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-/**
- * BVTValidationRegistryReader is a singleton who reads the plugin registry
- * for Validator extensions. The read is done once (in the constructor).
- *
- *
- * <extension
- * point = "com.ibm.etools.validation.fvt.test"
- * id = "ValidatorFVT"
- * name = "Validator FVT Test">
- * <test project="projectName"
- * validator="com.ibm.etools.validation.ejb.EJBValidator"
- * version="1.1">
- * <message id="CHKJ2816" resource="ejb-jar.xml" location="216"/>
- * <message id="CHKJ2816" resource="ejb-jar.xml" location="237"/>
- * <message id="CHKJ2816" resource="ejb-jar.xml" location="258"/>
- * <message id="CHKJ2816" resource="ejb-jar.xml" location="279"/>
- * <message id="CHKJ2816" resource="ejb-jar.xml" location="300"/>
- * </test>
- * ... as many <test> as needed
- * </extension>
- */
-public final class BVTValidationRegistryReader implements RegistryConstants {
- private static BVTValidationRegistryReader inst = null;
- private static OperationTestReader _opReader = null;
- private static TestSetupReader _setupReader = null;
- private static ValidationTestReader _valReader = null;
-
- /**
- * The registry is read once - when this class is instantiated.
- */
- private BVTValidationRegistryReader() {
- super();
- }
-
- /**
- * Return all visible test cases for all projects.
- */
- public ITestcaseMetaData[] getTests(IProgressMonitor monitor) {
- Set tests = new HashSet();
- ValidatorTestcase[] vts = getValidatorTests(monitor, (String)null);
- for(int j=0; j<vts.length; j++) {
- tests.add(vts[j]);
- }
-
- OperationTestcase[] ots = getOperationTests(monitor, (String)null);
- for(int k=0; k<ots.length; k++) {
- tests.add(ots[k]);
- }
-
- ITestcaseMetaData[] result = new ITestcaseMetaData[tests.size()];
- tests.toArray(result);
- return result;
- }
-
- /**
- * Return all visible test cases for a project.
- */
- public ITestcaseMetaData[] getTests(IProgressMonitor monitor, IProject[] projects) {
- Set tests = new HashSet();
- for(int i=0; i<projects.length; i++) {
- IProject project = projects[i];
- ValidatorTestcase[] vts = getValidatorTests(monitor, project);
- for(int j=0; j<vts.length; j++) {
- tests.add(vts[j]);
- }
-
- OperationTestcase[] ots = getOperationTests(monitor, project);
- for(int k=0; k<ots.length; k++) {
- tests.add(ots[k]);
- }
- }
-
- ITestcaseMetaData[] result = new ITestcaseMetaData[tests.size()];
- tests.toArray(result);
- return result;
- }
-
-
- /**
- * Return all validator tests for a project.
- */
- public ValidatorTestcase[] getAllValidatorTests(IProgressMonitor monitor, IProject project) throws IllegalArgumentException {
- ValidationTestReader reader = getValidationTestReader();
- return reader.getValidatorTests(monitor, project.getName());
- }
-
- /**
- * Return all test cases of the named validators on the given project.
- */
- public ValidatorTestcase[] getAllValidatorTests(IProgressMonitor monitor, IProject project, String[] validatorNames) {
- Set testSet = new HashSet();
- ValidatorTestcase[] tests = getAllValidatorTests(monitor, project);
- for(int i=0; i<validatorNames.length; i++) {
- String validator = validatorNames[i];
- for(int j=0; j<tests.length; j++) {
- ValidatorTestcase tmd = tests[j];
- if(tmd.getValidatorClass().equals(validator)) {
- testSet.add(tmd);
- break;
- }
- }
- }
-
- ValidatorTestcase[] result = new ValidatorTestcase[testSet.size()];
- testSet.toArray(result);
- return result;
- }
-
- /**
- * Return all of the visible test cases that register messages against this project.
- */
- public ValidatorTestcase[] getValidatorTests(IProgressMonitor monitor, IProject project) throws IllegalArgumentException {
- return getValidatorTests(monitor, project.getName());
- }
-
- private ValidationTestReader getValidationTestReader() {
- if(_valReader == null) {
- _valReader = new ValidationTestReader();
- }
- return _valReader;
- }
-
- private OperationTestReader getOperationTestReader() {
- if(_opReader == null) {
- _opReader = new OperationTestReader();
- }
- return _opReader;
- }
-
- private TestSetupReader getTestSetupReader() {
- if (_setupReader == null) {
- _setupReader = new TestSetupReader();
- }
- return _setupReader;
- }
-
- /**
- * Return the test cases named testName, or if testName is null, return all test cases.
- */
- public ValidatorTestcase[] getValidatorTests(IProgressMonitor monitor, String testName) throws IllegalArgumentException {
- return getValidationTestReader().getVisibleValidatorTests(monitor, testName);
- }
-
- /**
- * Return the test cases that register messages against this project.
- */
- public OperationTestcase[] getOperationTests(IProgressMonitor monitor, IProject project) throws IllegalArgumentException {
- return getOperationTests(monitor, project.getName());
- }
-
- /**
- * Return the test cases named testName, or if testName is null, return all test cases.
- */
- public OperationTestcase[] getOperationTests(IProgressMonitor monitor, String testName) throws IllegalArgumentException {
- return getOperationTestReader().getOperationTests(monitor, testName);
- }
-
- /**
- * If files need to be imported, import them now (into projects that are named
- * the same as the files.)
- *
- * If ITestcaseMetaData is not null, return the TestSetupImport for that particular test.
- * If ITestcaseMetaData is null, return all TestSetupImport.
- */
- public TestSetupImport[] getTestSetup(IBuffer buffer, String dir, ITestcaseMetaData tmd, boolean verbose) {
- return getTestSetupReader().getTestSetup(buffer, dir, tmd, verbose);
- }
-
- /**
- * Returns the singleton ValidationTVTRegistryReader.
- */
- public static BVTValidationRegistryReader getReader() {
- if (inst == null) {
- inst = new BVTValidationRegistryReader();
- }
- return inst;
- }
-
- private class ValidationTestReader {
- private Map _validatorTests = null;
-
- ValidationTestReader() {
- }
-
- public ValidatorTestcase[] getVisibleValidatorTests(IProgressMonitor monitor, String testName) throws IllegalArgumentException {
- ValidatorTestcase[] vts = getValidatorTests(monitor, testName);
- ValidatorTestcase[] temp = new ValidatorTestcase[vts.length];
- int count = 0;
- for(int i=0; i<vts.length; i++) {
- ValidatorTestcase vt = vts[i];
- if(vt.isVisible()) {
- temp[count++] = vt;
- }
- }
- ValidatorTestcase[] result = new ValidatorTestcase[count];
- System.arraycopy(temp, 0, result, 0, count);
- return result;
- }
-
- public ValidatorTestcase[] getValidatorTests(IProgressMonitor monitor, String testName) throws IllegalArgumentException {
- if (_validatorTests == null) {
- _validatorTests = new HashMap();
- readTestcaseRegistry(monitor);
- }
-
- Collection tmds = null;
- if (testName == null) {
- tmds = new HashSet();
- Iterator iterator = _validatorTests.values().iterator();
- while (iterator.hasNext()) {
- tmds.addAll((Collection) iterator.next());
- }
- }
- else {
- tmds = (Collection) _validatorTests.get(testName);
- }
- if ((tmds == null) || (tmds.size() == 0)) {
- return new ValidatorTestcase[0];
- }
- ValidatorTestcase[] result = new ValidatorTestcase[tmds.size()];
- tmds.toArray(result);
- return result;
- }
-
- /**
- * Return the name of the test case if it exists. Otherwise, return null.
- */
- private String getProject(IConfigurationElement element) {
- if (element == null) {
- return null;
- }
-
- return element.getAttribute(ATT_PROJECT);
- }
-
- private MessageMetaData[] getMessages(ValidatorTestcase tmd, IConfigurationElement testElement) {
- IConfigurationElement[] messages = testElement.getChildren(TAG_MESSAGE);
- if ((messages == null) || (messages.length == 0)) {
- // No messages are expected.
- return null;
- }
-
- MessageMetaData[] mmdList = new MessageMetaData[messages.length];
- int count = 0;
- for (int i = 0; i < messages.length; i++) {
- IConfigurationElement message = messages[i];
- String prefix = message.getAttribute(ATT_PREFIX);
- if (prefix == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Every <message> must have a prefix."); //$NON-NLS-1$
- }
- continue;
- }
-
- // The following attributes are optional.
- String resourceName = message.getAttribute(ATT_RESOURCE);
- String location = message.getAttribute(ATT_LOCATION);
- String text = message.getAttribute(ATT_TEXT);
- int lineNumber = -1;
- MessageMetaData mmd = null;
- if ((location != null)) {
- try {
- lineNumber = Integer.parseInt(location);
- mmd = new MessageMetaData(tmd, prefix, resourceName, lineNumber, text);
- }
- catch (NumberFormatException exc) {
- // Don't need to log - the location just isn't a number.
- }
- }
-
- if (mmd == null) {
- mmd = new MessageMetaData(tmd, prefix, resourceName, location, text);
- }
-
- mmdList[count++] = mmd;
- }
-
- if (count == mmdList.length) {
- return mmdList;
- }
- else {
- MessageMetaData[] result = new MessageMetaData[count];
- System.arraycopy(mmdList, 0, result, 0, count);
- return result;
- }
- }
-
- private void addTest(IProgressMonitor monitor, IExtension extension, IConfigurationElement[] testElements) {
- monitor.subTask("Reading test cases; please wait..."); //$NON-NLS-1$
- String pluginId = extension.getNamespace();
- for (int i = 0; i < testElements.length; i++) {
- monitor.subTask("Reading test case " + (i + 1) + " of " + testElements.length); //$NON-NLS-1$ //$NON-NLS-2$
- IConfigurationElement test = testElements[i];
-
- String projectName = getProject(test);
- if (projectName == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Every test must name the project that it verifies. " + test.toString()); //$NON-NLS-1$
- }
- continue;
- }
-
- ValidatorMetaData vmd = getValidatorMetaData(test);
- if (vmd == null) {
- // already logged, so just read the next test case.
- continue;
- }
-
- String inputFileName = getInputFileName(test);
- if (inputFileName == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Every test must name the file to be imported and then tested." + test.toString()); //$NON-NLS-1$
- }
- continue;
- }
-
- boolean visible = getVisible(test);
-
- ValidatorTestcase tmd = new ValidatorTestcase(pluginId, projectName, vmd, inputFileName, visible);
- tmd.setMessages(getMessages(tmd, test));
-
- // Now add the test case to the Map, with the project name as the key into
- // the map.
- Set prjTmd = (Set) _validatorTests.get(projectName);
- if (prjTmd == null) {
- prjTmd = new HashSet();
- }
- prjTmd.add(tmd);
- _validatorTests.put(projectName, prjTmd);
- }
- }
-
- /**
- * Retrieve an instance of the class with the given fully-qualified name.
- * If no such class can be found, return null.
- */
- private ValidatorMetaData getValidatorMetaData(IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "IConfigurationElement is null"); //$NON-NLS-1$
- }
- return null;
- }
-
- String validatorClass = element.getAttribute(ATT_VALIDATOR);
- try {
- if (validatorClass == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Cannot locate validator attribute"); //$NON-NLS-1$
- }
- }
- ValidatorMetaData vmd = ValidationRegistryReader.getReader().getValidatorMetaData(validatorClass);
- if (vmd == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Could not find validator " + validatorClass); //$NON-NLS-1$
- }
- }
- return vmd;
- }
- catch (Throwable exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Throwable caught while retrieving IValidator " + validatorClass); //$NON-NLS-1$
- logger.write(Level.SEVERE, exc);
- }
- return null;
- }
- }
-
- /**
- * Reads the registry to find the test cases that have been implemented.
- */
- private void readTestcaseRegistry(IProgressMonitor monitor) {
- // Get the extensions that have been registered.
- IExtensionPoint validatorEP = getTestcaseExtensionPoint();
- if (validatorEP == null) {
- // error logged in getValidatorTVTExtensionPoint
- return;
- }
- IExtension[] extensions = validatorEP.getExtensions();
-
- // find all runtime implementations
- for (int i = 0; i < extensions.length; i++) {
- readTestcaseExtension(monitor, extensions[i]);
- }
- }
-
- /**
- * Reads one extension by looping through its configuration elements.
- */
- private void readTestcaseExtension(IProgressMonitor monitor, IExtension extension) {
- IConfigurationElement[] elements = extension.getConfigurationElements();
- if ((elements == null) || (elements.length == 0)) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "No tests found for " + extension.getLabel()); //$NON-NLS-1$
- }
- return;
- }
- addTest(monitor, extension, elements);
- }
-
- /**
- * Returns the operation extension point
- */
- private IExtensionPoint getTestcaseExtensionPoint() {
- IPluginRegistry registry = Platform.getPluginRegistry();
- IExtensionPoint extensionPoint = registry.getExtensionPoint(PLUGIN_ID, VALIDATOR_TESTCASE_EXT_PT_ID);
- if (extensionPoint == null) {
- // If this happens it means that someone removed the "validator" extension point declaration
- // from our plugin.xml file.
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, PLUGIN_ID + "." + VALIDATOR_TESTCASE_EXT_PT_ID + " has been removed from the validation TVT plugin.xml file"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
- return extensionPoint;
- }
-
- /**
- * Retrieve the name of the input which must be imported before the test case can be run.
- * Return null if no input name is set.
- */
- private boolean getVisible(IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "getVisible::IConfigurationElement is null"); //$NON-NLS-1$
- }
- return false;
- }
-
- String attrib = element.getAttribute(ATT_VISIBLE);
- if (attrib == null) {
- // default is visible
- return true;
- }
-
- return Boolean.valueOf(attrib).booleanValue();
- }
-
- /**
- * Retrieve the name of the input which must be imported before the test case can be run.
- * Return null if no input name is set.
- */
- private String getInputFileName(IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "getInputFileName::IConfigurationElement is null"); //$NON-NLS-1$
- }
- return null;
- }
-
- return element.getAttribute(ATT_INPUT);
- }
-
- }
-
- private class OperationTestReader {
- private Map _operationTests = null;
-
- OperationTestReader() {
- }
-
- /**
- * Return the test cases named testName, or if testName is null, return all test cases.
- */
- public OperationTestcase[] getOperationTests(IProgressMonitor monitor, String testName) throws IllegalArgumentException {
- if (_operationTests == null) {
- _operationTests = new HashMap();
- readOperationTestcaseRegistry(monitor);
- }
-
- Collection tmds = null;
- if (testName == null) {
- tmds = new HashSet();
- Iterator iterator = _operationTests.values().iterator();
- while (iterator.hasNext()) {
- tmds.addAll((Collection) iterator.next());
- }
- }
- else {
- tmds = (Collection) _operationTests.get(testName);
- }
- if ((tmds == null) || (tmds.size() == 0)) {
- return new OperationTestcase[0];
- }
- OperationTestcase[] result = new OperationTestcase[tmds.size()];
- tmds.toArray(result);
- return result;
- }
-
- /**
- * Retrieve the name of the input which must be imported before the test case can be run.
- * Return null if no input name is set.
- */
- private String getInputFileName(IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "getInputFileName::IConfigurationElement is null"); //$NON-NLS-1$
- }
- return null;
- }
-
- return element.getAttribute(ATT_INPUT);
- }
-
- private void addOperationTest(IProgressMonitor monitor, IExtension extension, IConfigurationElement[] testElements) {
- monitor.subTask("Reading test cases; please wait..."); //$NON-NLS-1$
- String pluginId = extension.getNamespace();
- for (int i = 0; i < testElements.length; i++) {
- monitor.subTask("Reading test case " + (i + 1) + " of " + testElements.length); //$NON-NLS-1$ //$NON-NLS-2$
- IConfigurationElement test = testElements[i];
-
- String projectName = getProject(test);
- if (projectName == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Every test must name the project that it verifies. " + test.toString()); //$NON-NLS-1$
- }
- continue;
- }
-
- IOperationRunnable op = getOperation(test);
- if (op == null) {
- // already logged, so just read the next test case.
- continue;
- }
-
- String inputFileName = getInputFileName(test);
- if (inputFileName == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Every test must name the file to be imported and then tested." + test.toString()); //$NON-NLS-1$
- }
- continue;
- }
-
- String id = extension.getLabel();
-
- OperationTestcase tmd = new OperationTestcase(pluginId, projectName, id, inputFileName, op);
-
- // Now add the test case to the Map, with the project name as the key into
- // the map.
- Set prjTmd = (Set) _operationTests.get(projectName);
- if (prjTmd == null) {
- prjTmd = new HashSet();
- }
- prjTmd.add(tmd);
- _operationTests.put(projectName, prjTmd);
- }
- }
-
- /**
- * Reads one extension by looping through its configuration elements.
- */
- private void readOperationTestcaseExtension(IProgressMonitor monitor, IExtension extension) {
- IConfigurationElement[] elements = extension.getConfigurationElements();
- if ((elements == null) || (elements.length == 0)) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "No tests found for " + extension.getLabel()); //$NON-NLS-1$
- }
- return;
- }
- addOperationTest(monitor, extension, elements);
- }
-
- /**
- * Reads the registry to find the test cases that have been implemented.
- */
- private void readOperationTestcaseRegistry(IProgressMonitor monitor) {
- // Get the extensions that have been registered.
- IExtensionPoint opEP = getOperationTestcaseExtensionPoint();
- if (opEP == null) {
- // error logged in getValidatorTVTExtensionPoint
- return;
- }
- IExtension[] extensions = opEP.getExtensions();
-
- // find all runtime implementations
- for (int i = 0; i < extensions.length; i++) {
- readOperationTestcaseExtension(monitor, extensions[i]);
- }
- }
-
- /**
- * Return the name of the test case if it exists. Otherwise, return null.
- */
- private String getProject(IConfigurationElement element) {
- if (element == null) {
- return null;
- }
-
- return element.getAttribute(ATT_PROJECT);
- }
-
- /**
- * Returns the TestCase extension point
- */
- private IExtensionPoint getOperationTestcaseExtensionPoint() {
- IPluginRegistry registry = Platform.getPluginRegistry();
- IExtensionPoint extensionPoint = registry.getExtensionPoint(PLUGIN_ID, VALIDATOR_OPERATION_TESTCASE_EXT_PT_ID);
- if (extensionPoint == null) {
- // If this happens it means that someone removed the "optest" extension point declaration
- // from our plugin.xml file.
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, PLUGIN_ID + "." + VALIDATOR_OPERATION_TESTCASE_EXT_PT_ID + " has been removed from the validation TVT plugin.xml file"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
- return extensionPoint;
- }
-
- /**
- * Retrieve an instance of the class with the given fully-qualified name.
- * If no such class can be found, return null.
- */
- private IOperationRunnable getOperation(IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "IConfigurationElement is null"); //$NON-NLS-1$
- }
- return null;
- }
-
- String opClass = element.getAttribute(ATT_OPERATION);
- try {
- if (opClass == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Cannot locate operation attribute"); //$NON-NLS-1$
- }
- }
-
- IOperationRunnable op = (IOperationRunnable) element.createExecutableExtension(ATT_OPERATION);
- if (op == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Could not find operation " + opClass); //$NON-NLS-1$
- }
- }
- return op;
- }
- catch (Throwable exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "Throwable caught while retrieving IValidator " + opClass); //$NON-NLS-1$
- logger.write(Level.SEVERE, exc);
- }
- return null;
- }
- }
-
- }
-
- private class TestSetupReader {
- private TestSetupImport[] _testSetup = null;
-
- TestSetupReader() {
- }
-
- /**
- * Retrieve the name of the input which must be imported before the test case can be run.
- * Return null if no input name is set.
- */
- private String getInputFileName(IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "getInputFileName::IConfigurationElement is null"); //$NON-NLS-1$
- }
- return null;
- }
-
- return element.getAttribute(ATT_INPUT);
- }
-
- /**
- * If files need to be imported, import them now (into projects that are named
- * the same as the files.)
- *
- * If ITestcaseMetaData is not null, return the TestSetupImport for that particular test.
- * If ITestcaseMetaData is null, return all TestSetupImport.
- */
- public TestSetupImport[] getTestSetup(IBuffer buffer, String dir, ITestcaseMetaData tmd, boolean verbose) {
- if (_testSetup == null) {
- readSetupRegistry(buffer, verbose);
- }
- if (tmd != null) {
- for (int j = 0; j < _testSetup.length; j++) {
- TestSetupImport tsi = _testSetup[j];
- if (tsi.getFileName().endsWith(tmd.getInputFileName())) {
- return new TestSetupImport[] { tsi };
- }
- }
- return new TestSetupImport[0];
- }
- return _testSetup;
- }
-
- private void addSetup(IBuffer buffer, IConfigurationElement[] importElements, boolean verbose) {
- if ((importElements == null) || (importElements.length == 0)) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- String message = "No test setup found"; //$NON-NLS-1$
- logger.write(Level.SEVERE, message);
- buffer.write(message);
- }
- return;
- }
-
- TestSetupImport[] temp = new TestSetupImport[importElements.length];
- int count = 0;
- for (int i = 0; i < importElements.length; i++) {
- IConfigurationElement importElement = importElements[i];
- String inputFileName = getInputFileName(importElement);
- if (inputFileName == null) {
- // Already logged in getInputFileName
- continue;
- }
-
- IImportOperation op = getImportOperation(buffer, importElement);
- if (op == null) {
- buffer.write("Import operation cannot be found. Ignoring import."); //$NON-NLS-1$
- continue;
- }
- TestSetupImport ts = new TestSetupImport(op, inputFileName);
- temp[count++] = ts;
- }
-
- if (_testSetup == null) {
- if (count == temp.length) {
- _testSetup = temp;
- }
- else {
- _testSetup = new TestSetupImport[count];
- System.arraycopy(temp, 0, _testSetup, 0, count);
- }
- }
- else {
- TestSetupImport[] newTestSetup = new TestSetupImport[_testSetup.length + count];
- System.arraycopy(_testSetup, 0, newTestSetup, 0, _testSetup.length);
- System.arraycopy(temp, 0, newTestSetup, _testSetup.length, count);
- _testSetup = newTestSetup;
- }
- }
-
- /**
- * Reads one extension by looping through its configuration elements.
- */
- private void readSetupExtension(IBuffer buffer, IExtension extension, boolean verbose) {
- IConfigurationElement[] elements = extension.getConfigurationElements();
- addSetup(buffer, elements, verbose);
- }
-
- /**
- * Returns the TestCaseSetup extension point
- */
- private IExtensionPoint getSetupExtensionPoint() {
- IPluginRegistry registry = Platform.getPluginRegistry();
- IExtensionPoint extensionPoint = registry.getExtensionPoint(PLUGIN_ID, VALIDATOR_SETUP_EXT_PT_ID);
- if (extensionPoint == null) {
- // If this happens it means that someone removed the "validator" extension point declaration
- // from our plugin.xml file.
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, PLUGIN_ID + "." + VALIDATOR_SETUP_EXT_PT_ID + " has been removed from the validation TVT plugin.xml file"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
- return extensionPoint;
- }
-
- /**
- * Reads the registry to find the test setup that must be performed.
- */
- private void readSetupRegistry(IBuffer buffer, boolean verbose) {
- // Get the extensions that have been registered.
- IExtensionPoint validatorEP = getSetupExtensionPoint();
- if (validatorEP == null) {
- // error logged in getValidatorTVTExtensionPoint
- buffer.write("Extension point is missing. Cannot import test cases."); //$NON-NLS-1$
- return;
- }
- IExtension[] extensions = validatorEP.getExtensions();
- if (extensions.length == 0) {
- buffer.write("No extensions found. Cannot import test cases."); //$NON-NLS-1$
- return;
- }
-
- // find all runtime implementations
- buffer.getProgressMonitor().subTask("Reading setup <import> extensions; please wait..."); //$NON-NLS-1$
- for (int i = 0; i < extensions.length; i++) {
- buffer.getProgressMonitor().subTask("Reading setup <import> " + (i + 1) + " of " + extensions.length); //$NON-NLS-1$ //$NON-NLS-2$
- readSetupExtension(buffer, extensions[i], verbose);
- }
- }
-
- /**
- * Return an instance of the operation which is used to import the input.
- */
- private IImportOperation getImportOperation(IBuffer buffer, IConfigurationElement element) {
- if (element == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- String message = "IConfigurationElement is null"; //$NON-NLS-1$
- logger.write(Level.SEVERE, message);
- buffer.write(message);
- }
- }
-
- String opClass = element.getAttribute(ATT_OPERATION);
- try {
- if (opClass == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- String message = "Because there is no operation attribute, assuming that the input is a workspace."; //$NON-NLS-1$
- logger.write(Level.SEVERE, message);
- buffer.write(message);
- }
- return null;
- }
-
- Object temp = element.createExecutableExtension(ATT_OPERATION);
- if (temp == null) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- String message = "operation " + opClass + " cannot be created. Ignoring the test case."; //$NON-NLS-1$ //$NON-NLS-2$
- logger.write(Level.SEVERE, message);
- buffer.write(message);
- }
- return null;
- }
- else if (temp instanceof IImportOperation) {
- return (IImportOperation) temp;
- }
- else {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- String message = "operation must be an instance of IImportOperation. Ignoring the test case."; //$NON-NLS-1$
- logger.write(Level.SEVERE, message);
- buffer.write(message);
- }
- return null;
- }
- }
- catch (Throwable exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if (logger.isLoggingLevel(Level.SEVERE)) {
- String message = "Throwable caught while retrieving IImportOperation " + opClass + " Ignoring the test case."; //$NON-NLS-1$ //$NON-NLS-2$
- logger.write(Level.SEVERE, message);
- logger.write(Level.SEVERE, exc);
- buffer.write(message);
- }
- return null;
- }
- }
-
- }
-} \ No newline at end of file
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/BuildInfo.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/BuildInfo.java
deleted file mode 100644
index d14a7a6a..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/BuildInfo.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-public class BuildInfo {
- public static final String copyright = "Licensed Materials -- Property of IBM\n(c) Copyright International Business Machines Corporation, 2001,2003\nUS Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.";
- public static final String fgBuildLevel = "20031112_1915-WB212-AD-V511D-W5";
- public static String level() { return fgBuildLevel; }
- public static String getWSABuildLevel() { return fgBuildLevel; }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/ITestcaseMetaData.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/ITestcaseMetaData.java
deleted file mode 100644
index 94584628..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/ITestcaseMetaData.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-
-
-/**
- * This interface represents a test case that either should be run
- * as part of the Validation BVT Suite, or that is part of a test
- * case that is run by the Validation BVT Suite.
- */
-public interface ITestcaseMetaData {
- /**
- * Return true if this test case should be shown as a test on
- * the test collector menu.
- */
- public boolean isVisible();
-
- /**
- * Return the project that this test case is designed to run on.
- */
- public IProject getProject();
-
- /**
- * Return the name of the project that this test case is designed
- * to run on.
- */
- public String getProjectName();
-
- /**
- * Return the id of the plugin that declared this test case.
- */
- public String getDeclaringPluginId();
-
- /**
- * Return the name of this test case.
- */
- public String getName();
-
- /**
- * Return the name of the file that must be imported for this test case
- * to run on.
- */
- public String getInputFileName();
-
- /**
- * Import the file, if necessary, and run this test. The test case
- * reports whether or not the test passes to the ITestBuffer.
- */
- public void run(IBuffer buffer, IProject project);
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/MessageMetaData.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/MessageMetaData.java
deleted file mode 100644
index 663bbaec..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/MessageMetaData.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-
-
-public class MessageMetaData {
- public static final int LINENO_UNSET = -1;
- private String _messagePrefix = null;
- private String _resource = null;
- private int _lineNumber = LINENO_UNSET;
- private String _location = null;
- private String _text = null; // When this test case was generated, what was the text of the marker? This information is needed when message prefixes change; the test case will fail because the prefix doesn't match, but it's easy to see that the old prefix tested the same thing as the new prefix.
- private ValidatorTestcase _tmd = null; // pointer back to the testcase parent
-
- public MessageMetaData(ValidatorTestcase tmd, String prefix, String resource, int lineNumber, String text) {
- this(tmd, prefix, resource, text);
- _lineNumber = lineNumber;
- }
-
- public MessageMetaData(ValidatorTestcase tmd, String prefix, String resource, String location, String text) {
- this(tmd, prefix, resource, text);
- _location = location;
- }
-
- public MessageMetaData(ValidatorTestcase tmd, String prefix, String resource, String text) {
- _tmd = tmd;
- _messagePrefix = prefix;
- _resource = resource;
- _text = (text == null) ? "" : text; //$NON-NLS-1$
- }
-
- public ValidatorTestcase getValidatorTestcase() {
- return _tmd;
- }
-
- public String getMessagePrefix() {
- return _messagePrefix;
- }
-
- public String getResource() {
- return _resource;
- }
-
- public int getLineNumber() {
- return _lineNumber;
- }
-
- public String getLocation() {
- return _location;
- }
-
- public ValidatorMetaData getValidator() {
- return getValidatorTestcase().getValidatorMetaData();
- }
-
- public String getText() {
- return _text;
- }
-
- public boolean isSetLineNumber() {
- return (_lineNumber != LINENO_UNSET);
- }
-
- public boolean isSetLocation() {
- return isSet(_location);
- }
-
- public boolean isSetResource() {
- return isSet(_resource);
- }
-
- private boolean isSet(String value) {
- if(value == null) {
- return false;
- }
-
- if(value.trim().equals("")) { //$NON-NLS-1$
- return false;
- }
-
- return true;
- }
-
- public String toString() {
- return MessageUtility.toString(this);
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/MessageUtility.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/MessageUtility.java
deleted file mode 100644
index 82eaeead..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/MessageUtility.java
+++ /dev/null
@@ -1,713 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import java.text.MessageFormat;
-import java.util.Comparator;
-import java.util.StringTokenizer;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.sample.parser.PropertyLine;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-import org.eclipse.wst.validation.internal.ConfigurationConstants;
-import org.eclipse.wst.validation.internal.ConfigurationManager;
-import org.eclipse.wst.validation.internal.ValidationRegistryReader;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-public class MessageUtility {
- private final static String _TESTCASE_MESSAGE_TEMPLATE_ = "<message prefix=\"{0}\" resource=\"{1}\" location=\"{2}\" text=\"{3}\"/>"; //$NON-NLS-1$
- private final static String _TESTCASE_MARKER_TEMPLATE_ = "<marker prefix=\"{0}\" resource=\"{1}\" location=\"{2}\" text=\"{3}\"/>"; //$NON-NLS-1$
- private static MessageComparator _messageComparator = null;
- private static MessageIdComparator _messageIdComparator = null;
- private static MessagePrefixComparator _messagePrefixComparator = null;
-
- private MessageUtility() {
- }
-
- public static String toString(MessageMetaData mmd) {
- String location = (mmd.isSetLineNumber()) ? String.valueOf(mmd.getLineNumber()) : mmd.getLocation();
- return toString(mmd.getMessagePrefix(), mmd.getResource(), location, mmd.getText(), _TESTCASE_MESSAGE_TEMPLATE_);
- }
-
- public static String toString(IMarker marker) {
- Integer lineNumber = MessageUtility.getLineNumber(marker);
- String location = (lineNumber == null) ? (location = MessageUtility.getLocation(marker)) : (location = lineNumber.toString());
- return toString(getMessagePrefix(marker), getResource(marker), location, getMessage(marker), _TESTCASE_MARKER_TEMPLATE_);
- }
-
- private static String toString(String fmssgPrefix, String fresource, String flocation, String ftext, String template) {
- String mssgPrefix = (fmssgPrefix == null) ? "" : fmssgPrefix; //$NON-NLS-1$
- String resource = (fresource == null) ? "" : fresource; //$NON-NLS-1$
- String location = (flocation == null) ? "" : flocation; //$NON-NLS-1$
- String text = (ftext == null) ? "" : ftext; //$NON-NLS-1$
- return MessageFormat.format(template, new String[]{mssgPrefix, resource, location, text});
- }
-
- public static String getProject(IMarker marker) {
- return marker.getResource().getProject().getName();
- }
-
-
- public static String getResource(IMarker marker) {
- return marker.getResource().getProjectRelativePath().toString();
- }
-
-
- // Based on the last letter of the message prefix, what severity
- // should this marker be?
- public static Integer getSeverity(IMarker marker) throws CoreException {
- String message = (String)marker.getAttribute(IMarker.MESSAGE);
- if(message == null) {
- return null;
- }
-
- String[] tokens = parse(message);
- String severity = tokens[1];
- Integer result;
- if(severity.equals("E")) { //$NON-NLS-1$
- result = new Integer(IMarker.SEVERITY_ERROR);
- }
- else if(severity.equals("W")) { //$NON-NLS-1$
- result = new Integer(IMarker.SEVERITY_WARNING);
- }
- else if(severity.equals("I")) { //$NON-NLS-1$
- result = new Integer(IMarker.SEVERITY_INFO);
- }
- else {
- result = null;
- }
- return result;
- }
-
- public static String getMessage(IMarker marker) {
- try {
- return (String)marker.getAttribute(IMarker.MESSAGE);
- }
- catch(CoreException e) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, e);
- }
- return null;
- }
- }
-
- public static String getMessagePrefix(IMarker marker) {
- String message = getMessage(marker);
- if(message == null) {
- return null;
- }
-
- String[] tokens = parse(message);
- return tokens[0];
- }
-
- // This method is needed for the fuzzy compare. Need to
- // strip the ".java" or ".class" extension off of the resource
- // name so that the class name can be searched for in the marker's
- // location text.
- public static String getResource(MessageMetaData mmd) {
- String resource = mmd.getResource();
- int index = resource.indexOf(".java"); //$NON-NLS-1$
- if(index > -1) {
- return resource.substring(0, index);
- }
-
- index = resource.indexOf(".class"); //$NON-NLS-1$
- if(index > -1) {
- return resource.substring(0, index);
- }
-
- return resource;
- }
-
- public static ValidatorMetaData getValidator(IMarker marker) {
- String validatorClass = ConfigurationManager.getManager().getValidator(marker);
- ValidatorMetaData vmd = ValidationRegistryReader.getReader().getValidatorMetaData(validatorClass);
- return vmd;
- }
-
- /**
- * Parse the message value, to extract the unique error id, if any.
- * String[0] is the message prefix, String [1] is the error char, String[2] is the rest of the string after the ':'
- */
- public static String[] parse(String message) {
- if (message == null) {
- return new String[]{"", "", ""}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
- StringTokenizer tokenizer = new StringTokenizer(message);
- int numTokens = tokenizer.countTokens();
- if (numTokens == 0) {
- return new String[]{"", "", message}; //$NON-NLS-1$ //$NON-NLS-2$
- }
- else {
- String errorId = tokenizer.nextToken();
- boolean isErrorIndex = false;
-
- int errorIdIndex = errorId.indexOf(':');
- if (errorIdIndex > 0) {
- String tempString = errorId.substring(0, errorIdIndex);
- char[] temp = tempString.toCharArray();
- if (temp.length == 9) { // Must be of the form ABCD1234E, which is 9 char long
-
- isErrorIndex = Character.isLetter(temp[0]);
- isErrorIndex = isErrorIndex && Character.isLetter(temp[1]);
- isErrorIndex = isErrorIndex && Character.isLetter(temp[2]);
- isErrorIndex = isErrorIndex && Character.isLetter(temp[3]);
- isErrorIndex = isErrorIndex && Character.isDigit(temp[4]);
- isErrorIndex = isErrorIndex && Character.isDigit(temp[5]);
- isErrorIndex = isErrorIndex && Character.isDigit(temp[6]);
- isErrorIndex = isErrorIndex && Character.isDigit(temp[7]);
- isErrorIndex = isErrorIndex && Character.isLetter(temp[8]);
-
- if (isErrorIndex) {
- String shortMessage;
- if (numTokens > 1) {
- shortMessage = message.substring(errorIdIndex + 1, message.length()).intern();
- }
- else {
- shortMessage = ""; //$NON-NLS-1$
- }
- return new String[]{tempString.substring(0, 8), new String(new char[]{temp[8]}), shortMessage};
- }
- }
- }
-
- if (!isErrorIndex) {
- return new String[]{"", "", message}; //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- return new String[]{"", "", message}; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public static Integer getLineNumber(IMarker marker) {
- try {
- return (Integer)marker.getAttribute(IMarker.LINE_NUMBER);
- }
- catch(CoreException e) {
- return null;
- }
- }
-
- public static String getTargetObject(IMarker marker) {
- try {
- String targetObject = (String)marker.getAttribute(ConfigurationConstants.VALIDATION_MARKER_TARGETOBJECT);
- if((targetObject != null) && (targetObject.equals(""))) { //$NON-NLS-1$
- // Empty string means that there was no target object.
- return null;
- }
- return targetObject;
- }
- catch(CoreException e) {
- return null;
- }
- }
-
- /**
- * Sort first on validator,
- * then project,
- * then message prefix,
- * then location,
- * then resource. (The resource may be different in batch and UI, so compare location & resource at the same time.)
- *
- * @param verbose If true, verbose output while comparing lists.
- */
- public static Comparator getMessageComparator(final IBuffer buffer, final boolean verbose) {
- if(_messageComparator == null) {
- _messageComparator = new MessageUtility(). new MessageComparator();
- }
- _messageComparator.setVerbose(verbose);
- _messageComparator.setBuffer(buffer);
- return _messageComparator;
- }
-
- /**
- * Sort first on the version, then on the message prefix.
- */
- public static Comparator getMessageIdComparator(final IBuffer buffer, final boolean verbose) {
- if(_messageIdComparator == null) {
- _messageIdComparator = new MessageUtility(). new MessageIdComparator();
- }
- _messageIdComparator.setVerbose(verbose);
- _messageIdComparator.setBuffer(buffer);
- return _messageIdComparator;
- }
-
- public static String getLocation(IMarker marker) {
- try {
- return (String)marker.getAttribute(IMarker.LOCATION);
- }
- catch(CoreException e) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, e);
- }
- return null;
- }
- }
-
- private class MessageComparator implements Comparator {
- private boolean _verbose = false;
- private IBuffer _buffer = null;
-
- public boolean isVerbose() {
- return _verbose;
- }
-
- public void setVerbose(boolean v) {
- _verbose = v;
- }
-
- public IBuffer getBuffer() {
- return _buffer;
- }
-
- public void setBuffer(IBuffer b) {
- _buffer = b;
- }
-
- public int compare(Object a, Object b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return 1;
- }
- else if(b == null) {
- return -1;
- }
-
-
- // Sort first on the message prefix, then on the location, then project, then resource
- if((a instanceof String) && (b instanceof String)) {
- return compare((String)a, (String)b);
- }
- else if ((a instanceof IMarker) && (b instanceof IMarker)) {
- IMarker aM = (IMarker)a;
- IMarker bM = (IMarker)b;
- int result = compare(aM, bM);
- if(isVerbose()) {
- getBuffer().write("compare(" + MessageUtility.toString(aM) + ", " + MessageUtility.toString(bM) + " = " + result); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- return result;
- }
- else if ((a instanceof IMarker) && (b instanceof MessageMetaData)) {
- IMarker aM = (IMarker)a;
- MessageMetaData mmd = (MessageMetaData)b;
- int result = compare(aM, mmd);
- if(isVerbose()) {
- getBuffer().write("compare(" + MessageUtility.toString(aM) + ", " + MessageUtility.toString(mmd) + " = " + result); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- return result;
- }
- else if((a instanceof MessageMetaData) && (b instanceof IMarker)) {
- MessageMetaData mmd = (MessageMetaData)a;
- IMarker bM = (IMarker)b;
- int result = compare(mmd, bM);
- if(isVerbose()) {
- getBuffer().write("compare(" + MessageUtility.toString(mmd) + ", " + MessageUtility.toString(bM) + " = " + result); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- return result;
- }
- else if((a instanceof MessageMetaData) && (b instanceof MessageMetaData)) {
- MessageMetaData aMMD = (MessageMetaData)a;
- MessageMetaData bMMD = (MessageMetaData)b;
- int result = compare(aMMD, bMMD);
- if(isVerbose()) {
- getBuffer().write("compare(" + MessageUtility.toString(aMMD) + ", " + MessageUtility.toString(bMMD) + " = " + result); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- return result;
- }
-
- // else put it at the end of the list
- return 1;
- }
-
- public int compare(String aStr, String bStr) {
- if((aStr == null) && (bStr == null)) {
- return 0;
- }
- else if(aStr == null) {
- return 1;
- }
- else if(bStr == null) {
- return -1;
- }
- return aStr.compareTo(bStr);
- }
-
- public int compare(int aInt, int bInt) {
- return aInt - bInt;
- }
-
- public int compare(ValidatorMetaData aVMD, ValidatorMetaData bVMD) {
- if((aVMD == null) && (bVMD == null)) {
- return 0;
- }
- else if(aVMD == null) {
- return 1;
- }
- else if(bVMD == null) {
- return -1;
- }
- return compare(aVMD.getValidatorUniqueName(), bVMD.getValidatorUniqueName());
- }
-
- public int compare(IMarker aMarker, IMarker bMarker) {
- if((aMarker == null) && (bMarker == null)) {
- return 0;
- }
- else if(aMarker == null) {
- return 1;
- }
- else if(bMarker == null) {
- return -1;
- }
-
- int valCmp = compare(getValidator(aMarker), getValidator(bMarker));
- if(valCmp != 0) {
- return valCmp;
- }
-
- int prjCmp = compare(getProject(aMarker), getProject(bMarker));
- if(prjCmp != 0) {
- return prjCmp;
- }
-
- int idCmp = compare(getMessagePrefix(aMarker), getMessagePrefix(bMarker));
- if(idCmp != 0) {
- return idCmp;
- }
-
- int cmp = compareResourceAndLocation(aMarker, bMarker);
- return cmp;
- }
-
- public int compare(IMarker marker, MessageMetaData mmd) {
- if((marker == null) && (mmd == null)) {
- return 0;
- }
- else if(marker == null) {
- return 1;
- }
- else if(mmd == null) {
- return -1;
- }
-
- int valCmp = compare(getValidator(marker), mmd.getValidator());
- if(valCmp != 0) {
- return valCmp;
- }
-
- int prjCmp = compare(getProject(marker), mmd.getValidatorTestcase().getProjectName());
- if(prjCmp != 0) {
- return prjCmp;
- }
-
- int idCmp = compare(getMessagePrefix(marker), mmd.getMessagePrefix());
- if(idCmp != 0) {
- return idCmp;
- }
-
- int cmp = compareResourceAndLocation(marker, mmd);
- return cmp;
- }
-
- public int compare(MessageMetaData mmd, IMarker marker) {
- if((mmd == null) && (marker == null)) {
- return 0;
- }
- else if(mmd == null) {
- return 1;
- }
- else if(marker == null) {
- return -1;
- }
-
- int valCmp = compare(mmd.getValidator(), getValidator(marker));
- if(valCmp != 0) {
- return valCmp;
- }
-
- int prjCmp = compare(mmd.getValidatorTestcase().getProjectName(), getProject(marker));
- if(prjCmp != 0) {
- return prjCmp;
- }
-
- int idCmp = compare(mmd.getMessagePrefix(), getMessagePrefix(marker));
- if(idCmp != 0) {
- return idCmp;
- }
-
- int cmp = compareResourceAndLocation(mmd, marker);
- return cmp;
- }
-
- public int compare(MessageMetaData aMMD, MessageMetaData bMMD) {
- if((aMMD == null) && (bMMD == null)) {
- return 0;
- }
- else if(aMMD == null) {
- return 1;
- }
- else if(bMMD == null) {
- return -1;
- }
-
- int valCmp = compare(aMMD.getValidator(), bMMD.getValidator());
- if(valCmp != 0) {
- return valCmp;
- }
-
- int prjCmp = compare(aMMD.getValidatorTestcase().getProjectName(), bMMD.getValidatorTestcase().getProjectName());
- if(prjCmp != 0) {
- return prjCmp;
- }
-
- int idCmp = compare(aMMD.getMessagePrefix(), bMMD.getMessagePrefix());
- if(idCmp != 0) {
- return idCmp;
- }
-
- int cmp = compareResourceAndLocation(aMMD, bMMD);
- return cmp;
- }
-
- public int compareResourceAndLocation(IMarker aMarker, IMarker bMarker) {
- int resCmp = compare(getResource(aMarker), getResource(bMarker));
- if(resCmp != 0) {
- return resCmp;
- }
-
- Integer aLineNo = getLineNumber(aMarker);
- Integer bLineNo = getLineNumber(bMarker);
- if((aLineNo != null) && (bLineNo!= null)) {
- return compare(aLineNo, bLineNo);
- }
-
- String aLocation = getLocation(aMarker);
- String bLocation = getLocation(bMarker);
- if((aLocation != null) && (bLocation != null)) {
- return compare(aLocation, bLocation);
- }
-
- // If one has a line number and the other has a text location, can't compare
- // the location, so just assume that they're equal.
- return resCmp;
- }
-
- public int compareResourceAndLocation(IMarker marker, MessageMetaData mmd) {
- int resCmp = compare(getResource(marker), mmd.getResource());
- if(resCmp != 0) {
- return resCmp;
- }
-
- if(mmd.isSetLineNumber()) {
- Integer aLineNo = getLineNumber(marker);
- int bLineNo = mmd.getLineNumber();
- if(aLineNo != null) {
- return compare(aLineNo.intValue(), bLineNo);
- }
- }
-
- if(mmd.isSetLocation()) {
- String aLocation = getLocation(marker);
- String bLocation = mmd.getLocation();
- if((aLocation != null) && (bLocation != null)) {
- return compare(aLocation, bLocation);
- }
- }
-
- // If one has a line number and the other has a text location, can't compare
- // the location, so just assume that they're equal.
- return resCmp;
- }
-
- public int compareResourceAndLocation(MessageMetaData mmd, IMarker marker) {
- int resCmp = compare(mmd.getResource(), getResource(marker));
- if(resCmp != 0) {
- return resCmp;
- }
-
- if(mmd.isSetLineNumber()) {
- int aLineNo = mmd.getLineNumber();
- Integer bLineNo = getLineNumber(marker);
- if(bLineNo!= null) {
- return compare(aLineNo, bLineNo.intValue());
- }
- }
-
- if(mmd.isSetLocation()) {
- String aLocation = mmd.getLocation();
- String bLocation = getLocation(marker);
- if((aLocation != null) && (bLocation != null)) {
- return compare(aLocation, bLocation);
- }
- }
-
- // If one has a line number and the other has a text location, can't compare
- // the location, so just assume that they're equal.
- return resCmp;
- }
-
- public int compareResourceAndLocation(MessageMetaData aMMD, MessageMetaData bMMD) {
- int resCmp = compare(aMMD.getResource(), bMMD.getResource());
- if(resCmp != 0) {
- return resCmp;
- }
-
- if(aMMD.isSetLineNumber() && bMMD.isSetLineNumber()) {
- int aLineNo = aMMD.getLineNumber();
- int bLineNo = bMMD.getLineNumber();
- return compare(aLineNo, bLineNo);
- }
-
- if(aMMD.isSetLocation() && bMMD.isSetLocation()) {
- String aLocation = aMMD.getLocation();
- String bLocation = bMMD.getLocation();
- if((aLocation != null) && (bLocation != null)) {
- return compare(aLocation, bLocation);
- }
- }
-
- // If one has a line number and the other has a text location, can't compare
- // the location, so just assume that they're equal.
- return resCmp;
- }
- }
-
- public static MessagePrefixComparator getMessagePrefixComparator() {
- if(_messagePrefixComparator == null) {
- _messagePrefixComparator = new MessagePrefixComparator();
- }
- return _messagePrefixComparator;
- }
-
- static class MessagePrefixComparator implements Comparator {
- public int compare(Object a, Object b) {
- String aPrefix = null;
- String bPrefix = null;
- if(a instanceof PropertyLine) {
- aPrefix = ((PropertyLine)a).getMessagePrefix();
- }
- else if(a instanceof MessageMetaData) {
- aPrefix = ((MessageMetaData)a).getMessagePrefix();
- }
-
- if(b instanceof PropertyLine) {
- bPrefix = ((PropertyLine)b).getMessagePrefix();
- }
- else if(b instanceof MessageMetaData) {
- bPrefix = ((MessageMetaData)b).getMessagePrefix();
- }
-
- if(aPrefix.length() == 9) {
- aPrefix = aPrefix.substring(0, 9);
- }
-
- if(bPrefix.length() == 9) {
- bPrefix = bPrefix.substring(0, 9);
- }
-
- return aPrefix.compareTo(bPrefix);
- }
- }
-
- class MessageIdComparator implements Comparator {
- private boolean _verbose = false;
- private IBuffer _buffer = null;
-
- public boolean isVerbose() {
- return _verbose;
- }
-
- public void setVerbose(boolean v) {
- _verbose = v;
- }
-
- public IBuffer getBuffer() {
- return _buffer;
- }
-
- public void setBuffer(IBuffer b) {
- _buffer = b;
- }
-
- public String getMessageId(IMarker marker) {
- try {
- return (String)marker.getAttribute(ConfigurationConstants.VALIDATION_MARKER_MESSAGEID);
- }
- catch(CoreException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- return ""; //$NON-NLS-1$
- }
- }
-
- public int compare(String aStr, String bStr) {
- if((aStr == null) && (bStr == null)) {
- return 0;
- }
- else if(aStr == null) {
- return 1;
- }
- else if(bStr == null) {
- return -1;
- }
- return aStr.compareTo(bStr);
- }
-
- public int compare(Object a, Object b) {
- if((a == null) && (b == null)) {
- return 0;
- }
- else if(a == null) {
- return 1;
- }
- else if(b == null) {
- return -1;
- }
-
-
- // Sort first on the version, then on the message prefix
- if((a instanceof String) && (b instanceof String)) {
- String aStr = (String)a;
- String bStr = (String)b;
- return compare(aStr, bStr);
- }
- else if ((a instanceof PropertyLine) && (b instanceof PropertyLine)) {
- PropertyLine aM = (PropertyLine)a;
- PropertyLine bM = (PropertyLine)b;
-
- return compare(aM.getMessageId(), bM.getMessageId());
- }
- else if ((a instanceof PropertyLine) && (b instanceof IMarker)) {
- PropertyLine aM = (PropertyLine)a;
- IMarker bM = (IMarker)b;
-
- return compare(aM.getMessageId(), getMessageId(bM));
- }
- else if((a instanceof IMarker) && (b instanceof PropertyLine)) {
- IMarker aM = (IMarker)a;
- PropertyLine bM = (PropertyLine)b;
-
- return compare(getMessageId(aM), bM.getMessageId());
- }
- else if((a instanceof IMarker) && (b instanceof IMarker)) {
- IMarker aM = (IMarker)a;
- IMarker bM = (IMarker)b;
-
- return compare(getMessageId(aM), getMessageId(bM));
- }
-
- // else put it at the end of the list
- return 1;
- }
- };
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/OperationTestcase.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/OperationTestcase.java
deleted file mode 100644
index 1ecc44ab..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/OperationTestcase.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.IOperationRunnable;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-
-/**
- * Instead of testing a validator, an operation test case tests the
- * validation framework.
- */
-public class OperationTestcase implements ITestcaseMetaData {
- private String _pluginId = null; // The plugin id that has contributed this test case.
- private String _projectName = null; // the name of the project that this test case tests
- private String _inputFileName = null;
- private String _opName = null; // the name of the test case
- private IOperationRunnable _runnable = null;
-
- public OperationTestcase(String pluginId, String projectName, String opName, String inputFileName, IOperationRunnable runnable) {
- _pluginId = pluginId;
- _projectName = projectName;
- _inputFileName = inputFileName;
- _opName = opName;
- _runnable = runnable;
- }
-
- public String getName() {
- return _opName;
- }
-
- public boolean isVisible() {
- return true; // framework test cases are always visible on the test collector menu
- }
-
- public String getDeclaringPluginId() {
- return _pluginId;
- }
-
- public String getProjectName() {
- return _projectName;
- }
-
- public IProject getProject() {
- return TestcaseUtility.findProject(this);
- }
-
- public String getInputFileName() {
- return _inputFileName;
- }
-
- public IOperationRunnable getRunnable() {
- return _runnable;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.validation.test.internal.registry.ITestcaseMetaData#run(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.jst.validation.test.setup.IBuffer, org.eclipse.core.resources.IProject)
- */
- public void run(IBuffer buffer, IProject project) {
- try {
- getRunnable().setBuffer(buffer);
- getRunnable().setProject(project);
- getRunnable().setName(getName());
- ResourcesPlugin.getWorkspace().run(getRunnable(), buffer.getProgressMonitor());
- }
- catch(CoreException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc); //$NON-NLS-1$
- }
- }
- }
-
- public String toString() {
- return getName();
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/RegistryConstants.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/RegistryConstants.java
deleted file mode 100644
index 134032ec..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/RegistryConstants.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-/**
- * Validation constants needed to declare an extension point, and
- * to implement an extension.
- */
-public interface RegistryConstants {
- public static final String PLUGIN_ID = org.eclipse.jst.validation.test.BVTValidationPlugin.PLUGIN_ID;
-
- public static final String VALIDATOR_TESTCASE_EXT_PT_ID = "test"; // extension point declaration of the validator test case //$NON-NLS-1$
- public static final String VALIDATOR_SETUP_EXT_PT_ID = "testSetup"; // extension point declaration of the test case setup mechanism (i.e., import the EAR or JAR) //$NON-NLS-1$
- public static final String VALIDATOR_OPERATION_TESTCASE_EXT_PT_ID = "opTest"; // extension point declaration of the operation test case //$NON-NLS-1$
-
- public static final Double EJB20 = new Double(2.0); // EJB 2.0 input or 1.3 EAR
- public static final Double EJB11 = new Double(1.1); // EJB 1.1 input or 1.2 EAR
- public static final Double EJB = null; // common EJB level, such as reflection errors
- public static final String EJB20_MSSG = "ejb20"; // in a .properties line, if the message id contains this string, it's an EJB 2.0 rule //$NON-NLS-1$
- public static final String EJB11_MSSG = "ejb11"; // in a .properties line, if the message id contains this string, it's an EJB 1.1 rule //$NON-NLS-1$
- public static final String EJB_MSSG = null; // in a .properties file, if the message is neither EJB20 nor EJB11, the rule is cross-specs. (e.g. reflection errors) //$NON-NLS-1$
-
-
- /*package*/ static final String ATT_VALIDATOR = "validator"; // the validator //$NON-NLS-1$
- /*package*/ static final String ATT_PLUGIN = "plugin"; // identifies the plugin which has the class //$NON-NLS-1$
- /*package*/ static final String TAG_TEST = "test"; //$NON-NLS-1$
- /*package*/ static final String TAG_IMPORT = "import"; //$NON-NLS-1$
- /*package*/ static final String ATT_OPERATION = "operation"; // the fully-qualified name of the IImportOperation which is used to import the input //$NON-NLS-1$
- /*package*/ static final String ATT_INPUT = "input"; //$NON-NLS-1$
- /*package*/ static final String ATT_VERSION = "version"; // the version of the input, e.g. EJB 1.1 vs. EJB 2.0 //$NON-NLS-1$
- /*package*/ static final String TAG_MESSAGE = "message"; //$NON-NLS-1$
- /*package*/ static final String ATT_PREFIX = "prefix"; //$NON-NLS-1$
- /*package*/ static final String ATT_SEVERITY = "severity"; //$NON-NLS-1$
- /*package*/ static final String ATT_PROJECT = "project"; //$NON-NLS-1$
- /*package*/ static final String ATT_RESOURCE = "resource"; //$NON-NLS-1$
- /*package*/ static final String ATT_LOCATION = "location"; //$NON-NLS-1$
- /*package*/ static final String ATT_TEXT = "text"; //$NON-NLS-1$
- /*package*/ static final String ATT_VISIBLE = "visible"; // Is this test visible on the Test Collector menu? //$NON-NLS-1$
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestSetupImport.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestSetupImport.java
deleted file mode 100644
index c57765a2..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestSetupImport.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import java.io.File;
-import java.lang.reflect.InvocationTargetException;
-import java.util.logging.Level;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.setup.IImportOperation;
-import org.eclipse.wst.validation.internal.plugin.ValidationPlugin;
-
-/**
- * This class holds the metadata needed to import an .ear or
- * a .jar file to set up a test case in batch mode.
- */
-public class TestSetupImport {
- private String _fileName = null;
- private IImportOperation _importOperation = null;
-
- public TestSetupImport(IImportOperation op, String fileName) {
- _importOperation = op;
- _fileName = fileName;
- }
-
- public File getInputFile(String dir) {
- File file = new File(dir, getFileName());
- if(!file.exists()) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, "File " + file.getAbsolutePath() + " must exist and have read access."); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return null;
- }
-
- return file;
- }
-
- public String getFileName() {
- return _fileName;
- }
-
- public IImportOperation getOperation() {
- return _importOperation;
- }
-
- /**
- * Return true if the file was found and imported successfully.
- */
- public boolean importFile(IProgressMonitor monitor, String dir) {
- //int executionMap = 0x0;
- boolean imported = true;
- try {
- File file = getInputFile(dir);
- //executionMap |= 0x1;
- try {
- IImportOperation op = getOperation();
- //executionMap |= 0x2;
- imported = op.run(monitor, file);
- //executionMap |= 0x4;
- }
- catch (InterruptedException exc) {
- //executionMap |= 0x8;
- imported = false;
- ValidationPlugin.getPlugin().handleException(exc);
- }
- catch (InvocationTargetException exc) {
- //executionMap |= 0x10;
- imported = false;
- ValidationPlugin.getPlugin().handleException(exc);
- ValidationPlugin.getPlugin().handleException(exc.getTargetException());
- }
- catch (Throwable exc) {
- //executionMap |= 0x20;
- imported = false;
- ValidationPlugin.getPlugin().handleException(exc);
- }
- }
- finally {
- if(!imported) {
- ValidationPlugin.getPlugin().logMessage(IStatus.ERROR,
- "TestSetup for " + dir + " was unsuccessful."); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- }
- return imported;
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestcaseMetaData.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestcaseMetaData.java
deleted file mode 100644
index b4f2c56f..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestcaseMetaData.java
+++ /dev/null
@@ -1,160 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import java.io.File;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.IPluginRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-
-public class TestcaseMetaData {
- private String _pluginId = null; // The plugin id that has contributed this test case.
- private ValidatorMetaData _vmd = null;
- private MessageMetaData[] _messages = null;
- private String _project = null; // the name of the project that this test case tests
- private String[] _resourceNames = null; // the resources listed in the MessageMetaData of this test case.
- private String _inputFileName = null;
- private String _name = null; // the name of the test case
-
- public TestcaseMetaData(String pluginName, String project, ValidatorMetaData vmd, String inputFileName) {
- _pluginId = pluginName;
- _project = project;
- _vmd = vmd;
- _inputFileName = inputFileName;
- }
-
- public String getDeclaringPluginId() {
- return _pluginId;
- }
-
- public String getProject() {
- return _project;
- }
-
- public IProject findProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(_project);
- }
-
- public String getInputFileName() {
- return _inputFileName;
- }
-
- public int getNumMessages() {
- return getMessages().size();
- }
-
- // The messages need to be stored in a list instead of an array because
- // the list is sorted before searching & displaying.
- public List getMessages() {
- List copy = new ArrayList();
- for(int i=0; i<_messages.length; i++) {
- copy.add(_messages[i]);
- }
-
- return copy;
- }
-
- // Return the resources in this project for which there is a message in this test case.
- // No resource instance will be in the resource more than once.
- public IResource[] getResources(IProject project) {
- Set temp = new HashSet(); // use a set in case there is more than one message registered against a resource (don't want duplicates in the list).
- String[] resourceNames = getResourceNames();
- for(int i=0; i<resourceNames.length; i++) {
- String resourceName = resourceNames[i];
- IResource resource = project.findMember(resourceName);
- if(resource != null) {
- // resource exists
- temp.add(resource);
- }
- }
-
- IResource[] result = new IResource[temp.size()];
- temp.toArray(result);
- return result;
- }
-
- public String[] getResourceNames() {
- if(_resourceNames == null) {
- _resourceNames = new String[_messages.length];
- for(int i=0; i<_messages.length; i++) {
- _resourceNames[i] = _messages[i].getResource();
- }
- }
- return _resourceNames;
- }
-
- /**
- * When an empty TMD is used to test an operation, and the operation needs the IResource[]
- * affected by the TMD to know whether or not the operation passes (i.e., one of the ValidatorSubsetOperation
- * constructors takes an IResource[], and the IResource[] must not be empty or null), then
- * this method is used to set the "resources" affected by the test case.
- */
- public void setResourceNames(String[] resourceNames) {
- _resourceNames = resourceNames;
- }
-
- public void setMessages(MessageMetaData[] messages) {
- // If messages are null, that means that the test case expects no validation errors.
- _messages = ((messages == null) ? new MessageMetaData[0] : messages);
- }
-
- public ValidatorMetaData getValidatorMetaData() {
- return _vmd;
- }
-
- public String getValidatorClass() {
- return getValidatorMetaData().getValidatorUniqueName();
- }
-
- public String getName() {
- if(_name == null) {
- _name = _vmd.getValidatorDisplayName() + "::" + getProject(); //$NON-NLS-1$
- }
- return _name;
- }
-
- public String getInputDir() {
- // If the directory where the testcase input isn't specified,
- // assume that the input is in a subdirectory, named "testInput",
- // of the testcase's plugin.
- IPluginRegistry registry = Platform.getPluginRegistry();
- IPluginDescriptor descriptor = registry.getPluginDescriptor(getDeclaringPluginId());
- if(descriptor != null) {
- // Because Platform.asLocalURL throws an IOException if the URL resolves
- // to a directory, find the plugin.xml file and then strip off the file name
- // to find the testInput directory.
- try {
- String pluginXmlPath = Platform.asLocalURL(new URL(descriptor.getInstallURL(), "plugin.xml")).getPath(); //$NON-NLS-1$
- File pluginXml = new File(pluginXmlPath);
- if(pluginXml.exists()) {
- File inputDir = new File(pluginXml.getParent(), "testInput"); //$NON-NLS-1$
- if (inputDir.exists() && inputDir.isDirectory()) {
- return inputDir.getPath();
- }
- }
- }
- catch(java.io.IOException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.getLevel() == Level.SEVERE) {
- logger.write(Level.SEVERE, exc);
- }
- }
- }
-
- // Should never get here, but if we do, assume that the input
- // directory is the current directory.
- return System.getProperty("user.dir"); //$NON-NLS-1$
- }
-}
-
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestcaseUtility.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestcaseUtility.java
deleted file mode 100644
index 32d58e3c..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/TestcaseUtility.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package org.eclipse.jst.validation.test.internal.registry;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.net.URL;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.IPluginRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-
-/**
- * Utility class that contains convenience methods for test cases.
- */
-public final class TestcaseUtility {
- /**
- * Load the project that this test case is supposed to run on.
- */
- public static IProject findProject(ITestcaseMetaData tmd) {
- if(tmd == null) {
- return null;
- }
-
- return ResourcesPlugin.getWorkspace().getRoot().getProject(tmd.getProjectName());
- }
-
- /**
- * Return the directory where the input for this test case can be located.
- */
- public static String getInputDir(ITestcaseMetaData tmd) {
- // If the directory where the testcase input isn't specified,
- // assume that the input is in a subdirectory, named "testInput",
- // of the testcase's plugin.
- IPluginRegistry registry = Platform.getPluginRegistry();
- IPluginDescriptor descriptor = registry.getPluginDescriptor(tmd.getDeclaringPluginId());
- if(descriptor != null) {
- // Because Platform.asLocalURL throws an IOException if the URL resolves
- // to a directory, find the plugin.xml file and then strip off the file name
- // to find the testInput directory.
- try {
- String pluginXmlPath = Platform.asLocalURL(new URL(descriptor.getInstallURL(), "plugin.xml")).getPath(); //$NON-NLS-1$
- File pluginXml = new File(pluginXmlPath);
- if(pluginXml.exists()) {
- File inputDir = new File(pluginXml.getParent(), "testInput"); //$NON-NLS-1$
- if (inputDir.exists() && inputDir.isDirectory()) {
- return inputDir.getPath();
- }
- }
- }
- catch(java.io.IOException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- }
- }
-
- // Should never get here, but if we do, assume that the input
- // directory is the current directory.
- return System.getProperty("user.dir"); //$NON-NLS-1$
- }
-
- /**
- * logFileName must point to a fully-qualified file.
- */
- public static void flush(String logFileName, String buffer, boolean append) {
- try {
- FileWriter writer = new FileWriter(logFileName, append);
- writer.write(buffer); // Write the entire report to the state log.
- writer.close();
- }
- catch(IOException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- }
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/ValidatorTestcase.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/ValidatorTestcase.java
deleted file mode 100644
index 5e30d53c..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/registry/ValidatorTestcase.java
+++ /dev/null
@@ -1,492 +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.jst.validation.test.internal.registry;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationException;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.ValidationTypeEnum;
-import org.eclipse.jst.validation.test.internal.util.BVTRunner;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-import org.eclipse.wst.validation.internal.ConfigurationManager;
-import org.eclipse.wst.validation.internal.GlobalConfiguration;
-import org.eclipse.wst.validation.internal.TaskListUtility;
-import org.eclipse.wst.validation.internal.VThreadManager;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-import org.eclipse.wst.validation.internal.core.IFileDelta;
-import org.eclipse.wst.validation.internal.operations.ValidatorSubsetOperation;
-
-public class ValidatorTestcase implements ITestcaseMetaData {
- private String _pluginId = null; // The plugin id that has contributed this test case.
- private ValidatorMetaData _vmd = null;
- private MessageMetaData[] _messages = null;
- private String _projectName = null; // the name of the project that this test case tests
- private String[] _resourceNames = null; // the resources listed in the MessageMetaData of this test case.
- private String _inputFileName = null;
- private String _name = null; // the name of the test case
- private boolean _visible = true; // Is this test case visible on the Test Collector menu
-
- public ValidatorTestcase(String pluginName, String project, ValidatorMetaData vmd, String inputFileName, boolean visible) {
- _pluginId = pluginName;
- _projectName = project;
- _vmd = vmd;
- _inputFileName = inputFileName;
- _visible = visible;
- }
-
- public boolean isVisible() {
- return _visible;
- }
-
- public String getDeclaringPluginId() {
- return _pluginId;
- }
-
- public String getProjectName() {
- return _projectName;
- }
-
- public IProject getProject() {
- return TestcaseUtility.findProject(this);
- }
-
- public String getInputFileName() {
- return _inputFileName;
- }
-
- /**
- * Return the number of messages
- */
- public int getNumMessages() {
- return getMessages(ValidationTypeEnum.RUN_VALIDATION).size();
- }
-
- /**
- * Return the list of messages that should be reported for the given build
- * type. (e.g. if the validator does not support incremental validation,
- * then instead of returning the list of expected messages, return an empty
- * list.)
- */
- public List getMessages(int buildType) {
- // The messages need to be stored in a list instead of an array because
- // the list is sorted before searching & displaying.
- switch(buildType) {
- case(ValidationTypeEnum.AUTO_VALIDATION):
- case(ValidationTypeEnum.INCREMENTAL_VALIDATION): {
- if(!getValidatorMetaData().isIncremental()) {
- return Collections.EMPTY_LIST;
- }
- // Otherwise, return the default copy below.
- break;
- }
-
- case(ValidationTypeEnum.FULL_VALIDATION): {
- if(!getValidatorMetaData().isFullBuild()) {
- return Collections.EMPTY_LIST;
- }
- // Otherwise, return the default copy below.
- break;
- }
-
- case(ValidationTypeEnum.RUN_VALIDATION):
- default: {
- // Return the default copy below.
- }
-
- }
-
- List copy = new ArrayList();
- for(int i=0; i<_messages.length; i++) {
- copy.add(_messages[i]);
- }
-
- return copy;
- }
-
- // Return the resources in this project for which there is a message in this test case.
- // No resource instance will be in the resource more than once.
- public IResource[] getResources(IProject project) {
- Set temp = new HashSet(); // use a set in case there is more than one message registered against a resource (don't want duplicates in the list).
- String[] resourceNames = getResourceNames();
- for(int i=0; i<resourceNames.length; i++) {
- String resourceName = resourceNames[i];
- IResource resource = project.findMember(resourceName);
- if(resource != null) {
- // resource exists
- temp.add(resource);
- }
- }
-
- IResource[] result = new IResource[temp.size()];
- temp.toArray(result);
- return result;
- }
-
- public String[] getResourceNames() {
- if(_resourceNames == null) {
- _resourceNames = new String[_messages.length];
- for(int i=0; i<_messages.length; i++) {
- _resourceNames[i] = _messages[i].getResource();
- }
- }
- return _resourceNames;
- }
-
- /**
- * When an empty TMD is used to test an operation, and the operation needs the IResource[]
- * affected by the TMD to know whether or not the operation passes (i.e., one of the ValidatorSubsetOperation
- * constructors takes an IResource[], and the IResource[] must not be empty or null), then
- * this method is used to set the "resources" affected by the test case.
- */
- public void setResourceNames(String[] resourceNames) {
- _resourceNames = resourceNames;
- }
-
- public void setMessages(MessageMetaData[] messages) {
- // If messages are null, that means that the test case expects no validation errors.
- _messages = ((messages == null) ? new MessageMetaData[0] : messages);
- }
-
- public ValidatorMetaData getValidatorMetaData() {
- return _vmd;
- }
-
- public String getValidatorClass() {
- return getValidatorMetaData().getValidatorUniqueName();
- }
-
- public String getName() {
- if(_name == null) {
- _name = _vmd.getValidatorDisplayName() + "::" + getProjectName(); //$NON-NLS-1$
- }
- return _name;
- }
-
- public void run(IBuffer buffer, IProject project) {
- String status = ">>>>>RUN VALIDATION TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
- buffer.addExecutionStatus(getName(), ValidationTypeEnum.RUN_VALIDATION_NAME, validate(buffer, project, ValidationTypeEnum.RUN_VALIDATION, ValidationTypeEnum.RUN_VALIDATION_NAME));
- status = ">>>>>END RUN VALIDATION TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
-
- status = ">>>>>FULL BUILD TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
- buffer.addExecutionStatus(getName(), ValidationTypeEnum.FULL_VALIDATION_NAME, validate(buffer, project, ValidationTypeEnum.FULL_VALIDATION, ValidationTypeEnum.FULL_VALIDATION_NAME));
- status = ">>>>>END FULL BUILD TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
-
- status = ">>>>>INCREMENTAL BUILD TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
- buffer.addExecutionStatus(getName(), ValidationTypeEnum.INCREMENTAL_VALIDATION_NAME, validate(buffer, project, ValidationTypeEnum.INCREMENTAL_VALIDATION, ValidationTypeEnum.INCREMENTAL_VALIDATION_NAME));
- status = ">>>>>END INCREMENTAL BUILD TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
-
- status = ">>>>>AUTO BUILD TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
- buffer.addExecutionStatus(getName(), ValidationTypeEnum.AUTO_VALIDATION_NAME, validate(buffer, project, ValidationTypeEnum.AUTO_VALIDATION, ValidationTypeEnum.AUTO_VALIDATION_NAME));
- status = ">>>>>END AUTO BUILD TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
-
- if(getValidatorMetaData().isAsync()) {
- status = ">>>>>ASYNCHRONOUS VALIDATION TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
- buffer.addExecutionStatus(getName(), ValidationTypeEnum.ASYNC_NAME, asyncValidate(buffer, project, ValidationTypeEnum.ASYNC_NAME));
- status = ">>>>>END ASYNCHRONOUS VALIDATION TEST PASS [" + project.getName() + "]>>>>>"; //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().subTask(status);
- buffer.write(status);
- }
- else {
- // By default, "pass" the asynchrous tests of any validator that cannot run asynchronous tests.
- buffer.addExecutionStatus(getName(), ValidationTypeEnum.ASYNC_NAME, true);
- }
- }
-
- private boolean validate(IBuffer buffer, IProject project, int validationTypeEnum, String taskName) {
- long start = System.currentTimeMillis();
- boolean passed = true;
- try {
- passed = BVTRunner.singleton().test(buffer, project, this, validationTypeEnum);
- }
- catch(BVTValidationException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- if(exc.getTargetException() != null) {
- logger.write(Level.SEVERE, exc.getTargetException());
- }
- }
- }
- finally {
- long end = System.currentTimeMillis();
- buffer.addElapsedTime(taskName, (end - start));
- buffer.write("Total time for validator " + getValidatorMetaData().getValidatorDisplayName() + " of project " + project.getName() + " in " + taskName + " mode was " + (end - start) + " milliseconds."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
- }
- return passed;
- }
-
- private boolean asyncValidate(IBuffer buffer, IProject project, String subTaskName) {
- boolean passed = true;
- long start = System.currentTimeMillis();
- long end = 0;
- try {
- GlobalConfiguration gconf = ConfigurationManager.getManager().getGlobalConfiguration();
- //boolean disableValidation = gconf.numberOfEnabledValidators()==0;
- //boolean autoValidate = gconf.isAutoValidate();
- //boolean buildValidate = gconf.isBuildValidate();
- try {
- //gconf.setAutoValidate(false);
- // Turn off auto-validate so that the project isn't validated automatically.
- //gconf.setAutoValidate(false);
- //gconf.setBuildValidate(false);
- gconf.passivate();
-
- // Two tests:
- // 1. Run validation on copies of the original project: "projectName.fork" and "projectName.noFork"
- // Compare the markers of the copies to the FVT TestcaseMetaData, and the validator passes if the
- // results of each copy matches the TestcaseMetaData.
- // 2. Run validation on copies, but this time introduce changes during the validation.
- // Extract the names of resources from the testcase metadata, find those resources, and
- // add/delete/rename/move/close/change them.
-
- boolean pass1 = validateAndCompare(buffer, project, subTaskName);
- boolean pass2 = validateChangeAndCompare(buffer, project, IFileDelta.CHANGED, subTaskName);
- boolean pass3 = validateChangeAndCompare(buffer, project, IFileDelta.DELETED, subTaskName);
- passed = (pass1 && pass2 && pass3);
- }
- catch(CoreException exc) {
- // Couldn't create copy.Just continue with the next test.
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- }
- catch(BVTValidationException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- if(exc.getTargetException() != null) {
- logger.write(Level.SEVERE, exc.getTargetException());
- }
- }
- }
- catch(Throwable exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- }
- }
- finally {
- //gconf.setAutoValidate(autoValidate);
- //gconf.setBuildValidate(buildValidate);
- gconf.passivate();
- }
- }
- catch(InvocationTargetException exc) {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.SEVERE)) {
- logger.write(Level.SEVERE, exc);
- if(exc.getTargetException() != null) {
- logger.write(Level.SEVERE, exc.getTargetException());
- }
- }
- }
- finally {
- end = System.currentTimeMillis();
- buffer.addElapsedTime(ValidationTypeEnum.ASYNC_NAME, (end - start));
- buffer.write("Total time for validator " + getValidatorMetaData().getValidatorDisplayName() + " of project " + project.getName() + " in asynchronous mode was " + (end - start) + " milliseconds."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
-
- }
- return passed;
- }
-
- /**
- * Run validation, using several operations (both forked and not forked), on the IProject.
- * Return true if the result, after the last operation is complete, is the expected result.
- */
- private boolean validateAndCompare(IBuffer buffer, IProject project, String subTaskName) throws CoreException, BVTValidationException {
- // Now compare the IProject's result to the expected TestcaseMetaData result.
- // Validate
- ValidatorSubsetOperation noForkOp = new ValidatorSubsetOperation(project, true, false);
- noForkOp.setValidators(getValidatorMetaData().getValidatorNames());
- noForkOp.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp = new ValidatorSubsetOperation(project, true, true);
- forkOp.setValidators(getValidatorMetaData().getValidatorNames());
- forkOp.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation noForkOp2 = new ValidatorSubsetOperation(project, true, false);
- noForkOp2.setValidators(getValidatorMetaData().getValidatorNames());
- noForkOp2.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp2 = new ValidatorSubsetOperation(project, true, true);
- forkOp2.setValidators(getValidatorMetaData().getValidatorNames());
- forkOp2.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp3 = new ValidatorSubsetOperation(project, true, true);
- forkOp3.setValidators(getValidatorMetaData().getValidatorNames());
- forkOp3.run(buffer.getProgressMonitor());
-
- // Wait until all of the threads have complete.
- buffer.getProgressMonitor().subTask("Waiting for all forked threads to finish..."); //$NON-NLS-1$
- while(!VThreadManager.getManager().isDone() && !buffer.getProgressMonitor().isCanceled()) {}
- buffer.getProgressMonitor().subTask("All threads are complete. Beginning the comparison."); //$NON-NLS-1$
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- // Compare
- IMarker[] markers = TaskListUtility.getValidationTasks(project, getValidatorMetaData().getValidatorNames());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- return BVTRunner.singleton().verify(buffer, getName(), subTaskName, project, getMessages(ValidationTypeEnum.RUN_VALIDATION), markers);
- }
-
- private boolean validateChangeAndCompare(IBuffer buffer, IProject project, int ifileDeltaType, String subTaskName) throws BVTValidationException, CoreException {
- boolean passed = true;
-
- ValidatorMetaData[] vmds = new ValidatorMetaData[]{getValidatorMetaData()};
-
- ValidatorSubsetOperation noForkOpOrig = new ValidatorSubsetOperation(project, true, false);
- noForkOpOrig.setValidators(getValidatorMetaData().getValidatorNames());
- noForkOpOrig.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation noForkOpChanged = new ValidatorSubsetOperation(project, vmds, getResources(project), ifileDeltaType, false, false); // false = do not force if there's no deltas to validate
- noForkOpChanged.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOpOrig = new ValidatorSubsetOperation(project, true, true);
- forkOpOrig.setValidators(getValidatorMetaData().getValidatorNames());
- forkOpOrig.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOpChanged = new ValidatorSubsetOperation(project, vmds, getResources(project), ifileDeltaType, false, true); // false = do not force if there's no deltas to validate
- forkOpChanged.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation noForkOp2Orig = new ValidatorSubsetOperation(project, true, false);
- noForkOp2Orig.setValidators(getValidatorMetaData().getValidatorNames());
- noForkOp2Orig.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation noForkOp2Changed = new ValidatorSubsetOperation(project, vmds, getResources(project), ifileDeltaType, false, false); // false = do not force if there's no deltas to validate
- noForkOp2Changed.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp2Orig = new ValidatorSubsetOperation(project, true, true);
- forkOp2Orig.setValidators(getValidatorMetaData().getValidatorNames());
- forkOp2Orig.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp2Changed = new ValidatorSubsetOperation(project, vmds, getResources(project), ifileDeltaType, false, true); // false = do not force if there's no deltas to validate
- forkOp2Changed.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp3Orig = new ValidatorSubsetOperation(project, true, true);
- forkOp3Orig.setValidators(getValidatorMetaData().getValidatorNames());
- forkOp3Orig.run(buffer.getProgressMonitor());
-
- if(buffer.getProgressMonitor().isCanceled()) {
- return false;
- }
-
- ValidatorSubsetOperation forkOp3Changed = new ValidatorSubsetOperation(project, vmds, getResources(project), ifileDeltaType, false, true); // false = do not force if there's no deltas to validate
- forkOp3Changed.run(buffer.getProgressMonitor());
-
- // Wait until all of the threads have complete.
- buffer.getProgressMonitor().subTask("Waiting for all forked threads to finish..."); //$NON-NLS-1$
- while(!VThreadManager.getManager().isDone() && !buffer.getProgressMonitor().isCanceled()) {}
- if(buffer.getProgressMonitor().isCanceled()) {
- buffer.getProgressMonitor().subTask("Comparison cancelled. Performing cleanup."); //$NON-NLS-1$
- return false;
- }
- buffer.getProgressMonitor().subTask("All threads are complete. Beginning the comparison."); //$NON-NLS-1$
-
- // Compare
- IMarker[] markers = TaskListUtility.getValidationTasks(project, getValidatorMetaData().getValidatorNames());
-
- // Now compare the IProject's result to the expected TestcaseMetaData result.
- // Don't write _passed = _passed && get...
- // When the _passed == false, then java didn't bother running the test.
- passed = BVTRunner.singleton().verify(buffer, getName(), subTaskName, project, getMessages(ValidationTypeEnum.RUN_VALIDATION), markers);
-
- ResourcesPlugin.getWorkspace().deleteMarkers(markers);
-
- return passed;
-
- }
-}
diff --git a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/util/BVTRunner.java b/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/util/BVTRunner.java
deleted file mode 100644
index 61a0580d..00000000
--- a/tests/org.eclipse.jst.validation.test/test/org/eclipse/jst/validation/test/internal/util/BVTRunner.java
+++ /dev/null
@@ -1,684 +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.jst.validation.test.internal.util;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.util.logging.Level;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.jst.validation.test.BVTValidationException;
-import org.eclipse.jst.validation.test.BVTValidationPlugin;
-import org.eclipse.jst.validation.test.ValidationTypeEnum;
-import org.eclipse.jst.validation.test.internal.registry.BVTValidationRegistryReader;
-import org.eclipse.jst.validation.test.internal.registry.ITestcaseMetaData;
-import org.eclipse.jst.validation.test.internal.registry.MessageMetaData;
-import org.eclipse.jst.validation.test.internal.registry.MessageUtility;
-import org.eclipse.jst.validation.test.internal.registry.OperationTestcase;
-import org.eclipse.jst.validation.test.internal.registry.TestSetupImport;
-import org.eclipse.jst.validation.test.internal.registry.TestcaseUtility;
-import org.eclipse.jst.validation.test.internal.registry.ValidatorTestcase;
-import org.eclipse.jst.validation.test.setup.IBuffer;
-import org.eclipse.jst.validation.test.setup.ITestStatus;
-import org.eclipse.wst.validation.internal.InternalValidatorManager;
-import org.eclipse.wst.validation.internal.TaskListUtility;
-import org.eclipse.wst.validation.internal.VThreadManager;
-import org.eclipse.wst.validation.internal.ValidatorMetaData;
-import org.eclipse.wst.validation.internal.operations.OneValidatorOperation;
-import org.eclipse.wst.validation.internal.operations.ValidationOperation;
-import org.eclipse.wst.validation.internal.plugin.ValidationPlugin;
-
-/**
- */
-public final class BVTRunner {
- private static BVTRunner _inst = null;
- private List _extra = null; // The extra markers reported (stored in a list to make reading easier).
- private List _missing = null; // The missing MMD that were supposed to be reported (stored in a list to make reading easier).
-
- public static BVTRunner singleton() {
- if(_inst == null) {
- _inst = new BVTRunner();
- }
- return _inst;
- }
-
- private BVTRunner() {
- super();
- _extra = new ArrayList();
- _missing = new ArrayList();
- }
-
- private boolean isVerbose() {
- Logger logger = BVTValidationPlugin.getPlugin().getMsgLogger();
- if(logger.isLoggingLevel(Level.FINEST)) {
- return true;
- }
- return false;
- }
-
- private char getSeverityChar(Integer severity) {
- if(severity == null) {
- return '?';
- }
-
- switch(severity.intValue()) {
- case(IMarker.SEVERITY_ERROR): {
- return 'E';
- }
-
- case(IMarker.SEVERITY_WARNING): {
- return 'W';
- }
-
- case(IMarker.SEVERITY_INFO): {
- return 'I';
- }
-
- default: {
- return '?';
- }
- }
- }
-
- private String[] getNames(IProject[] projects) {
- if(projects == null) {
- return new String[0];
- }
- String[] names = new String[projects.length];
- for(int i=0; i<projects.length; i++) {
- IProject project = projects[i];
- names[i] = project.getName();
- }
- return names;
- }
-
- private void debug(IBuffer buffer, IMarker[] messages) {
- if(messages == null) {
- buffer.write("Nothing to debug because nothing was reported"); //$NON-NLS-1$
- }
-
- for(int i=0; i<messages.length; i++) {
- IMarker marker = messages[i];
- buffer.write(MessageUtility.toString(marker));
- }
- }
-
- protected IProgressMonitor getDebugMonitor(IProgressMonitor monitor) {
- if(isVerbose()) {
- return monitor;
- }
- else {
- return new NullProgressMonitor(); // if verbose is true, show progress messages for the creation & validation of the project. Otherwise show only the BVT status.
- }
- }
-
- /**
- * When invoking the test from the UI, the input has already been imported, so just test it.
- * The name of the test is derived from the name of the project.
- * Return the number of tests that passed.
- */
- public int test(IBuffer buffer, IProject[] projects) throws BVTValidationException {
- String[] testNames = getNames(projects);
- BVTValidationRegistryReader reader = BVTValidationRegistryReader.getReader();
-
- buffer.getProgressMonitor().beginTask("Running BVT tests", projects.length); //$NON-NLS-1$
- int totalTests = 0;
- int totalPassed = 0;
- for(int i=0; i<projects.length; i++) {
- buffer.getProgressMonitor().subTask("Testing project " + (i+1) + " of " + projects.length); //$NON-NLS-1$ //$NON-NLS-2$
- IProject project = projects[i];
- ValidatorTestcase[] tests = reader.getValidatorTests(buffer.getProgressMonitor(), testNames[i]);
- if((tests == null) || (tests.length == 0)) {
- buffer.getProgressMonitor().subTask("There are no tests to run."); //$NON-NLS-1$
- continue;
- }
-
- int numTestsPassed = 0;
- for(int j=0; j<tests.length; j++) {
- ValidatorTestcase tmd = tests[j];
- if(test(buffer, project, tmd, ValidationTypeEnum.RUN_VALIDATION)) {
- numTestsPassed++;
- buffer.getProgressMonitor().subTask("Test " + (j+1) + " of " + tests.length + " passed."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- else {
- buffer.getProgressMonitor().subTask("Test " + (j+1) + " of " + tests.length + " failed."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- buffer.getProgressMonitor().worked(1);
- }
-
- totalTests += tests.length;
- totalPassed += numTestsPassed;
-
- buffer.write(numTestsPassed + " of " + tests.length + " tests passed."); //$NON-NLS-1$ //$NON-NLS-2$
- }
- buffer.write("\n>>>>>>>>>>TEST RESULTS>>>>>>>>>>"); //$NON-NLS-1$
- buffer.write(totalPassed + " of " + totalTests + " tests passed."); //$NON-NLS-1$ //$NON-NLS-2$
- buffer.getProgressMonitor().done();
-
- return totalPassed;
- }
-
- /**
- * Construct a ValidationOperation on the IProject, invoke the operation, and verify that the
- * resulting IMarkers match the expected messages in the tmd.
- */
- public boolean test(IBuffer buffer, IProject project, ValidatorTestcase tmd, int validationEnumType) throws BVTValidationException {
- switch(validationEnumType) {
- case(ValidationTypeEnum.RUN_VALIDATION): {
- return test(buffer, tmd.getName(), ValidationTypeEnum.RUN_VALIDATION_NAME, tmd.getMessages(validationEnumType), new OneValidatorOperation(project, tmd.getValidatorClass(), true, false), InternalValidatorManager.getManager().getValidatorNames(new ValidatorMetaData[]{tmd.getValidatorMetaData()})); // true=force, false=no for
- }
-