This commit was manufactured by cvs2svn to create tag 'v201003280454'.
diff --git a/features/org.eclipse.wst.xsl_tests.feature/.project b/features/org.eclipse.wst.xsl_tests.feature/.project
deleted file mode 100644
index ba12d45..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl_tests.feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
diff --git a/features/org.eclipse.wst.xsl_tests.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.wst.xsl_tests.feature/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 3750df1..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Sun Dec 16 16:57:57 EST 2007
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/features/org.eclipse.wst.xsl_tests.feature/.settings/org.eclipse.pde.prefs b/features/org.eclipse.wst.xsl_tests.feature/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index fdd8568..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,16 +0,0 @@
-#Fri Jan 04 09:04:43 EST 2008
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=0
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-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/features/org.eclipse.wst.xsl_tests.feature/build.properties b/features/org.eclipse.wst.xsl_tests.feature/build.properties
deleted file mode 100644
index 64f93a9..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/build.properties
+++ /dev/null
@@ -1 +0,0 @@
-bin.includes = feature.xml
diff --git a/features/org.eclipse.wst.xsl_tests.feature/eclipse_update_120.jpg b/features/org.eclipse.wst.xsl_tests.feature/eclipse_update_120.jpg
deleted file mode 100644
index bfdf708..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/eclipse_update_120.jpg
+++ /dev/null
Binary files differ
diff --git a/features/org.eclipse.wst.xsl_tests.feature/epl-v10.html b/features/org.eclipse.wst.xsl_tests.feature/epl-v10.html
deleted file mode 100644
index ed4b196..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/epl-v10.html
+++ /dev/null
@@ -1,328 +0,0 @@
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
-<meta name=ProgId content=Word.Document>
-<meta name=Generator content="Microsoft Word 9">
-<meta name=Originator content="Microsoft Word 9">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<!--[if gte mso 9]><xml>
- <o:DocumentProperties>
- <o:Revision>2</o:Revision>
- <o:TotalTime>3</o:TotalTime>
- <o:Created>2004-03-05T23:03:00Z</o:Created>
- <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
- <o:Pages>4</o:Pages>
- <o:Words>1626</o:Words>
- <o:Characters>9270</o:Characters>
- <o:Lines>77</o:Lines>
- <o:Paragraphs>18</o:Paragraphs>
- <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
- <o:Version>9.4402</o:Version>
- </o:DocumentProperties>
-</xml><![endif]--><!--[if gte mso 9]><xml>
- <w:WordDocument>
- <w:TrackRevisions/>
- </w:WordDocument>
-</xml><![endif]-->
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {font-family:Tahoma;
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-generic-font-family:swiss;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- font-family:"Times New Roman";
- mso-fareast-font-family:"Times New Roman";}
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- font-family:"Times New Roman";
- mso-fareast-font-family:"Times New Roman";}
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
- font-family:Tahoma;
- mso-fareast-font-family:"Times New Roman";}
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang=EN-US style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>"Contribution" means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>"Contributor" means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>"Licensed Patents " mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>"Program" means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>"Recipient" means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor ("Commercial
-Contributor") hereby agrees to defend and indemnify every other
-Contributor ("Indemnified Contributor") against any losses, damages and
-costs (collectively "Losses") arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
-
-</div>
-
-</body>
-
-</html>
\ No newline at end of file
diff --git a/features/org.eclipse.wst.xsl_tests.feature/feature.properties b/features/org.eclipse.wst.xsl_tests.feature/feature.properties
deleted file mode 100644
index 7aa0b6b..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/feature.properties
+++ /dev/null
@@ -1,148 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-# feature.properties
-# contains externalized strings for feature.xml
-# "%foo" in feature.xml corresponds to the key "foo" in this file
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
-
-# "featureName" property - name of the feature
-featureName=XSL Tests Feature
-
-# "providerName" property - name of the company that provides the feature
-providerName=Eclipse.org
-
-# "updateSiteName" property - label for the update site
-updateSiteName=The Eclipse Web Tools Platform (WTP) Project update site
-
-# "description" property - description of the feature
-description=XSL Test Feature
-
-# "copyright" property - text of the "Feature Update Copyright"
-copyright=\
-Copyright (c) 2008 Doug Satchwell (Chase Technology Ltd),\n\
-David Carver (Standards for Technology in Automotive Retail) and others 2008.\n\
-All rights reserved. This program and the accompanying materials\n\
-are made available under the terms of the Eclipse Public License v1.0\n\
-which accompanies this distribution, and is available at\n\
-http://www.eclipse.org/legal/epl-v10.html\n\
-\n\
-Contributors:\n\
- Doug Satchwell (Chase Technology Ltd - http://www.chasetechnology.co.uk)\n\
- David Carver (Standards for Technology in Automotive Retail - http://www.starstandard.org)\n\
- Jesper Moller (NineConsult - http://www.nineconsult.dk)\n
-################ end of copyright property ####################################
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
-June 06, 2007\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
-is provided to you under the terms and conditions of the Eclipse Public\n\
-License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
-Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse.org CVS\n\
-repository ("Repository") in CVS modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-Features may also include other Features ("Included Features"). Files named\n\
-"feature.xml" may contain a list of the names and version numbers of\n\
-Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Eclipse Update Manager, you must agree to a license ("Feature Update\n\
-License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties". Such Abouts,\n\
-Feature Licenses and Feature Update Licenses contain the terms and\n\
-conditions (or references to such terms and conditions) that govern your\n\
-use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
- - Common Development and Distribution License (CDDL) Version 1.0 (available at http://www.sun.com/cddl/cddl.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use,\n\
-and re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/features/org.eclipse.wst.xsl_tests.feature/feature.xml b/features/org.eclipse.wst.xsl_tests.feature/feature.xml
deleted file mode 100644
index aa3b232..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/feature.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.eclipse.wst.xsl_tests.feature"
- label="%featureName"
- version="1.1.200.qualifier"
- provider-name="%providerName">
-
- <description>
- %description
- </description>
-
- <copyright>
- %copyright
- </copyright>
-
- <license url="%licenseURL">
- %license
- </license>
-
- <url>
- <update label="%updateSiteName" url="http://download.eclipse.org/webtools/updates/"/>
- <discovery label="Web Tools Platform (WTP) Updates" url="http://download.eclipse.org/webtools/updates"/>
- </url>
-
- <plugin
- id="org.eclipse.wst.xsl.launching.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xsl.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xsl.ui.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xsl.core.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xml.xpath.core.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xml.xpath2.processor.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.ant.optional.junit"
- download-size="0"
- install-size="0"
- version="0.0.0"
- fragment="true"/>
-
- <plugin
- id="org.eclipse.wst.xsl.exslt.core.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xsl.exslt.ui.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.w3c.xqts.testsuite"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.eclipse.wst.xml.xpath.ui.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.eclipse.wst.xsl.jaxp.debug.test"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
-</feature>
diff --git a/features/org.eclipse.wst.xsl_tests.feature/license.html b/features/org.eclipse.wst.xsl_tests.feature/license.html
deleted file mode 100644
index 303e665..0000000
--- a/features/org.eclipse.wst.xsl_tests.feature/license.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
-<!-- saved from url=(0044)http://www.eclipse.org/legal/epl/notice.html -->
-<HTML><HEAD><TITLE>Eclipse.org Software User Agreement</TITLE>
-<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
-<BODY lang=EN-US vLink=purple link=blue>
-<H2>Eclipse Foundation Software User Agreement</H2>
-<P>June 06, 2007</P>
-<H3>Usage Of Content</H3>
-<P>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION
-AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT"). USE OF
-THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE
-TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED
-BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED
-BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE
-AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS OF ANY
-APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU
-MAY NOT USE THE CONTENT.</P>
-<H3>Applicable Licenses</H3>
-<P>Unless otherwise indicated, all Content made available by the Eclipse
-Foundation is provided to you under the terms and conditions of the Eclipse
-Public License Version 1.0 ("EPL"). A copy of the EPL is provided with this
-Content and is also available at <A
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-<P>Content includes, but is not limited to, source code, object code,
-documentation and other files maintained in the Eclipse.org CVS repository
-("Repository") in CVS modules ("Modules") and made available as downloadable
-archives ("Downloads").</P>
-<P>Content may be apportioned into plug-ins ("Plug-ins"), plug-in fragments
-("Fragments"), and features ("Features"). A Feature is a bundle of one or more
-Plug-ins and/or Fragments and associated material. Files named "feature.xml" may
-contain a list of the names and version numbers of the Plug-ins and/or Fragments
-associated with a Feature. Plug-ins and Fragments are located in directories
-named "plugins" and Features are located in directories named "features".</P>
-<P>Features may also include other Features ("Included Features"). Files named
-"feature.xml" may contain a list of the names and version numbers of Included
-Features.</P>
-<P>The terms and conditions governing Plug-ins and Fragments should be contained
-in files named "about.html" ("Abouts"). The terms and conditions governing
-Features and Included Features should be contained in files named "license.html"
-("Feature Licenses"). Abouts and Feature Licenses may be located in any
-directory of a Download or Module including, but not limited to the following
-locations:</P>
-<UL>
- <LI>The top-level (root) directory
- <LI>Plug-in and Fragment directories
- <LI>Subdirectories of the directory named "src" of certain Plug-ins
- <LI>Feature directories </LI></UL>
-<P>Note: if a Feature made available by the Eclipse Foundation is installed
-using the Eclipse Update Manager, you must agree to a license ("Feature Update
-License") during the installation process. If the Feature contains Included
-Features, the Feature Update License should either provide you with the terms
-and conditions governing the Included Features or inform you where you can
-locate them. Feature Update Licenses may be found in the "license" property of
-files named "feature.properties". Such Abouts, Feature Licenses and Feature
-Update Licenses contain the terms and conditions (or references to such terms
-and conditions) that govern your use of the associated Content in that
-directory.</P>
-<P>THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL
-OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</P>
-<UL>
- <LI>Common Public License Version 1.0 (available at <A
- href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</A>)
-
- <LI>Apache Software License 1.1 (available at <A
- href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</A>)
-
- <LI>Apache Software License 2.0 (available at <A
- href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</A>)
-
- <LI>IBM Public License 1.0 (available at <A
- href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</A>)
- <LI>Metro Link Public License 1.00 (available at <A
- href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</A>)
-
- <LI>Mozilla Public License Version 1.1 (available at <A
- href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</A>) </LI>
-
- <li>Common Development and Distribution License (CDDL) Version 1.0 (available at <A
- href="http://www.sun.com/cddl/cddl.html">http://www.sun.com/cddl/cddl.html)</A>
- </LI>
-</UL>
-<P>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License is
-provided, please contact the Eclipse Foundation to determine what terms and
-conditions govern that particular Content.</P>
-<H3>Cryptography</H3>
-<P>Content may contain encryption software. The country in which you are
-currently may have restrictions on the import, possession, and use, and/or
-re-export to another country, of encryption software. BEFORE using any
-encryption software, please check the country's laws, regulations and policies
-concerning the import, possession, or use, and re-export of encryption software,
-to see if this is permitted.</P></BODY></HTML>
diff --git a/tests/org.eclipse.wst.xsl.core.tests/.classpath b/tests/org.eclipse.wst.xsl.core.tests/.classpath
deleted file mode 100644
index bf37251..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
- <accessrules>
- <accessrule kind="accessible" pattern="**/internal/**"/>
- </accessrules>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.wst.xsl.core.tests/.project b/tests/org.eclipse.wst.xsl.core.tests/.project
deleted file mode 100644
index cd1a756..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.core.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.wst.xsl.core.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.xsl.core.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 3e6ccbe..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Fri Apr 11 09:57:20 BST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.wst.xsl.core.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.core.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 5ec5260..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,19 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.core.tests
-Bundle-Version: 1.0.100.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.core.tests.XSLCoreTestsPlugin
-Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.core;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xml.core;bundle-version="[1.1.0,2.0.0)",
- org.apache.xalan;bundle-version="[2.7.1,2.8.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Import-Package: junit.framework,
- org.eclipse.wst.xml.core.internal.validation.core
-Export-Package: org.eclipse.wst.xsl.core.tests;uses:="org.osgi.framework,junit.framework,org.eclipse.core.runtime",
- org.eclipse.wst.xsl.internal.core.tests;x-internal:=true
-Bundle-Localization: plugin
diff --git a/tests/org.eclipse.wst.xsl.core.tests/about.html b/tests/org.eclipse.wst.xsl.core.tests/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/tests/org.eclipse.wst.xsl.core.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 Redistributors 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.wst.xsl.core.tests/build.properties b/tests/org.eclipse.wst.xsl.core.tests/build.properties
deleted file mode 100644
index cc9a00a..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- projectfiles/,\
- bin/,\
- about.html,\
- plugin.properties
diff --git a/tests/org.eclipse.wst.xsl.core.tests/plugin.properties b/tests/org.eclipse.wst.xsl.core.tests/plugin.properties
deleted file mode 100644
index b801a96..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/plugin.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.core.tests
-pluginName = XSL Core Tests Plug-in
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/XSLT20FunctionTest.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/XSLT20FunctionTest.xsl
deleted file mode 100644
index 7493a0a..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/XSLT20FunctionTest.xsl
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
-
- <xsl:function name="func1">
-
- </xsl:function>
-
- <xsl:function name="func2">
-
- </xsl:function>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/XSLT20Test.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/XSLT20Test.xsl
deleted file mode 100644
index 0661940..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/XSLT20Test.xsl
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/circularref.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/circularref.xsl
deleted file mode 100644
index af5305f..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/circularref.xsl
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:include href="ref1.xsl"/>
-
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/globalVariablesTest.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/globalVariablesTest.xsl
deleted file mode 100644
index 3ca1ee2..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/globalVariablesTest.xsl
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail 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:
- * David Carver - STAR - bug 243578 - initial API and implementation
- ******************************************************************************* -->
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xhtml="http://www.w3c.org/1999/xhtml"
- exclude-result-prefixes="xhtml">
-
- <xsl:variable name="globalVariable">
- This is a global variable
- </xsl:variable>
- When xsl:i
- <xsl:param name="selectParam" select="'1'"/>
- <xsl:param name="contentParam">Test</xsl:param>
-
- <xsl:template name="func1">
- <xsl:param name="p1" select="1"/>
- <xsl:param name="p2"/>
- <literal>Hello World</literal>
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/lib1.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/lib1.xsl
deleted file mode 100644
index f393e6d..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/lib1.xsl
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- ******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- ******************************************************************************* -->
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:template name="existsInlib1Only">
- <xsl:param name="p1"></xsl:param>
- <literal>Hello World</literal>
- </xsl:template>
-
- <xsl:template name="existsInStyle1AndLib1">
- <xsl:param name="p1"></xsl:param>
- <literal>Hello World</literal>
- </xsl:template>
-
- <xsl:template name="existsInLib2">
- <xsl:param name="p1"></xsl:param>
- <literal>Hello World</literal>
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/lib2.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/lib2.xsl
deleted file mode 100644
index b391214..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/lib2.xsl
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- ******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- ******************************************************************************* -->
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:template name="func1">
- <xsl:param name="p1" select="1"/>
- <xsl:param name="p2"/>
- <literal>Hello World</literal>
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/modeTest.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/modeTest.xsl
deleted file mode 100644
index 30930f0..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/modeTest.xsl
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:include href="modeTest2.xsl"/>
- <xsl:template match="/">
-
- </xsl:template>
- <xsl:template match="something" mode="mode1">
-
- </xsl:template>
- <xsl:template match="something" mode="mode2">
-
-
- </xsl:template>
- <xsl:template name="something" mode="mode1">
-
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/modeTest2.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/modeTest2.xsl
deleted file mode 100644
index 3458e49..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/modeTest2.xsl
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/" mode="mode3">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/ref1.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/ref1.xsl
deleted file mode 100644
index d6f2be1..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/ref1.xsl
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:include href="circularref.xsl"/>
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/style1.xsl b/tests/org.eclipse.wst.xsl.core.tests/projectfiles/style1.xsl
deleted file mode 100644
index d9522dd..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/projectfiles/style1.xsl
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- ******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- ******************************************************************************* -->
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:import href="lib2.xsl" />
- <xsl:include href="lib1.xsl" />
-
- <xsl:template name="existsInStyle1Only">
- <xsl:param name="p1"></xsl:param>
- <literal>Hello World</literal>
- </xsl:template>
-
- <xsl:template name="existsInStyle1AndLib1"> <!-- ERROR: template existsInStyle1AndLib1 is included from lib1.xsl-->
- <xsl:param name="p1"></xsl:param>
- <literal>Hello World</literal>
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/internal/utils/tests/TestXMLContentType.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/internal/utils/tests/TestXMLContentType.java
deleted file mode 100644
index 40dc337..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/internal/utils/tests/TestXMLContentType.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - bug 264788 - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.utils.tests;
-
-import org.eclipse.wst.xsl.core.internal.util.XMLContentType;
-
-import junit.framework.TestCase;
-
-public class TestXMLContentType extends TestCase {
-
- public TestXMLContentType() {
- super();
- }
-
- public void testGetFileExtensions() {
- XMLContentType xmlContentType = new XMLContentType();
- String[] exts = xmlContentType.getFileExtensions();
- assertTrue("Missing xslt extension.", findExtension("xslt", exts));
- assertTrue("Missing xml extension.", findExtension("xml", exts));
- assertTrue("Missing xsl extension.", findExtension("xsl", exts));
- assertTrue("Missing xmi extension.", findExtension("xmi", exts));
-
- }
-
- private boolean findExtension(String extension, String[] exts) {
- boolean foundsw = false;
- for (int i = 0; i < exts.length; i++) {
- if (extension.equalsIgnoreCase(exts[i])) {
- foundsw = true;
- }
- }
- return foundsw;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/tests/XSLCoreTestSuite.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/tests/XSLCoreTestSuite.java
deleted file mode 100644
index e7b58db..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/tests/XSLCoreTestSuite.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.tests;
-
-
-import org.eclipse.wst.xsl.core.internal.utils.tests.TestXMLContentType;
-import org.eclipse.wst.xsl.internal.core.tests.TestIncludedTemplates;
-import org.eclipse.wst.xsl.internal.core.tests.TestStructuredTextPartitionerForXSL;
-import org.eclipse.wst.xsl.internal.core.tests.TestXSLCore;
-import org.eclipse.wst.xsl.internal.model.tests.TestStylesheet;
-import org.eclipse.wst.xsl.internal.model.tests.TestStylesheetModel;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-public class XSLCoreTestSuite extends TestSuite {
- public static Test suite() {
- return new XSLCoreTestSuite();
- }
-
- public XSLCoreTestSuite() {
- super("XSL Core Test Suite");
- addTestSuite(TestIncludedTemplates.class);
- addTestSuite(TestXSLCore.class);
- addTestSuite(TestStylesheet.class);
- addTestSuite(TestStylesheetModel.class);
- addTestSuite(TestXMLContentType.class);
- addTestSuite(TestStructuredTextPartitionerForXSL.class);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/tests/XSLCoreTestsPlugin.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/tests/XSLCoreTestsPlugin.java
deleted file mode 100644
index 0e14f35..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/core/tests/XSLCoreTestsPlugin.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.tests;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class XSLCoreTestsPlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.core.tests";
-
- // The shared instance
- private static XSLCoreTestsPlugin plugin;
-
- /**
- * The constructor
- */
- public XSLCoreTestsPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static XSLCoreTestsPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/AbstractValidationTest.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/AbstractValidationTest.java
deleted file mode 100644
index e3b2a36..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/AbstractValidationTest.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.internal.core.tests;
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.xpath.XPathConstants;
-import javax.xml.xpath.XPathExpression;
-import javax.xml.xpath.XPathExpressionException;
-import javax.xml.xpath.XPathFactory;
-
-import junit.framework.TestCase;
-
-import org.apache.xpath.jaxp.XPathFactoryImpl;
-import org.eclipse.core.resources.IFile;
-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.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidationMessage;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidationReport;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidator;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-import org.eclipse.wst.xsl.core.tests.XSLCoreTestsPlugin;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * An abstract class to help with the testing.
- * It reads an XSL file, runs the validation on it, and then parses the document looking for comment nodes where the comment starts with ERROR or WARN.
- * For each comment node found, it determines whether the validation found a corresponding error or warning at the given comment node parent's line number.
- * It also checks to make sure that no unexpected errors/warnings are found (ones that don't have comment nodes).
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractValidationTest extends TestCase
-{
- protected static IProject fTestProject;
- private static boolean fTestProjectInitialized;
- private static final String TEST_PROJECT_NAME = "testproject";
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
- if (!fTestProjectInitialized)
- {
- getAndCreateProject();
-
- // URL installLocation = Platform.getBundle(XSLCoreTestsPlugin.PLUGIN_ID).getEntry("/");
- Enumeration<String> e = Platform.getBundle(XSLCoreTestsPlugin.PLUGIN_ID).getEntryPaths("/projectfiles");// (path, filePattern, recurse)("/projectfiles", null, true);
- while (e.hasMoreElements())
- {
- String path = e.nextElement();
- URL url = Platform.getBundle(XSLCoreTestsPlugin.PLUGIN_ID).getEntry(path);
- if (!url.getFile().endsWith("/"))
- {
- url = FileLocator.resolve(url);
- path = path.substring("projectfiles".length());
- IFile destFile = fTestProject.getFile(path);
- System.out.println(destFile.getLocation()+" --> "+url.toExternalForm());
- destFile.createLink(url.toURI(), IResource.REPLACE, new NullProgressMonitor());
- }
- }
- fTestProject.refreshLocal(IResource.DEPTH_INFINITE, null);
- fTestProjectInitialized = true;
- }
- }
-
-
- protected IFile getFile(String path)
- {
- return fTestProject.getFile(new Path(path));
- }
-
- /**
- * Validate the file
- *
- * @param file
- * @return
- * @throws CoreException
- * @throws XPathExpressionException
- * @throws IOException
- */
- protected XSLValidationReport validate(IFile file) throws CoreException, XPathExpressionException, IOException
- {
- XSLValidationReport report = new XSLValidationReport(file.getLocationURI().toString());
- XSLValidator.getInstance().validate(file,report,true);
- StylesheetModel model = XSLCore.getInstance().getStylesheet(file);
- assertFalse("Stylesheet model is null",model == null);
- Map<Integer,String> expectedErrors = calculateErrorsAndWarnings(file);
- validateErrors(model,report,expectedErrors);
- return report;
- }
-
- private void validateErrors(StylesheetModel model, XSLValidationReport report, Map<Integer,String> expectedErrors)
- {
- expectedErrors = new HashMap<Integer, String>(expectedErrors);
- for (ValidationMessage msg : report.getValidationMessages())
- {
- XSLValidationMessage error = (XSLValidationMessage)msg;
- assertTrue("Error report must be for the current stylesheet only", error.getNode().getStylesheet() == model.getStylesheet());
- String comment = expectedErrors.remove(error.getLineNumber());
- assertNotNull("Unxpected error at line "+error.getLineNumber()+": "+error,comment);
- assertFalse("Incorrect error level for error at line "+error.getLineNumber()+": "+error,comment.startsWith("ERROR") && msg.getSeverity() != ValidationMessage.SEV_HIGH);
- assertFalse("Incorrect error level for error at line "+error.getLineNumber()+": "+error,comment.startsWith("WARN") && msg.getSeverity() == ValidationMessage.SEV_HIGH);
- }
- for (Map.Entry<Integer, String> entry : expectedErrors.entrySet())
- {
- assertTrue("Expected error "+entry.getValue()+" at line "+entry.getKey(), false);
- }
- }
-
- private Map<Integer,String> calculateErrorsAndWarnings(IFile file) throws XPathExpressionException, IOException, CoreException
- {
- Map<Integer,String> expectedErrors = new HashMap<Integer,String>();
- IStructuredModel smodel = null;
- try
- {
- smodel = StructuredModelManager.getModelManager().getModelForRead(file);
- if (smodel != null && smodel instanceof IDOMModel)
- {
- IDOMModel model = (IDOMModel) smodel;
- XPathExpression xp = XPathFactory.newInstance().newXPath().compile("//comment()");
- NodeList nodeSet = (NodeList)xp.evaluate(model.getDocument(), XPathConstants.NODESET);
- for (int i=0; i<nodeSet.getLength(); i++)
- {
- Node commentNode = nodeSet.item(i);
- String comment = commentNode.getNodeValue().trim();
- if (comment.startsWith("ERROR") || comment.startsWith("WARN"))
- {
- IDOMNode parent = (IDOMNode)commentNode.getParentNode();
- int line = model.getStructuredDocument().getLineOfOffset(parent.getStartOffset()) + 1;
- expectedErrors.put(line,comment);
- }
- }
- }
- }
- finally
- {
- if (smodel != null)
- smodel.releaseFromRead();
- }
- return expectedErrors;
- }
-
- private static void getAndCreateProject() throws CoreException
- {
- IWorkspace workspace = getWorkspace();
- IWorkspaceRoot root = workspace.getRoot();
- fTestProject = root.getProject(TEST_PROJECT_NAME);
-
- createProject(fTestProject, null, null);
- fTestProject.refreshLocal(IResource.DEPTH_INFINITE, null);
- assertTrue(fTestProject.exists());
- }
-
- private static void createProject(IProject project, IPath locationPath, IProgressMonitor monitor) throws CoreException
- {
- if (monitor == null)
- {
- monitor = new NullProgressMonitor();
- }
- monitor.beginTask("creating test project", 10);
- // create the project
- try
- {
- if (!project.exists())
- {
- IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName());
- if (Platform.getLocation().equals(locationPath))
- {
- locationPath = null;
- }
- desc.setLocation(locationPath);
- project.create(desc, monitor);
- monitor = null;
- }
- if (!project.isOpen())
- {
- project.open(monitor);
- monitor = null;
- }
- }
- finally
- {
- if (monitor != null)
- {
- monitor.done();
- }
- }
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace()
- {
- return ResourcesPlugin.getWorkspace();
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestIncludedTemplates.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestIncludedTemplates.java
deleted file mode 100644
index ccd6542..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestIncludedTemplates.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.core.tests;
-
-public class TestIncludedTemplates extends AbstractValidationTest
-{
- public void test1() throws Exception
- {
- validate(getFile("style1.xsl"));
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestStructuredTextPartitionerForXSL.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestStructuredTextPartitionerForXSL.java
deleted file mode 100644
index 9d92b20..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestStructuredTextPartitionerForXSL.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.core.tests;
-
-import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.wst.xsl.core.internal.text.rules.StructuredTextPartitionerForXSL;
-
-import junit.framework.TestCase;
-
-public class TestStructuredTextPartitionerForXSL extends TestCase {
-
- public void testXSLNewInstance() {
- StructuredTextPartitionerForXSL textPartioner = new StructuredTextPartitionerForXSL();
- IDocumentPartitioner documentPartitioner = textPartioner.newInstance();
- assertTrue("Did not retrieve StructuredTextPartitionerForXSL", documentPartitioner instanceof StructuredTextPartitionerForXSL);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestXSLCore.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestXSLCore.java
deleted file mode 100644
index 4857029..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/core/tests/TestXSLCore.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.eclipse.wst.xsl.internal.core.tests;
-
-import junit.framework.TestCase;
-import org.eclipse.wst.xsl.core.XSLCore;
-
-public class TestXSLCore extends TestCase {
-
- public TestXSLCore() {
- super();
- }
-
- public TestXSLCore(String name) {
- super(name);
- }
-
- public void testisXSLNamespaceNullFalse() {
- assertFalse(XSLCore.isXSLNamespace(null));
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/AbstractModelTest.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/AbstractModelTest.java
deleted file mode 100644
index 584348d..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/AbstractModelTest.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * 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:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.internal.model.tests;
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.xpath.XPathConstants;
-import javax.xml.xpath.XPathExpression;
-import javax.xml.xpath.XPathExpressionException;
-import javax.xml.xpath.XPathFactory;
-
-import junit.framework.TestCase;
-
-import org.apache.xpath.jaxp.XPathFactoryImpl;
-import org.eclipse.core.resources.IFile;
-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.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.model.StylesheetBuilder;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidationMessage;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidationReport;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidator;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-import org.eclipse.wst.xsl.core.tests.XSLCoreTestsPlugin;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * An abstract class to help with the testing.
- * It reads an XSL file, runs the validation on it, and then parses the document looking for comment nodes where the comment starts with ERROR or WARN.
- * For each comment node found, it determines whether the validation found a corresponding error or warning at the given comment node parent's line number.
- * It also checks to make sure that no unexpected errors/warnings are found (ones that don't have comment nodes).
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractModelTest extends TestCase
-{
- protected static IProject fTestProject;
- private static boolean fTestProjectInitialized;
- private static final String TEST_PROJECT_NAME = "testproject";
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
- if (!fTestProjectInitialized)
- {
- getAndCreateProject();
-
- // URL installLocation = Platform.getBundle(XSLCoreTestsPlugin.PLUGIN_ID).getEntry("/");
- Enumeration<String> e = Platform.getBundle(XSLCoreTestsPlugin.PLUGIN_ID).getEntryPaths("/projectfiles");// (path, filePattern, recurse)("/projectfiles", null, true);
- while (e.hasMoreElements())
- {
- String path = e.nextElement();
- URL url = Platform.getBundle(XSLCoreTestsPlugin.PLUGIN_ID).getEntry(path);
- if (!url.getFile().endsWith("/"))
- {
- url = FileLocator.resolve(url);
- path = path.substring("projectfiles".length());
- IFile destFile = fTestProject.getFile(path);
- System.out.println(destFile.getLocation()+" --> "+url.toExternalForm());
- destFile.createLink(url.toURI(), IResource.REPLACE, new NullProgressMonitor());
- }
- }
- fTestProject.refreshLocal(IResource.DEPTH_INFINITE, null);
- fTestProjectInitialized = true;
- }
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- StylesheetBuilder builder = StylesheetBuilder.getInstance();
- builder.release();
- }
-
-
- protected IFile getFile(String path)
- {
- return fTestProject.getFile(new Path(path));
- }
-
- /**
- * Validate the file
- *
- * @param file
- * @return
- * @throws CoreException
- * @throws XPathExpressionException
- * @throws IOException
- */
- protected XSLValidationReport validate(IFile file) throws CoreException, XPathExpressionException, IOException
- {
- XSLValidationReport report = new XSLValidationReport(file.getLocationURI().toString());
- XSLValidator.getInstance().validate(file,report,true);
- StylesheetModel model = XSLCore.getInstance().getStylesheet(file);
- assertFalse("Stylesheet model is null",model == null);
- Map<Integer,String> expectedErrors = calculateErrorsAndWarnings(file);
- validateErrors(model,report,expectedErrors);
- return report;
- }
-
- private void validateErrors(StylesheetModel model, XSLValidationReport report, Map<Integer,String> expectedErrors)
- {
- expectedErrors = new HashMap<Integer, String>(expectedErrors);
- for (ValidationMessage msg : report.getValidationMessages())
- {
- XSLValidationMessage error = (XSLValidationMessage)msg;
- assertTrue("Error report must be for the current stylesheet only", error.getNode().getStylesheet() == model.getStylesheet());
- String comment = expectedErrors.remove(error.getLineNumber());
- assertNotNull("Unxpected error at line "+error.getLineNumber()+": "+error,comment);
- assertFalse("Incorrect error level for error at line "+error.getLineNumber()+": "+error,comment.startsWith("ERROR") && msg.getSeverity() != ValidationMessage.SEV_HIGH);
- assertFalse("Incorrect error level for error at line "+error.getLineNumber()+": "+error,comment.startsWith("WARN") && msg.getSeverity() == ValidationMessage.SEV_HIGH);
- }
- for (Map.Entry<Integer, String> entry : expectedErrors.entrySet())
- {
- assertTrue("Expected error "+entry.getValue()+" at line "+entry.getKey(), false);
- }
- }
-
- private Map<Integer,String> calculateErrorsAndWarnings(IFile file) throws XPathExpressionException, IOException, CoreException
- {
- Map<Integer,String> expectedErrors = new HashMap<Integer,String>();
- IStructuredModel smodel = null;
- try
- {
- smodel = StructuredModelManager.getModelManager().getModelForRead(file);
- if (smodel != null && smodel instanceof IDOMModel)
- {
- IDOMModel model = (IDOMModel) smodel;
- XPathExpression xp = XPathFactory.newInstance().newXPath().compile("//comment()");
- NodeList nodeSet = (NodeList)xp.evaluate(model.getDocument(), XPathConstants.NODESET);
- for (int i=0; i<nodeSet.getLength(); i++)
- {
- Node commentNode = nodeSet.item(i);
- String comment = commentNode.getNodeValue().trim();
- if (comment.startsWith("ERROR") || comment.startsWith("WARN"))
- {
- IDOMNode parent = (IDOMNode)commentNode.getParentNode();
- int line = model.getStructuredDocument().getLineOfOffset(parent.getStartOffset()) + 1;
- expectedErrors.put(line,comment);
- }
- }
- }
- }
- finally
- {
- if (smodel != null)
- smodel.releaseFromRead();
- }
- return expectedErrors;
- }
-
- private static void getAndCreateProject() throws CoreException
- {
- IWorkspace workspace = getWorkspace();
- IWorkspaceRoot root = workspace.getRoot();
- fTestProject = root.getProject(TEST_PROJECT_NAME);
-
- createProject(fTestProject, null, null);
- fTestProject.refreshLocal(IResource.DEPTH_INFINITE, null);
- assertTrue(fTestProject.exists());
- }
-
- private static void createProject(IProject project, IPath locationPath, IProgressMonitor monitor) throws CoreException
- {
- if (monitor == null)
- {
- monitor = new NullProgressMonitor();
- }
- monitor.beginTask("creating test project", 10);
- // create the project
- try
- {
- if (!project.exists())
- {
- IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName());
- if (Platform.getLocation().equals(locationPath))
- {
- locationPath = null;
- }
- desc.setLocation(locationPath);
- project.create(desc, monitor);
- monitor = null;
- }
- if (!project.isOpen())
- {
- project.open(monitor);
- monitor = null;
- }
- }
- finally
- {
- if (monitor != null)
- {
- monitor.done();
- }
- }
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace()
- {
- return ResourcesPlugin.getWorkspace();
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/TestStylesheet.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/TestStylesheet.java
deleted file mode 100644
index c6a37c8..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/TestStylesheet.java
+++ /dev/null
@@ -1,153 +0,0 @@
-package org.eclipse.wst.xsl.internal.model.tests;
-
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.wst.xsl.core.internal.model.StylesheetBuilder;
-import org.eclipse.wst.xsl.core.model.Function;
-import org.eclipse.wst.xsl.core.model.Import;
-import org.eclipse.wst.xsl.core.model.Include;
-import org.eclipse.wst.xsl.core.model.Stylesheet;
-import org.eclipse.wst.xsl.core.model.Template;
-import org.eclipse.wst.xsl.core.model.Variable;
-import org.eclipse.wst.xsl.core.model.XSLAttribute;
-
-public class TestStylesheet extends AbstractModelTest {
- StylesheetBuilder builder = null;
-
- public TestStylesheet() {
- // TODO Auto-generated constructor stub
- }
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- builder = StylesheetBuilder.getInstance();
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- builder.release();
- }
-
- public void testLoadModel() {
- Stylesheet model = builder.getStylesheet(getFile("style1.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", model);
- }
-
- public void testgetLocalTemplatesTemplates() {
- Stylesheet model = builder.getStylesheet(getFile("style1.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", model);
-
- List<Template> templatesList = model.getTemplates();
- assertEquals("Wrong number of templates returned.", 2, templatesList
- .size());
- }
-
- public void testGetIncludes() {
- Stylesheet stylesheet = builder.getStylesheet(getFile("style1.xsl"),
- false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- List<Include> includeList = stylesheet.getIncludes();
- assertEquals("Wrong number of includes returned.", 1, includeList
- .size());
- }
-
- public void testGetImports() {
- Stylesheet stylesheet = builder.getStylesheet(getFile("style1.xsl"),
- false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- List<Import> includeList = stylesheet.getImports();
- assertEquals("Wrong number of includes returned.", 1, includeList
- .size());
-
- }
-
- public void testGetGlobalVariables() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("globalVariablesTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- List<Variable> globalVariablesList = stylesheet.getGlobalVariables();
- assertEquals("Wrong number of global variables returned.", 3,
- globalVariablesList.size());
- }
-
- public void testGetLineNumber() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("globalVariablesTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
- // Line Number is off by 1 from what is displayed in the Editor
- assertEquals("Incorrect line number.", 12, stylesheet.getLineNumber());
- }
-
- public void testGetColumnNumber() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("globalVariablesTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
- // Line Number is off by 1 from what is displayed in the Editor
- assertEquals("Incorrect column number.", 0, stylesheet
- .getColumnNumber());
- }
-
- public void testGetVersion() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("globalVariablesTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- // Line Number is off by 1 from what is displayed in the Editor
- assertEquals("Wrong version number returned.", "1.0", stylesheet
- .getVersion());
- }
-
- public void testXSLT2GetVersion() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("XSLT20Test.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
- // Line Number is off by 1 from what is displayed in the Editor
- assertEquals("Wrong version number returned.", "2.0", stylesheet
- .getVersion());
- }
-
- public void testGetAttributes() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("globalVariablesTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- Map<String, XSLAttribute> attributeList = stylesheet.getAttributes();
- assertEquals("Incorrect number of attributes", 4, attributeList.size());
- XSLAttribute attribute = stylesheet
- .getAttribute("exclude-result-prefixes");
- assertEquals("Wrong attribute returned:", "exclude-result-prefixes",
- attribute.getName());
-
- }
-
- public void testGetFunction() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("XSLT20FunctionTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- List<Function> functionList = stylesheet.getFunctions();
- assertEquals("Wrong number of global variables returned.", 2,
- functionList.size());
- }
-
- public void testGetFunctionFunc1() {
- Stylesheet stylesheet = builder.getStylesheet(
- getFile("XSLT20FunctionTest.xsl"), false);
- assertNotNull("Model failed to load, returned NULL", stylesheet);
-
- List<Function> functionList = stylesheet.getFunctions();
- for (Function function : functionList) {
- if (function.getName().equals("func1")) {
- return;
- }
- }
- fail("Did not find XSL func func1");
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/TestStylesheetModel.java b/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/TestStylesheetModel.java
deleted file mode 100644
index bfa9d39..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/src/org/eclipse/wst/xsl/internal/model/tests/TestStylesheetModel.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.eclipse.wst.xsl.internal.model.tests;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.model.StylesheetBuilder;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-import org.eclipse.wst.xsl.core.model.Template;
-import org.eclipse.wst.xsl.core.model.XSLAttribute;
-
-public class TestStylesheetModel extends AbstractModelTest {
- private StylesheetModel model = null;
- public TestStylesheetModel() {
-
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- StylesheetBuilder builder = StylesheetBuilder.getInstance();
- builder.release();
- model = null;
- }
-
- public void testStyleSheetModel() {
-
- model = XSLCore.getInstance().getStylesheet(getFile("globalVariablesTest.xsl"));
- assertNotNull("Failed to load stylesheet 'globalVariablesTest.xsl'.", model);
- model = XSLCore.getInstance().getStylesheet(getFile("style1.xsl"));
- assertNotNull("Failed to load stylesheet 'style1.xsl'.", model);
- model = XSLCore.getInstance().getStylesheet(getFile("XSLT20Test.xsl"));
- assertNotNull("Failed to load stylesheet 'XSLT20Test.xsl'.", model);
- model = XSLCore.getInstance().getStylesheet(getFile("circularref.xsl"));
- assertNotNull("Failed to load stylesheet 'circularref.xsl'.", model);
- model = XSLCore.getInstance().getStylesheet(getFile("modeTest.xsl"));
- assertNotNull("Failed to load stylesheet 'modeTest.xsl'.", model);
-
- }
-
- public void testFindAvailableTemplateModes() {
- ArrayList<String> modes = new ArrayList();
- model = XSLCore.getInstance().getStylesheet(getFile("modeTest.xsl"));
- List<Template> templates = model.getTemplates();
- assertTrue("No templates returned.", templates.size() > 0);
-
- for (Template template : templates) {
- XSLAttribute attribute = template.getAttribute("mode");
- if (attribute != null) {
- if (modes.indexOf(attribute.getValue()) == -1 ) {
- modes.add(attribute.getValue());
- }
- }
- }
- assertEquals("Wrong number of mode templates returned.", 3, modes.size());
- }
-
- public void testCircularReference() {
- model = XSLCore.getInstance().getStylesheet(getFile("circularref.xsl"));
- assertTrue("Undettected circular reference", model.hasCircularReference());
- }
-
- public void testNoCircularReference() {
- model = XSLCore.getInstance().getStylesheet(getFile("modeTest.xsl"));
- assertFalse("Undettected circular reference", model.hasCircularReference());
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.core.tests/test.xml b/tests/org.eclipse.wst.xsl.core.tests/test.xml
deleted file mode 100644
index f4cd65d..0000000
--- a/tests/org.eclipse.wst.xsl.core.tests/test.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project
- name="testsuite"
- default="run"
- basedir=".">
-
- <!-- The following properties should be passed into this script -->
- <!-- ${eclipse-home} -->
- <!-- ${buildDirectory} -->
- <!-- ${buildLabel} -->
-
- <!-- should be little need to change what's above -->
-
- <property
- name="plugin-name"
- value="org.eclipse.wst.xsl.core.tests" />
- <property
- name="classname"
- value="org.eclipse.wst.xsl.core.tests.XSLCoreTestSuite" />
- <property
- name="testType"
- value="core-test" />
-
- <!-- should be little need to change what's below -->
-
- <echo message="basedir: ${basedir}" />
- <echo message="eclipse-home: ${eclipse-home}" />
- <echo message="buildDirectory: ${buildDirectory}" />
- <echo message="plugin-name: ${plugin-name}" />
- <echo message="classname: ${classname}" />
- <echo message="testType ${testType}" />
-
-
- <property
- name="library-file"
- value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" />
- <property
- name="workspace"
- value="${eclipse-home}/junitworkspaces/${plugin-name}" />
-
- <!-- 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="${plugin-name}.*xml" />
- </delete>
- <!-- make directory, in case path doesn't exist yet -->
- <mkdir dir="${workspace}" />
- <!-- but delete to make sure fresh contents-->
- <delete
- dir="${workspace}"
- quiet="true" />
-
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite">
-
- <ant
- target="${testType}"
- antfile="${library-file}"
- dir="${eclipse-home}">
- <property
- name="data-dir"
- value="${workspace}" />
- <property
- name="plugin-name"
- value="${plugin-name}" />
- <property
- name="classname"
- value="${classname}" />
- <property
- name="plugin-path"
- value="${eclipse-home}/plugins/${plugin-name}" />
- </ant>
-
- <copy
- failonerror="false"
- file="${workspace}/.metadata/.log"
- tofile="${buildDirectory}/${buildLabel}/testResults/consolelogs/${plugin-name}.consolelog.txt" />
-
- </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">
- <!-- usually no need to delete workspace until next run, and leaving it allows inspection -->
- <!-- <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="${plugin-name}.*xml" />
- <property
- name="output-file"
- value="${plugin-name}.xml" />
- </ant>
- </target>
-
-</project>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/.classpath b/tests/org.eclipse.wst.xsl.exslt.core.tests/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.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/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/.project b/tests/org.eclipse.wst.xsl.exslt.core.tests/.project
deleted file mode 100644
index e5fcacf..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.exslt.core.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.wst.xsl.exslt.core.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.xsl.exslt.core.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 68a0109..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Fri Sep 25 22:47:34 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.exslt.core.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 22ccece..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.exslt.core.tests
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.exslt.core.tests.EXSLTCoreTestsPlugin
-Bundle-Vendor: %providerName
-Require-Bundle: org.eclipse.core.runtime,
- org.junit;bundle-version="[3.8.0,4.0.0)",
- org.eclipse.wst.xsl.exslt.core;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.wst.xsl.exslt.core.internal.resolver.tests;x-internal:=true,
- org.eclipse.wst.xsl.exslt.core.tests
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/about.html b/tests/org.eclipse.wst.xsl.exslt.core.tests/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.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 Redistributors 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.wst.xsl.exslt.core.tests/build.properties b/tests/org.eclipse.wst.xsl.exslt.core.tests/build.properties
deleted file mode 100644
index b295972..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/build.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html,\
- plugin.properties
-src.includes = plugin.properties,\
- src/,\
- build.properties,\
- about.html
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/plugin.properties b/tests/org.eclipse.wst.xsl.exslt.core.tests/plugin.properties
deleted file mode 100644
index e19afdf..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.core.tests
-pluginName = EXSLT Core Plugin Tests
-providerName = Eclipse.org
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/tests/EXSLTResolverTest.java b/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/tests/EXSLTResolverTest.java
deleted file mode 100644
index 5b23fd6..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/tests/EXSLTResolverTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.eclipse.wst.xsl.exslt.core.internal.resolver.tests;
-
-import org.eclipse.wst.xsl.exslt.core.internal.EXSLTCore;
-import org.eclipse.wst.xsl.exslt.core.internal.resolver.EXSLTResolverExtension;
-
-import junit.framework.TestCase;
-
-public class EXSLTResolverTest extends TestCase {
-
- private EXSLTResolverExtension resolver = null;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- resolver = new EXSLTResolverExtension();
- }
-
-
- public void testCommonNamespace() {
- String namespace = EXSLTCore.EXSLT_COMMON_NAMESPACE;
- String uri = resolver.resolve(null, null, namespace, null);
- assertTrue("Did not find http://exslt.org/common", uri.contains("/schemas/common.xsd"));
- }
-
- public void testURINotResolved() {
- String namespace = "http://www.example.org/";
- String uri = resolver.resolve(null, null, namespace, null);
- assertNull("Found http://www.example.org/", uri);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/tests/EXSLTCoreTestSuite.java b/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/tests/EXSLTCoreTestSuite.java
deleted file mode 100644
index bc0803e..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/tests/EXSLTCoreTestSuite.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.core.tests;
-
-import org.eclipse.wst.xsl.exslt.core.internal.resolver.tests.EXSLTResolverTest;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class EXSLTCoreTestSuite extends TestSuite {
- public static Test suite() {
- return new EXSLTCoreTestSuite();
- }
-
- public EXSLTCoreTestSuite() {
- super("EXSLT Core Test Suite");
- addTestSuite(EXSLTResolverTest.class);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/tests/EXSLTCoreTestsPlugin.java b/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/tests/EXSLTCoreTestsPlugin.java
deleted file mode 100644
index 24ca31d..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.core.tests/src/org/eclipse/wst/xsl/exslt/core/tests/EXSLTCoreTestsPlugin.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.eclipse.wst.xsl.exslt.core.tests;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class EXSLTCoreTestsPlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.exslt.core.tests";
-
- // The shared instance
- private static EXSLTCoreTestsPlugin plugin;
-
- /**
- * The constructor
- */
- public EXSLTCoreTestsPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static EXSLTCoreTestsPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/.classpath b/tests/org.eclipse.wst.xsl.exslt.ui.tests/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.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/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/.project b/tests/org.eclipse.wst.xsl.exslt.ui.tests/.project
deleted file mode 100644
index 764cf04..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.exslt.ui.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.wst.xsl.exslt.ui.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.xsl.exslt.ui.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 0e4db94..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Tue Sep 29 21:42:00 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.exslt.ui.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 8fd857f..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,20 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.exslt.ui.tests
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.exslt.ui.tests.EXSLTUITestsPlugin
-Bundle-Vendor: %providerName
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.wst.xsl.ui.tests;bundle-version="[1.0.0,2.0.0)",
- org.junit;bundle-version="[3.8.0,4.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.exslt.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.wst.xsl.exslt.ui.internal.contentassist.test;x-internal:=true,
- org.eclipse.wst.xsl.exslt.ui.tests
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/about.html b/tests/org.eclipse.wst.xsl.exslt.ui.tests/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.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 Redistributors 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.wst.xsl.exslt.ui.tests/build.properties b/tests/org.eclipse.wst.xsl.exslt.ui.tests/build.properties
deleted file mode 100644
index cc9c0be..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/build.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- projectfiles/,\
- bin/,\
- plugin.properties,\
- about.html
-src.includes = src/,\
- projectfiles/,\
- META-INF/,\
- plugin.properties,\
- build.properties,\
- about.html
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/plugin.properties b/tests/org.eclipse.wst.xsl.exslt.ui.tests/plugin.properties
deleted file mode 100644
index 327883b..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.core.tests
-pluginName = EXSLT UI Plugin Tests
-providerName = Eclipse.org
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/projectfiles/commonElements.xsl b/tests/org.eclipse.wst.xsl.exslt.ui.tests/projectfiles/commonElements.xsl
deleted file mode 100644
index 6e1421c..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/projectfiles/commonElements.xsl
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:common="http://exslt.org/common"
- extension-element-prefixes="common">
- <xsl:template match="/">
-
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/projectfiles/commonXpathFunctions.xsl b/tests/org.eclipse.wst.xsl.exslt.ui.tests/projectfiles/commonXpathFunctions.xsl
deleted file mode 100644
index 9d8dbae..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/projectfiles/commonXpathFunctions.xsl
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:common="http://exslt.org/common"
- extension-element-prefixes="common">
- <xsl:template match="/">
- <xsl:if test="">
-
- </xsl:if>
- <xsl:value-of select=""/>
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/test/EXSLTCommonContentAssistTest.java b/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/test/EXSLTCommonContentAssistTest.java
deleted file mode 100644
index 2df941e..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/test/EXSLTCommonContentAssistTest.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.internal.contentassist.test;
-
-import java.io.File;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.wst.xsl.exslt.ui.internal.contentassist.EXSLTCommonContentAssistProcessor;
-import org.eclipse.wst.xsl.exslt.ui.tests.EXSLTUITestsPlugin;
-import org.eclipse.wst.xsl.ui.tests.AbstractSourceViewerTest;
-
-
-public class EXSLTCommonContentAssistTest extends AbstractSourceViewerTest {
-
- @Override
- protected void setUp() throws Exception {
- if (!fTestProjectInitialized)
- {
- getAndCreateProject();
- File srcDir = EXSLTUITestsPlugin.getTestFile("/" + PROJECT_FILES);
- String destinationProjectString = fTestProject.getLocation().toOSString();
- String destinationFolder = destinationProjectString + "/";
- File targetDir = new File(destinationFolder);
- copyDir(srcDir, targetDir);
-
- fTestProject.refreshLocal(IResource.DEPTH_INFINITE, null);
- fTestProjectInitialized = true;
- }
-
- }
-
- public void testDocumentElementPropsoalAvailable() throws Exception {
- fileName = "commonElements.xsl";
- String xslFilePath = projectName + File.separator + fileName;
- loadFileForTesting(xslFilePath);
- try {
- ICompletionProposal[] proposals = getXMLProposals(5,9);
- assertNotNull("Did not find proposals.", proposals);
-
- for (ICompletionProposal proposal : proposals) {
- if (proposal.getDisplayString().equals("common:document")) {
- return;
- }
- }
- } finally {
- model.releaseFromEdit();
- }
-
- fail("Did not find EXSLT Commond document element in proposal list.");
- }
-
- public void testNodeSetFunctionExists() throws Exception {
- fileName = "commonXpathFunctions.xsl";
- String xslFilePath = projectName + File.separator + fileName;
- loadFileForTesting(xslFilePath);
- try {
- ICompletionProposal[] proposals = getProposals(5,23);
- assertNotNull("Did not find proposals.", proposals);
-
- for (ICompletionProposal proposal : proposals) {
- if (proposal.getDisplayString().equals("common:node-set( )")) {
- return;
- }
- }
- } finally {
- model.releaseFromEdit();
- }
-
- fail("Did not find EXSLT Common node-set function in test attribute proposal list.");
-
- }
-
- public void testNodeSetFunctionExistsSelect() throws Exception {
- fileName = "commonXpathFunctions.xsl";
- String xslFilePath = projectName + File.separator + fileName;
- loadFileForTesting(xslFilePath);
- try {
- ICompletionProposal[] proposals = getProposals(8,31);
- assertNotNull("Did not find proposals.", proposals);
-
- for (ICompletionProposal proposal : proposals) {
- if (proposal.getDisplayString().equals("common:node-set( )")) {
- return;
- }
- }
- } finally {
- model.releaseFromEdit();
- }
-
- fail("Did not find EXSLT Common node-set function in select attribute proposal list.");
-
- }
-
- public void testObjectTypeFunctionExistsSelect() throws Exception {
- fileName = "commonXpathFunctions.xsl";
- String xslFilePath = projectName + File.separator + fileName;
- loadFileForTesting(xslFilePath);
- try {
- ICompletionProposal[] proposals = getProposals(8,31);
- assertNotNull("Did not find proposals.", proposals);
-
- for (ICompletionProposal proposal : proposals) {
- if (proposal.getDisplayString().equals("common:object-type( )")) {
- return;
- }
- }
- } finally {
- model.releaseFromEdit();
- }
-
- fail("Did not find EXSLT Common node-set function in select attribute proposal list.");
-
- }
-
- @Override
- protected ICompletionProposal[] getProposals(int lineNumber, int numberOfCharacters) throws BadLocationException {
- int offset = calculateOffset(lineNumber, numberOfCharacters);
- return new EXSLTCommonContentAssistProcessor().computeCompletionProposals(sourceViewer, offset);
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/tests/EXSLTUITestSuite.java b/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/tests/EXSLTUITestSuite.java
deleted file mode 100644
index cf53b3c..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/tests/EXSLTUITestSuite.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.tests;
-
-import org.eclipse.wst.xsl.exslt.ui.internal.contentassist.test.EXSLTCommonContentAssistTest;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class EXSLTUITestSuite extends TestSuite {
- public static Test suite() {
- return new EXSLTUITestSuite();
- }
-
- public EXSLTUITestSuite() {
- super("EXSLT UI Test Suite");
- addTestSuite(EXSLTCommonContentAssistTest.class);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/tests/EXSLTUITestsPlugin.java b/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/tests/EXSLTUITestsPlugin.java
deleted file mode 100644
index 0800a3a..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/src/org/eclipse/wst/xsl/exslt/ui/tests/EXSLTUITestsPlugin.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.tests;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class EXSLTUITestsPlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.exslt.ui.tests";
-
- // The shared instance
- private static EXSLTUITestsPlugin plugin;
-
- /**
- * The constructor
- */
- public EXSLTUITestsPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static EXSLTUITestsPlugin getDefault() {
- return plugin;
- }
-
- public static URL getInstallLocation() {
- URL installLocation = Platform.getBundle(PLUGIN_ID).getEntry("/");
- URL resolvedLocation = null;
- try {
- resolvedLocation = FileLocator.resolve(installLocation);
- }
- catch (IOException e) {
- // impossibl
- throw new Error(e);
- }
- return resolvedLocation;
- }
-
- public static File getTestFile(String filepath) {
- URL installURL = getInstallLocation();
- //String scheme = installURL.getProtocol();
- String path = installURL.getPath();
- String location = path + filepath;
- File result = new File(location);
- return result;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/.classpath b/tests/org.eclipse.wst.xsl.jaxp.debug.test/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/.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/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/.project b/tests/org.eclipse.wst.xsl.jaxp.debug.test/.project
deleted file mode 100644
index 55b9784..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.jaxp.debug.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.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.xsl.jaxp.debug.test/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index bcfcf13..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Sat Jan 02 15:05:07 GMT-05:00 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.jaxp.debug.test/META-INF/MANIFEST.MF
deleted file mode 100644
index 17d9826..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,16 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: JAXP Debug Tests
-Bundle-SymbolicName: org.eclipse.wst.xsl.jaxp.debug.test
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.jaxp.debug.test.TestJaXPDebugPlugin
-Require-Bundle: org.eclipse.core.runtime,
- org.apache.xml.resolver;bundle-version="1.1.0",
- org.apache.xerces;bundle-version="2.9.0",
- org.apache.xalan;bundle-version="2.7.1",
- org.eclipse.wst.xsl.jaxp.debug;bundle-version="1.0.100",
- org.junit;bundle-version="3.8.2"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.wst.xsl.jaxp.debug.invoker.test,
- org.eclipse.wst.xsl.jaxp.debug.test
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/build.properties b/tests/org.eclipse.wst.xsl.jaxp.debug.test/build.properties
deleted file mode 100644
index 34d2e4d..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/build.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/1-input.xml b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/1-input.xml
deleted file mode 100644
index 5757dde..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/1-input.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<root>
- <element attribute="yes"/>
-</root>
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/1-transform.xsl b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/1-transform.xsl
deleted file mode 100644
index 36af48c..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/1-transform.xsl
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="//root">
- <root-out/>
- </xsl:template>
-</xsl:stylesheet>
-
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/PipelineDefintionTest.java b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/PipelineDefintionTest.java
deleted file mode 100644
index c4bc7f2..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/PipelineDefintionTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Intalio 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:
- * David Carver (Intalio) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.test;
-
-import java.util.List;
-
-import org.apache.xerces.jaxp.SAXParserImpl.JAXPSAXParser;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.PipelineDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TypedValue;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker;
-
-
-import junit.framework.TestCase;
-
-public class PipelineDefintionTest extends TestCase {
- PipelineDefinition pldef = null;
-
- @Override
- protected void setUp() throws Exception {
- pldef = new PipelineDefinition();
- }
-
- @Override
- protected void tearDown() throws Exception {
- pldef = null;
- }
-
- public void testAddTransformDefinition() throws Exception {
- setupTransformDefinition();
- List<TransformDefinition> tdefs = pldef.getTransformDefs();
- assertNotNull(tdefs);
- assertEquals("Did not find expected transformation defs", 1, tdefs.size());
- }
-
- private TransformDefinition setupTransformDefinition() {
- TransformDefinition tdef = new TransformDefinition();
- pldef.addTransformDef(tdef);
- return tdef;
- }
-
- public void testRemoveTransformDefintion() throws Exception {
- TransformDefinition tdef = setupTransformDefinition();
- assertEquals(1, pldef.getTransformDefs().size());
- pldef.removeTransformDef(tdef);
- assertEquals(0, pldef.getTransformDefs().size());
- }
-
- public void testAddAttribute() throws Exception {
- setupAttribute();
- assertEquals(1, pldef.getAttributes().size());
- }
-
- private TypedValue setupAttribute() {
- TypedValue attr = new TypedValue("attr", TypedValue.TYPE_STRING, "1");
- pldef.addAttribute(attr);
- return attr;
- }
-
- public void testRemoveAttribute() throws Exception {
- TypedValue attr = setupAttribute();
- pldef.addAttribute(attr);
- assertEquals(1, pldef.getAttributes().size());
- pldef.removeAttribute(attr);
- assertEquals(0, pldef.getAttributes().size());
- }
-
- public void testConfigureInvoker() throws Exception {
- JAXPSAXProcessorInvoker invoker = new JAXPSAXProcessorInvoker();
- pldef.configure(invoker);
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/TestJAXPProcessorInvoker.java b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/TestJAXPProcessorInvoker.java
deleted file mode 100644
index ce1ff88..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/TestJAXPProcessorInvoker.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.invoker.test;
-
-import java.net.URL;
-
-import javax.xml.transform.Result;
-import javax.xml.transform.dom.DOMResult;
-import javax.xml.transform.sax.SAXSource;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.PipelineDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker;
-import org.w3c.dom.Document;
-import org.w3c.dom.Node;
-import org.xml.sax.InputSource;
-
-import junit.framework.TestCase;
-
-public class TestJAXPProcessorInvoker extends TestCase {
- JAXPSAXProcessorInvoker invoker = null;
-
- @Override
- protected void setUp() throws Exception {
- invoker = new JAXPSAXProcessorInvoker();
- }
-
- public void testSimpleTransform() throws Exception {
- URL surl = TestJAXPProcessorInvoker.class.getResource("1-input.xml");
- URL xslt = TestJAXPProcessorInvoker.class.getResource("1-transform.xsl");
-
- PipelineDefinition pipe = new PipelineDefinition();
- TransformDefinition tdef = new TransformDefinition();
- tdef.setStylesheetURL(xslt.toExternalForm());
- pipe.addTransformDef(tdef);
- pipe.configure(invoker);
- InputSource source = new InputSource(surl.openStream());
- DOMResult result = new DOMResult();
- invoker.transform(source, result);
- Document node = (Document)result.getNode();
- assertNotNull("Did not get a result document.", node);
- assertEquals("Missing root-out node name.", "root-out", node.getDocumentElement().getLocalName());
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/TransformDefinitonTest.java b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/TransformDefinitonTest.java
deleted file mode 100644
index 30c41da..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/invoker/test/TransformDefinitonTest.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Intalio 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:
- * David Carver (Intalio) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.test;
-
-import java.util.Map;
-import java.util.Properties;
-import java.util.Set;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TypedValue;
-
-import junit.framework.TestCase;
-
-public class TransformDefinitonTest extends TestCase {
- TransformDefinition tdef = null;
-
- @Override
- protected void setUp() throws Exception {
- tdef = new TransformDefinition();
- }
-
- @Override
- protected void tearDown() throws Exception {
- tdef = null;
- }
-
- public void testDefaultResolver() throws Exception {
- String resolver = tdef.getResolverClass();
- assertEquals("Did not find default resolver", TransformDefinition.DEFAULT_CATALOG_RESOLVER, resolver);
- }
-
- public void testChangeResolverFromDefault() throws Exception {
- String resolver = "org.eclipse.wst.xml.catalog.URIResolver";
- tdef.setResolverClass(resolver);
- assertEquals("Problem setting a new resolver", resolver, tdef.getResolverClass());
- }
-
- public void testAddParameters() throws Exception {
- setupParameters();
- assertNotNull("Missing paramerters", tdef.getParameters());
- }
-
- public void testGetParameters() throws Exception {
- setupParameters();
- Set<TypedValue> parmSet = tdef.getParameters();
- assertEquals("Incorrect size returned.", 1, parmSet.size());
- }
-
- public void testGetParametersAsMap() throws Exception {
- setupParameters();
- Map<String, Object> parmMap = tdef.getParametersAsMap();
- assertNotNull("Missing parmater MAP.", parmMap);
- }
-
- public void testStyleSheetSource() throws Exception {
- String stylesheet = "http://www.example.org/stylesheet.xsl";
- tdef.setStylesheetURL(stylesheet);
- assertNotNull("Missing stylesheet.", tdef.getStylesheetURL());
- assertEquals("Incorrect stylesheet.", stylesheet, tdef.getStylesheetURL());
- }
-
- public void testRemoveParameter() throws Exception {
- TypedValue param = setupParameters();
- assertTrue(tdef.getParameters().size() > 0);
- tdef.removeParameter(param);
- assertTrue("Found parameters when there should be zero.", tdef.getParameters().size() == 0);
- }
-
- public void testSetOutputProperty() throws Exception {
- tdef.setOutputProperty("output", "test");
- String value = tdef.getOutputProperties().getProperty("output");
- assertEquals("Incorrect value", "test", value);
- }
-
- public void testNoOutputProperties() throws Exception {
- assertEquals("Found output properties when there should be none.", 0, tdef.getOutputProperties().size());
- }
-
- public void testRemoveOutputProperty() throws Exception {
- tdef.setOutputProperty("output", "test");
- Properties properties = tdef.getOutputProperties();
- assertEquals(1,properties.size());
- tdef.removeOutputProperty("output");
- }
-
- private TypedValue setupParameters() {
- TypedValue param = new TypedValue("param", TypedValue.TYPE_STRING, "test");
- tdef.addParameter(param);
- return param;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/test/AllJAXPDebugTests.java b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/test/AllJAXPDebugTests.java
deleted file mode 100644
index 2cd9dc8..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/test/AllJAXPDebugTests.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.test;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.test.PipelineDefintionTest;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.test.TestJAXPProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.test.TransformDefinitonTest;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-public class AllJAXPDebugTests {
-
- public static Test suite() {
- TestSuite suite = new TestSuite(AllJAXPDebugTests.class.getName());
- //$JUnit-BEGIN$
- suite.addTestSuite(TransformDefinitonTest.class);
- suite.addTestSuite(PipelineDefintionTest.class);
- suite.addTestSuite(TestJAXPProcessorInvoker.class);
- //$JUnit-END$
- return suite;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/test/TestJaXPDebugPlugin.java b/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/test/TestJaXPDebugPlugin.java
deleted file mode 100644
index d137be7..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/src/org/eclipse/wst/xsl/jaxp/debug/test/TestJaXPDebugPlugin.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.test;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class TestJaXPDebugPlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.jaxp.debug.test"; //$NON-NLS-1$
-
- // The shared instance
- private static TestJaXPDebugPlugin plugin;
-
- /**
- * The constructor
- */
- public TestJaXPDebugPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static TestJaXPDebugPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/.classpath b/tests/org.eclipse.wst.xsl.launching.tests/.classpath
deleted file mode 100644
index 3100a6b..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/.classpath
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="test-launching-src"/>
- <classpathentry kind="src" path="xsl-test-resources"/>
- <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.wst.xsl.launching.tests/.project b/tests/org.eclipse.wst.xsl.launching.tests/.project
deleted file mode 100644
index 2b08b8e..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.launching.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.wst.xsl.launching.tests/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index df7824f..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:37 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 6fb9c3a..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Fri Jan 04 09:08:42 EST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index fdd8568..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,16 +0,0 @@
-#Fri Jan 04 09:04:43 EST 2008
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=0
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-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.wst.xsl.launching.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.launching.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 95730a0..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,32 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.launching.tests
-Bundle-Version: 1.1.0.qualifier
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.junit;bundle-version="3.8.2",
- org.eclipse.debug.core;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xsl.debug.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.debug.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.swt;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.jaxp.launching;bundle-version="1.0.0",
- org.eclipse.wst.xsl.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xml.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.ui.workbench.texteditor;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xml.ui;bundle-version="[1.0.400,2.0.0)",
- org.eclipse.wst.xsl.jaxp.debug.ui;bundle-version="[1.0,2.0.0)"
-Bundle-Activator: org.eclipse.wst.xsl.launching.tests.Activator
-Bundle-ActivationPolicy: lazy
-Bundle-Localization: plugin
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.launching.tests,
- org.eclipse.wst.xsl.launching.tests.testcase
-
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/about.html b/tests/org.eclipse.wst.xsl.launching.tests/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/tests/org.eclipse.wst.xsl.launching.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 Redistributors 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.wst.xsl.launching.tests/build.properties b/tests/org.eclipse.wst.xsl.launching.tests/build.properties
deleted file mode 100644
index 7d5d2d5..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/build.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-source.. = test-launching-src/,\
- xsl-test-resources/
-output.. = bin/
-src.includes = testFiles/
-bin.includes = .,\
- META-INF/,\
- plugin.properties,\
- about.html,\
- xsl-test-resources/,\
- bin/,\
- testFiles/
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/plugin.properties b/tests/org.eclipse.wst.xsl.launching.tests/plugin.properties
deleted file mode 100644
index aa1a975..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.launching.tests
-Bundle-Name.0 = XST Core Test Plug-in
-Bundle-Vendor.0 = Eclipse.org
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/AbstractLaunchingTest.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/AbstractLaunchingTest.java
deleted file mode 100644
index 865b196..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/AbstractLaunchingTest.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - bug 262046 - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.launching.tests;
-
-import java.io.*;
-import java.net.URL;
-import java.util.List;
-
-import javax.xml.parsers.*;
-
-import org.eclipse.core.resources.*;
-import org.eclipse.core.runtime.*;
-import org.eclipse.debug.core.*;
-import org.eclipse.debug.internal.ui.DebugUIPlugin;
-import org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager;
-import org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.w3c.dom.Document;
-
-import junit.framework.TestCase;
-
-public abstract class AbstractLaunchingTest extends TestCase {
- private static final String XSL_TEST_PROJECT = "XSLTestProject";
- protected static final String XSL_LAUNCH_SHORTCUT_ID = "org.eclipse.wst.xsl.debug.ui.launchshortcut";
- protected static final String LAUNCHCONFIGS = "launchConfigs";
- protected TestEnvironment env;
- protected IProject testProject;
- protected IFolder folder;
-
- public AbstractLaunchingTest() {
- super();
- }
-
- public AbstractLaunchingTest(String name) {
- super(name);
- }
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- createProject();
- createEmptyLaunchConfigsFolder();
- deleteExistingLaunchConfigs();
- }
-
- private void createProject() throws CoreException {
- env = new TestEnvironment();
- testProject = env.createProject(XSL_TEST_PROJECT);
- }
-
- private void createEmptyLaunchConfigsFolder() throws CoreException {
- IPath path = testProject.getFullPath();
- folder = testProject.getFolder(LAUNCHCONFIGS);
- if (folder.exists()) {
- folder.delete(true, null);
- }
- folder.create(true, true, null);
- }
-
- private void deleteExistingLaunchConfigs() throws CoreException {
- ILaunchConfiguration[] configs = getLaunchManager()
- .getLaunchConfigurations();
- for (int i = 0; i < configs.length; i++) {
- configs[i].delete();
- }
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- testProject.delete(true, new NullProgressMonitor());
- }
-
- protected void copyConfigurationToWorkspace(IPath folder, String filename)
- throws Exception {
- URL url = Activator.getDefault().getBundle().getEntry(
- "testFiles" + File.separator + filename);
-
- String workspacePath = getWorkspacePath();
-
- File target = new File(workspacePath + folder.toPortableString()
- + File.separator + filename);
- copyFile(url, target);
- }
-
- private String getWorkspacePath() {
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
- IWorkspaceRoot root = workspace.getRoot();
- IPath rootPath = root.getLocation();
- String workspacePath = rootPath.toPortableString();
- return workspacePath;
- }
-
- private void copyFile(URL src, File target) throws Exception {
- BufferedOutputStream bos = new BufferedOutputStream(
- new FileOutputStream(target));
- BufferedInputStream bis = new BufferedInputStream(src.openStream());
- try {
- while (bis.available() > 0) {
- int size = bis.available();
- if (size > 1024)
- size = 1024;
- byte[] b = new byte[size];
- bis.read(b, 0, b.length);
- bos.write(b);
- }
- } finally {
- if (bis != null) {
- bis.close();
- }
- if (bos != null) {
- bos.close();
- }
- }
- }
-
- /**
- * Returns the launch shortcut with the given id
- *
- * @param id
- * @return the <code>LaunchShortcutExtension</code> with the given id, or
- * <code>null</code> if none
- *
- * @since 1.0
- */
- protected LaunchShortcutExtension getLaunchShortcutExtension(String id) {
- List exts = getLaunchConfigurationManager().getLaunchShortcuts();
- LaunchShortcutExtension ext = null;
- for (int i = 0; i < exts.size(); i++) {
- ext = (LaunchShortcutExtension) exts.get(i);
- if (ext.getId().equals(id)) {
- return ext;
- }
- }
- return null;
- }
-
- /**
- * Returns the singleton instance of the
- * <code>LaunchConfigurationManager</code>
- *
- * @return the singleton instance of the
- * <code>LaunchConfigurationManager</code>
- * @since 1.0
- */
- protected LaunchConfigurationManager getLaunchConfigurationManager() {
- return DebugUIPlugin.getDefault().getLaunchConfigurationManager();
- }
-
- private ILaunchManager getLaunchManager() {
- return DebugPlugin.getDefault().getLaunchManager();
- }
-
- protected ILaunch launch(String name) throws Exception {
- ILaunchConfiguration configuration = getLaunchConfiguration(name);
- ILaunch launch = configuration.launch(ILaunchManager.RUN_MODE,
- new NullProgressMonitor());
- return launch;
- }
-
- /**
- * Returns the launch configuration for the given main type
- *
- * @param mainTypeName
- * program to launch
- * @see ProjectCreationDecorator
- */
- protected ILaunchConfiguration getLaunchConfiguration(String mainTypeName) throws Exception {
- ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
- IFile file = testProject.getProject().getFolder("launchConfigs")
- .getFile(mainTypeName + ".launch");
- ILaunchConfiguration mine = mgr.getLaunchConfiguration(file);
- assertEquals("Wrong type found: ",
- XSLLaunchConfigurationConstants.ID_LAUNCH_CONFIG_TYPE, mine
- .getType().getIdentifier());
-
- return mine;
- }
-
- protected void refreshProject() throws CoreException,
- InterruptedException {
- testProject.refreshLocal(IResource.DEPTH_INFINITE,
- new NullProgressMonitor());
- while (testProject.isSynchronized(IResource.DEPTH_INFINITE) == false) {
- Thread.sleep(1000);
- }
- }
-
- protected void launchConfiguration(String launchConfigName) throws Exception {
- ILaunch launch = launch(launchConfigName);
- // Wait until the launch configuration terminates.
- while (launch.isTerminated() == false) {
- Thread.sleep(1000);
- }
- refreshProject();
- }
-
- protected String readFile(InputStream input) {
- String str;
- String finalString = "";
- try {
- BufferedReader in = new BufferedReader(new InputStreamReader(input));
- while ((str = in.readLine()) != null) {
- finalString = finalString + str + "\n";
- }
- in.close();
- } catch (IOException e) {
- }
- return finalString;
- }
-
- protected Document parseXml(InputStream contents) throws Exception {
- DocumentBuilderFactory builderFactory = DocumentBuilderFactory
- .newInstance();
- DocumentBuilder builder = builderFactory.newDocumentBuilder();
-
- return builder.parse(contents);
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/Activator.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/Activator.java
deleted file mode 100644
index 4e2aa07..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/Activator.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Gary Karasiuk (IBM Corporation) - initial implementation
- * Jesper Steen Møller - adapted for XSL
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.launching.tests;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.Status;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends Plugin {
-
- /** org.eclipse.wst.xsl.launching.tests - plug-in id */
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.launching.tests";
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
- public void handleException(Exception e){
- Status status = new Status(IStatus.ERROR, PLUGIN_ID, e.getLocalizedMessage(), e);
- getLog().log(status);
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/LaunchingSuite.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/LaunchingSuite.java
deleted file mode 100644
index 1fde7dc..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/LaunchingSuite.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 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
- * David Carver (STAR) - bug 262046 - refactored launching suite.
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.launching.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.xsl.launching.tests.testcase.LaunchShortcutTests;
-import org.eclipse.wst.xsl.launching.tests.testcase.ResultRunnableTest;
-import org.eclipse.wst.xsl.launching.tests.testcase.TestInputFileBlock;
-import org.eclipse.wst.xsl.launching.tests.testcase.XSLLaunchingTests;
-
-
-/**
- * This class does specifies all the classes in this bundle
- * that provide tests. It is primarily for the convenience of
- * the AllTestsSuite.
- *
- */
-public class LaunchingSuite extends TestSuite {
- public static TestSuite suite() {
- return new LaunchingSuite();
- }
-
- public LaunchingSuite() {
- super("XSL Launching Test Suite");
- addTest(new TestSuite(XSLLaunchingTests.class));
- addTest(new TestSuite(TestInputFileBlock.class));
- addTest(new TestSuite(LaunchShortcutTests.class));
- addTest(new TestSuite(ResultRunnableTest.class));
- }
-
- public LaunchingSuite(Class theClass, String name) {
- super(theClass, name);
- }
-
- public LaunchingSuite(Class theClass) {
- super(theClass);
- }
-
- public LaunchingSuite(String name) {
- super(name);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/Misc.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/Misc.java
deleted file mode 100644
index 3478c4a..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/Misc.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Gary Karasiuk (IBM Corporation) - initial implementation
- * Jesper Steen Møller - adapted for XSL
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.launching.tests;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-/**
- * Some miscellaneous helper methods.
- * @author karasiuk
- *
- */
-public class Misc {
-
- private static DateFormat _df = new SimpleDateFormat("HH:mm:ss.SSSS"); //$NON-NLS-1$
-
- public static void close(InputStream in){
- if (in == null)return;
- try {
- in.close();
- }
- catch (IOException e){
- // eat it
- }
- }
-
- public static void close(OutputStream out) {
- if (out == null)return;
- try {
- out.close();
- }
- catch (IOException e){
- // eat it
- }
- }
-
- /**
- * Write a line to the console for debugging.
- * @param line
- */
- public static void log(String line){
- System.err.println(timestampIt(line));
- }
-
- public static String timestampIt(String line){
- Date date = new Date();
- long thread = Thread.currentThread().getId();
- return _df.format(date) + " " + thread + " " + line;//$NON-NLS-1$//$NON-NLS-2$
- }
-
- public static void log(StringBuffer b){
- log(b.toString());
- b.setLength(0);
- }
-
- public static void niy(String msg){
- if (msg == null)msg = "Sorry, this function is not implemented yet"; //$NON-NLS-1$
- throw new RuntimeException(msg);
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/MockXSLLaunchShortCut.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/MockXSLLaunchShortCut.java
deleted file mode 100644
index 4700634..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/MockXSLLaunchShortCut.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - bug 262046 - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.launching.tests;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.internal.core.IConfigurationElementConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchShortcut;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-
-public class MockXSLLaunchShortCut extends XSLLaunchShortcut {
-
- public ILaunchManager testGetLaunchManager()
- {
- return DebugPlugin.getDefault().getLaunchManager();
- }
-
- public ILaunchConfigurationType testGetConfigurationType()
- {
- return getLaunchManager().getLaunchConfigurationType(XSLLaunchConfigurationConstants.ID_LAUNCH_CONFIG_TYPE);
- }
-
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/TestEnvironment.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/TestEnvironment.java
deleted file mode 100644
index d310089..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/TestEnvironment.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Gary Karasiuk (IBM Corporation) - initial implementation
- * Jesper Steen Møller - adapted for XSL
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.tests;
-
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
-import java.util.HashMap;
-import java.util.Iterator;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
-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.jobs.Job;
-
-public class TestEnvironment {
-
- public static final boolean DEBUG = true;
-
- private IWorkspace _workspace;
- private HashMap<String, IProject> _projects = new HashMap<String, IProject>(20);
-
- public TestEnvironment() throws CoreException {
- _workspace = ResourcesPlugin.getWorkspace();
- if (DEBUG){
- _workspace.getRoot().delete(true, true, null);
- }
- }
-
- public IPath addFolder(IPath root, String folderName) throws CoreException {
- IPath path = root.append(folderName);
- createFolder(path);
- return path;
- }
-
- public void incrementalBuild() throws CoreException{
- getWorkspace().build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
- }
-
- public void fullBuild() throws CoreException{
- getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD, null);
- }
-
- public void waitForBuild(){
- boolean wasInterrupted = false;
- do {
- try {
- Job.getJobManager().join(ResourcesPlugin.FAMILY_MANUAL_BUILD, null);
- wasInterrupted = false;
- }
- catch (InterruptedException e){
- wasInterrupted = true;
- }
- } while(wasInterrupted);
- }
-
- private IFolder createFolder(IPath path) throws CoreException {
- if (path.segmentCount() <= 1)return null;
-
- IFolder folder = _workspace.getRoot().getFolder(path);
- if (!folder.exists()){
- folder.create(true, true, null);
- }
- return folder;
- }
-
- public IProject createProject(String name) throws CoreException {
- final IProject project = _workspace.getRoot().getProject(name);
- IWorkspaceRunnable create = new IWorkspaceRunnable() {
-
- public void run(IProgressMonitor monitor) throws CoreException {
- project.create(monitor);
- project.open(monitor);
- }
- };
-
- _workspace.run(create, null);
- _projects.put(name, project);
-
- return project;
- }
-
- public void dispose() throws CoreException {
- if (DEBUG)return;
- for (Iterator<IProject> it=_projects.values().iterator(); it.hasNext();){
- IProject project = it.next();
- project.delete(true, null);
- }
- }
-
- public IPath addFile(IPath folder, String fileName, String contents) throws CoreException, UnsupportedEncodingException {
- IPath filePath = folder.append(fileName);
- createFile(filePath, contents.getBytes("UTF8"));
- return filePath;
- }
-
- public IPath addFileFromResource(IPath folder, String fileName, String path) throws CoreException {
- IPath filePath = folder.append(fileName);
- createFileFromResource(filePath, path);
- return filePath;
- }
-
- private IFile createFile(IPath filePath, byte[] contents) throws CoreException {
- IFile file = _workspace.getRoot().getFile(filePath);
- ByteArrayInputStream in = new ByteArrayInputStream(contents);
- if (file.exists())file.setContents(in, true, false, null);
- else file.create(in, true, null);
- return file;
- }
-
- private IFile createFileFromResource(IPath filePath, String path) throws CoreException {
- IFile file = _workspace.getRoot().getFile(filePath);
- InputStream in = TestEnvironment.class.getResourceAsStream(path);
- if (file.exists())file.setContents(in, true, false, null);
- else file.create(in, true, null);
- return file;
- }
- public IWorkspace getWorkspace(){
- return _workspace;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/LaunchShortcutTests.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/LaunchShortcutTests.java
deleted file mode 100755
index 93af6ae..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/LaunchShortcutTests.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - bug 262046 - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.tests.testcase;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension;
-import org.eclipse.ui.activities.WorkbenchActivityHelper;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.tests.AbstractLaunchingTest;
-import org.eclipse.wst.xsl.launching.tests.MockXSLLaunchShortCut;
-
-/**
- * Tests the capabilities of launch shortcuts from the <code>LaunchShortcuts</code> extension point
- *
- * @since 1.0
- */
-public class LaunchShortcutTests extends AbstractLaunchingTest {
-
-
- /**
- * Constructor
- * @param name
- */
- public LaunchShortcutTests(String name) {
- super(name);
- }
-
- @Override
- protected void setUp() throws Exception {
- // TODO Auto-generated method stub
- super.setUp();
- IPath path = folder.getFullPath();
- copyConfigurationToWorkspace(path, "SimpleTransform.launch");
- }
-
- @Override
- protected void tearDown() throws Exception {
- env.dispose();
- super.tearDown();
- }
-
- /**
- * Tests that the short cut is defined via the extension point.
- */
- public void testShortcutExtensionPointConfigured() {
- LaunchShortcutExtension ext = getLaunchShortcutExtension(XSL_LAUNCH_SHORTCUT_ID);
- assertNotNull("XSLT stylesheet shortcut not found", ext); //$NON-NLS-1$
- }
-
- public void testXSLLaunchConfigTypeDefined() {
- MockXSLLaunchShortCut shortCut = new MockXSLLaunchShortCut();
-
- String typeid = XSLLaunchConfigurationConstants.ID_LAUNCH_CONFIG_TYPE;
- assertEquals("Unexpected shortcut Type", typeid, shortCut.testGetConfigurationType().getIdentifier());
- }
-
- /**
- * Tests that the local java app shortcut does not support some fake type id 'foo'
- */
- public void testAssociatedConfigurationTypeNotSupported() {
- LaunchShortcutExtension ext = getLaunchShortcutExtension(XSL_LAUNCH_SHORTCUT_ID);
- assertNotNull("XSLT shortcut not found", ext); //$NON-NLS-1$
- String typeid = "org.eclipse.jdt.launching.foo"; //$NON-NLS-1$
- assertTrue("local xslt app shortcut should not support foo", !ext.getAssociatedConfigurationTypes().contains(typeid)); //$NON-NLS-1$
- }
-
-
- /**
- * Returns a listing of all applicable <code>LaunchShortcutExtension</code>s for the given
- * launch configuration type id.
- * @param typeid the id of the launch configuration
- * @return a listing of <code>LaunchShortcutExtension</code>s that are associated with the specified launch configuration
- * type id or an empty list, never <code>null</code>
- *
- * @since 1.0
- */
- public List getApplicableLaunchShortcuts(String typeid) {
- List list = new ArrayList();
- LaunchShortcutExtension ext = null;
- List shortcuts = getLaunchConfigurationManager().getLaunchShortcuts();
- for(int i = 0; i < shortcuts.size(); i++) {
- ext = (LaunchShortcutExtension) shortcuts.get(i);
- if(ext.getAssociatedConfigurationTypes().contains(typeid) && !WorkbenchActivityHelper.filterItem(ext)) {
- list.add(ext);
- }
- }
- return list;
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/MockInputFileBlock.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/MockInputFileBlock.java
deleted file mode 100644
index 93d47b2..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/MockInputFileBlock.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- *Copyright (c) 2008 Standards for Technology in Automotive Retail 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:
- * David Carver - bug 214228 - Verify that File Extensions available for input block
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.tests.testcase;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.InputFileBlock;
-
-public class MockInputFileBlock extends InputFileBlock {
-
- public MockInputFileBlock(IFile defaultFile) {
- super(defaultFile);
- // TODO Auto-generated constructor stub
- }
-
- public String[] getAvailableFileExtensions() {
- // Since this is private we need to expose it for testing.
- return getFileExtensions();
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/MockResultRunnable.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/MockResultRunnable.java
deleted file mode 100644
index 548560e..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/MockResultRunnable.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - bug 259053 - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.tests.testcase;
-
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.views.ResultRunnable;
-
-public class MockResultRunnable extends ResultRunnable {
-
- public MockResultRunnable(SourceViewer viewer, String results,
- IWorkbenchPartSite site) {
- super(viewer, results, site);
- // TODO Auto-generated constructor stub
- }
-
- public IDocument testCreateDocument() {
- return createDocument();
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/ResultRunnableTest.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/ResultRunnableTest.java
deleted file mode 100644
index 25b240b..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/ResultRunnableTest.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************
- *Copyright (c) 2009 Standards for Technology in Automotive Retail 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:
- * David Carver (STAR) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.tests.testcase;
-
-import java.io.IOException;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IFile;
-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.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.sse.core.internal.provisional.exceptions.ResourceAlreadyExists;
-import org.eclipse.wst.sse.core.internal.provisional.exceptions.ResourceInUse;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
-import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
-import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentLoader;
-import org.eclipse.wst.xsl.ui.internal.StructuredTextViewerConfigurationXSL;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.views.*;
-
-/**
- * This class is an abstract class for Content Completion Tests. It provides all
- * of the common methods that are used by the completion tests so that they
- * aren't duplicated across the various classes. Overrides can be done where
- * appropriate.
- *
- * @author David Carver
- *
- */
-public class ResultRunnableTest extends TestCase {
-
- protected StructuredTextViewer sourceViewer = null;
- protected Shell shell = null;
- protected Composite parent = null;
-
-
- public ResultRunnableTest() {
- }
-
- protected void initializeSourceViewer() {
- // some test environments might not have a "real" display
- if (Display.getCurrent() != null) {
-
-
- if (PlatformUI.isWorkbenchRunning()) {
- shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
- .getShell();
- } else {
- shell = new Shell(Display.getCurrent());
- }
- parent = new Composite(shell, SWT.NONE);
-
- // dummy viewer
- sourceViewer = new StructuredTextViewer(parent, null, null, false,
- SWT.NONE);
- } else {
- Assert
- .fail("Unable to run the test as a display must be available.");
- }
-
- configureSourceViewer();
- }
-
- protected void configureSourceViewer() {
- sourceViewer.configure(new StructuredTextViewerConfigurationXSL());
-
- }
-
- /**
- * Setup the necessary projects, files, and source viewer for the tests.
- */
- @Override
- protected void setUp() throws Exception {
- initializeSourceViewer();
- }
-
- @Override
- protected void tearDown() throws Exception {
- parent.dispose();
- super.tearDown();
- }
-
-
- public void testNoProcessingInstruction() throws Exception {
- String results = "This is some sample text.";
- MockResultRunnable runnable = new MockResultRunnable(sourceViewer, results, null);
- IDocument document = runnable.testCreateDocument();
- assertNotNull("Structured Document wasn not created successfully.", document);
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/TestInputFileBlock.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/TestInputFileBlock.java
deleted file mode 100644
index 4e470c6..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/TestInputFileBlock.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- *Copyright (c) 2008 Standards for Technology in Automotive Retail 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:
- * David Carver - bug 214228 - Verify that File Extensions available for input block
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.tests.testcase;
-
-import junit.framework.TestCase;
-
-
-public class TestInputFileBlock extends TestCase {
-
- public void testXMLFileExtensions() throws Exception {
- MockInputFileBlock fileBlock = new MockInputFileBlock(null);
- String[] fileExtensions = fileBlock.getAvailableFileExtensions();
- assertNotNull("No file extensions returned.", fileExtensions);
- assertTrue("Did not find 'xml'", findExtension("xml", fileExtensions));
- assertTrue("Did not find 'xsl'", findExtension("xsl", fileExtensions));
- assertTrue("Did not find 'xslt'", findExtension("xslt", fileExtensions));
- assertTrue("Did not find 'xmi'", findExtension("xmi", fileExtensions));
- }
-
- private boolean findExtension(String extension, String[] exts) {
- boolean foundsw = false;
- for (int i = 0; i < exts.length; i++) {
- if (extension.equalsIgnoreCase(exts[i])) {
- foundsw = true;
- }
- }
- return foundsw;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/XSLLaunchingTests.java b/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/XSLLaunchingTests.java
deleted file mode 100644
index 4939073..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test-launching-src/org/eclipse/wst/xsl/launching/tests/testcase/XSLLaunchingTests.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Jesper Steen Møller
- * 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:
- * Jesper Steen Møller - initial XSL launching test
- * David Carver (STAR) - bug 262046 - refactored for better reliability.
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.launching.tests.testcase;
-
-import java.io.*;
-import javax.xml.parsers.*;
-
-import org.eclipse.core.resources.*;
-import org.eclipse.core.runtime.*;
-import org.w3c.dom.*;
-import org.xml.sax.*;
-
-import org.eclipse.wst.xsl.launching.tests.AbstractLaunchingTest;
-
-public class XSLLaunchingTests extends AbstractLaunchingTest {
-
- private static final String TRANSFORM_COMMENTS = "TransformComments";
- private static final String SIMPLE_TRANSFORM = "SimpleTransform";
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- IPath path = folder.getFullPath();
- copyConfigurationToWorkspace(path, "SimpleTransform.launch");
- copyConfigurationToWorkspace(path, "TransformComments.launch");
- testProject.refreshLocal(IResource.DEPTH_INFINITE,
- new NullProgressMonitor());
- while (testProject.isSynchronized(IResource.DEPTH_INFINITE) == false) {
- Thread.sleep(100);
- }
- }
-
- @Override
- protected void tearDown() throws Exception {
- env.dispose();
- super.tearDown();
- }
-
- public synchronized void testSimpleTransformation() throws Exception {
- IPath folder = testProject.getFullPath();
- env.addFileFromResource(folder, "1-input.xml", "1-input.xml");
- env.addFileFromResource(folder, "1-transform.xsl", "1-transform.xsl");
- refreshProject();
-
- launchConfiguration(SIMPLE_TRANSFORM);
- IFile output = testProject.getFile("1-input.out.xml");
- Document doc = parseXml(output.getContents(true));
- assertEquals("root-out", doc.getDocumentElement().getNodeName());
- }
-
- /**
- * Test to make sure comments are being copied out to the output file. bug
- * 253703
- *
- * @throws CoreException
- * @throws InterruptedException
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws IOException
- */
- public synchronized void testTransformComments() throws Exception {
- IPath folder = testProject.getFullPath();
- env.addFileFromResource(folder, "testCommentInput.xml",
- "testCommentInput.xml");
- env.addFileFromResource(folder, "testComments.xsl", "testComments.xsl");
- env.addFileFromResource(folder, "expected.xml",
- "testCommentsExpected.xml");
- refreshProject();
-
- launchConfiguration(TRANSFORM_COMMENTS);
- IFile output = testProject.getFile("testCommentInput.out.xml");
- IFile expected = testProject.getFile("expected.xml");
-
- String result = readFile(output.getContents());
- String wanted = readFile(expected.getContents());
-
- assertEquals("Unexpected results:", wanted, result);
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/test.xml b/tests/org.eclipse.wst.xsl.launching.tests/test.xml
deleted file mode 100644
index 0d0e48d..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/test.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project
- name="testsuite"
- default="run"
- basedir=".">
-
- <!-- The following properties should be passed into this script -->
- <!-- ${eclipse-home} -->
- <!-- ${buildDirectory} -->
- <!-- ${buildLabel} -->
-
- <!-- should be little need to change what's above -->
-
- <property
- name="plugin-name"
- value="org.eclipse.wst.xsl.launching.tests" />
- <property
- name="classname"
- value="org.eclipse.wst.xsl.launching.tests.LaunchingSuite" />
- <property
- name="testType"
- value="core-test" />
-
- <!-- should be little need to change what's below -->
-
- <echo message="basedir: ${basedir}" />
- <echo message="eclipse-home: ${eclipse-home}" />
- <echo message="buildDirectory: ${buildDirectory}" />
- <echo message="plugin-name: ${plugin-name}" />
- <echo message="classname: ${classname}" />
- <echo message="testType ${testType}" />
-
-
- <property
- name="library-file"
- value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" />
- <property
- name="workspace"
- value="${eclipse-home}/junitworkspaces/${plugin-name}" />
-
- <!-- 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="${plugin-name}.*xml" />
- </delete>
- <!-- make directory, in case path doesn't exist yet -->
- <mkdir dir="${workspace}" />
- <!-- but delete to make sure fresh contents-->
- <delete
- dir="${workspace}"
- quiet="true" />
-
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite">
-
- <ant
- target="${testType}"
- antfile="${library-file}"
- dir="${eclipse-home}">
- <property
- name="data-dir"
- value="${workspace}" />
- <property
- name="plugin-name"
- value="${plugin-name}" />
- <property
- name="classname"
- value="${classname}" />
- <property
- name="plugin-path"
- value="${eclipse-home}/plugins/${plugin-name}" />
- </ant>
-
- <copy
- failonerror="false"
- file="${workspace}/.metadata/.log"
- tofile="${buildDirectory}/${buildLabel}/testResults/consolelogs/${plugin-name}.consolelog.txt" />
-
- </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">
- <!-- usually no need to delete workspace until next run, and leaving it allows inspection -->
- <!-- <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="${plugin-name}.*xml" />
- <property
- name="output-file"
- value="${plugin-name}.xml" />
- </ant>
- </target>
-
-</project>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/testFiles/SimpleTransform.launch b/tests/org.eclipse.wst.xsl.launching.tests/testFiles/SimpleTransform.launch
deleted file mode 100644
index b2151fd..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/testFiles/SimpleTransform.launch
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.wst.xsl.launching.launchConfigurationType">
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_ATTRIBUTES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Attributes/> "/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_OUTPUT_PROPERTIES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Properties/> "/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_PROCESSOR" value="org.eclipse.wst.xsl.launching.xalan.processor"/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_TRANSFORMER_FACTORY" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
-<booleanAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_USE_DEFAULT_PROCESSOR" value="false"/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.INVOKER_DESCRIPTOR" value="org.eclipse.wst.xsl.launching.jaxp.invoke"/>
-<booleanAttribute key="org.eclipse.wst.xsl.launching.ATTR_FORMAT_FILE" value="false"/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_INPUT_FILE" value="${workspace_loc:/XSLTestProject/1-input.xml}"/>
-<booleanAttribute key="org.eclipse.wst.xsl.launching.ATTR_OPEN_FILE" value="true"/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_OUTPUT_FILENAME" value=""/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_OUTPUT_FOLDER" value=""/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_PIPELINE" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Pipeline> <OutputProperties/> <Transform path="/XSLTestProject/1-transform.xsl" pathType="resource" uriResolver=""> <Parameters/> </Transform> </Pipeline> "/>
-<booleanAttribute key="org.eclipse.wst.xsl.launching.ATTR_USE_DEFAULT_OUTPUT_FILE" value="true"/>
-</launchConfiguration>
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/testFiles/TransformComments.launch b/tests/org.eclipse.wst.xsl.launching.tests/testFiles/TransformComments.launch
deleted file mode 100644
index 2790de7..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/testFiles/TransformComments.launch
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.wst.xsl.launching.launchConfigurationType">
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_ATTRIBUTES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Attributes/> "/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_OUTPUT_PROPERTIES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Properties/> "/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_PROCESSOR" value="org.eclipse.wst.xsl.launching.xalan.processor"/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_TRANSFORMER_FACTORY" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
-<booleanAttribute key="org.eclipse.wst.xsl.jaxp.launching.ATTR_USE_DEFAULT_PROCESSOR" value="false"/>
-<stringAttribute key="org.eclipse.wst.xsl.jaxp.launching.INVOKER_DESCRIPTOR" value="org.eclipse.wst.xsl.launching.jaxp.invoke"/>
-<booleanAttribute key="org.eclipse.wst.xsl.launching.ATTR_FORMAT_FILE" value="false"/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_INPUT_FILE" value="${workspace_loc:/XSLTestProject/testCommentInput.xml}"/>
-<booleanAttribute key="org.eclipse.wst.xsl.launching.ATTR_OPEN_FILE" value="true"/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_OUTPUT_FILENAME" value="testCommentInput.out.xml"/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_OUTPUT_FOLDER" value="${workspace_loc:/XSLTestProject}"/>
-<stringAttribute key="org.eclipse.wst.xsl.launching.ATTR_PIPELINE" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <Pipeline> <OutputProperties/> <Transform path="/XSLTestProject/testComments.xsl" pathType="resource" uriResolver=""> <Parameters/> </Transform> </Pipeline> "/>
-<booleanAttribute key="org.eclipse.wst.xsl.launching.ATTR_USE_DEFAULT_OUTPUT_FILE" value="true"/>
-</launchConfiguration>
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/1-input.xml b/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/1-input.xml
deleted file mode 100644
index 5757dde..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/1-input.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<root>
- <element attribute="yes"/>
-</root>
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/1-transform.xsl b/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/1-transform.xsl
deleted file mode 100644
index 36af48c..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/1-transform.xsl
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="//root">
- <root-out/>
- </xsl:template>
-</xsl:stylesheet>
-
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentInput.out.xml b/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentInput.out.xml
deleted file mode 100644
index 6351287..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentInput.out.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><root><element>
- </element><element>
-
- </element><element>
-
-</element></root>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentInput.xml b/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentInput.xml
deleted file mode 100644
index 11abc90..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentInput.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<doc>
- <test>
- <!--first comment-->
- </test>
- <!--second comment-->
-</doc>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testComments.xsl b/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testComments.xsl
deleted file mode 100644
index 91ee3d1..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testComments.xsl
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="comment()">
- <xsl:copy />
- </xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentsExpected.xml b/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentsExpected.xml
deleted file mode 100644
index 038aaad..0000000
--- a/tests/org.eclipse.wst.xsl.launching.tests/xsl-test-resources/org/eclipse/wst/xsl/launching/tests/testCommentsExpected.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
- <!--first comment-->
-
- <!--second comment-->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.tests/.classpath b/tests/org.eclipse.wst.xsl.tests/.classpath
deleted file mode 100644
index ce73933..0000000
--- a/tests/org.eclipse.wst.xsl.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <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.wst.xsl.tests/.project b/tests/org.eclipse.wst.xsl.tests/.project
deleted file mode 100644
index 4293a3d..0000000
--- a/tests/org.eclipse.wst.xsl.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.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.wst.xsl.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.xsl.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 5552f02..0000000
--- a/tests/org.eclipse.wst.xsl.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Thu Jan 10 09:20:54 EST 2008
-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.wst.xsl.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 50d1247..0000000
--- a/tests/org.eclipse.wst.xsl.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,23 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.tests;singleton:=true
-Bundle-Version: 1.1.0.qualifier
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Localization: plugin
-Require-Bundle: org.junit;bundle-version="3.8.1",
- org.eclipse.wst.xsl.launching.tests;bundle-version="1.0.0",
- org.eclipse.wst.xsl.ui.tests;bundle-version="1.0.0",
- org.eclipse.wst.xsl.core.tests;bundle-version="1.0.0",
- org.eclipse.wst.xml.xpath.core.tests;bundle-version="1.0.0",
- org.eclipse.wst.xml.xpath2.processor.tests;bundle-version="1.0.0",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.exslt.core.tests;bundle-version="1.0.0",
- org.eclipse.wst.xsl.exslt.ui.tests;bundle-version="1.0.0",
- org.eclipse.wst.xml.xpath.ui.tests;bundle-version="1.0.0",
- org.eclipse.wst.xsl.jaxp.debug.test;bundle-version="1.0.0"
-Export-Package: org.eclipse.wst.xsl.tests
-Bundle-ClassPath: .
-Bundle-ActivationPolicy: lazy
-Bundle-Activator: org.eclipse.wst.xsl.tests.XSLTestPlugin
diff --git a/tests/org.eclipse.wst.xsl.tests/about.html b/tests/org.eclipse.wst.xsl.tests/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/tests/org.eclipse.wst.xsl.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 Redistributors 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.wst.xsl.tests/build.properties b/tests/org.eclipse.wst.xsl.tests/build.properties
deleted file mode 100644
index 8d3b787..0000000
--- a/tests/org.eclipse.wst.xsl.tests/build.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-###############################################################################
-# Copyright (c) 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
-###############################################################################
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.properties,\
- test.xml,\
- about.html,\
- bin/
-source.. = src/
diff --git a/tests/org.eclipse.wst.xsl.tests/plugin.properties b/tests/org.eclipse.wst.xsl.tests/plugin.properties
deleted file mode 100644
index a70c5d1..0000000
--- a/tests/org.eclipse.wst.xsl.tests/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 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
-###############################################################################
-#Properties file for org.eclipse.wst.xsl.tests
-Bundle-Name.0 = Tests Plug-in
-Bundle-Vendor.0 = Eclipse.org
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/AllTestsSuite.java b/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/AllTestsSuite.java
deleted file mode 100644
index 5ff6c85..0000000
--- a/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/AllTestsSuite.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 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.wst.xsl.tests;
-
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.xml.xpath.core.tests.XPathCoreTests;
-import org.eclipse.wst.xml.xpath.ui.internal.hander.tests.TestXPathProcessorHandler;
-import org.eclipse.wst.xml.xpath.ui.tests.XPathUITestPlugin;
-import org.eclipse.wst.xml.xpath2.processor.test.AllPsychoPathTests;
-import org.eclipse.wst.xsl.jaxp.debug.test.AllJAXPDebugTests;
-import org.eclipse.wst.xsl.launching.tests.LaunchingSuite;
-import org.eclipse.wst.xsl.ui.tests.XSLUITestSuite;
-import org.eclipse.wst.xsl.core.tests.XSLCoreTestSuite;
-import org.eclipse.wst.xsl.exslt.core.tests.EXSLTCoreTestSuite;
-import org.eclipse.wst.xsl.exslt.ui.tests.EXSLTUITestSuite;
-
-/**
- * This class specifies all the bundles of this component that provide a test
- * suite to run during automated testing.
- */
-public class AllTestsSuite extends TestSuite {
-
-
- public AllTestsSuite() {
- super("All XSL Test Suites");
- addTest(XSLUITestSuite.suite());
- addTest(XSLCoreTestSuite.suite());
- addTest(XPathCoreTests.suite());
- addTest(LaunchingSuite.suite());
- addTest(AllJAXPDebugTests.suite());
- addTest(AllPsychoPathTests.suite());
- addTest(EXSLTCoreTestSuite.suite());
- addTestSuite(TestXPathProcessorHandler.class);
- // addTest(EXSLTUITestSuite.suite());
- }
-
- /**
- * This is just need to run in a development environment workbench.
- */
- public void testAll() {
- // this method needs to exist, but doesn't really do anything
- // other than to signal to create an instance of this class.
- // The rest it automatic from the tests added in constructor.
-
- }
-}
diff --git a/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/XSLTestPlugin.java b/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/XSLTestPlugin.java
deleted file mode 100644
index a2979fb..0000000
--- a/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/XSLTestPlugin.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package org.eclipse.wst.xsl.tests;
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-
-public class XSLTestPlugin extends Plugin {
-
- // The plug-in ID
- /**
- * TODO: Add JavaDoc
- */
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.core"; //$NON-NLS-1$
-
- private BundleContext bundleContext;
-
- // The shared instance
- private static XSLTestPlugin plugin;
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- bundleContext = context;
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static XSLTestPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/tests/org.eclipse.wst.xsl.tests/test.xml b/tests/org.eclipse.wst.xsl.tests/test.xml
deleted file mode 100644
index 4912cb6..0000000
--- a/tests/org.eclipse.wst.xsl.tests/test.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project
- name="testsuite"
- default="run"
- basedir=".">
-
- <!-- The following properties should be passed into this script -->
- <!-- ${eclipse-home} -->
- <!-- ${buildDirectory} -->
- <!-- ${buildLabel} -->
-
- <!-- should be little need to change what's above -->
-
- <property
- name="plugin-name"
- value="org.eclipse.wst.xsl.tests" />
- <property
- name="classname"
- value="org.eclipse.wst.xsl.tests.AllTestsSuite" />
- <property
- name="testType"
- value="ui-test" />
-
- <!-- should be little need to change what's below -->
-
- <echo message="basedir: ${basedir}" />
- <echo message="eclipse-home: ${eclipse-home}" />
- <echo message="buildDirectory: ${buildDirectory}" />
- <echo message="plugin-name: ${plugin-name}" />
- <echo message="classname: ${classname}" />
- <echo message="testType ${testType}" />
-
-
- <property
- name="library-file"
- value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" />
- <property
- name="workspace"
- value="${eclipse-home}/junitworkspaces/${plugin-name}" />
-
- <!-- 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="${plugin-name}.*xml" />
- </delete>
- <!-- make directory, in case path doesn't exist yet -->
- <mkdir dir="${workspace}" />
- <!-- but delete to make sure fresh contents-->
- <delete
- dir="${workspace}"
- quiet="true" />
-
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite">
-
- <ant
- target="${testType}"
- antfile="${library-file}"
- dir="${eclipse-home}">
- <property
- name="data-dir"
- value="${workspace}" />
- <property
- name="plugin-name"
- value="${plugin-name}" />
- <property
- name="classname"
- value="${classname}" />
- <property
- name="plugin-path"
- value="${eclipse-home}/plugins/${plugin-name}" />
- </ant>
-
- <copy
- failonerror="false"
- file="${workspace}/.metadata/.log"
- tofile="${buildDirectory}/${buildLabel}/testResults/consolelogs/${plugin-name}.consolelog.txt" />
-
- </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">
- <!-- usually no need to delete workspace until next run, and leaving it allows inspection -->
- <!-- <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="${plugin-name}.*xml" />
- <property
- name="output-file"
- value="${plugin-name}.xml" />
- </ant>
- </target>
-
-</project>
\ No newline at end of file