Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 1 commit
  • 116 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jun 29, 2012
@mickaelistria mickaelistria 359024: Move to Tycho f8555ad
Showing with 1,307 additions and 2,813 deletions.
  1. +26 −0 examples/rcp/org.rcpmail.test/pom.xml
  2. +26 −0 examples/rcp/org.rcpmail/pom.xml
  3. +3 −2 org.eclipse.swt.examples/META-INF/MANIFEST.MF
  4. +26 −0 org.eclipse.swt.examples/pom.xml
  5. +1 −1  {org.eclipse.swtbot.ant.optional.junit4 → org.eclipse.swtbot.ant.junit}/.project
  6. +3 −3 {org.eclipse.swtbot.ant.optional.junit4 → org.eclipse.swtbot.ant.junit}/META-INF/MANIFEST.MF
  7. 0  {org.eclipse.swtbot.ant.optional.junit4 → org.eclipse.swtbot.ant.junit}/about.html
  8. 0  {org.eclipse.swtbot.ant.optional.junit4 → org.eclipse.swtbot.ant.junit}/build.properties
  9. +26 −0 org.eclipse.swtbot.ant.junit/pom.xml
  10. +1 −1  org.eclipse.swtbot.ant.optional.junit3/.project
  11. +0 −10 org.eclipse.swtbot.ant.optional.junit3/META-INF/MANIFEST.MF
  12. +0 −28 org.eclipse.swtbot.ant.optional.junit3/about.html
  13. +0 −12 org.eclipse.swtbot.ant.optional.junit3/build.properties
  14. +26 −0 org.eclipse.swtbot.eclipse.core/pom.xml
  15. +0 −7 org.eclipse.swtbot.eclipse.dsl.test/.classpath
  16. +0 −8 org.eclipse.swtbot.eclipse.dsl.test/.settings/org.eclipse.jdt.core.prefs
  17. +0 −12 org.eclipse.swtbot.eclipse.dsl.test/META-INF/MANIFEST.MF
  18. +0 −15 org.eclipse.swtbot.eclipse.dsl.test/build.properties
  19. 0  org.eclipse.swtbot.eclipse.dsl.test/src/removeMe.txt
  20. +2 −2 org.eclipse.swtbot.eclipse.dsl/META-INF/MANIFEST.MF
  21. +26 −0 org.eclipse.swtbot.eclipse.dsl/pom.xml
  22. +5 −1 org.eclipse.swtbot.eclipse.finder.test/META-INF/MANIFEST.MF
  23. +42 −0 org.eclipse.swtbot.eclipse.finder.test/pom.xml
  24. +11 −0 org.eclipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/widgets/helpers/NewJavaClass.java
  25. +12 −0 ...clipse.swtbot.eclipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/widgets/helpers/NewJavaProject.java
  26. +5 −9 org.eclipse.swtbot.eclipse.finder/META-INF/MANIFEST.MF
  27. +26 −0 org.eclipse.swtbot.eclipse.finder/pom.xml
  28. +4 −4 org.eclipse.swtbot.eclipse.gef.finder/META-INF/MANIFEST.MF
  29. +26 −0 org.eclipse.swtbot.eclipse.gef.finder/pom.xml
  30. +26 −0 org.eclipse.swtbot.eclipse.gef/pom.xml
  31. 0  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/.classpath
  32. +1 −1  {org.eclipse.swtbot.eclipse.dsl.test → org.eclipse.swtbot.eclipse.junit.headless}/.project
  33. 0  ...ipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/.settings/org.eclipse.jdt.core.prefs
  34. 0  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/JUNIT.XSL
  35. 0  {org.eclipse.swtbot.updatesite → org.eclipse.swtbot.eclipse.junit.headless}/LICENSE.EPL
  36. +3 −3 ...lipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/META-INF/MANIFEST.MF
  37. 0  {org.eclipse.swtbot.updatesite → org.eclipse.swtbot.eclipse.junit.headless}/about.html
  38. 0  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/build.properties
  39. 0  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/library.xml
  40. +1 −1  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.eclipse.junit.headless}/plugin.xml
  41. +26 −0 org.eclipse.swtbot.eclipse.junit.headless/pom.xml
  42. +1 −1  ...eclipse.swtbot.eclipse.junit.headless/src/org/eclipse/swtbot/eclipse/junit}/headless/EclipseTestRunner.java
  43. +1 −1  ...eclipse.swtbot.eclipse.junit.headless/src/org/eclipse/swtbot/eclipse/junit}/headless/UITestApplication.java
  44. +0 −28 org.eclipse.swtbot.eclipse.junit3.headless/.project
  45. +0 −8 org.eclipse.swtbot.eclipse.junit3.headless/.settings/org.eclipse.jdt.core.prefs
  46. +0 −465 org.eclipse.swtbot.eclipse.junit3.headless/JUNIT.XSL
  47. +0 −70 org.eclipse.swtbot.eclipse.junit3.headless/LICENSE.EPL
  48. +0 −19 org.eclipse.swtbot.eclipse.junit3.headless/META-INF/MANIFEST.MF
  49. +0 −28 org.eclipse.swtbot.eclipse.junit3.headless/about.html
  50. +0 −22 org.eclipse.swtbot.eclipse.junit3.headless/build.properties
  51. +0 −206 org.eclipse.swtbot.eclipse.junit3.headless/library.xml
  52. +0 −19 org.eclipse.swtbot.eclipse.junit3.headless/plugin.xml
  53. +0 −500 ...clipse.swtbot.eclipse.junit3.headless/src/org/eclipse/swtbot/eclipse/junit3/headless/EclipseTestRunner.java
  54. +0 −123 ...clipse.swtbot.eclipse.junit3.headless/src/org/eclipse/swtbot/eclipse/junit3/headless/UITestApplication.java
  55. +1 −3 org.eclipse.swtbot.eclipse.spy/META-INF/MANIFEST.MF
  56. +26 −0 org.eclipse.swtbot.eclipse.spy/pom.xml
  57. +1 −1  {org.eclipse.swtbot.eclipse.test.junit3 → org.eclipse.swtbot.eclipse.test.junit}/.project
  58. 0  {org.eclipse.swtbot.eclipse.test.junit4 → org.eclipse.swtbot.eclipse.test.junit}/build.properties
  59. 0  {org.eclipse.swtbot.eclipse.test.junit4 → org.eclipse.swtbot.eclipse.test.junit}/epl-v10.html
  60. 0  {org.eclipse.swtbot.eclipse.test.junit4 → org.eclipse.swtbot.eclipse.test.junit}/feature.properties
  61. +5 −5 {org.eclipse.swtbot.eclipse.test.junit3 → org.eclipse.swtbot.eclipse.test.junit}/feature.xml
  62. 0  {org.eclipse.swtbot.eclipse.test.junit4 → org.eclipse.swtbot.eclipse.test.junit}/license.html
  63. +26 −0 org.eclipse.swtbot.eclipse.test.junit/pom.xml
  64. +0 −10 org.eclipse.swtbot.eclipse.test.junit3/build.properties
  65. +0 −328 org.eclipse.swtbot.eclipse.test.junit3/epl-v10.html
  66. +0 −140 org.eclipse.swtbot.eclipse.test.junit3/feature.properties
  67. +0 −107 org.eclipse.swtbot.eclipse.test.junit3/license.html
  68. +0 −43 org.eclipse.swtbot.eclipse.test.junit4/feature.xml
  69. +41 −0 org.eclipse.swtbot.eclipse.ui.test/pom.xml
  70. +1 −2  org.eclipse.swtbot.eclipse.ui/META-INF/MANIFEST.MF
  71. +26 −0 org.eclipse.swtbot.eclipse.ui/pom.xml
  72. +26 −0 org.eclipse.swtbot.eclipse/pom.xml
  73. +2 −1  org.eclipse.swtbot.forms.finder.test/META-INF/MANIFEST.MF
  74. +41 −0 org.eclipse.swtbot.forms.finder.test/pom.xml
  75. +3 −3 org.eclipse.swtbot.forms.finder/META-INF/MANIFEST.MF
  76. +26 −0 org.eclipse.swtbot.forms.finder/pom.xml
  77. +26 −0 org.eclipse.swtbot.forms/pom.xml
  78. +21 −0 org.eclipse.swtbot.generator.test/pom.xml
  79. +26 −0 org.eclipse.swtbot.generator/pom.xml
  80. +26 −0 org.eclipse.swtbot.go/pom.xml
  81. +26 −0 org.eclipse.swtbot.ide/pom.xml
  82. +26 −0 org.eclipse.swtbot.junit4_x/pom.xml
  83. +26 −0 org.eclipse.swtbot.swt.demo/pom.xml
  84. 0  {org.eclipse.swtbot.eclipse.junit3.headless → org.eclipse.swtbot.swt.finder.test.keyboards}/.classpath
  85. +1 −1  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.swt.finder.test.keyboards}/.project
  86. 0  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.swt.finder.test.keyboards}/LICENSE.EPL
  87. +8 −0 org.eclipse.swtbot.swt.finder.test.keyboards/META-INF/MANIFEST.MF
  88. 0  {org.eclipse.swtbot.eclipse.junit4.headless → org.eclipse.swtbot.swt.finder.test.keyboards}/about.html
  89. +4 −0 org.eclipse.swtbot.swt.finder.test.keyboards/build.properties
  90. +26 −0 org.eclipse.swtbot.swt.finder.test.keyboards/pom.xml
  91. +1 −0  org.eclipse.swtbot.swt.finder.test.keyboards/src/com/foo/bar/BAZ.keyboard
  92. +1 −0  org.eclipse.swtbot.swt.finder.test.keyboards/src/com/foo/bar/MAC_FOOBAR.keyboard
  93. +2 −2 org.eclipse.swtbot.swt.finder.test/META-INF/MANIFEST.MF
  94. +72 −0 org.eclipse.swtbot.swt.finder.test/pom.xml
  95. +9 −1 org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTableClickTest.java
  96. +10 −1 org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTableDoubleClickTest.java
  97. +2 −1  org.eclipse.swtbot.swt.finder/META-INF/MANIFEST.MF
  98. +26 −0 org.eclipse.swtbot.swt.finder/pom.xml
  99. +9 −9 org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/ReferenceBy.java
  100. +10 −14 org.eclipse.swtbot.test/feature.xml
  101. +26 −0 org.eclipse.swtbot.test/pom.xml
  102. +0 −165 org.eclipse.swtbot.updatesite/build.xml
  103. +24 −0 org.eclipse.swtbot.updatesite/category.xml
  104. +0 −60 org.eclipse.swtbot.updatesite/index.html
  105. +26 −0 org.eclipse.swtbot.updatesite/pom.xml
  106. +0 −40 org.eclipse.swtbot.updatesite/site.template.categories.xml
  107. +0 −1  org.eclipse.swtbot.updatesite/site.template.footer.xml
  108. +0 −5 org.eclipse.swtbot.updatesite/site.template.header.xml
  109. +0 −30 org.eclipse.swtbot.updatesite/site.template.org.eclipse.swtbot.featurelist.xml
  110. +0 −3  org.eclipse.swtbot.updatesite/site.template.org.eclipse.swtbot.pluginarchivelist.xml
  111. +0 −12 org.eclipse.swtbot.updatesite/web/site.css
  112. +0 −214 org.eclipse.swtbot.updatesite/web/site.xsl
  113. +26 −0 org.eclipse.swtbot/pom.xml
  114. +1 −1  org.eclipse.ui.forms.examples/META-INF/MANIFEST.MF
  115. +26 −0 org.eclipse.ui.forms.examples/pom.xml
  116. +239 −0 pom.xml
View
26 examples/rcp/org.rcpmail.test/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.plugins</groupId>
+ <artifactId>org.rcpmail.test</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
26 examples/rcp/org.rcpmail/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.plugins</groupId>
+ <artifactId>org.rcpmail</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
5 org.eclipse.swt.examples/META-INF/MANIFEST.MF
@@ -5,7 +5,8 @@ Bundle-SymbolicName: org.eclipse.swt.examples;singleton:=true
Bundle-Version: 2.0.5.qualifier
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
-Export-Package: org.eclipse.swt.examples.addressbook,
+Export-Package: org.eclipse.jface.snippets.viewers,
+ org.eclipse.swt.examples.addressbook,
org.eclipse.swt.examples.browserexample,
org.eclipse.swt.examples.clipboard,
org.eclipse.swt.examples.controlexample,
@@ -22,7 +23,6 @@ Export-Package: org.eclipse.swt.examples.addressbook,
Bundle-Vendor: Eclipse.org - SWTBot
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: org.eclipse.core.commands.common,
- org.eclipse.core.runtime,
org.eclipse.jface.viewers,
org.eclipse.swt,
org.eclipse.swt.accessibility,
@@ -35,3 +35,4 @@ Import-Package: org.eclipse.core.commands.common,
org.eclipse.swt.printing,
org.eclipse.swt.program,
org.eclipse.swt.widgets
+Require-Bundle: org.eclipse.core.runtime;bundle-version="3.6.0"
View
26 org.eclipse.swt.examples/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.test</groupId>
+ <artifactId>org.eclipse.swt.examples</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
2  ...lipse.swtbot.ant.optional.junit4/.project → org.eclipse.swtbot.ant.junit/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.eclipse.swtbot.ant.optional.junit4</name>
+ <name>org.eclipse.swtbot.ant.junit</name>
<comment></comment>
<projects>
</projects>
View
6 ....ant.optional.junit4/META-INF/MANIFEST.MF → ...pse.swtbot.ant.junit/META-INF/MANIFEST.MF
@@ -1,10 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Headless Ant support for JUnit4
-Bundle-SymbolicName: org.eclipse.swtbot.ant.optional.junit4
+Bundle-Name: Headless Ant support for JUnit
+Bundle-SymbolicName: org.eclipse.swtbot.ant.junit
Bundle-Version: 2.0.5.qualifier
Fragment-Host: org.apache.ant
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime.compatibility,
- org.junit4
+ org.junit
Bundle-Vendor: Eclipse.org - SWTBot
View
0  ...pse.swtbot.ant.optional.junit4/about.html → org.eclipse.swtbot.ant.junit/about.html
File renamed without changes
View
0  ...tbot.ant.optional.junit4/build.properties → ...eclipse.swtbot.ant.junit/build.properties
File renamed without changes
View
26 org.eclipse.swtbot.ant.junit/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.plugins</groupId>
+ <artifactId>org.eclipse.swtbot.ant.junit</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
2  org.eclipse.swtbot.ant.optional.junit3/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.eclipse.swtbot.ant.optional.junit3</name>
+ <name>org.eclipse.swtbot.ant.junit</name>
<comment></comment>
<projects>
</projects>
View
10 org.eclipse.swtbot.ant.optional.junit3/META-INF/MANIFEST.MF
@@ -1,10 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Headless Ant support for JUnit3 (deprecated), use JUnit4 instead.
-Bundle-SymbolicName: org.eclipse.swtbot.ant.optional.junit3
-Bundle-Version: 2.0.5.qualifier
-Fragment-Host: org.apache.ant
-Bundle-Localization: plugin
-Require-Bundle: org.eclipse.core.runtime.compatibility,
- org.junit
-Bundle-Vendor: Eclipse.org - SWTBot
View
28 org.eclipse.swtbot.ant.optional.junit3/about.html
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>May 2, 2006</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; 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 (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
View
12 org.eclipse.swtbot.ant.optional.junit3/build.properties
@@ -1,12 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2007 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-bin.includes = about.html,\
- META-INF/
View
26 org.eclipse.swtbot.eclipse.core/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.features</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.core</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
7 org.eclipse.swtbot.eclipse.dsl.test/.classpath
@@ -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>
View
8 org.eclipse.swtbot.eclipse.dsl.test/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +0,0 @@
-#Tue Jan 13 09:06:46 IST 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
View
12 org.eclipse.swtbot.eclipse.dsl.test/META-INF/MANIFEST.MF
@@ -1,12 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: SWTBot Dsl for Eclipse IDE (incubation)
-Bundle-SymbolicName: org.eclipse.swtbot.eclipse.dsl.test
-Bundle-Version: 2.0.5.qualifier
-Bundle-Vendor: Eclipse.org - SWTBot
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.swtbot.eclipse.dsl,
- org.junit4
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
View
15 org.eclipse.swtbot.eclipse.dsl.test/build.properties
@@ -1,15 +0,0 @@
-###############################################################################
-# Copyright (c) 2010 Ketan Padegaonkar 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:
-# Ketan Padegaonkar - initial API and implementation
-###############################################################################
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- src/
View
0  org.eclipse.swtbot.eclipse.dsl.test/src/removeMe.txt
No changes.
View
4 org.eclipse.swtbot.eclipse.dsl/META-INF/MANIFEST.MF
@@ -17,7 +17,7 @@ Import-Package: org.apache.log4j;version="[1.2.13,1.3.0)",
org.eclipse.swtbot.swt.finder.results,
org.eclipse.swtbot.swt.finder.utils,
org.eclipse.swtbot.swt.finder.widgets,
- org.eclipse.ui,
org.eclipse.ui.plugin,
- org.hamcrest;version="1.1.0",
org.osgi.framework;version="1.4.0"
+Require-Bundle: org.eclipse.ui.workbench;bundle-version="3.6.0",
+ org.hamcrest.core;bundle-version="1.1.0"
View
26 org.eclipse.swtbot.eclipse.dsl/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.features</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.dsl</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
6 org.eclipse.swtbot.eclipse.finder.test/META-INF/MANIFEST.MF
@@ -14,7 +14,11 @@ Require-Bundle: org.eclipse.jface.text,
org.hamcrest,
org.junit4,
org.apache.log4j;bundle-version="[1.2.13,1.3.0)",
- org.eclipse.swtbot.junit4_x
+ org.eclipse.swtbot.junit4_x,
+ org.eclipse.jdt.ui;bundle-version="3.6.0",
+ org.eclipse.ui.intro,
+ org.eclipse.ui.intro.universal,
+ org.eclipse.sdk;bundle-version="3.6.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: Eclipse.org - SWTBot
Eclipse-RegisterBuddy: org.apache.log4j
View
42 org.eclipse.swtbot.eclipse.finder.test/pom.xml
@@ -0,0 +1,42 @@
+<!-- Copyright (c) 2011 PetalsLink. 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 Authors: * Mickael Istria (PetalsLink) -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.features</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.finder.test</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-test-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <!-- tycho.testArgLine repeated to re-use the configuration for argLine for jacoco agent -->
+ <argLine>${tycho.testArgLine} -Xms64m -Xmx1024m -XX:MaxPermSize=128M</argLine>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>false</useUIThread>
+ <product>org.eclipse.sdk.ide</product>
+ <application>org.eclipse.ui.ide.workbench</application>
+ <testSuite>org.eclipse.swtbot.eclipse.finder.test</testSuite>
+ <testClass>org.eclipse.swtbot.eclipse.finder.AllTests</testClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+</project>
View
11 ...lipse.finder.test/src/org/eclipse/swtbot/eclipse/finder/widgets/helpers/NewJavaClass.java
@@ -12,6 +12,7 @@
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.waits.Conditions;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
/**
@@ -25,6 +26,16 @@
private SWTWorkbenchBot bot = new SWTWorkbenchBot();
public void createClass(String packageName, String className) {
+ try {
+ SWTBotMenu windowMenu = bot.menu("Window");
+ SWTBotMenu perspectiveMenu = windowMenu.menu("Open Perspective");
+ SWTBotMenu javaPerspectiveMenu = perspectiveMenu.menu("Java");
+ if (javaPerspectiveMenu.isVisible() && javaPerspectiveMenu.isEnabled()) {
+ javaPerspectiveMenu.click();
+ }
+ } catch (Exception ex) {
+ // Java menu not available: already selected
+ }
bot.menu("File").menu("New").menu("Class").click();
SWTBotShell shell = bot.shell("New Java Class");
shell.activate();
View
12 ...pse.finder.test/src/org/eclipse/swtbot/eclipse/finder/widgets/helpers/NewJavaProject.java
@@ -12,6 +12,7 @@
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.waits.Conditions;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
/**
@@ -25,7 +26,18 @@
private SWTWorkbenchBot bot = new SWTWorkbenchBot();
public void createProject(String projectName) throws Exception {
+ try {
+ SWTBotMenu windowMenu = bot.menu("Window");
+ SWTBotMenu perspectiveMenu = windowMenu.menu("Open Perspective");
+ SWTBotMenu javaPerspectiveMenu = perspectiveMenu.menu("Java");
+ if (javaPerspectiveMenu.isVisible() && javaPerspectiveMenu.isEnabled()) {
+ javaPerspectiveMenu.click();
+ }
+ } catch (Exception ex) {
+ // Java menu not available: already selected
+ }
bot.menu("File").menu("New").menu("Java Project").click();
+
SWTBotShell shell = bot.shell("New Java Project");
shell.activate();
View
14 org.eclipse.swtbot.eclipse.finder/META-INF/MANIFEST.MF
@@ -26,13 +26,9 @@ Import-Package: javax.swing.text,
org.eclipse.swt.custom,
org.eclipse.swt.graphics,
org.eclipse.swt.widgets,
- org.eclipse.ui;ui.workbench=split,
- org.eclipse.ui.commands,
- org.eclipse.ui.handlers,
- org.eclipse.ui.internal,
- org.eclipse.ui.menus,
- org.eclipse.ui.plugin,
- org.eclipse.ui.texteditor;resolution:=optional,
- org.hamcrest;version="1.1.0",
org.osgi.framework;version="1.4.0"
-Require-Bundle: org.eclipse.swtbot.swt.finder;visibility:=reexport
+Require-Bundle: org.eclipse.swtbot.swt.finder;visibility:=reexport,
+ org.hamcrest.core;bundle-version="1.1.0",
+ org.hamcrest;bundle-version="1.1.0",
+ org.eclipse.ui;bundle-version="3.6.0",
+ org.eclipse.ui.editors;bundle-version="3.6.0"
View
26 org.eclipse.swtbot.eclipse.finder/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.features</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.finder</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <packaging>eclipse-plugin</packaging>
+</project>
View
8 org.eclipse.swtbot.eclipse.gef.finder/META-INF/MANIFEST.MF
@@ -24,9 +24,9 @@ Import-Package: org.apache.log4j;version="[1.2.13,1.3.0)",
org.eclipse.swt,
org.eclipse.swt.events,
org.eclipse.swt.widgets,
- org.eclipse.ui,
- org.eclipse.ui.internal,
- org.hamcrest;version="1.1.0",
org.hamcrest.core;version="1.1.0",
org.junit;version="4.5.0"
-Require-Bundle: org.eclipse.swtbot.eclipse.finder;visibility:=reexport
+Require-Bundle: org.eclipse.swtbot.eclipse.finder;visibility:=reexport,
+ org.eclipse.ui.workbench;bundle-version="3.6.0",
+ org.hamcrest.core;bundle-version="1.1.0",
+ org.hamcrest;bundle-version="1.1.0"
View
26 org.eclipse.swtbot.eclipse.gef.finder/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.plugins</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.gef.finder</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
26 org.eclipse.swtbot.eclipse.gef/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.features</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.gef</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
0  ...swtbot.eclipse.junit4.headless/.classpath → ....swtbot.eclipse.junit.headless/.classpath
File renamed without changes
View
2  org.eclipse.swtbot.eclipse.dsl.test/.project → ...se.swtbot.eclipse.junit.headless/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.eclipse.swtbot.eclipse.dsl.test</name>
+ <name>org.eclipse.swtbot.eclipse.junit.headless</name>
<comment></comment>
<projects>
</projects>
View
0  ...less/.settings/org.eclipse.jdt.core.prefs → ...less/.settings/org.eclipse.jdt.core.prefs
File renamed without changes
View
0  ....swtbot.eclipse.junit4.headless/JUNIT.XSL → ...e.swtbot.eclipse.junit.headless/JUNIT.XSL
File renamed without changes
View
0  org.eclipse.swtbot.updatesite/LICENSE.EPL → ...swtbot.eclipse.junit.headless/LICENSE.EPL
File renamed without changes
View
6 ...ipse.junit4.headless/META-INF/MANIFEST.MF → ...lipse.junit.headless/META-INF/MANIFEST.MF
@@ -1,12 +1,12 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: SWTBot Headless JUnit4 Launch Plug-in (incubation)
-Bundle-SymbolicName: org.eclipse.swtbot.eclipse.junit4.headless;singleton:=true
+Bundle-SymbolicName: org.eclipse.swtbot.eclipse.junit.headless;singleton:=true
Bundle-Version: 2.0.5.qualifier
Bundle-Vendor: Eclipse.org - SWTBot
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.swtbot.eclipse.junit4.headless
+Export-Package: org.eclipse.swtbot.eclipse.junit.headless
Import-Package: junit.framework;version="4.5.0",
org.apache.tools.ant,
org.apache.tools.ant.taskdefs.optional.junit,
@@ -14,6 +14,6 @@ Import-Package: junit.framework;version="4.5.0",
org.eclipse.equinox.app;version="1.0.0",
org.eclipse.osgi.util;version="1.1.0",
org.eclipse.swt.widgets,
- org.eclipse.ui,
org.eclipse.ui.testing,
org.osgi.framework;version="1.4.0"
+Require-Bundle: org.eclipse.ui.workbench;bundle-version="3.6.0"
View
0  org.eclipse.swtbot.updatesite/about.html → ....swtbot.eclipse.junit.headless/about.html
File renamed without changes
View
0  ....eclipse.junit4.headless/build.properties → ...t.eclipse.junit.headless/build.properties
File renamed without changes
View
0  ...wtbot.eclipse.junit4.headless/library.xml → ...swtbot.eclipse.junit.headless/library.xml
File renamed without changes
View
2  ...swtbot.eclipse.junit4.headless/plugin.xml → ....swtbot.eclipse.junit.headless/plugin.xml
@@ -7,7 +7,7 @@
<application
visible="false">
<run
- class="org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication">
+ class="org.eclipse.swtbot.eclipse.junit.headless.UITestApplication">
<parameter
name="productInfo"
value="product.ini">
View
26 org.eclipse.swtbot.eclipse.junit.headless/pom.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (c) 2011 PetalsLink.
+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
+
+Authors:
+* Mickael Istria (PetalsLink)
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.eclipse.swtbot.plugins</groupId>
+ <artifactId>org.eclipse.swtbot.eclipse.junit.headless</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <parent>
+ <groupId>org.eclipse.swtbot</groupId>
+ <artifactId>parent</artifactId>
+ <version>2.0.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+</project>
View
2  ...se/junit4/headless/EclipseTestRunner.java → ...pse/junit/headless/EclipseTestRunner.java
@@ -8,7 +8,7 @@
* Contributors:
* Ketan Padegaonkar - initial API and implementation
*******************************************************************************/
-package org.eclipse.swtbot.eclipse.junit4.headless;
+package org.eclipse.swtbot.eclipse.junit.headless;
import java.io.ByteArrayOutputStream;
import java.io.File;
View
2  ...se/junit4/headless/UITestApplication.java → ...pse/junit/headless/UITestApplication.java
@@ -8,7 +8,7 @@
* Contributors:
* Ketan Padegaonkar - initial API and implementation
*******************************************************************************/
-package org.eclipse.swtbot.eclipse.junit4.headless;
+package org.eclipse.swtbot.eclipse.junit.headless;
import java.io.IOException;
View
28 org.eclipse.swtbot.eclipse.junit3.headless/.project
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.swtbot.eclipse.junit3.headless</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>
View
8 org.eclipse.swtbot.eclipse.junit3.headless/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +0,0 @@
-#Tue Dec 16 23:22:49 IST 2008
-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
View
465 org.eclipse.swtbot.eclipse.junit3.headless/JUNIT.XSL
@@ -1,465 +0,0 @@
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-<xsl:param name="screenshot_dir">.</xsl:param>
-<xsl:param name="screenshot_format">jpeg</xsl:param>
-<xsl:output method="html" indent="yes"/>
-<xsl:decimal-format decimal-separator="." grouping-separator="," />
-
-<xsl:template match="testsuites">
- <HTML>
- <HEAD>
- <style type="text/css">
- body {
- font:normal 68% verdana,arial,helvetica;
- color:#000000;
- }
- table tr td, table tr th {
- font-size: 68%;
- }
- table.details tr th{
- font-weight: bold;
- text-align:left;
- background:#a6caf0;
- }
- table.details tr td{
- background:#eeeee0;
- }
-
- p {
- line-height:1.5em;
- margin-top:0.5em; margin-bottom:1.0em;
- }
- h1 {
- margin: 0px 0px 5px; font: 165% verdana,arial,helvetica
- }
- h2 {
- margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica
- }
- h3 {
- margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica
- }
- h4 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
- }
- h5 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
- }
- h6 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
- }
- .Error {
- font-weight:bold; color:red;
- }
- .Failure {
- font-weight:bold; color:purple;
- }
- .Properties {
- text-align:right;
- }
- </style>
- <script language="JavaScript">
- var TestCases = new Array();
- var cur;
- <xsl:for-each select="./testsuite">
- <xsl:apply-templates select="properties"/>
- </xsl:for-each>
-
- </script>
- <script language="JavaScript"><![CDATA[
- function displayProperties (name) {
- var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
- var doc = win.document.open();
- doc.write("<html><head><title>Properties of " + name + "</title>");
- doc.write("<style>")
- doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");
- doc.write("table tr td, table tr th { font-size: 68%; }");
- doc.write("table.properties { border-collapse:collapse; border-left:solid 1 #cccccc; border-top:solid 1 #cccccc; padding:5px; }");
- doc.write("table.properties th { text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#eeeeee; }");
- doc.write("table.properties td { font:normal; text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#fffffff; }");
- doc.write("h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica }");
- doc.write("</style>");
- doc.write("</head><body>");
- doc.write("<h3>Properties of " + name + "</h3>");
- doc.write("<div align=\"right\"><a href=\"javascript:window.close();\">Close</a></div>");
- doc.write("<table class='properties'>");
- doc.write("<tr><th>Name</th><th>Value</th></tr>");
- for (prop in TestCases[name]) {
- doc.write("<tr><th>" + prop + "</th><td>" + TestCases[name][prop] + "</td></tr>");
- }
- doc.write("</table>");
- doc.write("</body></html>");
- doc.close();
- win.focus();
- }
- ]]>
- </script>
- </HEAD>
- <body>
- <a name="top"></a>
- <xsl:call-template name="pageHeader"/>
-
- <!-- Summary part -->
- <xsl:call-template name="summary"/>
- <hr size="1" width="95%" align="left"/>
-
- <!-- Package List part -->
- <xsl:call-template name="packagelist"/>
- <hr size="1" width="95%" align="left"/>
-
- <!-- For each package create its part -->
- <xsl:call-template name="packages"/>
- <hr size="1" width="95%" align="left"/>
-
- <!-- For each class create the part -->
- <xsl:call-template name="classes"/>
-
- </body>
- </HTML>
-</xsl:template>
-
-
-
- <!-- ================================================================== -->
- <!-- Write a list of all packages with an hyperlink to the anchor of -->
- <!-- of the package name. -->
- <!-- ================================================================== -->
- <xsl:template name="packagelist">
- <h2>Packages</h2>
- Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <!-- list all packages recursively -->
- <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
- <xsl:sort select="@package"/>
- <xsl:variable name="testsuites-in-package" select="/testsuites/testsuite[./@package = current()/@package]"/>
- <xsl:variable name="testCount" select="sum($testsuites-in-package/@tests)"/>
- <xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/>
- <xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/>
- <xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/>
-
- <!-- write a summary for the package -->
- <tr valign="top">
- <!-- set a nice color depending if there is an error/failure -->
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="$failureCount &gt; 0">Failure</xsl:when>
- <xsl:when test="$errorCount &gt; 0">Error</xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <td><a href="#{@package}"><xsl:value-of select="@package"/></a></td>
- <td><xsl:value-of select="$testCount"/></td>
- <td><xsl:value-of select="$errorCount"/></td>
- <td><xsl:value-of select="$failureCount"/></td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="$timeCount"/>
- </xsl:call-template>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
-
-
- <!-- ================================================================== -->
- <!-- Write a package level report -->
- <!-- It creates a table with values from the document: -->
- <!-- Name | Tests | Errors | Failures | Time -->
- <!-- ================================================================== -->
- <xsl:template name="packages">
- <!-- create an anchor to this package name -->
- <xsl:for-each select="/testsuites/testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
- <xsl:sort select="@package"/>
- <a name="{@package}"></a>
- <h3>Package <xsl:value-of select="@package"/></h3>
-
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
-
- <!-- match the testsuites of this package -->
- <xsl:apply-templates select="/testsuites/testsuite[./@package = current()/@package]" mode="print.test"/>
- </table>
- <a href="#top">Back to top</a>
- <p/>
- <p/>
- </xsl:for-each>
- </xsl:template>
-
- <xsl:template name="classes">
- <xsl:for-each select="testsuite">
- <xsl:sort select="@name"/>
- <!-- create an anchor to this class name -->
- <a name="{@name}"></a>
- <h3>TestCase <xsl:value-of select="@name"/></h3>
-
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testcase.test.header"/>
- <!--
- test can even not be started at all (failure to load the class)
- so report the error directly
- -->
- <xsl:if test="./error">
- <tr class="Error">
- <td colspan="4"><xsl:apply-templates select="./error"/></td>
- </tr>
- </xsl:if>
- <xsl:apply-templates select="./testcase" mode="print.test"/>
- </table>
- <div class="Properties">
- <a>
- <xsl:attribute name="href">javascript:displayProperties('<xsl:value-of select="@package"/>.<xsl:value-of select="@name"/>');</xsl:attribute>
- Properties &gt;&gt;
- </a>
- </div>
- <p/>
-
- <a href="#top">Back to top</a>
- </xsl:for-each>
- </xsl:template>
-
- <xsl:template name="summary">
- <h2>Summary</h2>
- <xsl:variable name="testCount" select="sum(testsuite/@tests)"/>
- <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/>
- <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/>
- <xsl:variable name="timeCount" select="sum(testsuite/@time)"/>
- <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <tr valign="top">
- <th>Tests</th>
- <th>Failures</th>
- <th>Errors</th>
- <th>Success rate</th>
- <th>Time</th>
- </tr>
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="$failureCount &gt; 0">Failure</xsl:when>
- <xsl:when test="$errorCount &gt; 0">Error</xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <td><xsl:value-of select="$testCount"/></td>
- <td><xsl:value-of select="$failureCount"/></td>
- <td><xsl:value-of select="$errorCount"/></td>
- <td>
- <xsl:call-template name="display-percent">
- <xsl:with-param name="value" select="$successRate"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="$timeCount"/>
- </xsl:call-template>
- </td>
-
- </tr>
- </table>
- <table border="0" width="95%">
- <tr>
- <td style="text-align: justify;">
- Note: <i>failures</i> are anticipated and checked for with assertions while <i>errors</i> are unanticipated.
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--
- Write properties into a JavaScript data structure.
- This is based on the original idea by Erik Hatcher (erik@hatcher.net)
- -->
- <xsl:template match="properties">
- cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array();
- <xsl:for-each select="property">
- <xsl:sort select="@name"/>
- cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>';
- </xsl:for-each>
- </xsl:template>
-
-<!-- Page HEADER -->
-<xsl:template name="pageHeader">
- <h1>Unit Test Results</h1>
- <table width="100%">
- <tr>
- <td align="left"></td>
- <td align="right">Designed for use with <a href='http://www.junit.org'>JUnit</a> and <a href='http://ant.apache.org'>Ant</a>.</td>
- </tr>
- </table>
- <hr size="1"/>
-</xsl:template>
-
-<xsl:template match="testsuite" mode="header">
- <tr valign="top">
- <th width="80%">Name</th>
- <th>Tests</th>
- <th>Errors</th>
- <th>Failures</th>
- <th nowrap="nowrap">Time(s)</th>
- </tr>
-</xsl:template>
-
-<!-- class header -->
-<xsl:template name="testsuite.test.header">
- <tr valign="top">
- <th width="80%">Name</th>
- <th>Tests</th>
- <th>Errors</th>
- <th>Failures</th>
- <th nowrap="nowrap">Time(s)</th>
- </tr>
-</xsl:template>
-
-<!-- method header -->
-<xsl:template name="testcase.test.header">
- <tr valign="top">
- <th>Name</th>
- <th>Status</th>
- <th width="80%">Type</th>
- <th nowrap="nowrap">Time(s)</th>
- </tr>
-</xsl:template>
-
-
-<!-- class information -->
-<xsl:template match="testsuite" mode="print.test">
- <tr valign="top">
- <!-- set a nice color depending if there is an error/failure -->
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@failures[.&gt; 0]">Failure</xsl:when>
- <xsl:when test="@errors[.&gt; 0]">Error</xsl:when>
- </xsl:choose>
- </xsl:attribute>
-
- <!-- print testsuite information -->
- <td><a href="#{@name}"><xsl:value-of select="@name"/></a></td>
- <td><xsl:value-of select="@tests"/></td>
- <td><xsl:value-of select="@errors"/></td>
- <td><xsl:value-of select="@failures"/></td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="@time"/>
- </xsl:call-template>
- </td>
- </tr>
-</xsl:template>
-
-<xsl:template match="testcase" mode="print.test">
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="failure | error">Error</xsl:when>
- </xsl:choose>
- </xsl:attribute>
- <td><xsl:value-of select="@name"/></td>
- <xsl:choose>
- <xsl:when test="failure">
- <td>Failure</td>
- <td><xsl:apply-templates select="failure"/></td>
- </xsl:when>
- <xsl:when test="error">
- <td>Error</td>
- <td><xsl:apply-templates select="error"/></td>
- </xsl:when>
- <xsl:otherwise>
- <td>Success</td>
- <td></td>
- </xsl:otherwise>
- </xsl:choose>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="@time"/>
- </xsl:call-template>
- </td>
- </tr>
-</xsl:template>
-
-
-<xsl:template match="failure">
- <xsl:call-template name="display-failures"/>
-</xsl:template>
-
-<xsl:template match="error">
- <xsl:call-template name="display-failures"/>
-</xsl:template>
-
-<!-- Style for the error and failure in the tescase template -->
-<xsl:template name="display-failures">
- <xsl:choose>
- <xsl:when test="not(@message)">N/A</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@message"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- display the stacktrace -->
- <code>
- <p/>
- <xsl:call-template name="br-replace">
- <xsl:with-param name="word" select="."/>
- </xsl:call-template>
- </code>
- <p><br/><br/>Screenshot:</p>
- <p>
- <img>
- <xsl:attribute name="src">
- <xsl:value-of select="concat($screenshot_dir, '/', ../@name, '(', ../@classname, ').', $screenshot_format)"/>
- </xsl:attribute>
- </img>
- </p>
- <!-- the later is better but might be problematic for non-21" monitors... -->
- <!--pre><xsl:value-of select="."/></pre-->
-</xsl:template>
-
-<xsl:template name="JS-escape">
- <xsl:param name="string"/>
- <xsl:choose><!-- something isn't right here, basically all single quotes need to be replaced with backslash-single-quote
- <xsl:when test="contains($string,'&apos;')">
- <xsl:value-of select="substring-before($string,'&apos;')"/>
- \&apos;
- <xsl:call-template name="JS-escape">
- <xsl:with-param name="string" select="substring-after($string,'&apos;')"/>
- </xsl:call-template>
- </xsl:when> -->
- <xsl:when test="contains($string,'\')">
- <xsl:value-of select="substring-before($string,'\')"/>\\<xsl:call-template name="JS-escape">
- <xsl:with-param name="string" select="substring-after($string,'\')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$string"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
-<!--
- template that will convert a carriage return into a br tag
- @param word the text from which to convert CR to BR tag
--->
-<xsl:template name="br-replace">
- <xsl:param name="word"/>
- <xsl:choose>
- <xsl:when test="contains($word,'&#xA;')">
- <xsl:value-of select="substring-before($word,'&#xA;')"/>
- <br/>
- <xsl:call-template name="br-replace">
- <xsl:with-param name="word" select="substring-after($word,'&#xA;')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$word"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template name="display-time">
- <xsl:param name="value"/>
- <xsl:value-of select="format-number($value,'0.000')"/>
-</xsl:template>
-
-<xsl:template name="display-percent">
- <xsl:param name="value"/>
- <xsl:value-of select="format-number($value,'0.00%')"/>
-</xsl:template>
-
-</xsl:stylesheet>
-
View
70 org.eclipse.swtbot.eclipse.junit3.headless/LICENSE.EPL
@@ -1,70 +0,0 @@
-Eclipse Public License - v 1.0
-
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-i) changes to the Program, and
-ii) additions to the Program;
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-b) its license agreement:
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-b) a copy of this Agreement must be included with each copy of the Program.
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
View
19 org.eclipse.swtbot.eclipse.junit3.headless/META-INF/MANIFEST.MF
@@ -1,19 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: SWTBot Headless JUnit3 Launch Plug-in (incubation)
-Bundle-SymbolicName: org.eclipse.swtbot.eclipse.junit3.headless;singleton:=true
-Bundle-Version: 2.0.5.qualifier
-Bundle-Vendor: Eclipse.org - SWTBot
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.swtbot.eclipse.junit3.headless
-Import-Package: junit.framework;version="[3.8.2,4.0.0)",
- org.apache.tools.ant,
- org.apache.tools.ant.taskdefs.optional.junit,
- org.eclipse.core.runtime;version="3.4.0",
- org.eclipse.equinox.app;version="1.0.0",
- org.eclipse.osgi.util;version="1.1.0",
- org.eclipse.swt.widgets,
- org.eclipse.ui,
- org.eclipse.ui.testing,
- org.osgi.framework;version="1.4.0"
View
28 org.eclipse.swtbot.eclipse.junit3.headless/about.html
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>December 2nd, 2008</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; 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 (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
View
22 org.eclipse.swtbot.eclipse.junit3.headless/build.properties
@@ -1,22 +0,0 @@
-###############################################################################
-# Copyright (c) 2008, 2010 Ketan Padegaonkar 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:
-# Ketan Padegaonkar - initial API and implementation
-###############################################################################
-bin.includes = META-INF/,\
- plugin.xml,\
- library.xml,\
- about.html,\
- LICENSE.EPL,\
- src/,\
- .,\
- JUNIT.XSL
-src.includes = library.xml,\
- LICENSE.EPL,\
- about.html
-source.. = src/
View
206 org.eclipse.swtbot.eclipse.junit3.headless/library.xml
@@ -1,206 +0,0 @@
-<?xml version="1.0"?>
-<!--
-
-
-======================================================================
-this has been copied from o.e.test plugin with some targets for SWTBot
-======================================================================
-
-
--->
-
-<project name="swtbot-library-headless-junit3" default="usage" basedir=".">
-
- <target name="usage">
- <echo message="Please refer to the testframework.html in org.eclipse.test for instructions on usage." />
- </target>
-
- <target name="init">
- <!--
- Parameters:
- (Mandatory)
- data-dir - the directory for Eclipse to write its data
- plugin-name - the name of the plugin to test
- classname - the name of the test class
-
- (Optional - overrides defaults set in script)
- testProduct - a string containing the product id to test.
- testApplication - a string containing the application id to test.
- vmargs - a string containing arguments to pass to the VM.
- extraVMargs - allows separate setting of VM args from separate caller.
- timeout - overrides default test timeout value (in milliseconds).
- test-output - overrides default output file produced from test run.
- plugin-path - path to root of plug-in
- useEclipseExe - property setting forces test to launch via eclipse executable.
- junit-report-output - output directory for junit reports produced for specified classname.
- -->
-
- <tstamp>
- <format property="TIMENOW" pattern="HHmmssSSSS" />
- </tstamp>
- <!--property setting useEclipseExe launches tests using the eclipse executable-->
- <condition property="launchTarget" value="eclipse-test">
- <isset property="useEclipseExe" />
- </condition>
- <!--default launch target for launching tests-->
- <property name="launchTarget" value="java-test" />
-
- <!-- default product/application to launch -->
- <condition property="testproduct.if.available" value="-product ${testProduct}">
- <isset property="testProduct" />
- </condition>
- <property name="testproduct.if.available" value="" />
-
- <condition property="testapplication.if.available" value="-testApplication ${testApplication}">
- <isset property="testApplication" />
- </condition>
-
- <property name="testapplication.if.available" value="" />
-
- <!--default heap sizes when running performance tests-->
- <condition property="vmargs" value=" -Xms256M -Xmx256M">
- <equals arg1="${test.target}" arg2="performance" />
- </condition>
- <property name="extraVMargs" value="" />
- <property name="plugin-path" value="" />
- <property name="timeout" value="7200000" />
- <property name="test-output" value="${eclipse-home}/${classname}.xml" />
- <property name="junit-report-output" value="${eclipse-home}/results" />
- <mkdir dir="${junit-report-output}" />
- </target>
-
- <target name="swtbot-test" description="Eclipse application used to launch UI plugin tests." depends="init">
- <antcall target="${launchTarget}">
- <!--param name="application" value="org.eclipse.test.uitestapplication"/-->
- <param name="application" value="org.eclipse.swtbot.eclipse.junit3.headless.swtbottestapplication" />
- </antcall>
- </target>
-
- <target name="java-test">
- <!--default vm args-->
- <property name="vmargs" value="-Xms256m -Xmx512m" />
-
- <!-- this argument is needed for macosx -->
- <condition property="jvmOption" value="-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts">
- <os family="mac" />
- </condition>
-
- <property name="jvmOption" value="" />
-
- <!--set default jvm to use for testing-->
- <property name="jvm" value="${java.home}/bin/java" />
-
- <property name="launcher-arg-line" value="
- -application ${application}
- ${testproduct.if.available}
- ${testapplication.if.available}
- -data ${data-dir}
- formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test-output} formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter
- -testPluginName ${plugin-name}
- -className ${classname}
- -os ${os}
- -ws ${ws}
- -arch ${arch}
- -consoleLog
- -debug" />
- <property name="jvm-arg-line" value="${vmargs} ${extraVMargs} ${jvmOption}" />
-
- <echo>======================================</echo>
- <echo>Running swtbot junit tests in ${classname}</echo>
- <echo>Command line args are ${launcher-arg-line}</echo>
- <echo>JVM args are ${jvm-arg-line}</echo>
- <echo>JUnit Result File: ${junit-report-output}/${classname}.xml.</echo>
- <echo>Console output File: ${junit-report-output}/${classname}.txt.</echo>
- <echo>======================================</echo>
-
- <fail unless="application" message="variable 'application' not defined." />
- <fail unless="data-dir" message="variable 'data-dir' not defined." />
- <fail unless="test-output" message="variable 'test-output' not defined" />
- <fail unless="plugin-name" message="variable 'plugin-name' not defined" />
- <fail unless="classname" message="variable 'classname' not defined" />
- <fail unless="os" message="variable 'os' not defined. os can be one of win32, linux, macosx" />
- <fail unless="ws" message="variable 'ws' not defined. ws can be one of win32, wpf, gtk, carbon, cocoa" />
- <fail unless="arch" message="variable 'arch' not defined. arch can be one of x86, x86_64, ppc" />
-
- <pathconvert property="foundJunit4" setonempty="false" pathsep=" ">
- <path>
- <fileset dir="${eclipse-home}/plugins" includes="org.eclipse.swtbot.eclipse.junit4.headless*/META-INF/MANIFEST.MF" />
- <fileset dir="${eclipse-home}/plugins" includes="org.eclipse.swtbot.ant.optional.junit4*" />
- </path>
- </pathconvert>
-
- <fail if="foundJunit4">
- .
- Found org.eclipse.swtbot.eclipse.junit4.headless or org.eclipse.swtbot.ant.optional.junit4 in the plugins directory.
- JUnit 3.x and 4.x don't play well together.
- Please remove org.eclipse.swtbot.eclipse.junit4.headless and org.eclipse.swtbot.ant.optional.junit4 from the plugins dir.
- </fail>
-
- <java fork="true" dir="." timeout="${timeout}" jvm="${jvm}" logError="true" classname="org.eclipse.core.launcher.Main" output="${junit-report-output}/${classname}.txt">
- <classpath>
- <fileset dir="${eclipse-home}/plugins">
- <include name="org.eclipse.equinox.launcher_*.jar" />
- </fileset>
- </classpath>
- <arg line="${launcher-arg-line}" />
- <jvmarg line="${jvm-arg-line}" />
- <sysproperty key="PLUGIN_PATH" value="${plugin-path}" />
- </java>
-
- <echo>======================================</echo>
- <echo>If you see errors above please see the file ${junit-report-output}/${classname}.txt for more information.</echo>
- <echo>Errors are generally caused by missing or incorrect dependencies.</echo>
- <echo>======================================</echo>
-
- <antcall target="collect-results" />
- </target>
-
- <target name="collect-results">
- <dirname property="output-dir" file="${test-output}" />
- <basename property="output-file-name" file="${test-output}" />
- <junitreport todir="${junit-report-output}" tofile="${classname}.xml">
- <fileset dir="${output-dir}">
- <include name="${output-file-name}" />
- </fileset>
- </junitreport>
-
- <dirname property="swtbot.junit3.headless.dir" file="${ant.file.swtbot-library-headless-junit3}"/>
-
- <mkdir dir="${junit-report-output}/screenshots" />
- <move todir="${junit-report-output}/screenshots" failonerror="false">
- <fileset dir="${eclipse-home}/screenshots" includes="*.*" />
- </move>
-
- <xslt style="${swtbot.junit3.headless.dir}/JUNIT.XSL" basedir="${junit-report-output}" includes="${classname}.xml" destdir="${junit-report-output}">
- <param name="screenshot_dir" expression="screenshots"/>
- <!--
- Only use this if you've set SWTBotPreferences#SCREENSHOT_FORMAT preference
- Optional: possible values are bmp, gif, ico, jpeg, jpg, png or tiff
- <param name="screenshot_format" expression="jpeg"/>
- -->
- </xslt>
-
- <!--save .log content and *.log content from configuration directory-->
- <concat destfile="${junit-report-output}/${classname}.log">
- <fileset dir="${eclipse-home}" includes="${data-dir}/.metadata/*.log" />
- <fileset dir="${eclipse-home}" includes="configuration/*.log" />
- </concat>
- </target>
-
- <target name="collect">
- <!--
- This target can be used to aggragate test runs from multiple test suites into a single report.
-
- Parameters to this target:
- includes - the names of the files to include
- output-file - the name of the output file to produce
- -->
- <junitreport todir="." tofile="${output-file}">
- <fileset dir=".">
- <include name="${includes}" />
- </fileset>
- </junitreport>
- </target>
-
-</project>
-
View
19 org.eclipse.swtbot.eclipse.junit3.headless/plugin.xml
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
- <extension
- id="swtbottestapplication"
- point="org.eclipse.core.runtime.applications">
- <application
- visible="false">
- <run
- class="org.eclipse.swtbot.eclipse.junit3.headless.UITestApplication">
- <parameter
- name="productInfo"
- value="product.ini">
- </parameter>
- </run>
- </application>
- </extension>
-
-</plugin>
View
500 ...pse.junit3.headless/src/org/eclipse/swtbot/eclipse/junit3/headless/EclipseTestRunner.java
@@ -1,500 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Ketan Padegaonkar 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:
- * Ketan Padegaonkar - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swtbot.eclipse.junit3.headless;
-
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintStream;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.lang.reflect.Modifier;
-import java.util.Dictionary;
-import java.util.Enumeration;
-import java.util.Hashtable;
-import java.util.Properties;
-import java.util.Vector;
-
-import junit.framework.AssertionFailedError;
-import junit.framework.Test;
-import junit.framework.TestListener;
-import junit.framework.TestResult;
-import junit.framework.TestSuite;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter;
-import org.apache.tools.ant.taskdefs.optional.junit.JUnitTest;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.osgi.util.ManifestElement;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleException;
-import org.osgi.framework.Constants;
-
-/**
- * An exact copy of {@link org.eclipse.test.EclipseTestRunner}. A TestRunner for JUnit that supports Ant
- * JUnitResultFormatters and running tests inside Eclipse. Example call: EclipseTestRunner -classname
- * junit.samples.SimpleTest formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
- */
-@SuppressWarnings("all")
-public class EclipseTestRunner implements TestListener {
- class TestFailedException extends Exception {
-
- private static final long serialVersionUID = 6009335074727417445L;
-
- TestFailedException(String message) {
- super(message);
- }
-
- TestFailedException(Throwable e) {
- super(e);
- }
- }
-
- /**
- * No problems with this test.
- */
- public static final int SUCCESS = 0;
- /**
- * Some tests failed.
- */
- public static final int FAILURES = 1;
- /**
- * An error occured.
- */
- public static final int ERRORS = 2;
-
- private static final String SUITE_METHODNAME = "suite"; //$NON-NLS-1$
- /**
- * The current test result
- */
- private TestResult fTestResult;
- /**
- * The name of the plugin containing the test
- */
- private final String fTestPluginName;
- /**
- * The corresponding testsuite.
- */
- private Test fSuite;
- /**
- * Formatters from the command line.
- */
- private static Vector fgFromCmdLine = new Vector();
- /**
- * Holds the registered formatters.
- */
- private final Vector formatters = new Vector();
- /**
- * Do we stop on errors.
- */
- private boolean fHaltOnError = false;
- /**
- * Do we stop on test failures.
- */
- private boolean fHaltOnFailure = false;
- /**
- * The TestSuite we are currently running.
- */
- private final JUnitTest fJunitTest;
- /**
- * output written during the test
- */
- private PrintStream fSystemError;
- /**
- * Error output during the test
- */
- private PrintStream fSystemOut;
- /**
- * Exception caught in constructor.
- */
- private Exception fException;
- /**
- * Returncode
- */
- private int fRetCode = SUCCESS;
-
- /**
- * The main entry point (the parameters are not yet consistent with the Ant JUnitTestRunner, but eventually they
- * should be). Parameters
- *
- * <pre>
- * -className: the name of the testSuite
- * -testPluginName: the name of the containing plugin
- * haltOnError: halt test on errors?
- * haltOnFailure: halt test on failures?
- * -testlistener listenerClass: deprecated
- * print a warning that this option is deprecated
- * formatter: a JUnitResultFormatter given as classname,filename.
- * If filename is ommitted, System.out is assumed.
- * </pre>
- */
- public static void main(String[] args) throws IOException {
- System.exit(run(args));
- }
-
- public static int run(String[] args) throws IOException {
- String className = null;
- String testPluginName = null;
-
- boolean haltError = false;
- boolean haltFail = false;
-
- Properties props = new Properties();
-
- int startArgs = 0;
- if (args.length > 0)
- // support the JUnit task commandline syntax where
- // the first argument is the name of the test class
- if (!args[0].startsWith("-")) { //$NON-NLS-1$
- className = args[0];
- startArgs++;
- }
- for (int i = startArgs; i < args.length; i++)
- if (args[i].toLowerCase().equals("-classname")) { //$NON-NLS-1$
- if (i < args.length - 1)
- className = args[i + 1];
- i++;
- } else if (args[i].toLowerCase().equals("-testpluginname")) { //$NON-NLS-1$
- if (i < args.length - 1)
- testPluginName = args[i + 1];
- i++;
- } else if (args[i].startsWith("haltOnError=")) //$NON-NLS-1$
- haltError = Project.toBoolean(args[i].substring(12));
- else if (args[i].startsWith("haltOnFailure=")) //$NON-NLS-1$
- haltFail = Project.toBoolean(args[i].substring(14));
- else if (args[i].startsWith("formatter=")) //$NON-NLS-1$
- try {
- createAndStoreFormatter(args[i].substring(10));
- } catch (BuildException be) {
- System.err.println(be.getMessage());
- return ERRORS;
- }
- else if (args[i].startsWith("propsfile=")) { //$NON-NLS-1$
- FileInputStream in = new FileInputStream(args[i].substring(10));
- props.load(in);
- in.close();
- } else if (args[i].equals("-testlistener")) { //$NON-NLS-1$
- System.err.println("The -testlistener option is no longer supported\nuse the formatter= option instead"); //$NON-NLS-1$
- return ERRORS;
- }
-
- if (className == null)
- throw new IllegalArgumentException("Test class name not specified"); //$NON-NLS-1$
-
- JUnitTest t = new JUnitTest(className);
-
- // Add/overlay system properties on the properties from the Ant project
- Hashtable p = System.getProperties();
- for (Enumeration _enum = p.keys(); _enum.hasMoreElements();) {
- Object key = _enum.nextElement();
- props.put(key, p.get(key));
- }
- t.setProperties(props);
-
- EclipseTestRunner runner = new EclipseTestRunner(t, testPluginName, haltError, haltFail);
- transferFormatters(runner);
- runner.run();
- return runner.getRetCode();
- }
-
- /**
- *
- */
- public EclipseTestRunner(JUnitTest test, String testPluginName, boolean haltOnError, boolean haltOnFailure) {
- fJunitTest = test;
- fTestPluginName = testPluginName;
- fHaltOnError = haltOnError;
- fHaltOnFailure = haltOnFailure;
-
- try {
- fSuite = getTest(test.getName());
- } catch (Exception e) {
- fRetCode = ERRORS;
- fException = e;
- }
- }
-
- /**
- * Returns the Test corresponding to the given suite.
- */
- protected Test getTest(String suiteClassName) throws TestFailedException {
- if (suiteClassName.length() <= 0) {
- clearStatus();
- return null;
- }
- Class testClass = null;
- try {
- testClass = loadSuiteClass(suiteClassName);
- } catch (ClassNotFoundException e) {
- if (e.getCause() != null)
- runFailed(e.getCause());
- String clazz = e.getMessage();
- if (clazz == null)
- clazz = suiteClassName;
- runFailed("Class not found \"" + clazz + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- return null;
- } catch (Exception e) {
- runFailed(e);
- return null;
- }
- Method suiteMethod = null;
- try {
- suiteMethod = testClass.getMethod(SUITE_METHODNAME, new Class[0]);
- } catch (Exception e) {
- // try to extract a test suite automatically
- clearStatus();
- return new TestSuite(testClass);
- }
- if (!Modifier.isStatic(suiteMethod.getModifiers())) {
- runFailed("suite() method must be static"); //$NON-NLS-1$
- return null;
- }
- Test test = null;
- try {
- test = (Test) suiteMethod.invoke(null, new Class[0]); // static method
- if (test == null)
- return test;
- } catch (InvocationTargetException e) {
- runFailed("Failed to invoke suite():" + e.getTargetException().toString()); //$NON-NLS-1$
- return null;
- } catch (IllegalAccessException e) {
- runFailed("Failed to invoke suite():" + e.toString()); //$NON-NLS-1$
- return null;
- }
- clearStatus();
- return test;
- }
-
- protected void runFailed(String message) throws TestFailedException {
- System.err.println(message);
- throw new TestFailedException(message);
- }
-
- protected void runFailed(Throwable e) throws TestFailedException {
- e.printStackTrace();
- throw new TestFailedException(e);
- }
-
- protected void clearStatus() {
- }
-
- /**
- * Loads the class either with the system class loader or a plugin class loader if a plugin name was specified
- */
- protected Class loadSuiteClass(String suiteClassName) throws ClassNotFoundException {
- if (fTestPluginName == null)
- return Class.forName(suiteClassName);
- Bundle bundle = Platform.getBundle(fTestPluginName);
- if (bundle == null)
- throw new ClassNotFoundException(suiteClassName, new Exception("Could not find plugin \"" + fTestPluginName + "\"")); //$NON-NLS-1$ //$NON-NLS-2$
-
- // is the plugin a fragment?
- Dictionary headers = bundle.getHeaders();
- String hostHeader = (String) headers.get(Constants.FRAGMENT_HOST);