JBoss Tools SVN: r42228 - 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-06-26 11:39:02 -0400 (Tue, 26 Jun 2012)
New Revision: 42228
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigOpenOnTest.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
Log:
new seam3 bot test SeamConfigOpenOnTest implemented and added into testsuite
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-06-26 15:38:06 UTC (rev 42227)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-06-26 15:39:02 UTC (rev 42228)
@@ -22,6 +22,7 @@
import org.jboss.tools.cdi.seam3.bot.test.tests.NamedPackagesTest;
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.SeamConfigOpenOnTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.VetoAnnotationTest;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.runner.RunWith;
@@ -44,7 +45,8 @@
FullyQualifiedTest.class,
LoggerSupportTest.class,
InterfaceAndAbstractValidationTest.class,
- MessageLoggerAnnotationTest.class
+ MessageLoggerAnnotationTest.class,
+ SeamConfigOpenOnTest.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/SeamConfigOpenOnTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigOpenOnTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/SeamConfigOpenOnTest.java 2012-06-26 15:39:02 UTC (rev 42228)
@@ -0,0 +1,88 @@
+/*******************************************************************************
+ * 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 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.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class SeamConfigOpenOnTest extends Seam3TestBase {
+
+ private static String projectName = "seamConfigOpenOn";
+ private final String SEAM_CONFIG = "seam-beans.xml";
+
+ @BeforeClass
+ public static void setup() {
+ importSeam3ProjectWithLibrary(projectName, SeamLibrary.SOLDER_3_1);
+ }
+
+ @Before
+ public void openSeamConfig() {
+ packageExplorer.openFile(projectName, CDIConstants.WEBCONTENT,
+ CDIConstants.WEB_INF, SEAM_CONFIG).toTextEditor();
+ bot.cTabItem("Source").activate();
+ }
+
+ @Test
+ public void testBeanOpenOn() {
+
+ /* open on bean class */
+ openOnUtil.openOnDirect("b:Bean1", SEAM_CONFIG);
+
+ /* test opened object */
+ assertExpectedOpenedClassAndSelection("Bean1.java", "Bean1");
+ }
+
+ @Test
+ public void testContructorOpenOn() {
+
+ /* open on bean class */
+ openOnUtil.openOnDirect("s:parameters", SEAM_CONFIG);
+
+ /* test opened object */
+ assertExpectedOpenedClassAndSelection("Bean1.java", "Bean1");
+ }
+
+ @Test
+ public void testFieldOpenOn() {
+
+ /* open on bean class */
+ openOnUtil.openOnDirect("b:value", SEAM_CONFIG);
+
+ /* test opened object */
+ assertExpectedOpenedClassAndSelection("Bean1.java", "value");
+ }
+
+ @Test
+ public void testMethodOpenOn() {
+
+ /* open on bean class */
+ openOnUtil.openOnDirect("b:method", SEAM_CONFIG);
+
+ /* test opened object */
+ assertExpectedOpenedClassAndSelection("Bean1.java", "method");
+ }
+
+ private void assertExpectedOpenedClassAndSelection(String className,
+ String selectedString) {
+ assertEquals(className, bot.activeEditor().getTitle());
+ assertEquals(selectedString, bot.activeEditor().toTextEditor().getSelection());
+ }
+
+}
13 years, 6 months
JBoss Tools SVN: r42227 - in trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects: seamConfigOpenOn and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-06-26 11:38:06 -0400 (Tue, 26 Jun 2012)
New Revision: 42227
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.jboss.ide.eclipse.as.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/WEB-INF/seam-beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/src/test/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/src/test/Bean1.java
Log:
new test project for seam3 bot test added
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.classpath
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.classpath (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.classpath 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
+ <attributes>
+ <attribute name="owner.project.facets" value="java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 7.1.1 Runtime ">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.project
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.project (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.project 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>seamConfigOpenOn</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <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.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.cdi.core.cdibuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ <nature>org.jboss.tools.cdi.core.cdinature</nature>
+ </natures>
+</projectDescription>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/.jsdtscope
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/.jsdtscope (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/.jsdtscope 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="WebContent"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.jdt.core.prefs 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,11 @@
+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.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.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/seamConfigOpenOn/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.component 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="seamConfigOpenOn">
+ <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+ <property name="java-output-path" value="/seamConfigOpenOn/build/classes"/>
+ <property name="context-root" value="seamConfigOpenOn"/>
+ </wb-module>
+</project-modules>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 7.1.1 Runtime "/>
+ <fixed facet="java"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="wst.jsdt.web"/>
+ <installed facet="java" version="1.6"/>
+ <installed facet="jst.web" version="3.0"/>
+ <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-06-26 15:38:06 UTC (rev 42227)
@@ -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/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/.settings/org.jboss.ide.eclipse.as.core.prefs 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/META-INF/MANIFEST.MF 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/WEB-INF/seam-beans.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/WEB-INF/seam-beans.xml (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/WebContent/WEB-INF/seam-beans.xml 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd"
+ xmlns:s="urn:java:ee" xmlns:b="urn:java:test">
+
+ <b:Bean1>
+
+ <s:parameters>
+ </s:parameters>
+
+ <b:value>
+ </b:value>
+
+ <b:method>
+ </b:method>
+
+ </b:Bean1>
+</beans>
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/src/test/Bean1.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/src/test/Bean1.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/seamConfigOpenOn/src/test/Bean1.java 2012-06-26 15:38:06 UTC (rev 42227)
@@ -0,0 +1,14 @@
+package test;
+
+public class Bean1 {
+
+ public Bean1() {
+ }
+
+ String value;
+
+ public String method() {
+ return "a";
+ }
+
+}
13 years, 6 months
JBoss Tools SVN: r42226 - in trunk/download.jboss.org/jbosstools/updates/juno: SR0 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-06-26 11:32:34 -0400 (Tue, 26 Jun 2012)
New Revision: 42226
Added:
trunk/download.jboss.org/jbosstools/updates/juno/SR0/
trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeArtifacts.xml
trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeContent.xml
Modified:
trunk/download.jboss.org/jbosstools/updates/juno/index.html
Log:
add SR0 composite; update index to point at it
Added: trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeArtifacts.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeArtifacts.xml (rev 0)
+++ trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeArtifacts.xml 2012-06-26 15:32:34 UTC (rev 42226)
@@ -0,0 +1,30 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?compositeArtifactRepository version='1.0.0'?>
+<repository name='JBoss Tools Requirements - Composite Juno M6 Mirror' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1.0.0'>
+<properties size='2'>
+<property name='p2.compressed' value='true'/>
+<property name='p2.timestamp' value='1340662507000'/>
+</properties>
+<children size='11'>
+<!-- new for Juno -->
+<child location='../../requirements/juno/201206270900-R/'/>
+<child location='../../requirements/atlassian/3.0.5.v20120518/'/>
+<child location='../../requirements/birt/4.2.0.v20120613/'/>
+<child location='../../requirements/eclipse/R-4.2-201206081400/'/>
+<child location='../../requirements/orbit/R20120526062928/'/>
+<child location='../../requirements/webtools/R-3.4.0-20120612174739/'/>
+<!-- removed egit as all its features are included in juno -->
+<!-- removed emf to see if it's still needed or if it's sufficient to include juno -->
+<!-- removed mylyn as all its features are included in juno; create new atlassian bucket instead -->
+
+<child location='../../requirements/gwt/2.5.2.v201202290255-rel-r37/'/>
+<!-- includes m2e, m2e-extras, m2e-wtp, m2e-jdt-compiler -->
+<child location='../../requirements/m2eclipse/20120531-1100/'/>
+
+<!-- unchanged since Indigo -->
+<child location='../../requirements/ecf/3.5.6/'/>
+<child location='../../requirements/swtbot/2.0.5/'/>
+<child location='../../requirements/xulrunner-1.9.2/'/>
+</children>
+</repository>
+
Added: trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeContent.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeContent.xml (rev 0)
+++ trunk/download.jboss.org/jbosstools/updates/juno/SR0/compositeContent.xml 2012-06-26 15:32:34 UTC (rev 42226)
@@ -0,0 +1,30 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?compositeMetadataRepository version='1.0.0'?>
+<repository name='JBoss Tools Requirements - Composite Juno M6 Mirror' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>
+<properties size='2'>
+<property name='p2.compressed' value='true'/>
+<property name='p2.timestamp' value='1340662507000'/>
+</properties>
+<children size='11'>
+<!-- new for Juno -->
+<child location='../../requirements/juno/201206270900-R/'/>
+<child location='../../requirements/atlassian/3.0.5.v20120518/'/>
+<child location='../../requirements/birt/4.2.0.v20120613/'/>
+<child location='../../requirements/eclipse/R-4.2-201206081400/'/>
+<child location='../../requirements/orbit/R20120526062928/'/>
+<child location='../../requirements/webtools/R-3.4.0-20120612174739/'/>
+<!-- removed egit as all its features are included in juno -->
+<!-- removed emf to see if it's still needed or if it's sufficient to include juno -->
+<!-- removed mylyn as all its features are included in juno; create new atlassian bucket instead -->
+
+<child location='../../requirements/gwt/2.5.2.v201202290255-rel-r37/'/>
+<!-- includes m2e, m2e-extras, m2e-wtp, m2e-jdt-compiler -->
+<child location='../../requirements/m2eclipse/20120531-1100/'/>
+
+<!-- unchanged since Indigo -->
+<child location='../../requirements/ecf/3.5.6/'/>
+<child location='../../requirements/swtbot/2.0.5/'/>
+<child location='../../requirements/xulrunner-1.9.2/'/>
+</children>
+</repository>
+
Modified: trunk/download.jboss.org/jbosstools/updates/juno/index.html
===================================================================
--- trunk/download.jboss.org/jbosstools/updates/juno/index.html 2012-06-26 15:28:45 UTC (rev 42225)
+++ trunk/download.jboss.org/jbosstools/updates/juno/index.html 2012-06-26 15:32:34 UTC (rev 42226)
@@ -28,7 +28,9 @@
</p>
<p class="bodyText">Available Versions:<ul>
- <li><a href=M6>Juno M6</a> & <a href=extras>Extras</a></li>
+ <li><a href=SR0>Juno SR0</a></li>
+ <ul><li><a href=extras>Juno Extras</a> (currently the same as the <a href="../indigo/extras/">Indigo extras</a>)</li></ul>
+ <li><a href=M6>Juno M6</a></li>
</ul>
</p>
</td>
13 years, 6 months
JBoss Tools SVN: r42225 - trunk/seam/tests/org.jboss.tools.seam203CR1.ui.test.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-06-26 11:28:45 -0400 (Tue, 26 Jun 2012)
New Revision: 42225
Removed:
trunk/seam/tests/org.jboss.tools.seam203CR1.ui.test/requirements.properties
Log:
Deleted: trunk/seam/tests/org.jboss.tools.seam203CR1.ui.test/requirements.properties
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam203CR1.ui.test/requirements.properties 2012-06-26 14:35:05 UTC (rev 42224)
+++ trunk/seam/tests/org.jboss.tools.seam203CR1.ui.test/requirements.properties 2012-06-26 15:28:45 UTC (rev 42225)
@@ -1 +0,0 @@
-requirements=seam-2.0.3.CR1
\ No newline at end of file
13 years, 6 months
JBoss Tools SVN: r42224 - trunk/bpel/plugins/org.jboss.tools.bpel.runtimes.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2012-06-26 10:35:05 -0400 (Tue, 26 Jun 2012)
New Revision: 42224
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml
Log:
https://issues.jboss.org/browse/JBDS-2209 - remove commented sections in plugin.xml
Modified: trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml
===================================================================
--- trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml 2012-06-26 14:34:37 UTC (rev 42223)
+++ trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml 2012-06-26 14:35:05 UTC (rev 42224)
@@ -96,35 +96,6 @@
<extension point="org.eclipse.wst.common.project.facet.core.facets">
-<!--
- <project-facet id="bpel.facet.core">
- <label>%BPEL_CORE_FACET_LABEL</label>
- <description>%BPEL_CORE_FACET_DESCRIPTION</description>
- </project-facet>
-
- <project-facet-version facet="bpel.facet.core" version="2.0">
- <group-member
- id="modules">
- </group-member>
- <constraint>
- <and>
- <conflicts group="modules"/>
- </and>
- </constraint>
- </project-facet-version>
--->
-
-<!--
- <action facet="bpel.facet.core" version="2.0" type="INSTALL" id="bpel.facet.core.install">
- <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetInstallDelegate"/>
- <config-factory class="org.jboss.tools.bpel.runtimes.facets.BPELFacetInstallDataModelProvider"/>
- </action>
-
- <action facet="bpel.facet.core" version="2.0" type="UNINSTALL" id="bpel.facet.core.uninstall">
- <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetUninstallDelegate"/>
- </action>
--->
-
<category id="bpel.category">
<label>%BPEL_FACET_CATEGORY_LABEL</label>
<description>%BPEL_CORE_FACET_DESCRIPTION</description>
13 years, 6 months
JBoss Tools SVN: r42223 - branches/jbosstools-3.3.x/bpel/plugins/org.jboss.tools.bpel.runtimes.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2012-06-26 10:34:37 -0400 (Tue, 26 Jun 2012)
New Revision: 42223
Modified:
branches/jbosstools-3.3.x/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml
Log:
https://issues.jboss.org/browse/JBDS-2209 - remove duplicate bpel.facet.core definition
Modified: branches/jbosstools-3.3.x/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml
===================================================================
--- branches/jbosstools-3.3.x/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml 2012-06-26 14:22:44 UTC (rev 42222)
+++ branches/jbosstools-3.3.x/bpel/plugins/org.jboss.tools.bpel.runtimes/plugin.xml 2012-06-26 14:34:37 UTC (rev 42223)
@@ -93,35 +93,9 @@
An uninstall action was added to allow the facet to be swapped out with the
deprecated jbt.bpel.facet.core facet, or to be removed altogether
-->
+
<extension point="org.eclipse.wst.common.project.facet.core.facets">
- <project-facet id="bpel.facet.core">
- <label>%BPEL_CORE_FACET_LABEL</label>
- <description>%BPEL_CORE_FACET_DESCRIPTION</description>
- </project-facet>
-
- <project-facet-version facet="bpel.facet.core" version="2.0">
- <group-member
- id="modules">
- </group-member>
- <constraint>
- <and>
- <conflicts group="modules"/>
- </and>
- </constraint>
- </project-facet-version>
-
-<!--
- <action facet="bpel.facet.core" version="2.0" type="INSTALL" id="bpel.facet.core.install">
- <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetInstallDelegate"/>
- <config-factory class="org.jboss.tools.bpel.runtimes.facets.BPELFacetInstallDataModelProvider"/>
- </action>
-
- <action facet="bpel.facet.core" version="2.0" type="UNINSTALL" id="bpel.facet.core.uninstall">
- <delegate class="org.jboss.tools.bpel.runtimes.facets.BPELCoreFacetUninstallDelegate"/>
- </action>
--->
-
<category id="bpel.category">
<label>%BPEL_FACET_CATEGORY_LABEL</label>
<description>%BPEL_CORE_FACET_DESCRIPTION</description>
13 years, 6 months
JBoss Tools SVN: r42222 - in trunk: common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2012-06-26 10:22:44 -0400 (Tue, 26 Jun 2012)
New Revision: 42222
Added:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.jsp
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.xhtml
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/ElVarSearcher.java
trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java
trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/java/BaseAsYouTypeInJavaValidationTest.java
trunk/jsf/tests/org.jboss.tools.jsf.base.test/projects/JSF2KickStartWithoutLibs/JavaSource/demo/User.java
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/JSFAsYouTypeValidationTest.java
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/java/JSFAsYouTypeInJavaValidationTest.java
trunk/jst/tests/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/validation/BaseAsYouTypeValidationTest.java
Log:
JBIDE-10738
As-you-type EL validation
JUnit tests are updated
Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/ElVarSearcher.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/ElVarSearcher.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/ElVarSearcher.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007-2011 Red Hat, Inc.
+ * Copyright (c) 2007-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,
@@ -35,6 +35,7 @@
* This class helps to find var/value attributes in DOM tree.
* @author Alexey Kazakov
*/
+@SuppressWarnings("restriction")
public class ElVarSearcher {
private final static String VAR_ATTRIBUTE_NAME = "var"; //$NON-NLS-1$
@@ -257,26 +258,28 @@
*/
public static Var findVar(Node node, ELParserFactory factory) {
if(factory!=null && node!=null && Node.ELEMENT_NODE == node.getNodeType()) {
- Element element = (Element)node;
- if(element.hasAttribute(VAR_ATTRIBUTE_NAME)) {
- String var = element.getAttribute(VAR_ATTRIBUTE_NAME);
- int declOffset = 0;
- int declLength = 0;
- Node varAttr = element.getAttributeNode(VAR_ATTRIBUTE_NAME);
- if (varAttr instanceof IDOMAttr) {
- int varNameStart = ((IDOMAttr)varAttr).getNameRegionStartOffset();
- int varNameEnd = ((IDOMAttr)varAttr).getNameRegionEndOffset();
- declOffset = varNameStart;
- declLength = varNameEnd - varNameStart;
- }
- var = var.trim();
- if(!"".equals(var)) { //$NON-NLS-1$
- if(element.hasAttribute(VALUE_ATTRIBUTE_NAME)) {
- String value = element.getAttribute(VALUE_ATTRIBUTE_NAME);
- value = value.trim();
- Var newVar = new Var(factory, var, value, declOffset, declLength);
- if(newVar.getElToken()!=null) {
- return newVar;
+ Element element = (Element)node;
+ synchronized (element) {
+ if(element.hasAttribute(VAR_ATTRIBUTE_NAME)) {
+ String var = element.getAttribute(VAR_ATTRIBUTE_NAME);
+ int declOffset = 0;
+ int declLength = 0;
+ Node varAttr = element.getAttributeNode(VAR_ATTRIBUTE_NAME);
+ if (varAttr instanceof IDOMAttr) {
+ int varNameStart = ((IDOMAttr)varAttr).getNameRegionStartOffset();
+ int varNameEnd = ((IDOMAttr)varAttr).getNameRegionEndOffset();
+ declOffset = varNameStart;
+ declLength = varNameEnd - varNameStart;
+ }
+ var = var.trim();
+ if(!"".equals(var)) { //$NON-NLS-1$
+ if(element.hasAttribute(VALUE_ATTRIBUTE_NAME)) {
+ String value = element.getAttribute(VALUE_ATTRIBUTE_NAME);
+ value = value.trim();
+ Var newVar = new Var(factory, var, value, declOffset, declLength);
+ if(newVar.getElToken()!=null) {
+ return newVar;
+ }
}
}
}
Modified: trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/AbstractAsYouTypeValidationTest.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -16,6 +16,11 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
@@ -28,6 +33,8 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.texteditor.ITextEditor;
+import org.eclipse.wst.validation.internal.operations.EnabledValidatorsOperation;
+import org.jboss.tools.common.validation.ValidatorManager;
import org.jboss.tools.test.util.JobUtils;
import org.jboss.tools.test.util.WorkbenchUtils;
@@ -36,6 +43,7 @@
* @author Victor V. Rubezhny
*
*/
+@SuppressWarnings("restriction")
public abstract class AbstractAsYouTypeValidationTest extends TestCase {
private static final int MAX_SECONDS_TO_WAIT = 10;
@@ -98,55 +106,246 @@
protected abstract ISourceViewer getTextViewer();
- public void doAsYouTipeInJavaValidationTest(String elToValidate,
- String errorMessage) throws JavaModelException, BadLocationException {
+ /**
+ * The test procedure steps:
+ * - Find EL by a given number
+ * - Set up a good EL => see no annotations on that EL
+ * - Set up a broken EL => see annotation appearance on that EL
+ * - Set up a good EL again => see annotation to disappear on that EL
+ *
+ * @param goodEL
+ * @param elToValidate
+ * @param errorMessage
+ * @param numberOfRegionToTest
+ * @return boolean indicating that test was done for a region with a given number
+ * @throws JavaModelException
+ * @throws BadLocationException
+ */
+ public boolean doAsYouTypeValidationTest(String goodEL, String elToValidate,
+ String errorMessage, int numberOfRegionToTest) throws JavaModelException, BadLocationException {
+
+ //============================
+ // The test procedure steps:
+ // - Find EL by a given number
+ //============================
+
String documentContent = document.get();
- int start = (documentContent == null ? -1 : documentContent
- .indexOf(EL2FIND_START));
- assertFalse("No EL found in Java Strings: Starting '" + EL2FIND_START
- + "' characters are not found in document", (start == -1));
- int end = (documentContent == null ? -1 : documentContent.indexOf(
- EL2FIND_END, start));
- assertFalse("EL is not closed in Java Strings: Ending '"
- + EL2FIND_START + "' characters are not found in document",
- (end == -1));
-
+ int count = -1;
+
+ int start = 0;
+ int end = 0;
+ while (++count <= numberOfRegionToTest) {
+ start = (documentContent == null ? -1 : documentContent
+ .indexOf(EL2FIND_START, end));
+ if (start == -1 && count == numberOfRegionToTest)
+ return false;
+ assertFalse("No EL found in Java Strings: Starting '" + EL2FIND_START
+ + "' characters are not found in document", (start == -1));
+ end = (documentContent == null ? -1 : documentContent.indexOf(
+ EL2FIND_END, start));
+ if (end == -1 && count == numberOfRegionToTest)
+ return false;
+ assertFalse("EL is not closed in Java Strings: Ending '"
+ + EL2FIND_START + "' characters are not found in document",
+ (end == -1));
+ }
+ if (count < numberOfRegionToTest) {
+ // No more regions to test
+ return false;
+ }
+
int length = end - start + EL2FIND_END.length();
+ //==================================================
+ // - Set up a good EL => see no annotations on that EL
+ //==================================================
+
+// System.out.println("Text to be replaced [0]: [" + document.get(start, length) + "]");
+ document.replace(start, length, goodEL);
+ Annotation problemAnnotation = waitForAnnotation(
+ start, end, null, MAX_SECONDS_TO_WAIT, false, false);
+ assertNull("Problem Annotation found on a good EL!", problemAnnotation);
+ length = goodEL.length();
+
+ //==============================================================
+ // - Set up a broken EL => see annotation appearance on that EL
+ //==============================================================
+
+// System.out.println("Text to be replaced [1]: [" + document.get(start, length) + "]");
document.replace(start, length, elToValidate);
-
+ length = elToValidate.length();
end = start + elToValidate.length();
- Annotation problemAnnotation = waitForProblemAnnotationAppearance(
- start, end, MAX_SECONDS_TO_WAIT);
- assertNotNull("No ProblemAnnotation found!", problemAnnotation);
+ problemAnnotation = waitForAnnotation(
+ start, end, errorMessage, MAX_SECONDS_TO_WAIT, false, true);
+ assertNotNull("No Problem Annotation found!", problemAnnotation);
String message = problemAnnotation.getText();
assertEquals(
"Not expected error message found in ProblemAnnotation. Expected: ["
+ errorMessage + "], Found: [" + message + "]",
errorMessage, message);
+
+ //===================================================================
+ // - Set up a good EL again => see annotation to disappear on that EL
+ //===================================================================
+
+// System.out.println("Text to be replaced [2]: [" + document.get(start, length) + "]");
+ document.replace(start, length, goodEL);
+ problemAnnotation = waitForAnnotation(
+ start, end, null, MAX_SECONDS_TO_WAIT, false, false);
+ assertNull("Problem Annotation has not disappeared!", problemAnnotation);
+
+ return true;
}
- private Annotation waitForProblemAnnotationAppearance(
- final int start, final int end, final int seconds) {
+ /**
+ * The test procedure steps:
+ * - Find EL by a given number
+ * - Set up a broken EL and save the document => see problem marker appearance on that EL
+ * - Set up a another broken EL => see annotation appearance on that EL instead of a problem marker
+ * (an old problem marker has to disappear)
+ * - Set up a good EL again => see annotation to disappear on that EL
+ *
+ * @param goodEL
+ * @param elToValidate
+ * @param errorMessage
+ * @param numberOfRegionToTest
+ * @throws BadLocationException
+ * @throws CoreException
+ */
+ public boolean doAsYouTypeValidationMarkerAnnotationsRemovalTest(String goodEL, String elToValidate,
+ String errorMessage, String anotherELToValidate, String anotherErrorMessage, int numberOfRegionToTest) throws BadLocationException, CoreException {
+
+// System.out.println("doAsYouTypeValidationMarkerAnnotationsRemovalTest(goodEL=" + goodEL + ", elToValidate=" + elToValidate + ", errorMessage=[" + errorMessage +
+// "],\n\tanotherELToValidate=" + anotherELToValidate+ ", anotherErrorMessage=[" + anotherErrorMessage + "], numberOfRegionToTest=" + numberOfRegionToTest + ")");
+ //============================
+ // The test procedure steps:
+ // - Find EL by a given number
+ //============================
+
+ String documentContent = document.get();
+ int count = -1;
+
+ int start = 0;
+ int end = 0;
+ while (++count <= numberOfRegionToTest) {
+ start = (documentContent == null ? -1 : documentContent
+ .indexOf(EL2FIND_START, end));
+ if (start == -1 && count == numberOfRegionToTest)
+ return false;
+ assertFalse("No EL found in Java Strings: Starting '" + EL2FIND_START
+ + "' characters are not found in document", (start == -1));
+ end = (documentContent == null ? -1 : documentContent.indexOf(
+ EL2FIND_END, start));
+ if (end == -1 && count == numberOfRegionToTest)
+ return false;
+ assertFalse("EL is not closed in Java Strings: Ending '"
+ + EL2FIND_START + "' characters are not found in document",
+ (end == -1));
+ }
+ if (count < numberOfRegionToTest) {
+ // No more regions to test
+ return false;
+ }
+
+ int length = end - start + EL2FIND_END.length();
+
+ //========================================================================================
+ // - Set up a broken EL and save the document => see problem marker appearance on that EL
+ //========================================================================================
+
+// System.out.println("Text to be replaced [0]: [" + document.get(start, length) + "]");
+// document.replace(start, length, elToValidate);
+
+// document = viewer.getDocument(); // Probably we should find that EL again because the document may be re-formatted at save (?)
+// end = start + elToValidate.length();
+// length = elToValidate.length();
+
+ // do check marker and marker annotation appeared here
+ int line = document.getLineOfOffset(start);
+ assertResourceMarkerIsCreated(file, errorMessage, line + 1);
+
+ Annotation problemAnnotation = waitForAnnotation(
+ start, end, errorMessage, MAX_SECONDS_TO_WAIT, true, true);
+ assertNotNull("Problem Marker Annotation not found!", problemAnnotation);
+
+ String message = problemAnnotation.getText();
+ assertEquals(
+ "Not expected error message found in ProblemAnnotation. Expected: ["
+ + errorMessage + "], Found: [" + message + "]",
+ errorMessage, message);
+
+ //=================================================================================================
+ // - Set up a another broken EL => see annotation appearance on that EL instead of a problem marker
+ // (an old problem marker has to disappear)
+ //=================================================================================================
+
+// System.out.println("Text to be replaced [1]: [" + document.get(start, length) + "] by [" + anotherELToValidate + "]");
+ document.replace(start, length, anotherELToValidate);
+
+ end = start + anotherELToValidate.length();
+ length = anotherELToValidate.length();
+
+ problemAnnotation = waitForAnnotation(
+ start, end, anotherErrorMessage, MAX_SECONDS_TO_WAIT, false, true);
+
+ if (problemAnnotation == null) {
+ problemAnnotation = waitForAnnotation(
+ start, end, anotherErrorMessage, MAX_SECONDS_TO_WAIT, false, true);
+ }
+ assertNotNull("No Problem Annotation found for EL " + anotherELToValidate + " on region " + numberOfRegionToTest + "!", problemAnnotation);
+
+ message = problemAnnotation.getText();
+ assertEquals(
+ "Not expected error message found in ProblemAnnotation. Expected: ["
+ + anotherErrorMessage + "], Found: [" + message + "]",
+ anotherErrorMessage, message);
+
+ // do check marker annotation has disappeared here
+ problemAnnotation = waitForAnnotation(
+ start, end, null, MAX_SECONDS_TO_WAIT, true, false);
+ assertNull("Problem Marker Annotation has not disappeared!", problemAnnotation);
+
+ //===================================================================
+ // - Set up a good EL again => see annotation to disappear on that EL
+ //===================================================================
+
+// System.out.println("Text to be replaced [2]: [" + document.get(start, length) + "] by [" + goodEL + "]");
+ document.replace(start, length, goodEL);
+ problemAnnotation = waitForAnnotation(
+ start, end, null, MAX_SECONDS_TO_WAIT, false, false);
+ assertNull("Problem Annotation has not disappeared!", problemAnnotation);
+
+ return true;
+ }
+
+ private Annotation waitForAnnotation(final int start, final int end, final String errorMessage, final int seconds, final boolean markerAnnotation, final boolean waitForAppearance) {
final Annotation[] result = new Annotation[] { null };
Display.getDefault().syncExec(new Runnable() {
+ @SuppressWarnings("rawtypes")
public void run() {
int secondsLeft = seconds;
+ boolean isFirstPass = true;
while (secondsLeft-- > 0) {
- JobUtils.delay(1000);
+ if (!isFirstPass || waitForAppearance) {
+ JobUtils.delay(1000);
- // clean deffered events
- while (Display.getCurrent().readAndDispatch())
- ;
+ // clean deffered events
+ while (Display.getCurrent().readAndDispatch())
+ ;
+ } else {
+ secondsLeft++; // because the wait step was skipped
+ }
annotationModel = getAnnotationModel();
+ if (annotationModel == null)
+ return;
+
+ Iterator it = annotationModel.getAnnotationIterator();
boolean found = false;
- @SuppressWarnings("rawtypes")
- Iterator it = annotationModel.getAnnotationIterator();
- while (!found && it.hasNext()) {
+ while (it.hasNext()) {
Object o = it.next();
if (!(o instanceof Annotation))
@@ -155,27 +354,80 @@
Annotation annotation = (Annotation) o;
Position position = annotationModel
.getPosition(annotation);
+ if (position == null)
+ continue;
if (position.getOffset() < start
|| position.getOffset() >= end)
continue;
- if (position.getOffset() + position.getLength() >= end)
+ if (position.getOffset() + position.getLength() > end)
continue;
-
- if (!isAnnotationAcceptable(annotation))
+ if (!markerAnnotation && errorMessage != null && !errorMessage.equals(annotation.getText()))
continue;
-
- result[0] = (Annotation)o;
- return;
+
+// System.out.println("A: " + (position == null ? null : position.toString()) + ", " + annotation.getClass().getName() + ", " + annotation.getType() + ", " + annotation.getText());
+
+ found = markerAnnotation ? isMarkerAnnotationAcceptable(annotation) : isAnnotationAcceptable(annotation);
+ if (found) {
+ if (waitForAppearance) {
+ // Return the annotation we've searched for
+ result[0] = (Annotation)o;
+ return;
+ } else {
+ // Continue to wait for annotation to disappear
+ break;
+ }
+ }
}
+
+ // if waiting for an annotation to disappear then don't return at first pass
+ if (!found && !waitForAppearance && !isFirstPass) {
+ return; // Annotation not found or disappeared
+ }
+ isFirstPass = false;
}
}
});
+// System.out.println(result[0] == null ? "Not found":"found");
return result[0];
}
+ protected void waitForValidation(IProject project) throws CoreException{
+ ValidatorManager.setStatus(ValidatorManager.RUNNING);
+ IProgressMonitor monitor = new NullProgressMonitor();
+ project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, monitor);
+ new EnabledValidatorsOperation(project,false).run(monitor);
+ JobUtils.waitForIdle();
+ }
+
+ protected String modifyModifyELInContent(StringBuilder content, String newEL) {
+ if (content == null)
+ return null;
+
+ int start = 0;
+ int end = 0;
+ while (start != -1) {
+ start = content.indexOf(EL2FIND_START, end);
+ if (start == -1)
+ break;
+
+ end = content.indexOf(EL2FIND_END, start);
+ if (end == -1)
+ break;
+
+ content.replace(start, end+1, newEL);
+ }
+ return content.toString();
+ }
+
+
abstract protected boolean isAnnotationAcceptable(Annotation annotation);
-}
+
+ abstract protected boolean isMarkerAnnotationAcceptable(Annotation annotation);
+
+ abstract protected void assertResourceMarkerIsCreated(IFile file, String errorMessage, int line) throws CoreException;
+}
\ No newline at end of file
Modified: trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/java/BaseAsYouTypeInJavaValidationTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/java/BaseAsYouTypeInJavaValidationTest.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/common/tests/org.jboss.tools.common.base.test/src/org/jboss/tools/common/base/test/validation/java/BaseAsYouTypeInJavaValidationTest.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -10,7 +10,10 @@
******************************************************************************/
package org.jboss.tools.common.base.test.validation.java;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor;
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.ProblemAnnotation;
import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor;
@@ -18,7 +21,9 @@
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.jboss.tools.common.base.test.validation.AbstractAsYouTypeValidationTest;
+import org.jboss.tools.tests.AbstractResourceMarkerTest;
/**
*
@@ -28,6 +33,7 @@
@SuppressWarnings("restriction")
public class BaseAsYouTypeInJavaValidationTest extends AbstractAsYouTypeValidationTest {
public static final String MARKER_TYPE = "org.jboss.tools.common.validation.el"; //$NON-NLS-1$
+ public static final String RESOURCE_MARKER_TYPE = "org.jboss.tools.jst.web.kb.elproblem"; //$NON-NLS-1$
public BaseAsYouTypeInJavaValidationTest(IProject project) {
this.project = project;
@@ -70,4 +76,39 @@
return true;
}
+ @Override
+ protected boolean isMarkerAnnotationAcceptable(Annotation annotation) {
+ if (!(annotation instanceof MarkerAnnotation))
+ return false;
+
+ MarkerAnnotation markerAnnotation = (MarkerAnnotation) annotation;
+
+ IMarker marker = markerAnnotation.getMarker();
+ String type;
+ try {
+ type = marker.getType();
+ return RESOURCE_MARKER_TYPE.equals(type);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ return false;
+ }
+ @Override
+ protected void assertResourceMarkerIsCreated(IFile file,
+ String errorMessage, int line) throws CoreException {
+ IMarker[] markers = AbstractResourceMarkerTest.findMarkers(
+ file, RESOURCE_MARKER_TYPE, errorMessage, true);
+
+ assertNotNull("Resource Marker not found for type: " + RESOURCE_MARKER_TYPE + ", message: [" + errorMessage + "] at line: " + line, markers);
+ assertFalse("Resource Marker not found for type: " + RESOURCE_MARKER_TYPE + ", message: [" + errorMessage + "] at line: " + line, markers.length == 0);
+
+ for (IMarker m : markers) {
+ Integer l = m.getAttribute(IMarker.LINE_NUMBER, -1);
+ if (l != null && line == l.intValue()) {
+ return;
+ }
+ }
+
+ fail("Resource Marker not found for type: " + RESOURCE_MARKER_TYPE + ", message: [" + errorMessage + "] at line: " + line);
+ }
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.base.test/projects/JSF2KickStartWithoutLibs/JavaSource/demo/User.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.base.test/projects/JSF2KickStartWithoutLibs/JavaSource/demo/User.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/jsf/tests/org.jboss.tools.jsf.base.test/projects/JSF2KickStartWithoutLibs/JavaSource/demo/User.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -20,7 +20,6 @@
@SessionScoped
public class User {
private String name;
- private String testString = "#{user.name}";
public User() {
}
@@ -34,6 +33,6 @@
}
public String sayHello() {
- return "greeting";
+ return "greeting #{user.names}";
}
}
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.jsp 2012-06-26 14:22:44 UTC (rev 42222)
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+
+<html>
+<head>
+ <title>Facelets Greeting Page</title>
+</head>
+<body>
+ <f:view>
+ <f:loadBundle basename="resources" var="msg" />
+
+ <strong>
+
+ #{user.name}
+ <h:outputText value="#{user.name}" />
+ <h:outputText value="!" />
+ </strong>
+ </f:view>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.jsp
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.xhtml 2012-06-26 14:22:44 UTC (rev 42222)
@@ -0,0 +1,15 @@
+<!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"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <ui:composition template="/templates/common.xhtml">
+ <ui:define name="pageTitle">Greeting to User</ui:define>
+ <ui:define name="pageHeader">Greeting Page</ui:define>
+ <ui:define name="body">
+ #{user.name}!
+ <h:outputText value="#{user.name}" />
+ </ui:define>
+ </ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/projects/AsYouTypeTestData/asYouType.xhtml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/JSFAsYouTypeValidationTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/JSFAsYouTypeValidationTest.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/JSFAsYouTypeValidationTest.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -10,8 +10,18 @@
******************************************************************************/
package org.jboss.tools.jsf.ui.test.validation;
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.FileReader;
+import java.io.IOException;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.BadLocationException;
@@ -21,6 +31,7 @@
import org.jboss.tools.jst.web.kb.WebKbPlugin;
import org.jboss.tools.jst.web.kb.preferences.ELSeverityPreferences;
import org.jboss.tools.test.util.ProjectImportTestSetup;
+import org.osgi.framework.Bundle;
/**
*
@@ -29,49 +40,219 @@
*/
public class JSFAsYouTypeValidationTest extends BaseAsYouTypeValidationTest {
private static final String PROJECT_NAME = "JSF2KickStartWithoutLibs";
- private static final String PAGE_NAME = "WebContent/pages/inputname.xhtml";
+ private static final String[][] PAGE_NAMES = {
+ {"projects/AsYouTypeTestData/asYouType.xhtml", "WebContent/pages/asYouType.xhtml"},
+ {"projects/AsYouTypeTestData/asYouType.jsp", "WebContent/pages/asYouType.jsp"}
+ };
private static final String [][] EL2VALIDATE =
{
- {"#{user.names}", "\"names\" cannot be resolved"},
- {"#{suser.name}", "\"suser\" cannot be resolved"},
- {"#{['}", "EL syntax error: Expecting expression."}
+ {"#{user.name}", "#{user.names}", "\"names\" cannot be resolved", "#{user.namess}", "\"namess\" cannot be resolved"},
+ {"#{user.name}", "#{suser.name}", "\"suser\" cannot be resolved", "#{ssuser.name}", "\"ssuser\" cannot be resolved"},
+ {"#{user.name}", "#{[}", "EL syntax error: Expecting expression.", "#{[[}", "EL syntax error: Expecting expression."}
};
- public static final String EL2FIND_START = "#{";
- public static final String EL2FIND_END = "}";
-
private static boolean isSuspendedValidationDefaultValue;
public void setUp() throws Exception {
project = ProjectImportTestSetup.loadProject(PROJECT_NAME);
- project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
isSuspendedValidationDefaultValue = ValidationFramework.getDefault().isSuspended();
ValidationFramework.getDefault().suspendAllValidation(false);
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
}
public void tearDown() throws Exception {
ValidationFramework.getDefault().suspendAllValidation(isSuspendedValidationDefaultValue);
}
- public void testAsYouTypeInJavaValidation() throws JavaModelException, BadLocationException {
+ public void testAsYouTypeMarkerAnnotationsRemovalValidation() throws BadLocationException, CoreException {
assertNotNull("Test project '" + PROJECT_NAME + "' is not prepared", project);
- openEditor(PAGE_NAME);
- IPreferenceStore store = WebKbPlugin.getDefault().getPreferenceStore();
- String defaultValidateUnresolvedEL = SeverityPreferences.ENABLE;
- String defaultUnknownELVariableName = SeverityPreferences.IGNORE;
+
+ for (int p = 0; p < PAGE_NAMES.length; p++) {
+ String sourcePageName = PAGE_NAMES[p][0];
+ String pageName = PAGE_NAMES[p][1];
+
+ IFile file = project.getFile(pageName);
+ IPreferenceStore store = WebKbPlugin.getDefault().getPreferenceStore();
+ String defaultValidateUnresolvedEL = SeverityPreferences.ENABLE;
+ String defaultUnknownELVariableName = SeverityPreferences.IGNORE;
+ try {
+ defaultValidateUnresolvedEL = store.getString(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL);
+ defaultUnknownELVariableName = store.getString(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME);
+ store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, SeverityPreferences.ENABLE);
+ store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, SeverityPreferences.ERROR);
+ for (int i = 0; i < EL2VALIDATE.length; i++) {
+ boolean doContinue = true;
+ int count = 0;
+ while (doContinue) {
+ prepareModifiedFile("org.jboss.tools.jsf.ui.test", sourcePageName, file, EL2VALIDATE[i][1]);
+ waitForValidation(project);
+
+ openEditor(pageName);
+ try {
+ doContinue = doAsYouTypeValidationMarkerAnnotationsRemovalTest(EL2VALIDATE[i][0], EL2VALIDATE[i][1], EL2VALIDATE[i][2], EL2VALIDATE[i][3], EL2VALIDATE[i][4], count++);
+ } finally {
+ closeEditor();
+ }
+ }
+ assertTrue("No test regions found!", count > 1);
+ }
+ } finally {
+ store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, defaultValidateUnresolvedEL);
+ store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, defaultUnknownELVariableName);
+ try {
+ file.delete(true, null);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ public void testAsYouTypeValidation() throws JavaModelException, BadLocationException {
+ assertNotNull("Test project '" + PROJECT_NAME + "' is not prepared", project);
+
+ for (int p = 0; p < PAGE_NAMES.length; p++) {
+ String sourcePageName = PAGE_NAMES[p][0];
+ String pageName = PAGE_NAMES[p][1];
+
+ IFile file = project.getFile(pageName);
+ prepareFile("org.jboss.tools.jsf.ui.test", sourcePageName, file);
+ IPreferenceStore store = WebKbPlugin.getDefault().getPreferenceStore();
+ String defaultValidateUnresolvedEL = SeverityPreferences.ENABLE;
+ String defaultUnknownELVariableName = SeverityPreferences.IGNORE;
+ try {
+ defaultValidateUnresolvedEL = store.getString(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL);
+ defaultUnknownELVariableName = store.getString(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME);
+ store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, SeverityPreferences.ENABLE);
+ store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, SeverityPreferences.ERROR);
+ openEditor(pageName);
+ for (int i = 0; i < EL2VALIDATE.length; i++) {
+ int count = 0;
+ while(doAsYouTypeValidationTest(EL2VALIDATE[i][0], EL2VALIDATE[i][1], EL2VALIDATE[i][2], count++))
+ ;
+ assertTrue("No test regions found!", count > 1);
+ }
+ } finally {
+ closeEditor();
+ store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, defaultValidateUnresolvedEL);
+ store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, defaultUnknownELVariableName);
+ try {
+ file.delete(true, null);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ private void prepareFile(String bundleName, String file, IFile destination) {
+ Bundle bundle = Platform.getBundle(bundleName);
+ if (bundle == null)
+ return;
+
+ String filePath = null;
try {
- defaultValidateUnresolvedEL = store.getString(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL);
- defaultUnknownELVariableName = store.getString(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME);
- store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, SeverityPreferences.ENABLE);
- store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, SeverityPreferences.ERROR);
- for (int i = 0; i < EL2VALIDATE.length; i++) {
- doAsYouTipeInJavaValidationTest(EL2VALIDATE[i][0], EL2VALIDATE[i][1]);
+ filePath = FileLocator.resolve(bundle.getEntry(file)).getFile();
+ } catch (IOException e1) {
+ e1.printStackTrace();
+ return;
+ }
+ java.io.File data = new java.io.File(filePath);
+ if (!data.exists())
+ return;
+
+ BufferedReader r = null;
+ ByteArrayInputStream is = null;
+ try {
+ r = new BufferedReader(new FileReader(data));
+ StringBuilder content = new StringBuilder();
+ String line = null;
+ while ((line = r.readLine()) != null) {
+ content.append(line);
+ content.append('\n');
}
+ is = new ByteArrayInputStream(content.toString().getBytes("UTF-8"));
+ if (destination.exists()) {
+ destination.setContents(is, true, false, null);
+ } else {
+ destination.create(is, true, null);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
} finally {
- store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, defaultValidateUnresolvedEL);
- store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, defaultUnknownELVariableName);
- closeEditor();
+ if (r != null) {
+ try {
+ r.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
}
}
+
+ private void prepareModifiedFile(String bundleName, String file, IFile destination, String el) {
+ Bundle bundle = Platform.getBundle(bundleName);
+ if (bundle == null)
+ return;
+
+ String filePath = null;
+ try {
+ filePath = FileLocator.resolve(bundle.getEntry(file)).getFile();
+ } catch (IOException e1) {
+ e1.printStackTrace();
+ return;
+ }
+ java.io.File data = new java.io.File(filePath);
+ if (!data.exists())
+ return;
+
+ BufferedReader r = null;
+ ByteArrayInputStream is = null;
+ try {
+ r = new BufferedReader(new FileReader(data));
+ StringBuilder content = new StringBuilder();
+ String line = null;
+ while ((line = r.readLine()) != null) {
+ content.append(line);
+ content.append('\n');
+ }
+
+ String modifiedContent = modifyModifyELInContent(content, el);
+ if (modifiedContent == null)
+ modifiedContent = "";
+
+ is = new ByteArrayInputStream(modifiedContent.getBytes("UTF-8"));
+ if (destination.exists()) {
+ destination.setContents(is, true, false, null);
+ } else {
+ destination.create(is, true, null);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ if (r != null) {
+ try {
+ r.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/java/JSFAsYouTypeInJavaValidationTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/java/JSFAsYouTypeInJavaValidationTest.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/validation/java/JSFAsYouTypeInJavaValidationTest.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -10,15 +10,26 @@
******************************************************************************/
package org.jboss.tools.jsf.ui.test.validation.java;
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.BadLocationException;
+import org.eclipse.wst.validation.ValidationFramework;
import org.jboss.tools.common.base.test.validation.java.BaseAsYouTypeInJavaValidationTest;
import org.jboss.tools.common.preferences.SeverityPreferences;
import org.jboss.tools.jst.web.kb.WebKbPlugin;
import org.jboss.tools.jst.web.kb.preferences.ELSeverityPreferences;
+import org.jboss.tools.test.util.JobUtils;
import org.jboss.tools.test.util.ProjectImportTestSetup;
/**
@@ -32,16 +43,59 @@
private static final String [][] EL2VALIDATE =
{
- {"#{user.names}", "\"names\" cannot be resolved"},
- {"#{suser.name}", "\"suser\" cannot be resolved"},
- {"#{['}", "EL syntax error: Expecting expression."}
+ {"#{user.name}", "#{user.names}", "\"names\" cannot be resolved", "#{user.namess}", "\"namess\" cannot be resolved"},
+ {"#{user.name}", "#{suser.name}", "\"suser\" cannot be resolved", "#{ssuser.name}", "\"ssuser\" cannot be resolved"},
+ {"#{user.name}", "#{[}", "EL syntax error: Expecting expression.", "#{[[}", "EL syntax error: Expecting expression."}
};
+ private boolean isSuspendedValidationDefaultValue;
public void setUp() throws Exception {
project = ProjectImportTestSetup.loadProject(PROJECT_NAME);
+ isSuspendedValidationDefaultValue = ValidationFramework.getDefault().isSuspended();
+ ValidationFramework.getDefault().suspendAllValidation(false);
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ JobUtils.waitForIdle();
}
+ public void tearDown() throws Exception {
+ ValidationFramework.getDefault().suspendAllValidation(isSuspendedValidationDefaultValue);
+ }
+
+ public void testAsYouTypeMarkerAnnotationsRemovalInJavaValidation() throws BadLocationException, CoreException {
+ assertNotNull("Test project '" + PROJECT_NAME + "' is not prepared", project);
+
+ IFile file = project.getFile(PAGE_NAME);
+ IPreferenceStore store = WebKbPlugin.getDefault().getPreferenceStore();
+ String defaultValidateUnresolvedEL = SeverityPreferences.ENABLE;
+ String defaultUnknownELVariableName = SeverityPreferences.IGNORE;
+ try {
+ defaultValidateUnresolvedEL = store.getString(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL);
+ defaultUnknownELVariableName = store.getString(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME);
+ store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, SeverityPreferences.ENABLE);
+ store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, SeverityPreferences.ERROR);
+ for (int i = 0; i < EL2VALIDATE.length; i++) {
+ boolean doContinue = true;
+ int count = 0;
+ while (doContinue) {
+ prepareModifiedFile(file, EL2VALIDATE[i][1]);
+ waitForValidation(project);
+
+ openEditor(PAGE_NAME);
+ try {
+ doContinue = doAsYouTypeValidationMarkerAnnotationsRemovalTest(EL2VALIDATE[i][0], EL2VALIDATE[i][1], EL2VALIDATE[i][2], EL2VALIDATE[i][3], EL2VALIDATE[i][4], count++);
+ } finally {
+ closeEditor();
+ }
+ }
+ assertTrue("No test regions found!", count > 1);
+ }
+ } finally {
+ store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, defaultValidateUnresolvedEL);
+ store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, defaultUnknownELVariableName);
+ }
+ }
+
public void testAsYouTypeInJavaValidation() throws JavaModelException, BadLocationException {
assertNotNull("Test project '" + PROJECT_NAME + "' is not prepared", project);
openEditor(PAGE_NAME);
@@ -54,7 +108,10 @@
store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, SeverityPreferences.ENABLE);
store.setValue(ELSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME, SeverityPreferences.ERROR);
for (int i = 0; i < EL2VALIDATE.length; i++) {
- doAsYouTipeInJavaValidationTest(EL2VALIDATE[i][0], EL2VALIDATE[i][1]);
+ int count = 0;
+ while(doAsYouTypeValidationTest(EL2VALIDATE[i][0], EL2VALIDATE[i][1], EL2VALIDATE[i][2], count++))
+ ;
+ assertTrue("No test regions found!", count > 1);
}
} finally {
store.setValue(ELSeverityPreferences.RE_VALIDATE_UNRESOLVED_EL, defaultValidateUnresolvedEL);
@@ -62,4 +119,49 @@
closeEditor();
}
}
+
+ private void prepareModifiedFile(IFile destination, String el) {
+ BufferedReader r = null;
+ InputStream is = null;
+ try {
+ is = destination.getContents();
+ r = new BufferedReader(new InputStreamReader(is));
+ StringBuilder content = new StringBuilder();
+ String line = null;
+ while ((line = r.readLine()) != null) {
+ content.append(line);
+ content.append('\n');
+ }
+ is.close();
+
+ String modifiedContent = modifyModifyELInContent(content, el);
+ if (modifiedContent == null)
+ modifiedContent = "";
+
+ is = new ByteArrayInputStream(modifiedContent.getBytes("UTF-8"));
+ if (destination.exists()) {
+ destination.setContents(is, true, false, null);
+ } else {
+ destination.create(is, true, null);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ if (r != null) {
+ try {
+ r.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ if (is != null) {
+ try {
+ is.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
}
Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/validation/BaseAsYouTypeValidationTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/validation/BaseAsYouTypeValidationTest.java 2012-06-26 14:12:46 UTC (rev 42221)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/validation/BaseAsYouTypeValidationTest.java 2012-06-26 14:22:44 UTC (rev 42222)
@@ -10,16 +10,21 @@
******************************************************************************/
package org.jboss.tools.jst.jsp.test.validation;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.text.source.Annotation;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.eclipse.wst.sse.ui.internal.reconcile.TemporaryAnnotation;
import org.jboss.tools.common.base.test.validation.AbstractAsYouTypeValidationTest;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.tests.AbstractResourceMarkerTest;
/**
*
@@ -29,6 +34,7 @@
@SuppressWarnings("restriction")
public class BaseAsYouTypeValidationTest extends AbstractAsYouTypeValidationTest {
public static final String MARKER_TYPE = "org.jboss.tools.common.validation.asyoutype"; //$NON-NLS-1$
+ public static final String RESOURCE_MARKER_TYPE = "org.jboss.tools.jst.web.kb.elproblem"; //$NON-NLS-1$
public BaseAsYouTypeValidationTest(IProject project) {
this.project = project;
@@ -70,7 +76,7 @@
TemporaryAnnotation temporaryAnnotation = (TemporaryAnnotation) annotation;
- if (temporaryAnnotation.getAttributes() == null && temporaryAnnotation.getAttributes().isEmpty())
+ if (temporaryAnnotation.getAttributes() == null || temporaryAnnotation.getAttributes().isEmpty())
return false;
Object value = temporaryAnnotation.getAttributes().get(MARKER_TYPE);
@@ -80,4 +86,40 @@
return true;
}
+
+ @Override
+ protected boolean isMarkerAnnotationAcceptable(Annotation annotation) {
+ if (!(annotation instanceof MarkerAnnotation))
+ return false;
+
+ MarkerAnnotation markerAnnotation = (MarkerAnnotation) annotation;
+
+ IMarker marker = markerAnnotation.getMarker();
+ String type;
+ try {
+ type = marker.getType();
+ return RESOURCE_MARKER_TYPE.equals(type);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ return false;
+ }
+
+ @Override
+ protected void assertResourceMarkerIsCreated(IFile file, String errorMessage, int line) throws CoreException {
+ IMarker[] markers = AbstractResourceMarkerTest.findMarkers(
+ file, RESOURCE_MARKER_TYPE, errorMessage, true);
+
+ assertNotNull("Resource Marker not found for type: " + RESOURCE_MARKER_TYPE + ", message: [" + errorMessage + "] at line: " + line, markers);
+ assertFalse("Resource Marker not found for type: " + RESOURCE_MARKER_TYPE + ", message: [" + errorMessage + "] at line: " + line, markers.length == 0);
+
+ for (IMarker m : markers) {
+ Integer l = m.getAttribute(IMarker.LINE_NUMBER, -1);
+ if (l != null && line == l.intValue()) {
+ return;
+ }
+ }
+
+ fail("Resource Marker not found for type: " + RESOURCE_MARKER_TYPE + ", message: [" + errorMessage + "] at line: " + line);
+ }
}
13 years, 6 months
JBoss Tools SVN: r42221 - trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-06-26 10:12:46 -0400 (Tue, 26 Jun 2012)
New Revision: 42221
Removed:
trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/requirements.properties
Modified:
trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/pom.xml
Log:
JBIDE-11714: runtime-soa
Modified: trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/pom.xml
===================================================================
--- trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/pom.xml 2012-06-26 13:52:12 UTC (rev 42220)
+++ trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/pom.xml 2012-06-26 14:12:46 UTC (rev 42221)
@@ -13,6 +13,131 @@
<packaging>eclipse-test-plugin</packaging>
<properties>
- <systemProperties>-Djbosstools.test.jboss.home.4.2=${requirement.build.root}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.1=${requirement.build.root}/jboss-5.1.0.GA -Djbosstools.test.seam.2.0.1.GA.home=${requirement.build.root}/jboss-seam-2.0.1.GA -Djbosstools.test.seam.2.2.0.GA.home=${requirement.build.root}/jboss-seam-2.2.0.GA -Djbosstools.test.eap.4.3.home=${requirement.build.root}/jboss-eap-4.3 -Dskip.runtime.scanner=true -Djbosstools.test.jboss.home.7.0=${requirement.build.root}/jboss-7.0.0.Beta3</systemProperties>
+ <systemProperties>-Djbosstools.test.jboss.home.4.2=${requirementsDirectory}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.1=${requirementsDirectory}/jboss-5.1.0.GA -Djbosstools.test.seam.2.0.1.GA.home=${requirementsDirectory}/jboss-seam-2.0.1.GA -Djbosstools.test.seam.2.2.0.GA.home=${requirementsDirectory}/jboss-seam-2.2.0.GA -Djbosstools.test.eap.4.3.home=${requirementsDirectory}/jboss-eap-4.3 -Dskip.runtime.scanner=true -Djbosstools.test.jboss.home.7.0=${requirementsDirectory}/jboss-7.0.0.Final</systemProperties>
</properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>install-as</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <version>4.2.3.GA</version>
+ <type>zip</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <version>7.0.0.Final</version>
+ <type>zip</type>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>maven-download-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>install-as-5.1.0</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://repository.jboss.org/sourceforge/jboss-5.1.0.GA.zip</url>
+ <md5>78322c75ca0c13002a04418b4a8bc920</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-seam-2.0.1</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://repository.jboss.org/sourceforge/jboss-seam-2.0.1.GA.zip</url>
+ <unpack>true</unpack>
+ <md5>0a1accf94fd37e40ab1091ee593b8b75</md5>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-seam-2.2.0</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://repository.jboss.org/sourceforge/jboss-seam-2.2.0.GA.zip</url>
+ <unpack>true</unpack>
+ <md5>febaf032f989240fe3828a8f0f7fe98a</md5>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-eap</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.devel.redhat.com/released/JBEAP-4.3.0/CP03/zip/jboss-eap-...</url>
+ <md5>18dc28785c8b156b36e2d92db699064a</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-eap-seam-gen</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.jboss.org/jbosstools/test-runtimes/rhds-seam-gen-patch.zip</url>
+ <md5>79b37541804f49844ea7322c0ff599c1</md5>
+ <unpack>true</unpack>
+ <outputDirectory>${requirementsDirectory}/jboss-eap-4.3/seam</outputDirectory>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-eap-fp</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.devel.redhat.com/released/JBEAP-4.3.0/CP03/zip/jboss-eap-...</url>
+ <md5>38fe2a2a55edc5239ba680eff3b29533</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-seam-fp-patch</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.jboss.org/jbosstools/test-runtimes/jbds-seamfp-patch.zip</url>
+ <md5>c3af3b56add0acccb72db88de477f3c7</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Deleted: trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/requirements.properties
===================================================================
--- trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/requirements.properties 2012-06-26 13:52:12 UTC (rev 42220)
+++ trunk/runtime-soa/tests/org.jboss.tools.runtime.soa.test/requirements.properties 2012-06-26 14:12:46 UTC (rev 42221)
@@ -1 +0,0 @@
-requirements=jbossas,seam-2.0.1.GA,seam-2.2.0.GA,jbeap,eapseamgen,seamfp
\ No newline at end of file
13 years, 6 months
JBoss Tools SVN: r42220 - trunk/runtime/tests/org.jboss.tools.runtime.test.
by jbosstools-commits@lists.jboss.org
Author: mickael_istria
Date: 2012-06-26 09:52:12 -0400 (Tue, 26 Jun 2012)
New Revision: 42220
Removed:
trunk/runtime/tests/org.jboss.tools.runtime.test/requirements.properties
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml
Log:
JBIDE-11714: WIP on Seam w/ EAP
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml 2012-06-26 13:35:26 UTC (rev 42219)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml 2012-06-26 13:52:12 UTC (rev 42220)
@@ -13,11 +13,132 @@
<packaging>eclipse-test-plugin</packaging>
<properties>
- <systemProperties>-Djbosstools.test.jboss.home.4.2=${requirement.build.root}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.1=${requirement.build.root}/jboss-5.1.0.GA -Djbosstools.test.seam.2.0.1.GA.home=${requirement.build.root}/jboss-seam-2.0.1.GA -Djbosstools.test.seam.2.2.0.GA.home=${requirement.build.root}/jboss-seam-2.2.0.GA -Djbosstools.test.eap.4.3.home=${requirement.build.root}/jboss-eap-4.3 -Dskip.runtime.scanner=true -Djbosstools.test.jboss.home.7.0=${requirement.build.root}/jboss-7.0.0.Beta3</systemProperties>
+ <systemProperties>-Djbosstools.test.jboss.home.4.2=${requirementsDirectory}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.1=${requirementsDirectory}/jboss-5.1.0.GA -Djbosstools.test.seam.2.0.1.GA.home=${requirementsDirectory}/jboss-seam-2.0.1.GA -Djbosstools.test.seam.2.2.0.GA.home=${requirementsDirectory}/jboss-seam-2.2.0.GA -Djbosstools.test.eap.4.3.home=${requirementsDirectory}/jboss-eap-4.3 -Dskip.runtime.scanner=true -Djbosstools.test.jboss.home.7.0=${requirementsDirectory}/jboss-7.0.0.Final</systemProperties>
</properties>
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>install-as</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <version>4.2.3.GA</version>
+ <type>zip</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.jboss.as</groupId>
+ <artifactId>jboss-as-dist</artifactId>
+ <version>7.0.0.Final</version>
+ <type>zip</type>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>maven-download-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>install-as-5.1.0</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://repository.jboss.org/sourceforge/jboss-5.1.0.GA.zip</url>
+ <md5>78322c75ca0c13002a04418b4a8bc920</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-seam-2.0.1</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://repository.jboss.org/sourceforge/jboss-seam-2.0.1.GA.zip</url>
+ <unpack>true</unpack>
+ <md5>0a1accf94fd37e40ab1091ee593b8b75</md5>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-seam-2.2.0</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://repository.jboss.org/sourceforge/jboss-seam-2.2.0.GA.zip</url>
+ <unpack>true</unpack>
+ <md5>febaf032f989240fe3828a8f0f7fe98a</md5>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-eap</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.devel.redhat.com/released/JBEAP-4.3.0/CP03/zip/jboss-eap-...</url>
+ <md5>18dc28785c8b156b36e2d92db699064a</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-eap-seam-gen</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.jboss.org/jbosstools/test-runtimes/rhds-seam-gen-patch.zip</url>
+ <md5>79b37541804f49844ea7322c0ff599c1</md5>
+ <unpack>true</unpack>
+ <outputDirectory>${requirementsDirectory}/jboss-eap-4.3/seam</outputDirectory>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-eap-fp</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.devel.redhat.com/released/JBEAP-4.3.0/CP03/zip/jboss-eap-...</url>
+ <md5>38fe2a2a55edc5239ba680eff3b29533</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ <execution>
+ <id>install-seam-fp-patch</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>http://download.jboss.org/jbosstools/test-runtimes/jbds-seamfp-patch.zip</url>
+ <md5>c3af3b56add0acccb72db88de477f3c7</md5>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tychoVersion}</version>
Deleted: trunk/runtime/tests/org.jboss.tools.runtime.test/requirements.properties
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/requirements.properties 2012-06-26 13:35:26 UTC (rev 42219)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/requirements.properties 2012-06-26 13:52:12 UTC (rev 42220)
@@ -1 +0,0 @@
-requirements=jbossas,seam-2.0.1.GA,seam-2.2.0.GA,jbeap,eapseamgen,seamfp
\ No newline at end of file
13 years, 6 months
JBoss Tools SVN: r42219 - trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-06-26 09:35:26 -0400 (Tue, 26 Jun 2012)
New Revision: 42219
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
Log:
MessageLoggerAnnotationTest 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-06-26 13:34:38 UTC (rev 42218)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-06-26 13:35:26 UTC (rev 42219)
@@ -18,6 +18,7 @@
import org.jboss.tools.cdi.seam3.bot.test.tests.GenericOpenOnTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.InterfaceAndAbstractValidationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.LoggerSupportTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.MessageLoggerAnnotationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.NamedPackagesTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.RequiresAnnotationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.ResourceOpenOnTest;
@@ -42,7 +43,8 @@
NamedPackagesTest.class,
FullyQualifiedTest.class,
LoggerSupportTest.class,
- InterfaceAndAbstractValidationTest.class
+ InterfaceAndAbstractValidationTest.class,
+ MessageLoggerAnnotationTest.class
})
public class CDISeam3AllBotTests extends AbstractTestSuite {
13 years, 6 months