JBoss Tools SVN: r44531 - in trunk/documentation/whatsnew: core and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-10-16 16:05:22 -0400 (Tue, 16 Oct 2012)
New Revision: 44531
Added:
trunk/documentation/whatsnew/core/core-news-4.0.0.Beta1.html
trunk/documentation/whatsnew/core/images/newjava.png
trunk/documentation/whatsnew/core/images/registerService.png
trunk/documentation/whatsnew/core/images/registerServiceMenu.png
trunk/documentation/whatsnew/core/images/serviceProvider.png
Modified:
trunk/documentation/whatsnew/index.html
Log:
https://issues.jboss.org/browse/JBIDE-12883 Core/General Component N&N
Added: trunk/documentation/whatsnew/core/core-news-4.0.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-4.0.0.Beta1.html (rev 0)
+++ trunk/documentation/whatsnew/core/core-news-4.0.0.Beta1.html 2012-10-16 20:05:22 UTC (rev 44531)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>Core/Common 3.3.0.M5 What's New</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>Core/Common 4.0.0.Beta1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a>
+<a href="../jst/jst-news-4.0.0.Beta1.html">JST/JSF Tools ></a>
+</p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <a name="itemnam1e" id="itemname1"></a><b>New Service Provider Class Wizard</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>
+ There is a new a new service provider class wizard in JBoss Tools 4.0.0.Beta1. This wizard creates a new java class with specific service type and create a service file in the 'META-INF/services' directory.
+ If the service file already exists, the class is added to it on a new line.
+ </p>
+ <br/>
+ <img src="images/newjava.png" /><br/><br/>
+ <img src="images/serviceProvider.png" />
+
+ <p>
+ It's also possible to register an existing class as a service provider in META-INF/services.
+ </p>
+
+ <br/>
+ <img src="images/registerServiceMenu.png" /><br/><br/>
+ <img src="images/registerService.png" />
+
+ <p>
+ <small>
+ Related Jiras : <a href="https://issues.jboss.org/browse/JBIDE-9443">JBIDE-9443</a>,
+ <a href="https://issues.jboss.org/browse/JBIDE-12793">JBIDE-12793</a>
+ </small>
+ </p>
+
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
Property changes on: trunk/documentation/whatsnew/core/core-news-4.0.0.Beta1.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/documentation/whatsnew/core/images/newjava.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/newjava.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/core/images/registerService.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/registerService.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/core/images/registerServiceMenu.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/registerServiceMenu.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/core/images/serviceProvider.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/core/images/serviceProvider.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2012-10-16 17:52:09 UTC (rev 44530)
+++ trunk/documentation/whatsnew/index.html 2012-10-16 20:05:22 UTC (rev 44531)
@@ -50,6 +50,13 @@
<tr>
<td valign="top" align="left">
+ <p align="right"><b>4.0.0.Beta1</b>
+ <td valign="top">
+ <p><a href="core/core-news-4.0.0.Beta1.html">Core/General</a></p>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
<p align="right"><b>4.0.0.Alpha2</b>
<td valign="top">
<p><a href="as/as-news-4.0.0.Alpha2.html">Server Tools</a></p>
12 years, 11 months
JBoss Tools SVN: r44530 - trunk/build/parent.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-10-16 13:52:09 -0400 (Tue, 16 Oct 2012)
New Revision: 44530
Modified:
trunk/build/parent/pom.xml
Log:
add https://repository.jboss.org/nexus/content/repositories/snapshots/ as a repository from which to resolve stuff (fix for brno jenkins servers?)
Modified: trunk/build/parent/pom.xml
===================================================================
--- trunk/build/parent/pom.xml 2012-10-16 15:11:31 UTC (rev 44529)
+++ trunk/build/parent/pom.xml 2012-10-16 17:52:09 UTC (rev 44530)
@@ -761,6 +761,14 @@
<enabled>true</enabled>
</releases>
</repository>
+ <repository>
+ <id>jboss-snapshots-repository</id>
+ <name>JBoss Snapshots Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
</repositories>
<!-- Additional m2 repos to resolve things like org.eclipse.tycho:tycho-maven-plugin:0.16.0-SNAPSHOT -->
12 years, 11 months
JBoss Tools SVN: r44529 - in trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test: rest and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-10-16 11:11:31 -0400 (Tue, 16 Oct 2012)
New Revision: 44529
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/annotation/HTTPMethodAnnotationQuickFixTest.java
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulHelper.java
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/validation/JaxRsValidatorTest.java
Log:
new test implemented
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/annotation/HTTPMethodAnnotationQuickFixTest.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/annotation/HTTPMethodAnnotationQuickFixTest.java 2012-10-16 15:10:56 UTC (rev 44528)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/annotation/HTTPMethodAnnotationQuickFixTest.java 2012-10-16 15:11:31 UTC (rev 44529)
@@ -6,6 +6,7 @@
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
@@ -24,13 +25,8 @@
public class HTTPMethodAnnotationQuickFixTest extends WSTestBase {
@Override
- protected String getWsProjectName() {
- return "httpAnnot";
- }
-
- @Override
public void setup() {
- importWSTestProject(getWsProjectName());
+
}
@Override
@@ -39,21 +35,53 @@
}
@Test
- public void testQuickFixes() {
+ public void testHTTPMethodWithoutParameters() {
+ /* import the project */
+ String wsProjectName = "httpAnnot1";
+ importWSTestProject(wsProjectName);
- /* workaround for JBIDE-12690
- jbide12680Workaround(getWsProjectName(), "src", "test", "MyAnnot.java"); */
+ /* workaround for JBIDE-12690 */
+ jbide12680Workaround(wsProjectName, "src", "test", "MyAnnot.java");
+ /* assert that there is one Java problem */
+ assertThat(errorsByType("Java Problem").length, equalTo(1));
+
+ /* get quickfix bot for HttpMethod annotation */
+ QuickFixBot qBot = quickFixBot("@HttpMethod");
+
+ /* check that there are quick fixes for both required annotations */
+ qBot.checkQuickFix("Add missing attributes", true);
+ bot.activeEditor().save();
+
+ /* assert that there is one JAX-RS errors - empty value */
+ assertThat(errorsByType("JAX-RS Problem").length, equalTo(1));
+ }
+
+ @Test
+ public void testTargetRetentionQuickFixes() {
+
+ /* import the project */
+ String wsProjectName = "httpAnnot2";
+ importWSTestProject(wsProjectName);
+
+ /* workaround for JBIDE-12690 */
+ jbide12680Workaround(wsProjectName, "src", "test", "MyAnnot.java");
+
/* assert that there are two JAX-RS errors */
assertThat(errorsByType("JAX-RS Problem").length, equalTo(2));
/* get quickfix bot for MyAnnot annotation */
- QuickFixBot bot = quickFixBot();
+ QuickFixBot qBot = quickFixBot("MyAnnot");
/* check that there are quick fixes for both required annotations */
- bot.checkQuickFix("Add @Target annotation on type MyAnnot", false);
- bot.checkQuickFix("Add @Retention annotation on type MyAnnot", false);
+ qBot.checkQuickFix("Add @Target annotation on type MyAnnot", true);
+ /* there is need to wait a while until validation starts to work */
+ bot.sleep(Timing.time2S());
+ qBot.checkQuickFix("Add @Retention annotation on type MyAnnot", true);
+ bot.sleep(Timing.time2S());
+ /* assert that there are no JAX-RS errors */
+ assertThat(errorsByType("JAX-RS Problem").length, equalTo(0));
}
private void jbide12680Workaround(String projectName, String... path) {
@@ -63,12 +91,12 @@
eclipseEditor.save();
}
- private QuickFixBot quickFixBot() {
+ private QuickFixBot quickFixBot(String underlinedText) {
SWTBotEditorExt editor = new SWTBotEditorExt(bot.activeEditor().getReference(), bot);
SWTBotEclipseEditor eclipseEditor = editor.toTextEditor();
int lineIndex = 0;
for (String line : eclipseEditor.getLines()) {
- if (line.contains("@Http")) {
+ if (line.contains(underlinedText)) {
break;
}
lineIndex++;
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulHelper.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulHelper.java 2012-10-16 15:10:56 UTC (rev 44528)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulHelper.java 2012-10-16 15:11:31 UTC (rev 44529)
@@ -44,7 +44,7 @@
private static final ResourceHelper resourceHelper = new ResourceHelper();
private static final String PATH_PARAM_VALID_ERROR = "@PathParam value";
- private static final String VALIDATION_SETTINGS_CHANGED = "Validation Settings Changed";
+ private static final String VALIDATOR_SETTINGS_CHANGED = "Validator Settings Changed";
private enum ConfigureOption {
ENABLE, DISABLE;
@@ -84,7 +84,7 @@
validationBot.checkBox(0).deselect();
}
validationBot.button(IDELabel.Button.OK).click();
- if (bot.activeShell().getText().equals(VALIDATION_SETTINGS_CHANGED)) {
+ if (bot.activeShell().getText().equals(VALIDATOR_SETTINGS_CHANGED)) {
bot.activeShell().bot().button(IDELabel.Button.YES).click();
}
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/validation/JaxRsValidatorTest.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/validation/JaxRsValidatorTest.java 2012-10-16 15:10:56 UTC (rev 44528)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/validation/JaxRsValidatorTest.java 2012-10-16 15:11:31 UTC (rev 44529)
@@ -56,6 +56,9 @@
/* test count of validation errors */
assertCountOfPathAnnotationValidationErrors(getWsProjectName(), 0);
+
+ /* enable restful validation - to have proper test environment*/
+ restfulHelper.enableRESTValidation();
}
private SWTBot openJaxRsValidator() {
12 years, 11 months
JBoss Tools SVN: r44528 - trunk/ws/tests/org.jboss.tools.ws.ui.bot.test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-10-16 11:10:56 -0400 (Tue, 16 Oct 2012)
New Revision: 44528
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/pom.xml
Log:
added eclipse.jdt.feature dependency to be able to set default jdk on mac
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/pom.xml
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/pom.xml 2012-10-16 15:08:33 UTC (rev 44527)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/pom.xml 2012-10-16 15:10:56 UTC (rev 44528)
@@ -77,6 +77,12 @@
<artifactId>org.jboss.ide.eclipse.as.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
+ <!-- This entry should enable creating of default JDK on Mac -->
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.jdt.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
</dependencies>
</configuration>
</plugin>
12 years, 11 months
JBoss Tools SVN: r44527 - in trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects: httpAnnot1 and 13 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-10-16 11:08:33 -0400 (Tue, 16 Oct 2012)
New Revision: 44527
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.classpath
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.project
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/.jsdtscope
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.common.component
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.jboss.ide.eclipse.as.core.prefs
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/META-INF/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/WEB-INF/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/WEB-INF/lib/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/build/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/src/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/src/test/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/src/test/MyAnnot.java
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.classpath
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.project
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/.jsdtscope
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.common.component
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.jboss.ide.eclipse.as.core.prefs
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/META-INF/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/WEB-INF/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/WEB-INF/lib/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/build/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/src/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/src/test/
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/src/test/MyAnnot.java
Removed:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot/
Log:
new test projects added
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.classpath
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.classpath
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.project
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.project
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/.jsdtscope
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/.jsdtscope
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.common.component
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.common.component
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/.settings/org.jboss.ide.eclipse.as.core.prefs 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/WebContent/META-INF/MANIFEST.MF 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/src/test/MyAnnot.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/src/test/MyAnnot.java (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot1/src/test/MyAnnot.java 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1,14 @@
+package test;
+
+import javax.ws.rs.HttpMethod;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+(a)Target(ElementType.METHOD)
+(a)Retention(RetentionPolicy.RUNTIME)
+@HttpMethod
+public @interface MyAnnot {
+
+}
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.classpath
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.classpath
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.project
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.project
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/.jsdtscope
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/.jsdtscope
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.common.component
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.common.component
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
(Binary files differ)
Property changes on: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/.settings/org.jboss.ide.eclipse.as.core.prefs 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/WebContent/META-INF/MANIFEST.MF 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/src/test/MyAnnot.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/src/test/MyAnnot.java (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/httpAnnot2/src/test/MyAnnot.java 2012-10-16 15:08:33 UTC (rev 44527)
@@ -0,0 +1,8 @@
+package test;
+
+import javax.ws.rs.HttpMethod;
+
+@HttpMethod(value = "METHOD")
+public @interface MyAnnot {
+
+}
12 years, 11 months
JBoss Tools SVN: r44526 - in workspace/snjeza/org.jboss.tools.arquillian.updatesite: features and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-10-16 10:46:38 -0400 (Tue, 16 Oct 2012)
New Revision: 44526
Added:
workspace/snjeza/org.jboss.tools.arquillian.updatesite/features/org.jboss.tools.arquillian.feature_1.0.2.201210161645.jar
workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.core_1.0.2.201210161645.jar
workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.ui_1.0.2.201210161645.jar
Removed:
workspace/snjeza/org.jboss.tools.arquillian.updatesite/features/org.jboss.tools.arquillian.feature_1.0.2.201210151923.jar
workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.core_1.0.2.201210151923.jar
workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.ui_1.0.2.201210151923.jar
Modified:
workspace/snjeza/org.jboss.tools.arquillian.updatesite/artifacts.jar
workspace/snjeza/org.jboss.tools.arquillian.updatesite/content.jar
workspace/snjeza/org.jboss.tools.arquillian.updatesite/site.xml
Log:
Adding the Arquillian validator
Modified: workspace/snjeza/org.jboss.tools.arquillian.updatesite/artifacts.jar
===================================================================
(Binary files differ)
Modified: workspace/snjeza/org.jboss.tools.arquillian.updatesite/content.jar
===================================================================
(Binary files differ)
Deleted: workspace/snjeza/org.jboss.tools.arquillian.updatesite/features/org.jboss.tools.arquillian.feature_1.0.2.201210151923.jar
===================================================================
(Binary files differ)
Added: workspace/snjeza/org.jboss.tools.arquillian.updatesite/features/org.jboss.tools.arquillian.feature_1.0.2.201210161645.jar
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/org.jboss.tools.arquillian.updatesite/features/org.jboss.tools.arquillian.feature_1.0.2.201210161645.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Deleted: workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.core_1.0.2.201210151923.jar
===================================================================
(Binary files differ)
Added: workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.core_1.0.2.201210161645.jar
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.core_1.0.2.201210161645.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Deleted: workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.ui_1.0.2.201210151923.jar
===================================================================
(Binary files differ)
Added: workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.ui_1.0.2.201210161645.jar
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/org.jboss.tools.arquillian.updatesite/plugins/org.jboss.tools.arquillian.ui_1.0.2.201210161645.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: workspace/snjeza/org.jboss.tools.arquillian.updatesite/site.xml
===================================================================
--- workspace/snjeza/org.jboss.tools.arquillian.updatesite/site.xml 2012-10-16 13:48:21 UTC (rev 44525)
+++ workspace/snjeza/org.jboss.tools.arquillian.updatesite/site.xml 2012-10-16 14:46:38 UTC (rev 44526)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
- <feature url="features/org.jboss.tools.arquillian.feature_1.0.2.201210151923.jar" id="org.jboss.tools.arquillian.feature" version="1.0.2.201210151923">
+ <feature url="features/org.jboss.tools.arquillian.feature_1.0.2.201210161645.jar" id="org.jboss.tools.arquillian.feature" version="1.0.2.201210161645">
<category name="org.jboss.tools.arquillian"/>
</feature>
<category-def name="org.jboss.tools.arquillian" label="Arquillian Support"/>
12 years, 11 months
JBoss Tools SVN: r44525 - in trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test: META-INF and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: sbunciak
Date: 2012-10-16 09:48:21 -0400 (Tue, 16 Oct 2012)
New Revision: 44525
Modified:
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/META-INF/MANIFEST.MF
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTests.launch
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTestsMaven.launch
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/resources/openshift.ui.bot.test.properties
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/OpenShiftJenkinsBotTests.java
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/Connection.java
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateDomain.java
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/DeleteDomain.java
trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/RenameDomain.java
Log:
Added 3 cases to automated Jenkins suite compatible with JBT 4.0.0.Beta1
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/META-INF/MANIFEST.MF 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/META-INF/MANIFEST.MF 2012-10-16 13:48:21 UTC (rev 44525)
@@ -8,7 +8,7 @@
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.apache.log4j;bundle-version="1.2.15",
- org.jboss.tools.ui.bot.ext,
+ org.jboss.tools.ui.bot.ext;bundle-version="3.4.0",
org.junit;bundle-version="4.8.1",
org.eclipse.swtbot.eclipse.core;bundle-version="2.0.5",
org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.5",
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTests.launch
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTests.launch 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTests.launch 2012-10-16 13:48:21 UTC (rev 44525)
@@ -14,7 +14,7 @@
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/OpenShiftAllBotTests.java"/>
+<listEntry value="/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/OpenShiftJenkinsBotTests.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
@@ -27,7 +27,7 @@
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.openshift.ui.bot.test.OpenShiftAllBotTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.openshift.ui.bot.test.OpenShiftJenkinsBotTests"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.openshift.ui.bot.test"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTestsMaven.launch
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTestsMaven.launch 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/OpenShiftBotTestsMaven.launch 2012-10-16 13:48:21 UTC (rev 44525)
@@ -4,7 +4,7 @@
<stringAttribute key="M2_GOALS" value="clean install"/>
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
<booleanAttribute key="M2_OFFLINE" value="false"/>
-<stringAttribute key="M2_PROFILES" value="default"/>
+<stringAttribute key="M2_PROFILES" value="maximum.target,jbosstools-staging-aggregate"/>
<listAttribute key="M2_PROPERTIES">
<listEntry value="swtbot.test.skip=false"/>
<listEntry value="configurations.dir=${project_loc}/resources"/>
@@ -17,5 +17,5 @@
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="DISPLAY" value=":${string_prompt}"/>
</mapAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.jboss.tools.openshift.ui.bot.test}"/>
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/openshift/tests/org.jboss.tools.openshift.ui.bot.test}"/>
</launchConfiguration>
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/resources/openshift.ui.bot.test.properties
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/resources/openshift.ui.bot.test.properties 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/resources/openshift.ui.bot.test.properties 2012-10-16 13:48:21 UTC (rev 44525)
@@ -5,3 +5,5 @@
openshift.user.wrongpwd=rhtest
openshift.domain=rhtestdomain
openshift.domain.new=rhtest
+openshift.server.prod=openshift.redhat.com
+openshift.server.stg=stg.openshift.redhat.com
\ No newline at end of file
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/OpenShiftJenkinsBotTests.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/OpenShiftJenkinsBotTests.java 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/OpenShiftJenkinsBotTests.java 2012-10-16 13:48:21 UTC (rev 44525)
@@ -1,12 +1,18 @@
package org.jboss.tools.openshift.ui.bot.test;
import org.jboss.tools.openshift.ui.bot.test.explorer.Connection;
+import org.jboss.tools.openshift.ui.bot.test.explorer.CreateDomain;
+import org.jboss.tools.openshift.ui.bot.test.explorer.DeleteDomain;
+import org.jboss.tools.openshift.ui.bot.test.explorer.RenameDomain;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite.SuiteClasses;
@SuiteClasses({
-Connection.class
+Connection.class,
+CreateDomain.class,
+RenameDomain.class,
+DeleteDomain.class
})
@RunWith(RequirementAwareSuite.class)
public class OpenShiftJenkinsBotTests {
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/Connection.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/Connection.java 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/Connection.java 2012-10-16 13:48:21 UTC (rev 44525)
@@ -28,14 +28,14 @@
// set wrong user credentials
bot.text(0).setText(TestProperties.get("openshift.user.name"));
bot.text(1).setText(TestProperties.get("openshift.user.wrongpwd"));
- bot.checkBox(0).deselect();
+ bot.checkBox(1).deselect();
SWTBotButton finishButton = bot.button(IDELabel.Button.FINISH);
// try to move forward
finishButton.click();
// wait for credentials validation
- bot.waitWhile(new NonSystemJobRunsCondition(), TIME_20S);
+ bot.waitWhile(new NonSystemJobRunsCondition(), TIME_60S);
assertFalse("Finish button shouldn't be enabled.",
finishButton.isEnabled());
@@ -43,7 +43,7 @@
// set correct user credentials and save it to secure storage
bot.text(0).setText(TestProperties.get("openshift.user.name"));
bot.text(1).setText(TestProperties.get("openshift.user.pwd"));
-
+ bot.checkBox(1).deselect();
// create connection to OpenShift account
finishButton.click();
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateDomain.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateDomain.java 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/CreateDomain.java 2012-10-16 13:48:21 UTC (rev 44525)
@@ -1,8 +1,5 @@
package org.jboss.tools.openshift.ui.bot.test.explorer;
-import java.io.File;
-import java.util.Date;
-
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.waits.Conditions;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton;
@@ -12,7 +9,6 @@
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.condition.NonSystemJobRunsCondition;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
-import org.junit.Before;
import org.junit.Test;
/**
@@ -24,34 +20,18 @@
*/
public class CreateDomain extends SWTTestExt {
- private boolean keyAvailable = false;
-
- @Before
- public void prepareSSHPrefs() {
- // clear dir from libra stuff so wizard can create new
- File sshDir = new File(System.getProperty("user.home") + "/.ssh");
-
- if (sshDir.exists() && sshDir.isDirectory()
- && sshDir.listFiles().length > 0) {
- for (File file : sshDir.listFiles()) {
- if (file.getName().contains("id_rsa"))
- //keyAvailable = true;
- file.delete();
- if (file.getName().contains("known_hosts"))
- file.delete();
- }
- }
-
- }
-
@Test
public void canCreateDomain() throws InterruptedException {
// open OpenShift Explorer
SWTBotView openshiftExplorer = open
.viewOpen(OpenShiftUI.Explorer.iView);
- openshiftExplorer.bot().tree()
- .getTreeItem(TestProperties.get("openshift.user.name"))
+ openshiftExplorer
+ .bot()
+ .tree()
+ .getTreeItem(
+ TestProperties.get("openshift.user.name") + " "
+ + TestProperties.get("openshift.server.prod"))
.contextMenu(OpenShiftUI.Labels.EXPLORER_CREATE_EDIT_DOMAIN)
.click();
@@ -66,39 +46,14 @@
log.info("*** OpenShift SWTBot Tests: Domain name set. ***");
SWTBotButton finishBtn = bot.button(IDELabel.Button.FINISH);
-
-
- bot.link(0).click();
-
- if (keyAvailable) {
-// TODO: add them to the list
- bot.waitForShell(OpenShiftUI.Shell.SSH_WIZARD);
- assertTrue("SSH key should be set!", bot.table().columnCount() > 0);
- } else {
-
- bot.waitForShell(OpenShiftUI.Shell.SSH_WIZARD);
- bot.buttonInGroup("New...", "SSH Public Keys").click();
- bot.waitForShell(OpenShiftUI.Shell.NEW_SSH);
-
- bot.textInGroup("New SSH Key", 0).setText("jbtkey" + new Date());
- bot.textInGroup("New SSH Key", 2).setText("id_rsa");
- bot.button(IDELabel.Button.FINISH).click();
-
- bot.waitWhile(new NonSystemJobRunsCondition(), TIME_20S, TIME_1S);
- bot.waitForShell(OpenShiftUI.Shell.SSH_WIZARD);
-
- bot.button(IDELabel.Button.OK).click();
- bot.waitForShell(OpenShiftUI.Shell.CREATE_DOMAIN);
-
- log.info("*** OpenShift SWTBot Tests: SSH Keys created. ***");
- }
-
bot.waitUntil(Conditions.widgetIsEnabled(finishBtn));
finishBtn.click();
// wait while the domain is being created
- bot.waitUntil(Conditions.shellCloses(bot.activeShell()), TIME_60S);
+ bot.waitUntil(Conditions.shellCloses(bot.activeShell()), TIME_60S * 3,
+ TIME_1S);
+ bot.waitWhile(new NonSystemJobRunsCondition(), TIME_20S, TIME_1S);
log.info("*** OpenShift SWTBot Tests: Domain created. ***");
}
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/DeleteDomain.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/DeleteDomain.java 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/DeleteDomain.java 2012-10-16 13:48:21 UTC (rev 44525)
@@ -16,19 +16,23 @@
// refresh first
explorer.bot().tree()
- .getTreeItem(TestProperties.get("openshift.user.name"))
+ .getTreeItem(
+ TestProperties.get("openshift.user.name") + " "
+ + TestProperties.get("openshift.server.prod"))
.contextMenu(OpenShiftUI.Labels.REFRESH).click();
bot.waitWhile(new NonSystemJobRunsCondition(), TIME_60S * 3, TIME_1S);
// delete
explorer.bot().tree()
- .getTreeItem(TestProperties.get("openshift.user.name"))
+ .getTreeItem(
+ TestProperties.get("openshift.user.name") + " "
+ + TestProperties.get("openshift.server.prod"))
.contextMenu(OpenShiftUI.Labels.EXPLORER_DELETE_DOMAIN).click();
bot.checkBox().select();
bot.button("OK").click();
- bot.waitWhile(new NonSystemJobRunsCondition(), TIME_60S * 3, TIME_1S);
+ bot.waitWhile(new NonSystemJobRunsCondition(), TIME_60S * 4, TIME_1S);
}
}
Modified: trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/RenameDomain.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/RenameDomain.java 2012-10-16 12:29:30 UTC (rev 44524)
+++ trunk/openshift/tests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/explorer/RenameDomain.java 2012-10-16 13:48:21 UTC (rev 44525)
@@ -6,6 +6,7 @@
import org.jboss.tools.openshift.ui.bot.util.OpenShiftUI;
import org.jboss.tools.openshift.ui.bot.util.TestProperties;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.condition.NonSystemJobRunsCondition;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.junit.Test;
@@ -17,11 +18,13 @@
SWTBotView explorer = open.viewOpen(OpenShiftUI.Explorer.iView);
explorer.bot().tree()
- .getTreeItem(TestProperties.get("openshift.user.name"))
+ .getTreeItem(
+ TestProperties.get("openshift.user.name") + " "
+ + TestProperties.get("openshift.server.prod"))
.contextMenu(OpenShiftUI.Labels.EXPLORER_CREATE_EDIT_DOMAIN)
.click();
- bot.waitForShell("");
+ bot.waitForShell(OpenShiftUI.Shell.EDIT_DOMAIN);
SWTBotText domainText = bot.text(0);
@@ -32,9 +35,14 @@
domainText.setText(TestProperties.get("openshift.domain.new"));
+ log.info("*** OpenShift SWTBot Tests: Domain name re-set. ***");
+
bot.button(IDELabel.Button.FINISH).click();
bot.waitUntil(Conditions.shellCloses(bot.activeShell()), TIME_60S + TIME_30S);
-
+
+ log.info("*** OpenShift SWTBot Tests: Domain renamed. ***");
+
+ bot.waitWhile(new NonSystemJobRunsCondition(), TIME_20S, TIME_1S);
}
}
12 years, 11 months
JBoss Tools SVN: r44524 - trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-10-16 08:29:30 -0400 (Tue, 16 Oct 2012)
New Revision: 44524
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java
Log:
JBDS-2362 - Empty editor tab
Modified: trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java
===================================================================
--- trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java 2012-10-16 12:10:07 UTC (rev 44523)
+++ trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/JBossCentralActivator.java 2012-10-16 12:29:30 UTC (rev 44524)
@@ -12,8 +12,10 @@
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.ArrayList;
import java.util.Dictionary;
import java.util.Hashtable;
+import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
@@ -30,10 +32,16 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IEditorDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorReference;
+import org.eclipse.ui.IEditorRegistry;
import org.eclipse.ui.IViewReference;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchListener;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
@@ -42,6 +50,7 @@
import org.eclipse.ui.internal.WorkbenchWindow;
import org.eclipse.ui.internal.browser.WebBrowserPreference;
import org.eclipse.ui.internal.browser.WorkbenchBrowserSupport;
+import org.eclipse.ui.internal.registry.EditorRegistry;
import org.eclipse.ui.menus.CommandContributionItem;
import org.eclipse.ui.menus.CommandContributionItemParameter;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -106,6 +115,37 @@
private static JBossCentralActivator plugin;
private static Boolean isInternalWebBrowserAvailable;
+
+ private IWorkbenchListener workbenchListener = new IWorkbenchListener() {
+
+ @Override
+ public boolean preShutdown(IWorkbench workbench, boolean forced) {
+ Display.getDefault().syncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ IEditorReference[] references = page.getEditorReferences();
+ if (references != null) {
+ List<IEditorReference> l = new ArrayList<IEditorReference>();
+ for (IEditorReference reference:references) {
+ if (EditorRegistry.EMPTY_EDITOR_ID.equals(reference.getId()) ||
+ JBossCentralEditor.ID.equals(reference.getId())) {
+ l.add(reference);
+ }
+ }
+ if (l.size() > 0) {
+ page.closeEditors(l.toArray(new IEditorReference[0]), false);
+ }
+ }
+ }
+ });
+ return true;
+ }
+
+ @Override
+ public void postShutdown(IWorkbench workbench) {}
+ };
/**
* The constructor
@@ -124,6 +164,7 @@
super.start(context);
this.bundleContext = context;
plugin = this;
+ PlatformUI.getWorkbench().addWorkbenchListener(workbenchListener);
}
/*
@@ -140,6 +181,8 @@
plugin = null;
bundleContext = null;
super.stop(context);
+
+ PlatformUI.getWorkbench().removeWorkbenchListener(workbenchListener);
}
/**
@@ -305,7 +348,14 @@
Object newValue = event.getNewValue();
if (newValue instanceof Boolean
&& ((Boolean) newValue).booleanValue()) {
- openJBossCentralEditor(page);
+ Display.getCurrent().asyncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ openJBossCentralEditor(page);
+ }
+ });
+
window.removePropertyChangeListener(this);
}
}
12 years, 11 months
JBoss Tools SVN: r44523 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper.
by jbosstools-commits@lists.jboss.org
Author: apodhrad
Date: 2012-10-16 08:10:07 -0400 (Tue, 16 Oct 2012)
New Revision: 44523
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
Log:
Added importingProjectFromZip
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-10-16 09:49:45 UTC (rev 44522)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-10-16 12:10:07 UTC (rev 44523)
@@ -11,7 +11,9 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.SWTUtilExt;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.Import.GeneralExistingProjectsintoWorkspace;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.wizards.SWTBotImportWizard;
/**
* Heper class for project imports
@@ -64,4 +66,17 @@
SWTUtilExt util = new SWTUtilExt(bot);
util.waitForNonIgnoredJobs();
}
+
+ /**
+ * Import project from a given zip location
+ * @param projectLocation
+ */
+ public static void importProjectFromZip(String projectLocation) {
+ SWTBotImportWizard wizard = new SWTBotImportWizard();
+ wizard.open(GeneralExistingProjectsintoWorkspace.LABEL);
+ wizard.bot().radio(1).click();
+ wizard.bot().text(1).setText(projectLocation);
+ wizard.bot().button(IDELabel.Button.REFRESH).click();
+ wizard.finishWithWait();
+ }
}
12 years, 11 months
JBoss Tools SVN: r44522 - trunk/build/aggregate/soatests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke.
by jbosstools-commits@lists.jboss.org
Author: jgargula
Date: 2012-10-16 05:49:45 -0400 (Tue, 16 Oct 2012)
New Revision: 44522
Added:
trunk/build/aggregate/soatests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageJbpmRuntime.java
Log:
Added previously forgotten test for jBPM runtime.
Added: trunk/build/aggregate/soatests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageJbpmRuntime.java
===================================================================
--- trunk/build/aggregate/soatests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageJbpmRuntime.java (rev 0)
+++ trunk/build/aggregate/soatests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageJbpmRuntime.java 2012-10-16 09:49:45 UTC (rev 44522)
@@ -0,0 +1,50 @@
+package org.jboss.tools.drools.ui.bot.test.smoke;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.jboss.tools.drools.ui.bot.test.DroolsAllBotTests;
+import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.SWTEclipseExt;
+import org.jboss.tools.ui.bot.ext.SWTOpenExt;
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.Test;
+
+public class ManageJbpmRuntime extends SWTTestExt {
+
+ @Test
+ public void testManageJbpmRuntime() {
+ addJbpmRuntime(DroolsAllBotTests.JBPM_RUNTIME_NAME, DroolsAllBotTests.JBPM_RUNTIME_LOCATION, true);
+ }
+
+ public void addJbpmRuntime(String runtimeName, String runtimeLocation, boolean setAsDefault) {
+ selectJbpmPreferences();
+ bot.button(IDELabel.Button.ADD).click();
+ bot.shell(IDELabel.Shell.JBPM_RUNTIME).activate();
+ bot.textWithLabel(IDELabel.JbpmRuntimeDialog.NAME).setText(runtimeName);
+ bot.textWithLabel(IDELabel.JbpmRuntimeDialog.PATH).setText(runtimeLocation);
+ bot.button(IDELabel.Button.OK).click();
+ bot.shell(IDELabel.Shell.PREFERENCES).activate();
+ SWTBotTable table = bot.table();
+ boolean jbpmRuntimeAdded = SWTEclipseExt.isItemInTableColumn(table, runtimeName, 0)
+ && SWTEclipseExt.isItemInTableColumn(table, runtimeLocation, 1);
+ // Set new runtime as default
+ if (setAsDefault) {
+ table.getTableItem(0).check();
+ }
+ bot.button(IDELabel.Button.OK).click();
+ assertTrue("jBPM Runtime with name [" + runtimeName + "] and location ["
+ + runtimeLocation + "] was not added properly.", jbpmRuntimeAdded);
+ DroolsAllBotTests.setTestJbpmRuntimeName(runtimeName);
+ DroolsAllBotTests.setTestJbpmRuntimeLocation(runtimeLocation);
+ SWTEclipseExt.hideWarningIfDisplayed(bot);
+ }
+
+ /**
+ * Selects Drools Preferences within Preferences Dialog
+ */
+ private void selectJbpmPreferences() {
+ jbt.delay();
+ new SWTOpenExt(new SWTBotExt()).preferenceOpen(ActionItem.Preference.JbpmInstalledJbpmRuntimes.LABEL);
+ }
+}
12 years, 11 months