This commit was manufactured by cvs2svn to create tag 'v201004290328'.
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 2dc000d..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.2",
- 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 5ccdd67..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,21 +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
-Bundle-Localization: plugin
-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",
- 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 791c326..0000000
--- a/tests/org.eclipse.wst.xsl.exslt.ui.tests/build.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- projectfiles/,\
- bin/,\
- plugin.properties,\
- about.html
-src.includes = projectfiles/,\
- 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/about.html b/tests/org.eclipse.wst.xsl.jaxp.debug.test/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the 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.jaxp.debug.test/build.properties b/tests/org.eclipse.wst.xsl.jaxp.debug.test/build.properties
deleted file mode 100644
index 9cbab3c..0000000
--- a/tests/org.eclipse.wst.xsl.jaxp.debug.test/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html
-src.includes = about.html
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 472ee29..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.pde.core.requiredPlugins"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <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 96d70ed..0000000
--- a/tests/org.eclipse.wst.xsl.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Apr 07 07:00:01 PDT 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.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsl.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 8408957..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.5
-Bundle-Localization: plugin
-Require-Bundle: 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",
- org.junit
-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 f0e4766..0000000
--- a/tests/org.eclipse.wst.xsl.tests/src/org/eclipse/wst/xsl/tests/AllTestsSuite.java
+++ /dev/null
@@ -1,62 +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.Test;
-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.xpath2.processor.test.AllPsychoPathTests;
-import org.eclipse.wst.xsl.core.tests.XSLCoreTestSuite;
-import org.eclipse.wst.xsl.exslt.core.tests.EXSLTCoreTestSuite;
-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;
-
-/**
- * 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.
-
- }
- /*
- * Added for strict JUnit 4 environment. (Not sure if "testAll" method is still required.
- * See discussion for similar issue in bug 300951.
- * https://bugs.eclipse.org/bugs/show_bug.cgi?id=300951
- */
- public static Test suite() {
- return new AllTestsSuite();
- }
-}
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