You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by mc...@apache.org on 2008/06/19 06:53:02 UTC

svn commit: r669388 - in /geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins: ./ org.apache.geronimo.devtools.helloworld/ org.apache.geronimo.devtools.helloworld/META-INF/ org.apache.geronimo.devtools.helloworld/src/ org.apache.geronimo.devtools....

Author: mcconne
Date: Wed Jun 18 21:53:01 2008
New Revision: 669388

URL: http://svn.apache.org/viewvc?rev=669388&view=rev
Log:
GERONIMODEVTOOLS-286 Updates to GEP automated testsuite

Added:
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.classpath
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.project
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/META-INF/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/META-INF/MANIFEST.MF
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml   (with props)
    geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml   (with props)

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.classpath
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.classpath?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.classpath (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.classpath Wed Jun 18 21:53:01 2008
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.project
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.project?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.project (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/.project Wed Jun 18 21:53:01 2008
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.apache.geronimo.devtools.helloworld</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>

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/META-INF/MANIFEST.MF?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/META-INF/MANIFEST.MF (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/META-INF/MANIFEST.MF Wed Jun 18 21:53:01 2008
@@ -0,0 +1,34 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Geronimo HelloWorld Testsuite Plugin
+Bundle-SymbolicName: org.apache.geronimo.devtools.helloworld;singleton:=true
+Bundle-Version: 2.1.1
+Bundle-Activator: org.apache.geronimo.devtools.helloworld.HelloWorldTestPlugin
+Bundle-Vendor: Apache.org
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.ui,
+ org.eclipse.ui.forms,
+ org.eclipse.ui.ide,
+ org.eclipse.ui.editors,
+ org.eclipse.ui.views,
+ org.eclipse.wst.server.core,
+ org.eclipse.jst.j2ee,
+ org.eclipse.jst.j2ee.web,
+ org.eclipse.jst.j2ee.ejb,
+ org.eclipse.jst.j2ee.jca,
+ org.eclipse.debug.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.wst.common.frameworks;visibility:=reexport,
+ org.eclipse.core.commands;visibility:=reexport,
+ org.eclipse.wst.server.core,
+ org.eclipse.jst.server.core;visibility:=reexport,
+ org.eclipse.jdt.launching;visibility:=reexport,
+ org.eclipse.wst.common.project.facet.core,
+ org.eclipse.jdt.core,
+ org.eclipse.debug.core,
+ org.eclipse.wst.web,
+ org.eclipse.jem.util
+Eclipse-LazyStart: true
+Export-Package: org.apache.geronimo.devtools.helloworld
+Import-Package: junit.framework;version="3.8.2"

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties Wed Jun 18 21:53:01 2008
@@ -0,0 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @version $Rev$ $Date$
+#
+pluginName=Geronimo HelloWorld Testsuite Plug-in
+providerName=Apache Software Foundation

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml Wed Jun 18 21:53:01 2008
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<!-- @version $Rev$ $Date$ -->
+
+<plugin
+    id="org.apache.geronimo.devtools.helloworld" 
+    name="%pluginName" 
+    provider-name="%providerName" 
+    version="2.1.1" 
+    class="org.apache.geronimo.devtools.helloworld.HelloWorldTestPlugin">
+
+    <requires>
+        <import plugin="org.eclipse.ui.ide" optional="true"/>
+        <import plugin="org.eclipse.jface.text" optional="true"/>
+        <import plugin="org.eclipse.ui.workbench.texteditor" optional="true"/>
+        <import plugin="org.eclipse.ui.editors" optional="true"/>
+        <import plugin="org.apache.ant"/>
+        <import plugin="org.junit"/>
+        <import plugin="org.eclipse.core.resources"/>
+        <import plugin="org.eclipse.jdt.core"/>
+        <import plugin="org.eclipse.jdt.launching"/>
+        <import plugin="org.eclipse.ui"/>
+        <import plugin="org.eclipse.ant.core"/>
+        <import plugin="org.eclipse.debug.core"/>
+        <import plugin="org.eclipse.debug.ui"/>
+        <import plugin="org.eclipse.ui.externaltools"/>
+        <import plugin="org.eclipse.ant.ui"/>
+        <import plugin="org.eclipse.core.runtime"/>
+        <import plugin="org.eclipse.ui.console"/>
+    </requires>
+
+</plugin>

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/plugin.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml Wed Jun 18 21:53:01 2008
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<!-- @version $Rev$ $Date$ -->
+
+<project>
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.geronimo.devtools</groupId>
+    <artifactId>org.apache.geronimo.devtools.helloworld</artifactId>
+    <packaging>jar</packaging>
+    <version>2.1.1</version>
+    <name>${artifactId}</name>
+
+    <parent>
+        <groupId>org.apache.geronimo.devtools</groupId>
+        <artifactId>testsuite-plugins</artifactId>
+        <version>2.1.1</version>
+    </parent>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>.</directory>
+                <includes>
+                    <include>test.xml</include>
+                    <include>plugin.xml</include>
+                    <include>plugin.properties</include>
+                </includes>
+            </resource>
+            <resource>
+                <targetPath>META-INF</targetPath>
+                <directory>..</directory>
+                <includes>
+                    <include>LICENSE</include>
+                    <include>NOTICE</include>
+                </includes>
+            </resource>
+        </resources>
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.geronimo.devtools</groupId>
+                <artifactId>maven-eclipsepde-plugin</artifactId>
+            </plugin>
+
+            <plugin>
+                <artifactId>maven-dependency-plugin</artifactId>
+            </plugin>
+
+            <!--
+             |
+             | Unzip the resulting target jar into the test-eclipse directory for later usage
+             |
+             -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${basedir}/../../launcher/test-eclipse/eclipse/plugins/org.apache.geronimo.devtools.helloworld-2.1.1"/>
+                                <unzip src="${project.build.directory}/org.apache.geronimo.devtools.helloworld-2.1.1.jar"
+                                      dest="${basedir}/../../launcher/test-eclipse/eclipse/plugins/org.apache.geronimo.devtools.helloworld-2.1.1"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin> 
+
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.devtools</groupId>
+            <artifactId>eclipse</artifactId>
+            <version>${version}</version>
+            <type>pom</type>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java Wed Jun 18 21:53:01 2008
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.devtools.helloworld;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.IWorkspaceDescription;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.Bundle;
+
+/**
+ * The activator class controls the plug-in life cycle
+ * 
+ * @version $Rev$ $Date$
+ */
+public class HelloWorldTestPlugin extends AbstractUIPlugin {
+	
+	private static HelloWorldTestPlugin plugin;
+	
+	public HelloWorldTestPlugin() {
+		super();
+		plugin = this;
+	}
+	
+	public static HelloWorldTestPlugin getDefault() {
+		return plugin;
+	}
+	
+	public static IWorkspace getWorkspace() {
+		return ResourcesPlugin.getWorkspace();
+	}
+	
+	public static void enableAutobuild(boolean enable) throws CoreException {
+		// disable auto build
+		IWorkspace workspace= HelloWorldTestPlugin.getWorkspace();
+		IWorkspaceDescription desc= workspace.getDescription();
+		desc.setAutoBuilding(enable);
+		workspace.setDescription(desc);
+	}
+	
+	public File getFileInPlugin(IPath path) {
+		try {
+			Bundle bundle = getDefault().getBundle();
+			URL installURL= new URL(bundle.getEntry("/"), path.toString());
+			URL localURL= FileLocator.toFileURL(installURL);
+			return new File(localURL.getFile());
+		} catch (IOException e) {
+			return null;
+		}
+	}
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTestPlugin.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java Wed Jun 18 21:53:01 2008
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.devtools.helloworld;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Test suite for the Hello World UI
+ * 
+ * @version $Rev$ $Date$
+ */
+public class HelloWorldTests extends TestSuite {
+
+    public static Test suite() {
+
+        TestSuite suite= new HelloWorldTests();
+        suite.setName("Hello World UI Unit Tests");
+		suite.addTest(new TestSuite(PerspectiveTests.class));		
+        return suite;
+    }
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/HelloWorldTests.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java Wed Jun 18 21:53:01 2008
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.devtools.helloworld;
+
+import junit.framework.TestCase;
+
+import org.eclipse.debug.internal.ui.DebugUIPlugin;
+import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.ui.IPerspectiveDescriptor;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class PerspectiveTests extends TestCase {
+
+    public void testDebugPerspective() {
+        DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
+            public void run() {
+                IWorkbench workbench = PlatformUI.getWorkbench();
+                IPerspectiveDescriptor descriptor = workbench.getPerspectiveRegistry().findPerspectiveWithId(IDebugUIConstants.ID_DEBUG_PERSPECTIVE);
+                workbench.getActiveWorkbenchWindow().getActivePage().setPerspective(descriptor);
+            }
+        });
+    }
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/src/main/java/org/apache/geronimo/testsuite/helloworld/PerspectiveTests.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml Wed Jun 18 21:53:01 2008
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<!-- @version $Rev$ $Date$ -->
+
+<project name="testsuite" default="run" basedir=".">
+
+    <!-- sets the properties eclipse-home, and library-file -->
+    <!-- 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}\..\.."/>
+    <property name="plugin-name" value="org.apache.geronimo.devtools.helloworld"/>
+    <property name="library-file"
+              value="${eclipse-home}/plugins/org.eclipse.test/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*.xml"/>
+        </delete>
+    </target>
+
+    <!-- This target defines the tests that need to be run. -->
+    <target name="suite">
+        <property name="jdt-folder"
+                  value="${eclipse-home}/jdt_folder"/>
+        <delete dir="${jdt-folder}" quiet="true"/>
+        <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
+            <property name="data-dir" value="${jdt-folder}"/>
+            <property name="plugin-name" value="${plugin-name}"/>
+            <property name="classname"
+                      value="org.apache.geronimo.devtools.helloworld.HelloWorldTests"/>
+        </ant>
+    </target>
+	
+    <!-- This target defines the performance tests that need to be run. -->
+    <target name="perfsuite">
+        <property name="jdt-folder"
+                  value="${eclipse-home}/jdt_folder"/>
+        <delete dir="${jdt-folder}" quiet="true"/>
+        <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
+            <property name="data-dir" value="${jdt-folder}"/>
+            <property name="plugin-name" value="${plugin-name}"/>
+            <property name="classname"
+                      value="org.apache.geronimo.devtools.helloworld.HelloWorldTests"/>
+        </ant>
+    </target>
+
+    <!-- This target holds code to cleanup the testing environment after -->
+    <!-- after all of the tests have been run. You can use this target to -->
+    <!-- delete temporary files that have been created. -->
+    <target name="cleanup">
+    </target>
+
+    <!-- This target runs the test suite. Any actions that need to happen -->
+    <!-- after all the tests have been run should go here. -->
+    <target name="run" depends="init,suite,cleanup">
+        <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
+            <property name="includes" value="org*.xml"/>
+            <property name="output-file" value="${plugin-name}.xml"/>
+        </ant>
+    </target>
+
+    <!--This target runs the performance test suites and collects results.-->
+    <target name="performance" depends="init, perfsuite, cleanup">
+        <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
+            <property name="includes" value="org*.xml"/>
+            <property name="output-file" value="${plugin-name}.xml"/>
+        </ant>
+    </target>
+
+</project>

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.devtools.helloworld/test.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml?rev=669388&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml (added)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml Wed Jun 18 21:53:01 2008
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+        
+<!-- @version $Rev$ $Date$ -->
+        
+<project>
+        
+    <modelVersion>4.0.0</modelVersion>
+        
+    <groupId>org.apache.geronimo.devtools</groupId>
+    <artifactId>testsuite-plugins</artifactId>
+    <packaging>pom</packaging>
+    <version>2.1.1</version>
+    <name>Geronimo Devtools Testsuite :: Plugins</name>
+        
+    <parent>
+        <groupId>org.apache.geronimo.devtools</groupId>
+        <artifactId>geronimo-eclipse-plugin</artifactId>
+        <version>2.1.1</version>
+    </parent>
+        
+    <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.geronimo.devtools</groupId>
+                    <artifactId>maven-eclipsepde-plugin</artifactId>
+                    <executions>
+                        <execution>
+                            <id>initialize</id>
+                            <phase>validate</phase>
+                            <goals>
+                                <goal>manifestbundles</goal>
+                                <goal>install</goal>
+                            </goals>
+                        </execution>
+                        <execution>
+                            <id>validate-bundle-classpath</id>
+                            <phase>process-resources</phase>
+                            <goals>
+                                <goal>validatemanifest</goal>
+                            </goals>
+                            <configuration>
+                                <classpathEntriesDir>lib</classpathEntriesDir>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-antrun-plugin</artifactId>
+                    <executions>
+                        <!-- workaround for bugzilla 147936 -->
+                        <execution>
+                            <id>backup</id>
+                            <phase>process-sources</phase>
+                            <configuration>
+                                <tasks>
+                                    <copy file="${basedir}/.classpath" todir="${project.build.directory}" overwrite="false" failonerror="false"/>
+                                    <copy file="${basedir}/.project" todir="${project.build.directory}" overwrite="false" failonerror="false"/>
+                                </tasks>
+                            </configuration>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                        </execution>
+                        <execution>
+                            <id>restore</id>
+                            <phase>compile</phase>
+                            <configuration>
+                                <tasks>
+                                    <copy file="${project.build.directory}/.classpath" todir="${basedir}" overwrite="true" failonerror="false"/>
+                                    <copy file="${project.build.directory}/.project" todir="${basedir}" overwrite="true" failonerror="false"/>
+                                </tasks>
+                            </configuration>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                        </execution>
+                        <!-- /workaround -->
+                    </executions>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+        
+    <modules>
+        <module>org.apache.geronimo.devtools.helloworld</module>
+    </modules>
+        
+</project>

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/testsuite/plugins/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml