This commit was manufactured by cvs2svn to create tag 'v200609060236'.
diff --git a/org.eclipse.wst.common.snippets.tests/.classpath b/org.eclipse.wst.common.snippets.tests/.classpath
deleted file mode 100644
index 751c8f2..0000000
--- a/org.eclipse.wst.common.snippets.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/org.eclipse.wst.common.snippets.tests/.cvsignore b/org.eclipse.wst.common.snippets.tests/.cvsignore
deleted file mode 100644
index 237c5dd..0000000
--- a/org.eclipse.wst.common.snippets.tests/.cvsignore
+++ /dev/null
@@ -1,7 +0,0 @@
-bin
-build.xml
-temp.folder
-snippettests.jar
-org.eclipse.wst.common.snippets.tests_1.0.0.zip
-snippetstests.jar
-snippetstestssrc.zip
diff --git a/org.eclipse.wst.common.snippets.tests/.project b/org.eclipse.wst.common.snippets.tests/.project
deleted file mode 100644
index 726c4ef..0000000
--- a/org.eclipse.wst.common.snippets.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.common.snippets.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/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.core.resources.prefs b/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index afa5c91..0000000
--- a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Apr 04 03:36:32 EDT 2006
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2dd8b5c..0000000
--- a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,80 +0,0 @@
-#Sun Apr 16 14:37:21 EDT 2006
-eclipse.preferences.version=1
-org.eclipse.jdt.core.builder.cleanOutputFolder=clean
-org.eclipse.jdt.core.builder.duplicateResourceTask=warning
-org.eclipse.jdt.core.builder.invalidClasspath=ignore
-org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
-org.eclipse.jdt.core.circularClasspath=error
-org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
-org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
-org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=error
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=error
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=enabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=enabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=enabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unsafeTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
-org.eclipse.jdt.core.compiler.problem.unusedLabel=error
-org.eclipse.jdt.core.compiler.problem.unusedLocal=error
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.3
-org.eclipse.jdt.core.incompatibleJDKLevel=ignore
-org.eclipse.jdt.core.incompleteClasspath=error
diff --git a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index ef2ac65..0000000
--- a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Apr 04 03:36:39 EDT 2006
-eclipse.preferences.version=1
-internal.default.compliance=default
diff --git a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
deleted file mode 100644
index c59368c..0000000
--- a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Apr 04 03:36:32 EDT 2006
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.pde.prefs b/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index f724958..0000000
--- a/org.eclipse.wst.common.snippets.tests/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,15 +0,0 @@
-#Sun Apr 16 14:05:29 EDT 2006
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.illegal-att-value=0
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=0
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=0
-compilers.p.unknown-element=0
-compilers.p.unknown-resource=0
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.p.unused-element-or-attribute=0
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/org.eclipse.wst.common.snippets.tests/META-INF/MANIFEST.MF b/org.eclipse.wst.common.snippets.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 3116a70..0000000
--- a/org.eclipse.wst.common.snippets.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,21 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.common.snippets.tests; singleton:=true
-Bundle-Version: 1.0.0
-Bundle-ClassPath: snippetstests.jar
-Bundle-Activator: org.eclipse.wst.common.snippets.tests.TestsPlugin
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-Localization: plugin
-Export-Package: org.eclipse.wst.common.snippets.core.tests,
- org.eclipse.wst.common.snippets.tests,
- org.eclipse.wst.common.snippets.ui.tests
-Require-Bundle: org.junit,
- org.eclipse.core.resources,
- org.eclipse.core.runtime,
- org.eclipse.text,
- org.eclipse.ui,
- org.eclipse.wst.common.snippets,
- org.eclipse.ui.ide,
- org.eclipse.ui.workbench.texteditor
-Eclipse-LazyStart: true
diff --git a/org.eclipse.wst.common.snippets.tests/about.html b/org.eclipse.wst.common.snippets.tests/about.html
deleted file mode 100644
index 4ec5989..0000000
--- a/org.eclipse.wst.common.snippets.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>May 2, 2006</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/org.eclipse.wst.common.snippets.tests/build.properties b/org.eclipse.wst.common.snippets.tests/build.properties
deleted file mode 100644
index efa6153..0000000
--- a/org.eclipse.wst.common.snippets.tests/build.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-snippetstests.source.. = src/
-snippetstests.output.. = bin/
-bin.includes = META-INF/,\
- test.xml,\
- plugin.xml,\
- snippetstests.jar,\
- testfiles/,\
- plugin.properties,\
- about.html,\
- META-INF/,\
- META-INF/
-src.includes = src/,\
- build.properties
-jars.compile.order = snippetstests.jar
-source.snippetstests.jar = src/
-output.snippetstests.jar = bin/
diff --git a/org.eclipse.wst.common.snippets.tests/plugin.properties b/org.eclipse.wst.common.snippets.tests/plugin.properties
deleted file mode 100644
index 7c7afe8..0000000
--- a/org.eclipse.wst.common.snippets.tests/plugin.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# not to be translated
-
-unittest_category_label=org.eclipse.wst.common.snippets.tests-category
-
-unittest_item0_label=test item 0
-unittest_item0_content=sample content 0
-
-unittest_item1_label=test item 1
-unittest_item1_content=test content ${variableA} and more ${variableB}
-unittest_item1_varA=variable A
-unittest_item1_varB=variable B
-
-Bundle-Name.0 = Snippets Tests
-Bundle-Vendor.0 = Eclipse.org
\ No newline at end of file
diff --git a/org.eclipse.wst.common.snippets.tests/plugin.xml b/org.eclipse.wst.common.snippets.tests/plugin.xml
deleted file mode 100644
index 3926b2b..0000000
--- a/org.eclipse.wst.common.snippets.tests/plugin.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
- <!--======================================================================================-->
- <!-- Snippet View contributions -->
- <!--======================================================================================-->
- <extension
- point="org.eclipse.wst.common.snippets.SnippetContributions">
- <category
- label="%unittest_category_label"
- id="org.eclipse.wst.common.snippets.tests.category0"
- contenttypes="org.eclipse.core.runtime.text">
- <item
- label="%unittest_item0_label"
- id="org.eclipse.wst.common.snippets.tests.item0">
- <content>%unittest_item0_content</content>
- </item>
- <item
- label="%unittest_item1_label"
- id="org.eclipse.wst.common.snippets.tests.item1">
- <content>%unittest_item1_content</content>
- <variable
- description="%unittest_item1_varA"
- id="variableA" />
- <variable
- description="%unittest_item1_varB"
- id="variableB"
- default="bfoo" />
- </item>
- </category>
- </extension>
-
-</plugin>
diff --git a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/core/tests/SnippetCoreTests.java b/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/core/tests/SnippetCoreTests.java
deleted file mode 100644
index b683ed1..0000000
--- a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/core/tests/SnippetCoreTests.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.common.snippets.core.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.common.snippets.core.ISnippetCategory;
-import org.eclipse.wst.common.snippets.core.ISnippetItem;
-import org.eclipse.wst.common.snippets.core.ISnippetVariable;
-import org.eclipse.wst.common.snippets.core.ISnippetsEntry;
-import org.eclipse.wst.common.snippets.internal.SnippetDefinitions;
-import org.eclipse.wst.common.snippets.internal.model.SnippetManager;
-import org.eclipse.wst.common.snippets.internal.palette.SnippetVariable;
-
-public class SnippetCoreTests extends TestCase {
-
- private SnippetDefinitions fCurrentDefinitions;
-
- public SnippetCoreTests() {
- super();
- }
-
- public SnippetCoreTests(String name) {
- super(name);
- }
-
- private ISnippetVariable getVariable(ISnippetItem item, String id) {
- for (int i = 0; i < item.getVariables().length; i++) {
- if (((SnippetVariable) item.getVariables()[i]).getId().equals(id)) {
- return item.getVariables()[i];
- }
- }
- return null;
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- fCurrentDefinitions = SnippetManager.getInstance().getDefinitions();
- }
-
- public void testCategoryLoadedFromPlugin() {
- ISnippetCategory testCategory = fCurrentDefinitions.getCategory("org.eclipse.wst.common.snippets.tests.category0"); //$NON-NLS-1$
- assertNotNull("test category not found", testCategory); //$NON-NLS-1$
- assertEquals("test category source type incorrect", ISnippetsEntry.SNIPPET_SOURCE_PLUGINS, testCategory.getSourceType()); //$NON-NLS-1$
- assertNotNull("test category source description missing", testCategory.getSourceDescriptor()); //$NON-NLS-1$
- assertEquals("test category description incorrect", null, testCategory.getDescription()); //$NON-NLS-1$
- assertEquals("test category label incorrect", "org.eclipse.wst.common.snippets.tests-category", testCategory.getLabel()); //$NON-NLS-1$ //$NON-NLS-2$
- assertNotNull("test category has no content-type visibility filters", testCategory.getFilters()); //$NON-NLS-1$
- assertTrue("test category has no visibility filters", testCategory.getFilters().length > 0); //$NON-NLS-1$
- assertEquals("test category has wrong content-type visibility filter", "*", testCategory.getFilters()[0]); //$NON-NLS-1$
- }
-
- public void testItem0LoadedFromPlugin() {
- ISnippetCategory testCategory = fCurrentDefinitions.getCategory("org.eclipse.wst.common.snippets.tests.category0"); //$NON-NLS-1$
- assertNotNull("test category not found", testCategory); //$NON-NLS-1$
- ISnippetItem item = fCurrentDefinitions.getItem("org.eclipse.wst.common.snippets.tests.item0"); //$NON-NLS-1$
- assertNotNull("test item 0 not found", item); //$NON-NLS-1$
- assertEquals("parent category mismatched", testCategory, item.getCategory()); //$NON-NLS-1$
- assertEquals("item content incorrect", "sample content 0", item.getContentString()); //$NON-NLS-1$
- assertEquals("item description incorrect", "", item.getDescription()); //$NON-NLS-1$
- assertEquals("item label incorrect", "test item 0", item.getLabel()); //$NON-NLS-1$
- assertEquals("item source type incorrect", ISnippetsEntry.SNIPPET_SOURCE_PLUGINS, item.getSourceType()); //$NON-NLS-1$
- assertNotNull("item source description missing", item.getSourceDescriptor()); //$NON-NLS-1$
- assertEquals("item has extra variables", 0, item.getVariables().length); //$NON-NLS-1$
- assertTrue("item has visibility filters", item.getFilters().length == 0); //$NON-NLS-1$
- }
-
- public void testItem1LoadedFromPlugin() {
- ISnippetCategory testCategory = fCurrentDefinitions.getCategory("org.eclipse.wst.common.snippets.tests.category0"); //$NON-NLS-1$
- assertNotNull("test category not found", testCategory); //$NON-NLS-1$
- ISnippetItem item = fCurrentDefinitions.getItem("org.eclipse.wst.common.snippets.tests.item1"); //$NON-NLS-1$
- assertNotNull("test item 1 not found", item); //$NON-NLS-1$
- assertEquals("parent category mismatched", testCategory, item.getCategory()); //$NON-NLS-1$
- assertEquals("item content incorrect", "test content ${variableA} and more ${variableB}", item.getContentString()); //$NON-NLS-1$
- assertEquals("item description incorrect", "", item.getDescription()); //$NON-NLS-1$
- assertEquals("item label incorrect", "test item 1", item.getLabel()); //$NON-NLS-1$
- assertEquals("item source type incorrect", ISnippetsEntry.SNIPPET_SOURCE_PLUGINS, item.getSourceType()); //$NON-NLS-1$
- assertNotNull("item source description missing", item.getSourceDescriptor()); //$NON-NLS-1$
- assertTrue("item has visibility filters", item.getFilters().length == 0); //$NON-NLS-1$
- assertEquals("item has the wrong number of variables", 2, item.getVariables().length); //$NON-NLS-1$
-
- ISnippetVariable variable = getVariable(item, "variableA");
- assertNotNull("variable A missing", variable);
- assertEquals("variable has the wrong default value", "", variable.getDefaultValue()); //$NON-NLS-1$
- assertEquals("variable has the wrong description", "variable A", variable.getDescription()); //$NON-NLS-1$
- assertEquals("variable has the wrong name", "variableA", variable.getName()); //$NON-NLS-1$
-
- variable = getVariable(item, "variableB");
- assertNotNull("variable B missing", variable);
- assertEquals("variable has the wrong default value", "bfoo", variable.getDefaultValue()); //$NON-NLS-1$
- assertEquals("variable has the wrong description", "variable B", variable.getDescription()); //$NON-NLS-1$
- assertEquals("variable has the wrong name", "variableB", variable.getName()); //$NON-NLS-1$
- }
-}
diff --git a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/tests/AllTests.java b/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/tests/AllTests.java
deleted file mode 100644
index 6783855..0000000
--- a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/tests/AllTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.common.snippets.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.common.snippets.core.tests.SnippetCoreTests;
-import org.eclipse.wst.common.snippets.ui.tests.SnippetUITests;
-
-
-public class AllTests extends TestSuite {
-
- public static Test suite() {
- return new AllTests();
- }
-
- public AllTests() {
- super();
- addTest(new TestSuite(SnippetCoreTests.class));
- addTest(new TestSuite(SnippetUITests.class));
- }
-}
diff --git a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/tests/TestsPlugin.java b/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/tests/TestsPlugin.java
deleted file mode 100644
index 102b528..0000000
--- a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/tests/TestsPlugin.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.eclipse.wst.common.snippets.tests;
-
-import org.eclipse.ui.plugin.*;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class TestsPlugin extends AbstractUIPlugin {
-
- //The shared instance.
- private static TestsPlugin plugin;
-
- /**
- * The constructor.
- */
- public TestsPlugin() {
- plugin = this;
- }
-
- /**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * This method is called when the plug-in is stopped
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- }
-
- /**
- * Returns the shared instance.
- */
- public static TestsPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns an image descriptor for the image file at the given
- * plug-in relative path.
- *
- * @param path the path
- * @return the image descriptor
- */
- public static ImageDescriptor getImageDescriptor(String path) {
- return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.wst.common.snippets.tests", path);
- }
-}
diff --git a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/ui/tests/SnippetUITests.java b/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/ui/tests/SnippetUITests.java
deleted file mode 100644
index 99d7abc..0000000
--- a/org.eclipse.wst.common.snippets.tests/src/org/eclipse/wst/common/snippets/ui/tests/SnippetUITests.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.common.snippets.ui.tests;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-
-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.IPath;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.ui.IEditorDescriptor;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.WorkbenchException;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.wst.common.snippets.core.ISnippetItem;
-import org.eclipse.wst.common.snippets.internal.SnippetDefinitions;
-import org.eclipse.wst.common.snippets.internal.model.SnippetManager;
-import org.eclipse.wst.common.snippets.internal.ui.SnippetsView;
-import org.eclipse.wst.common.snippets.tests.TestsPlugin;
-
-
-public class SnippetUITests extends TestCase {
- private SnippetDefinitions fCurrentDefinitions;
-
- private IFile copyBundleEntryIntoWorkspace(String entryname, String fullPath) {
- IFile file = null;
- URL entry = TestsPlugin.getDefault().getBundle().getEntry(entryname);
- if (entry != null) {
- try {
- byte[] b = new byte[2048];
- InputStream input = entry.openStream();
- ByteArrayOutputStream output = new ByteArrayOutputStream();
- int i = -1;
- while ((i = input.read(b)) > -1) {
- output.write(b, 0, i);
- }
- file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(fullPath));
- if (file != null) {
- file.create(new ByteArrayInputStream(output.toByteArray()), true, new NullProgressMonitor());
- }
- }
- catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- catch (CoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- return file;
- }
-
- private IProject createSimpleProject(String name, IPath location, String[] natureIds) {
- IProjectDescription description = ResourcesPlugin.getWorkspace().newProjectDescription(name);
- if (location != null) {
- description.setLocation(location);
- }
- if (natureIds != null) {
- description.setNatureIds(natureIds);
- }
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
- try {
- project.create(description, new NullProgressMonitor());
- assertTrue(project.exists());
- project.open(new NullProgressMonitor());
- }
- catch (CoreException e) {
- e.printStackTrace();
- }
- return project;
- }
-
- private IWorkbenchPage getActivePage() throws WorkbenchException {
- IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- if (window == null) {
- window = PlatformUI.getWorkbench().openWorkbenchWindow(null);
- }
- IWorkbenchPage page = window.getActivePage();
- if (page == null) {
- page = window.openPage(null);
- }
- return page;
- }
-
- protected void setUp() throws Exception {
- super.setUp();
- fCurrentDefinitions = SnippetManager.getInstance().getDefinitions();
- }
-
- public void testInsertIntoActiveEditorNoVariables() throws Exception {
- IWorkbenchPage page = getActivePage();
- SnippetsView view = null;
- Object o;
- assertNotNull(o = page.showView("org.eclipse.wst.common.snippets.internal.ui.SnippetsView"));
- view = (SnippetsView) o;
- assertEquals("view part is wrong type", SnippetsView.class.getName(), o.getClass().getName());
-
- ISnippetItem item = fCurrentDefinitions.getItem("org.eclipse.wst.common.snippets.tests.item0"); //$NON-NLS-1$
- assertNotNull("test item 1 not found", item); //$NON-NLS-1$
-
- //IProject p =
- createSimpleProject("testInsertIntoActiveEditor", null, null);
- IFile testFile = copyBundleEntryIntoWorkspace("testfiles/testInsertIntoActiveEditor.txt", "testInsertIntoActiveEditor/testInsertIntoActiveEditor.txt");
- IEditorDescriptor descriptor = PlatformUI.getWorkbench().getEditorRegistry().getDefaultEditor(testFile.getName());
- assertTrue("no default editor found", descriptor != null);
- IEditorInput editorInput = new FileEditorInput(testFile);
- IEditorPart openedEditor = getActivePage().openEditor(editorInput, descriptor.getId(), true);
- assertTrue("no default text editor found", openedEditor instanceof ITextEditor);
-
- // use setSelectedEntry as that works the drag support
- view.setSelectedEntry(item);
-
- view.insert();
-
- IDocument document = ((ITextEditor) openedEditor).getDocumentProvider().getDocument(editorInput);
- assertEquals("resulting text does not match", "sample content 0", document.get());
- openedEditor.doSave(new NullProgressMonitor());
-
- PlatformUI.getWorkbench().saveAllEditors(false);
- }
-
- public void testOpenSnippetsView() throws CoreException {
- IWorkbenchPage page = getActivePage();
- Object o;
- assertNotNull(o = page.showView("org.eclipse.wst.common.snippets.internal.ui.SnippetsView"));
- assertEquals("view part is wrong type", SnippetsView.class.getName(), o.getClass().getName());
- }
-}
diff --git a/org.eclipse.wst.common.snippets.tests/test.xml b/org.eclipse.wst.common.snippets.tests/test.xml
deleted file mode 100644
index 9ec892a..0000000
--- a/org.eclipse.wst.common.snippets.tests/test.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0"?>
-
-<project
- name="testsuite"
- default="run"
- basedir=".">
- <!-- The property ${eclipse-home} should be passed into this script -->
- <!-- Set a meaningful default value for when it is not. -->
- <!-- <property name="eclipse-home" value="${basedir}\..\.." /> -->
-
- <echo message="basedir ${basedir}" />
- <echo message="eclipse place ${eclipse-home}" />
-
- <!-- sets the properties plugin-name, and library-file -->
- <property
- name="plugin-name"
- value="org.eclipse.wst.common.snippets.tests" />
- <property
- name="library-file"
- value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" />
-
- <!-- This target holds all initialization code that needs to be done for -->
- <!-- all tests that are to be run. Initialization for individual tests -->
- <!-- should be done within the body of the suite target. -->
- <target name="init">
- <tstamp />
- <delete>
- <fileset
- dir="${eclipse-home}"
- includes="org.eclipse.wst.common.snippets.tests.*xml" />
- </delete>
- </target>
-
- <!-- This target defines the tests that need to be run. -->
- <target name="suite">
- <property
- name="wst-folder"
- value="${eclipse-home}/wst_folder" />
- <delete
- dir="${wst-folder}"
- quiet="true" />
- <ant
- target="ui-test"
- antfile="${library-file}"
- dir="${eclipse-home}">
- <property
- name="data-dir"
- value="${wst-folder}" />
- <property
- name="plugin-name"
- value="${plugin-name}" />
- <property
- name="classname"
- value="org.eclipse.wst.common.snippets.tests.AllTests" />
- <property
- name="plugin-path"
- value="${eclipse-home}/plugins/${plugin-name}" />
- </ant>
- </target>
-
- <!-- This target holds code to cleanup the testing environment after -->
- <!-- after all of the tests have been run. You can use this target to -->
- <!-- delete temporary files that have been created. -->
- <target name="cleanup">
- <!--<delete dir="${workspace}" quiet="true" />-->
- </target>
-
- <!-- This target runs the test suite. Any actions that need to happen -->
- <!-- after all the tests have been run should go here. -->
- <target
- name="run"
- depends="init,suite,cleanup">
- <ant
- target="collect"
- antfile="${library-file}"
- dir="${eclipse-home}">
- <property
- name="includes"
- value="org.eclipse.wst.common.snippets.tests.*xml" />
- <property
- name="output-file"
- value="${plugin-name}.xml" />
- </ant>
- <!-- <emailResults resultsFile="${build-results-home}/${plugin-name}.xml" addresslist="david_williams@us.ibm.com" /> -->
- </target>
-
-</project>
\ No newline at end of file
diff --git a/org.eclipse.wst.common.snippets.tests/testfiles/testInsertIntoActiveEditor.txt b/org.eclipse.wst.common.snippets.tests/testfiles/testInsertIntoActiveEditor.txt
deleted file mode 100644
index e69de29..0000000
--- a/org.eclipse.wst.common.snippets.tests/testfiles/testInsertIntoActiveEditor.txt
+++ /dev/null