JBoss Tools SVN: r42621 - trunk/central/site.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-07-17 11:21:55 -0400 (Tue, 17 Jul 2012)
New Revision: 42621
Modified:
trunk/central/site/pom.xml
Log:
JBIDE-11065: Reuse buildQualifier property from tycho-packaging-plugin
Modified: trunk/central/site/pom.xml
===================================================================
--- trunk/central/site/pom.xml 2012-07-17 15:02:01 UTC (rev 42620)
+++ trunk/central/site/pom.xml 2012-07-17 15:21:55 UTC (rev 42621)
@@ -33,7 +33,7 @@
<symbols>
<update.site.name>JBoss Tools - Central</update.site.name>
<update.site.description>${update.site.description}</update.site.description>
- <update.site.version>${JBT_VERSION} ${qualifier}</update.site.version>
+ <update.site.version>${JBT_VERSION} ${buildQualifier}</update.site.version>
<target.eclipse.version>${targetEclipseVersion}</target.eclipse.version>
</symbols>
</configuration>
13 years, 8 months
JBoss Tools SVN: r42620 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2012-07-17 11:02:01 -0400 (Tue, 17 Jul 2012)
New Revision: 42620
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
Log:
Remove changes from revision 42175. All tests from /trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ were broken.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java 2012-07-17 14:38:41 UTC (rev 42619)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java 2012-07-17 15:02:01 UTC (rev 42620)
@@ -10,11 +10,17 @@
******************************************************************************/
package org.jboss.tools.vpe.ui.bot.test.editor;
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
import org.eclipse.swtbot.swt.finder.SWTBot;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.test.WidgetVariables;
+import org.jboss.tools.vpe.ui.bot.test.Activator;
import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
import org.jboss.tools.vpe.ui.bot.test.tools.SWTBotWebBrowser;
@@ -48,26 +54,15 @@
protected void closeUnuseDialogs() {
}
-// @Override
-// /**
-// * Path "trunk\vpe\tests\org.jboss.tools.vpe.ui.bot.test\editor\"
-// * does not exist. The code is obsolete.
-// * So there is no need in the overridden method.
-// */
-// protected String getPathToResources(String pagePathNextToPluginBundlePath) throws IOException {
-// String pluginBundlePath = FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile();
-// String filePath = pluginBundlePath +"resources/editor/"+pagePathNextToPluginBundlePath; //$NON-NLS-1$
-// File file = new File(filePath);
-// /*
-// * Path "trunk\vpe\tests\org.jboss.tools.vpe.ui.bot.test\editor\"
-// * does not exist. The code is obsolete.
-// */
-// if (!file.isFile()) {
-// filePath = pluginBundlePath +"editor/"+testPage; //$NON-NLS-1$
-// file = new File(filePath);
-// }
-// return filePath;
-// }
+ @Override
+ protected String getPathToResources(String testPage) throws IOException {
+ String filePath = FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"resources/editor/"+testPage; //$NON-NLS-1$ //$NON-NLS-2$
+ File file = new File(filePath);
+ if (!file.isFile()) {
+ filePath = FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"editor/"+testPage; //$NON-NLS-1$//$NON-NLS-2$
+ }
+ return filePath;
+ }
protected void openPage(){
SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
13 years, 8 months
JBoss Tools SVN: r42619 - in trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40: .settings and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2012-07-17 10:38:41 -0400 (Tue, 17 Jul 2012)
New Revision: 42619
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.classpath
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.project
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jpt.core.prefs
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.hibernate.eclipse.console.prefs
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/console/
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/console/pre-jpatest40.launch
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/META-INF/
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/META-INF/persistence.xml
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/hibernate-localhost.cfg.xml
Log:
Missing parts jpatest40 hb ui bot test project added
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.classpath
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.classpath (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.classpath 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="/hibernatelib/connector/hsqldb.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/connector/mysql-connector-java-5.1.13-bin.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/connector/postgresql-8.4-702.jdbc4.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/antlr-2.7.7.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/commons-collections-3.2.1.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/dom4j-1.6.1.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/hibernate-commons-annotations-4.0.1.Final.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/hibernate-core-4.0.1.Final.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/hibernate-entitymanager-4.0.1.Final.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/hibernate-envers-4.0.1.Final.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/hibernate-jpa-2.0-api-1.0.1.Final.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/javassist-3.15.0-GA.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/jboss-logging-3.1.0.CR2.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/hibernate40/jboss-transaction-api_1.1_spec-1.0.0.Final.jar"/>
+ <classpathentry kind="lib" path="/hibernatelib/jpa2/javax.persistence_2.0.0.jar"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.project
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.project (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.project 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jpatest40</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.hibernate.eclipse.console.hibernateBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.hibernate.eclipse.console.hibernateNature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jdt.core.prefs 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jpt.core.prefs
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jpt.core.prefs (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jpt.core.prefs 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+org.eclipse.jpt.core.platform=hibernate2_0
+org.eclipse.jpt.jpa.core.discoverAnnotatedClasses=true
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.jpt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,7 @@
+<root>
+ <facet id="jpt.jpa">
+ <node name="libprov">
+ <attribute name="provider-id" value="jpa-no-op-library-provider"/>
+ </node>
+ </facet>
+</root>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <fixed facet="jpt.jpa"/>
+ <fixed facet="java"/>
+ <installed facet="java" version="1.6"/>
+ <installed facet="jpt.jpa" version="2.0"/>
+</faceted-project>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.hibernate.eclipse.console.prefs
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.hibernate.eclipse.console.prefs (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.hibernate.eclipse.console.prefs 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,3 @@
+default.configuration=pre-jpatest40
+eclipse.preferences.version=1
+hibernate3.enabled=true
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/.settings/org.hibernate.eclipse.console.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/console/pre-jpatest40.launch
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/console/pre-jpatest40.launch (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/console/pre-jpatest40.launch 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="jpatest40"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="jpatest40"/>
+<stringAttribute key="org.hibernate.eclipse.launch.CONFIGURATION_FACTORY" value="JPA"/>
+<listAttribute key="org.hibernate.eclipse.launch.FILE_MAPPINGS"/>
+<stringAttribute key="org.hibernate.eclipse.launch.HIBERNATE_VERSION" value="3.5"/>
+<stringAttribute key="org.hibernate.eclipse.launch.USE_JPA_PROJECT_PROFILE" value="true"/>
+</launchConfiguration>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/console/pre-jpatest40.launch
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/META-INF/persistence.xml
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/META-INF/persistence.xml (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/META-INF/persistence.xml 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
+ <persistence-unit name="jpatest40">
+ <properties>
+ <property name="hibernate.ejb.cfgfile" value="hibernate-localhost.cfg.xml"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/META-INF/persistence.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/hibernate-localhost.cfg.xml
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/hibernate-localhost.cfg.xml (rev 0)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/hibernate-localhost.cfg.xml 2012-07-17 14:38:41 UTC (rev 42619)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+ <session-factory>
+ <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
+ <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost/xdb</property>
+ <property name="hibernate.connection.username">sa</property>
+ <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
+ </session-factory>
+</hibernate-configuration>
Property changes on: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/jpatest40/src/hibernate-localhost.cfg.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 8 months
JBoss Tools SVN: r42618 - in trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test: tests and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-07-17 08:28:03 -0400 (Tue, 17 Jul 2012)
New Revision: 42618
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigCodeCompletionTest.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
Log:
new test SeamConfigCodeCompletionTest implemented and added into test suite
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-07-17 12:27:25 UTC (rev 42617)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-07-17 12:28:03 UTC (rev 42618)
@@ -23,6 +23,7 @@
import org.jboss.tools.cdi.seam3.bot.test.tests.RequiresAnnotationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.ResourceOpenOnTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.SeamConfigClassBaseOpenOnTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.SeamConfigCodeCompletionTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.SeamConfigEEOpenOnTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.SeamConfigInjectOpenOnTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.SeamConfigValidationTest;
@@ -52,7 +53,8 @@
SeamConfigClassBaseOpenOnTest.class,
SeamConfigEEOpenOnTest.class,
SeamConfigInjectOpenOnTest.class,
- SeamConfigValidationTest.class
+ SeamConfigValidationTest.class,
+ SeamConfigCodeCompletionTest.class,
})
public class CDISeam3AllBotTests extends AbstractTestSuite {
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigCodeCompletionTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigCodeCompletionTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigCodeCompletionTest.java 2012-07-17 12:28:03 UTC (rev 42618)
@@ -0,0 +1,244 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.seam3.bot.test.tests;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.jboss.tools.cdi.bot.test.CDIConstants;
+import org.jboss.tools.cdi.seam3.bot.test.base.Seam3TestBase;
+import org.jboss.tools.cdi.seam3.bot.test.util.SeamLibrary;
+import org.jboss.tools.ui.bot.ext.helper.ContentAssistHelper;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class SeamConfigCodeCompletionTest extends Seam3TestBase {
+
+ private static String projectName = "seamConfigCodeCompletion";
+ private static final String SEAM_CONFIG = "seam-beans.xml";
+
+ @BeforeClass
+ public static void setup() {
+ importSeam3ProjectWithLibrary(projectName, SeamLibrary.SOLDER_3_1);
+ openSeamConfig();
+ }
+
+ /**
+ * In context of <beans> ... </beans>
+ * Suggest all classes in available packages.
+ */
+ @Test
+ public void testClassesCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("r:Envelope - test","r:Report - test");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Report >", -1, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of <beans> ... </beans>
+ * Suggest all annotation types in available packages.
+ */
+ @Test
+ public void testAnnotationsCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("r:Q1 - test","r:S1 - test");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Report >", -1, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag header <r:Report | >
+ Suggest all fields available if Report is class;
+ */
+ @Test
+ public void testClassInFieldsCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("annotatedValue");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Report >", 10, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag header <r:Report | >
+ Suggest all methods available if Report is annotation type.
+ */
+ @Test
+ public void testAnnotationInMethodsCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("someMethod");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:S1 >", 6, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag content <r:Report> | </r:Report>
+ Suggest <s:replaces/> and <s:modifies/> if Report is class;
+ */
+ @Test
+ public void testReplacesModifiesCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("s:replaces", "s:modifies");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Report >", 11, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag content <r:Report> | </r:Report>
+ Suggest <s:parameters> if Report is class;
+ */
+ @Test
+ public void testParametersCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("s:parameters");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Report >", 11, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag content <r:Report> | </r:Report>
+ Suggest all fields and methods available if Report is class;
+ */
+ @Test
+ public void testClassFieldsAndMethodsCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("r:value", "r:someMethod");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Envelope >", 13, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag content <r:Report> | </r:Report>
+ Suggest all methods available if Report is annotation type;
+ */
+ @Test
+ public void testAnnotationMethodsCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("r:someMethod");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:S1 >", 7, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ * In context of tag content <r:Report> | </r:Report>
+ Suggest all annotation types in available packages.
+ */
+ @Test
+ public void testAnnotationsInPackageCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("r:Q1 - test", "r:S1 - test");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:Report >", 11, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ In context of <r:Report> <r:address> | </r:address> </r:Report>
+ Suggest <s:value> if 'address' is class field or annotation type method;
+ */
+ @Test
+ public void testValueCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("s:value");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:annotatedValue>", 18, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ In context of <r:Report> <r:address> | </r:address> </r:Report>
+ Suggest <s:entry> if 'address' is class field or annotation type method (maybe we should check that it is map);
+ */
+ @Test
+ public void testEntryCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("s:entry");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:annotatedValue>", 18, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ In context of <r:Report> <r:address> | </r:address> </r:Report>
+ Suggest <s:parameters> if 'address' is class method;
+ */
+ @Test
+ public void testMethodParametersCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("s:parameters");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<r:someMethod>", 14, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ In context of <s:entry> | </s:entry>
+ Suggest <s:value> and <s:key>
+ */
+ @Test
+ public void testValueAndKeyCodeCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("s:key", "s:value");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<s:entry>", 9, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ In context of <s:value> | </s:value> or <s:key> | </s:key>
+ Suggest all classes in available packages since value may be set as an inline bean.
+ */
+ @Test
+ public void testInlineBeanCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("r:Report - test",
+ "r:Envelope - test", "r:Q1 - test", "r:S1 - test");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<s:value>", 9, 0, expectedProposalList, false);
+
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "<s:key>", 7, 0, expectedProposalList, false);
+
+ }
+
+ /**
+ In context of xmlns:*="|"
+ Suggest "urn:java:" with available packages.
+ */
+ @Test
+ public void testAvailablePackagesCompletion() {
+
+ List<String> expectedProposalList = Arrays.asList("test", "org", "com");
+ ContentAssistHelper.checkContentAssistContent(bot,
+ SEAM_CONFIG, "xmlns:s=\"", 9, 0, expectedProposalList, false);
+
+ }
+
+ private static void openSeamConfig() {
+ packageExplorer.openFile(projectName, CDIConstants.WEBCONTENT,
+ CDIConstants.WEB_INF, SEAM_CONFIG);
+ bot.cTabItem("Source").activate();
+ }
+
+}
13 years, 8 months
JBoss Tools SVN: r42617 - in trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects: seamConfigCodeCompletion and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-07-17 08:27:25 -0400 (Tue, 17 Jul 2012)
New Revision: 42617
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/seam-beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Al1.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Envelope.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Q1.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Report.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/S1.java
Log:
new resource projects for ws bot tests
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.classpath
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.classpath
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.project
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.project
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/.jsdtscope
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/.jsdtscope
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.jdt.core.prefs 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.common.component
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.common.component
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/META-INF/MANIFEST.MF 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/beans.xml
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/beans.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/seam-beans.xml
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/WebContent/WEB-INF/seam-beans.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Al1.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Al1.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Al1.java 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,20 @@
+package test;
+
+import javax.enterprise.util.AnnotationLiteral;
+import javax.inject.Named;
+
+public class Al1 extends AnnotationLiteral<Named> implements Named {
+
+ private final String value;
+
+ public Al1(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String value() {
+ // TODO Auto-generated method stub
+ return value;
+ }
+
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Envelope.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Envelope.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Envelope.java 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,11 @@
+package test;
+
+public class Envelope {
+
+ private String value;
+
+ public void someMethod() {
+
+ }
+
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Q1.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Q1.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Q1.java 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,21 @@
+package test;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+@Qualifier
+@Target({ TYPE, METHOD, PARAMETER, FIELD })
+@Retention(RUNTIME)
+@Documented
+public @interface Q1 {
+
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Report.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Report.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/Report.java 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,12 @@
+package test;
+
+import java.util.Map;
+
+public class Report {
+
+ @Q1
+ private String annotatedValue;
+
+ private Map<Integer, String> myMap;
+
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/S1.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/S1.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigCodeCompletion/src/test/S1.java 2012-07-17 12:27:25 UTC (rev 42617)
@@ -0,0 +1,22 @@
+package test;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.enterprise.inject.Stereotype;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+@Stereotype
+@Target({ TYPE, METHOD, FIELD })
+@Retention(RUNTIME)
+@Documented
+public @interface S1 {
+
+ public String someMethod();
+
+}
13 years, 8 months
JBoss Tools SVN: r42615 - tags.
by jbosstools-commits@lists.jboss.org
Author: dpalmer
Date: 2012-07-17 06:20:09 -0400 (Tue, 17 Jul 2012)
New Revision: 42615
Added:
tags/soatools-3.3.0.GA/
Log:
Tagging for soatools 3.3.0.GA
13 years, 8 months
JBoss Tools SVN: r42614 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts.
by jbosstools-commits@lists.jboss.org
Author: rhopp
Date: 2012-07-17 04:53:26 -0400 (Tue, 17 Jul 2012)
New Revision: 42614
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotHyperlinkExt.java
Log:
Fix for clicking on ImageHyperlink.
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotHyperlinkExt.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotHyperlinkExt.java 2012-07-17 07:46:22 UTC (rev 42613)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotHyperlinkExt.java 2012-07-17 08:53:26 UTC (rev 42614)
@@ -1,6 +1,7 @@
package org.jboss.tools.ui.bot.ext.parts;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.results.BoolResult;
import org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot;
import org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl;
import org.eclipse.ui.forms.widgets.Hyperlink;
@@ -21,11 +22,38 @@
* @return
*/
public AbstractSWTBot<Hyperlink> activate() {
- setFocus();
+ int timeout = 0;
+ while (!hasFocus() && timeout!=5){
+ //try to set focus
+ setFocus();
+ log.info("Trying to set focus");
+ sleep(1000);
+ timeout++;
+ }
+ if (!hasFocus()){
+ throw new IllegalStateException("Unable to focus widget of type Hyperlink");
+ }
keyboard().typeCharacter('\r');
return this;
}
+
+
/**
+ * Tests whether widget has focus or not. Needed for workaround of issue, where method setFocus() isn't working properly when ececuting test via maven.
+ * @return true if widget has focus. False otherwise.
+ */
+
+ public boolean hasFocus(){
+ return syncExec(new BoolResult() {
+
+ @Override
+ public Boolean run() {
+ return widget.isFocusControl();
+ }
+ });
+ }
+
+ /**
* clicks on hyper-link (not real click, but {@link SWTBotHyperlinkExt#activate()}
*/
public AbstractSWTBot<Hyperlink> click() {
13 years, 8 months
JBoss Tools SVN: r42613 - in trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test: decorator and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-07-17 03:46:22 -0400 (Tue, 17 Jul 2012)
New Revision: 42613
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/beansxml/BeansXMLValidationTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/decorator/DecoratorFromWebBeanTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedRefactoringTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/FindObserverForEventTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/injection/ProblemEligibleInjectionTest.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/validators/AbstractValidationProvider.java
trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/AssignableBeansDialog.java
Log:
fixing static fields
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/beansxml/BeansXMLValidationTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/beansxml/BeansXMLValidationTest.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/beansxml/BeansXMLValidationTest.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -27,8 +27,8 @@
public class BeansXMLValidationTest extends BeansXMLQuickFixTestBase {
- private final String someBean = "Bean1";
- private final String nonExistingPackage = "somePackage";
+ private static final String someBean = "Bean1";
+ private static final String nonExistingPackage = "somePackage";
@Override
public String getProjectName() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/decorator/DecoratorFromWebBeanTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/decorator/DecoratorFromWebBeanTest.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/decorator/DecoratorFromWebBeanTest.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -32,13 +32,13 @@
public class DecoratorFromWebBeanTest extends CDITestBase {
- private final String ACCOUNT = "Account";
+ private static final String ACCOUNT = "Account";
- private final String ACCOUNT_JAVA = ACCOUNT + ".java";
+ private static final String ACCOUNT_JAVA = ACCOUNT + ".java";
- private final String ACCOUNT_DECORATOR = "AccountDecorator";
+ private static final String ACCOUNT_DECORATOR = "AccountDecorator";
- private final String ACCOUNT_DECORATOR_JAVA = ACCOUNT_DECORATOR + ".java";
+ private static final String ACCOUNT_DECORATOR_JAVA = ACCOUNT_DECORATOR + ".java";
@Override
public String getProjectName() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedComponentsSearchingTest.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -32,12 +32,12 @@
public class NamedComponentsSearchingTest extends CDITestBase {
- private final CDIWizardBaseExt wizardExt = new CDIWizardBaseExt();
- private final String beanName = "Bean1";
- private final String stereotypeName = "Stereotype1";
- private static SearchNamedDialogWizard namedDialog = null;
- private final String BEAN_STEREOTYPE_PATH = "/resources/named/BeanWithStereotype.java.cdi";
- private final String BEAN_STEREOTYPE_NAMED_PATH = "/resources/named/BeanWithStereotypeAndNamed.java.cdi";
+ private static final CDIWizardBaseExt wizardExt = new CDIWizardBaseExt();
+ private static final String beanName = "Bean1";
+ private static final String stereotypeName = "Stereotype1";
+ private SearchNamedDialogWizard namedDialog = null;
+ private static final String BEAN_STEREOTYPE_PATH = "/resources/named/BeanWithStereotype.java.cdi";
+ private static final String BEAN_STEREOTYPE_NAMED_PATH = "/resources/named/BeanWithStereotypeAndNamed.java.cdi";
@Override
public String getProjectName() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedRefactoringTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedRefactoringTest.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/named/NamedRefactoringTest.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -29,12 +29,12 @@
public class NamedRefactoringTest extends JSFTestBase {
- private final String MANAGED_BEAN_1 = "ManagedBean1";
- private final String MANAGED_BEAN_2 = "ManagedBean2";
- private final String INDEX_XHTML_1= "index1.xhtml";
- private final String INDEX_XHTML_2= "index2.xhtml";
- private final String INDEX_XHTML_3= "index3.xhtml";
- private final String NEW_NAMED_PARAM = "bean2";
+ private static final String MANAGED_BEAN_1 = "ManagedBean1";
+ private static final String MANAGED_BEAN_2 = "ManagedBean2";
+ private static final String INDEX_XHTML_1= "index1.xhtml";
+ private static final String INDEX_XHTML_2= "index2.xhtml";
+ private static final String INDEX_XHTML_3= "index3.xhtml";
+ private static final String NEW_NAMED_PARAM = "bean2";
@Override
public String getProjectName() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/FindObserverForEventTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/FindObserverForEventTest.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/openon/FindObserverForEventTest.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -223,6 +223,7 @@
eventsTable.containsItem(parametrizedEventItem.replace("XXX", "2Q2Event"))) {
allEventsFound = true;
}
+ break;
//observeQ1MyBean1
case 2:
if (eventsTable.containsItem(parametrizedEventItem.replace("XXX", "1Q1Event")) &&
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/injection/ProblemEligibleInjectionTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/injection/ProblemEligibleInjectionTest.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/injection/ProblemEligibleInjectionTest.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -26,10 +26,10 @@
public class ProblemEligibleInjectionTest extends EligibleInjectionQuickFixTestBase {
- private final String ANIMAL = "Animal";
- private final String DOG = "Dog";
- private final String BROKEN_FARM = "BrokenFarm";
- private final String QUALIFIER = "Q1";
+ private static final String ANIMAL = "Animal";
+ private static final String DOG = "Dog";
+ private static final String BROKEN_FARM = "BrokenFarm";
+ private static final String QUALIFIER = "Q1";
@Override
public String getProjectName() {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/validators/AbstractValidationProvider.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/validators/AbstractValidationProvider.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/quickfix/validators/AbstractValidationProvider.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -19,7 +19,7 @@
public abstract class AbstractValidationProvider implements IValidationProvider {
- protected static List<ValidationProblem> problems = null;
+ protected List<ValidationProblem> problems = null;
public AbstractValidationProvider() {
problems = new ArrayList<ValidationProblem>();
Modified: trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/AssignableBeansDialog.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/AssignableBeansDialog.java 2012-07-17 07:45:36 UTC (rev 42612)
+++ trunk/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/uiutils/wizards/AssignableBeansDialog.java 2012-07-17 07:46:22 UTC (rev 42613)
@@ -23,19 +23,19 @@
private SWTBot bot = null;
- private final String UNAVAILABLE_BEANS = "Unavailable Beans";
+ private static final String UNAVAILABLE_BEANS = "Unavailable Beans";
- private final String DECORATOR = "@Decorator";
+ private static final String DECORATOR = "@Decorator";
- private final String INTERCEPTOR = "@Interceptor";
+ private static final String INTERCEPTOR = "@Interceptor";
- private final String ELIMINATED_AMBIGUOUS = "Eliminated ambiguous";
+ private static final String ELIMINATED_AMBIGUOUS = "Eliminated ambiguous";
- private final String UNSELECTED_ALTERNATIVE = "Unselected @Alternative";
+ private static final String UNSELECTED_ALTERNATIVE = "Unselected @Alternative";
- private final String UNAVAILABLE_PRODUCER = "@Produces in unavailable bean";
+ private static final String UNAVAILABLE_PRODUCER = "@Produces in unavailable bean";
- private final String SPECIALIZED_BEANS = "Specialized beans";
+ private static final String SPECIALIZED_BEANS = "Specialized beans";
public AssignableBeansDialog(SWTBotShell shell) {
this.bot = shell.bot();
13 years, 8 months
JBoss Tools SVN: r42612 - trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-07-17 03:45:36 -0400 (Tue, 17 Jul 2012)
New Revision: 42612
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/ArchivePublishSettingsDialog.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FilesetDialog.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FolderCreatingDialog.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/UserLibrariesFilesetDialog.java
Log:
fixing static fields
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/ArchivePublishSettingsDialog.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/ArchivePublishSettingsDialog.java 2012-07-17 07:44:40 UTC (rev 42611)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/ArchivePublishSettingsDialog.java 2012-07-17 07:45:36 UTC (rev 42612)
@@ -28,7 +28,7 @@
private SWTBotShell shell = null;
private SWTBot bot = null;
- private final String DIALOG_TITLE = "Archive Publish Settings";
+ private static final String DIALOG_TITLE = "Archive Publish Settings";
public ArchivePublishSettingsDialog() {
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FilesetDialog.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FilesetDialog.java 2012-07-17 07:44:40 UTC (rev 42611)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FilesetDialog.java 2012-07-17 07:45:36 UTC (rev 42612)
@@ -27,7 +27,7 @@
private SWTBotShell shell = null;
private SWTBot bot = null;
- private final String DIALOG_TITLE = "Fileset Wizard";
+ private static final String DIALOG_TITLE = "Fileset Wizard";
public FilesetDialog() {
shell = SWTBotFactory.getBot().shell(getDialogTitle());
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FolderCreatingDialog.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FolderCreatingDialog.java 2012-07-17 07:44:40 UTC (rev 42611)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/FolderCreatingDialog.java 2012-07-17 07:45:36 UTC (rev 42612)
@@ -24,7 +24,7 @@
private SWTBotShell shell = null;
private SWTBot bot = null;
- private final String DIALOG_TITLE = "Create a folder";
+ private static final String DIALOG_TITLE = "Create a folder";
public FolderCreatingDialog() {
shell = SWTBotFactory.getBot().shell(getDialogTitle());
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/UserLibrariesFilesetDialog.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/UserLibrariesFilesetDialog.java 2012-07-17 07:44:40 UTC (rev 42611)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/dialog/UserLibrariesFilesetDialog.java 2012-07-17 07:45:36 UTC (rev 42612)
@@ -28,7 +28,7 @@
private SWTBotShell shell = null;
private SWTBot bot = null;
- private final String DIALOG_TITLE = "User Library Fileset Wizard";
+ private static final String DIALOG_TITLE = "User Library Fileset Wizard";
public UserLibrariesFilesetDialog() {
shell = SWTBotFactory.getBot().shell(getDialogTitle());
13 years, 8 months