Author: jjankovi
Date: 2012-03-20 10:49:49 -0400 (Tue, 20 Mar 2012)
New Revision: 39663
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/Activator.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/Seam3TestBase.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/uiutils/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.class
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/build.properties
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTests.launch
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTestsMaven.launch
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/pom.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/properties/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/properties/swtbot.properties
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/requirements.properties
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/seam-international.jar
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/seam-solder.jar
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/WEB-INF/beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/build/classes/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/seam-solder.jar
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Application.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/DefaultOne.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Manager.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/build/classes/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/seam-solder.jar
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean2.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean3.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBeanInjections.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfiguration.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfigurationProducer.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyExtendedConfiguration.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean2.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericType.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier1.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier2.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/WEB-INF/beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/build/classes/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/seam-solder.jar
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/cdi/seam/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/cdi/seam/MyBean.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBean.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBeanInjections.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyConfigProd.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyExtendConfig.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean2.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericType.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/openon/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/openon/BeanWithResourceAnnotation.java.cdi
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/screenshots/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/Activator.java
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/Seam3TestBase.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/uiutils/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.java
Log:
Seam3 bot tests branch created + new test DefaultBeans added
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.classpath
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.classpath
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.classpath 2012-03-20 14:49:49 UTC
(rev 39663)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.project
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.project
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.project 2012-03-20 14:49:49 UTC
(rev 39663)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.cdi.seam3.bot.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/.settings/org.eclipse.jdt.core.prefs 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/META-INF/MANIFEST.MF 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,21 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test
+Bundle-SymbolicName: org.jboss.tools.cdi.seam3.bot.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.cdi.seam3.bot.test.Activator
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
+ org.junit4;bundle-version="4.8.1",
+ org.apache.log4j;bundle-version="1.2.15",
+ org.eclipse.ui;bundle-version="3.6.0",
+ org.jboss.tools.ui.bot.ext;bundle-version="3.2.0",
+ org.eclipse.core.resources;bundle-version="3.6.0",
+ org.jboss.tools.cdi.bot.test;bundle-version="1.2.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/Activator.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/Activator.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/Seam3TestBase.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/Seam3TestBase.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.class
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/bin/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.class
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/build.properties
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/build.properties
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/build.properties 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTests.launch
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTests.launch
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTests.launch 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
+<launchConfiguration
type="org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<booleanAttribute
key="com.mountainminds.eclemma.core.INPLACE_INSTRUMENTATION"
value="true"/>
+<listAttribute
key="com.mountainminds.eclemma.core.INSTRUMENTATION_PATHS">
+<listEntry value="/org.jboss.tools.cdi.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.solder.core/bin"/>
+<listEntry value="/org.jboss.tools.cdi.text.ext/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml/bin"/>
+<listEntry value="/org.jboss.tools.cdi.xml.ui/bin"/>
+<listEntry value="/org.jboss.tools.cdi.ui/bin"/>
+</listAttribute>
+<stringAttribute key="configLocation"
value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location"
value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry
value="/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER"
value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR"
value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME"
value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND"
value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.jboss.tools.cdi.seam3.bot.test.CDISeam3AllBotTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}
-consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="org.jboss.tools.cdi.seam3.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms256m -Xmx512m
-Dswtbot.test.properties.file=${env_var:HOME}/swtbot.properties
-Dusage_reporting_enabled=false"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product"
value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig"
value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTestsMaven.launch
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTestsMaven.launch
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/launchers/CDISeam3AllBotTestsMaven.launch 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
+<launchConfiguration
type="org.eclipse.m2e.Maven2LaunchConfigurationType">
+<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
+<stringAttribute key="M2_GOALS" value="clean install"/>
+<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
+<booleanAttribute key="M2_OFFLINE" value="false"/>
+<stringAttribute key="M2_PROFILES" value="-P
seam3-bot-tests"/>
+<listAttribute key="M2_PROPERTIES">
+<listEntry value="swtbot.test.skip=false"/>
+</listAttribute>
+<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
+<booleanAttribute key="M2_SKIP_TESTS" value="false"/>
+<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
+<booleanAttribute key="M2_WORKSPACE_RESOLUTION"
value="false"/>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29"/>
+<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY"
value="${workspace_loc:/org.jboss.tools.cdi.bot.test}"/>
+</launchConfiguration>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/pom.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/pom.xml
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/pom.xml 2012-03-20 14:49:49 UTC
(rev 39663)
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.cdi</groupId>
+ <artifactId>tests</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.cdi.tests</groupId>
+ <artifactId>org.jboss.tools.cdi.seam3.bot.test</artifactId>
+
+ <packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <!-- debug option -->
+ <!-- <systemProperties>-Xdebug
-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y
-Dswtbot.test.properties.file=${project.basedir}/properties/swtbot.properties</systemProperties>
-->
+
+ <systemProperties>
-Dswtbot.test.properties.file=${project.basedir}/properties/swtbot.properties</systemProperties>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <configuration>
+ <testSuite>org.jboss.tools.cdi.seam3.bot.test</testSuite>
+ <testClass>${test.suite.class}</testClass>
+ <useUIThread>false</useUIThread>
+ <skip>${swtbot.test.skip}</skip>
+ <!-- Kill swt bot test take more than 3 hours minutes (10800 seconds) to finish
-->
+ <forkedProcessTimeoutInSeconds>10800</forkedProcessTimeoutInSeconds>
+ <dependencies combine.children="append">
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.cdi.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.ide.eclipse.as.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <!-- <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.jsf.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency> -->
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.cdi.seam.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ </dependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <id>seam3-bot-tests</id>
+ <properties>
+ <test.suite.class>org.jboss.tools.cdi.seam3.bot.test.CDISeam3AllBotTests</test.suite.class>
+ </properties>
+ </profile>
+ </profiles>
+</project>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/properties/swtbot.properties
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/properties/swtbot.properties
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/properties/swtbot.properties 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1 @@
+SERVER=AS,6.0,default,../../../requirements/target/jboss-6.0.0.Final
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/requirements.properties
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/requirements.properties
(rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/requirements.properties 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1 @@
+requirements=jbossas-6.0.0.Final
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/seam-international.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/seam-international.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/seam-solder.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/libraries/seam-solder.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.classpath
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.classpath
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.classpath 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/AS-7.0">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29">
+ <attributes>
+ <attribute name="owner.project.facets" value="java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="lib" path="seam-solder.jar"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.project
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.project
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.project 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>defaultBeans</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/defaultBeans/.settings/.jsdtscope
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/.jsdtscope
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/.jsdtscope 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/defaultBeans/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.jdt.core.prefs 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/defaultBeans/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.component 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="Test">
+ <wb-resource deploy-path="/" source-path="/WebContent"
tag="defaultRootSource"/>
+ <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+ <property name="context-root" value="Test"/>
+ <property name="java-output-path"
value="/Test/build/classes"/>
+ </wb-module>
+</project-modules>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="AS-7.0"/>
+ <fixed facet="wst.jsdt.web"/>
+ <fixed facet="java"/>
+ <fixed facet="jst.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/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/META-INF/MANIFEST.MF 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/WEB-INF/beans.xml
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/WEB-INF/beans.xml
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/WebContent/WEB-INF/beans.xml 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,3 @@
+<?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"/>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/seam-solder.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/seam-solder.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Application.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Application.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Application.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,18 @@
+package cdi.seam;
+
+import javax.inject.Inject;
+
+public class Application {
+
+ @Inject
+ private Manager managerImpl;
+
+ public Manager getManagerImpl() {
+ return managerImpl;
+ }
+
+ public void setManagerImpl(Manager managerImpl) {
+ this.managerImpl = managerImpl;
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/DefaultOne.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/DefaultOne.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/DefaultOne.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,8 @@
+package cdi.seam;
+
+import org.jboss.seam.solder.bean.defaultbean.DefaultBean;
+
+@DefaultBean(value = Manager.class)
+public class DefaultOne implements Manager {
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Manager.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Manager.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/defaultBeans/src/cdi/seam/Manager.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,5 @@
+package cdi.seam;
+
+public interface Manager {
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.classpath
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.classpath
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.classpath 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29">
+ <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/AS-7.0">
+ <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="lib" path="seam-solder.jar"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.project
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.project
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.project 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>generic</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/generic/.settings/.jsdtscope
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/.jsdtscope
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/.jsdtscope 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/generic/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.jdt.core.prefs 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/generic/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.component 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="Seam3GenericOpenOn">
+ <wb-resource deploy-path="/" source-path="/WebContent"
tag="defaultRootSource"/>
+ <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+ <property name="context-root"
value="Seam3GenericOpenOn"/>
+ <property name="java-output-path"
value="/Seam3GenericOpenOn/build/classes"/>
+ </wb-module>
+</project-modules>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="AS-7.0"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="java"/>
+ <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/generic/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/generic/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/WebContent/META-INF/MANIFEST.MF 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/seam-solder.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/seam-solder.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,7 @@
+package cdi.seam;
+
+public class MyBean {
+
+ public MyBean(String s) {}
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean2.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean2.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean2.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,7 @@
+package cdi.seam;
+
+public class MyBean2 {
+
+ public MyBean2(String s) {}
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean3.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean3.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBean3.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,7 @@
+package cdi.seam;
+
+public class MyBean3 {
+
+ public MyBean3(String s) {}
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBeanInjections.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBeanInjections.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyBeanInjections.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,82 @@
+package cdi.seam;
+
+import javax.inject.Inject;
+
+public class MyBeanInjections {
+
+ /**
+ * Injected method producer MyGenericBean.createMyFirstBean()
+ * Configuration produced by MyConfigurationProducer.getOneConfig()
+ */
+ @Inject
+ MyBean first1;
+
+ /**
+ * Injected method producer MyGenericBean.createMyFirstBean()
+ * Configuration produced by MyConfigurationProducer.getSecondConfig()
+ */
+ @Inject
+ @Qualifier1
+ MyBean first2;
+
+ /**
+ * Injected method producer MyGenericBean.createMyFirstBean()
+ * Configuration produced by MyExtendedConfiguration
+ */
+ @Inject
+ @Qualifier2
+ MyBean first3;
+
+
+
+
+ /**
+ * Injected method producer MyGenericBean.createMySecondBean()
+ * Configuration produced by MyConfigurationProducer.getOneConfig()
+ */
+ @Inject
+ MyBean2 second1;
+
+ /**
+ * Injected method producer MyGenericBean.createMySecondBean()
+ * Configuration produced by MyConfigurationProducer.getSecondConfig()
+ */
+ @Inject
+ @Qualifier1
+ MyBean2 second2;
+
+ /**
+ * Injected method producer MyGenericBean.createMySecondBean()
+ * Configuration produced by MyExtendedConfiguration
+ */
+ @Inject
+ @Qualifier2
+ MyBean2 second3;
+
+
+
+
+ /**
+ * Injected field producer MyGenericBean.myThirdBean
+ * Configuration produced by MyConfigurationProducer.getOneConfig()
+ */
+ @Inject
+ MyBean3 third1;
+
+ /**
+ * Injected field producer MyGenericBean.myThirdBean
+ * Configuration produced by MyConfigurationProducer.getSecondConfig()
+ */
+ @Inject
+ @Qualifier1
+ MyBean3 third2;
+
+ /**
+ * Injected field producer MyGenericBean.myThirdBean
+ * Configuration produced by MyExtendedConfiguration
+ */
+ @Inject
+ @Qualifier2
+ MyBean3 third3;
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfiguration.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfiguration.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfiguration.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,7 @@
+package cdi.seam;
+
+public class MyConfiguration {
+
+ public MyConfiguration(String s) {}
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfigurationProducer.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfigurationProducer.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyConfigurationProducer.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,29 @@
+package cdi.seam;
+
+import javax.enterprise.context.SessionScoped;
+import javax.enterprise.inject.Default;
+import javax.enterprise.inject.Produces;
+
+public class MyConfigurationProducer {
+
+ /**
+ * Configuration created by field producer.
+ */
+ @Produces
+ @MyGenericType("first")
+ @Default
+ MyConfiguration getOneConfig() {
+ return null;
+ }
+
+ /**
+ * Configuration created by method producer with specified scope.
+ */
+ @Produces
+ @MyGenericType("second")
+ @Qualifier1
+ @SessionScoped
+ MyConfiguration getSecondConfig() {
+ return null;
+ }
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyExtendedConfiguration.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyExtendedConfiguration.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyExtendedConfiguration.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,9 @@
+package cdi.seam;
+
+@MyGenericType("third")
+@Qualifier2
+public class MyExtendedConfiguration extends MyConfiguration {
+ public MyExtendedConfiguration() {
+ super("");
+ }
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,27 @@
+package cdi.seam;
+
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.bean.generic.ApplyScope;
+import org.jboss.seam.solder.bean.generic.Generic;
+import org.jboss.seam.solder.bean.generic.GenericConfiguration;
+
+(a)GenericConfiguration(MyGenericType.class)
+public class MyGenericBean {
+ @Inject
+ @Generic
+ MyConfiguration config;
+
+ @Inject
+ MyGenericType type;
+
+ @Produces @ApplyScope
+ MyBean createMyFirstBean() {
+ return new MyBean("bean1");
+ }
+
+ @Produces @ApplyScope
+ MyBean3 myThirdBean = new MyBean3("bean3");
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean2.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean2.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericBean2.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,35 @@
+package cdi.seam;
+
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.bean.generic.Generic;
+import org.jboss.seam.solder.bean.generic.GenericConfiguration;
+
+(a)GenericConfiguration(MyGenericType.class)
+public class MyGenericBean2 {
+ @Inject
+ @Generic
+ MyConfiguration config;
+
+ @Inject
+ @Generic
+ MyBean c;
+
+ @Inject
+ void setMyBean(@Generic MyBean parameter1) {}
+
+ @Inject
+ @Generic
+ MyBean2 c2;
+
+ @Inject
+ @Generic
+ MyBean3 c3;
+
+ @Produces
+ MyBean2 createMySecondBean() {
+ return new MyBean2("");
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericType.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericType.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/MyGenericType.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,8 @@
+package cdi.seam;
+
+import org.jboss.seam.solder.bean.generic.GenericType;
+
+(a)GenericType(MyConfiguration.class)
+public @interface MyGenericType {
+ String value();
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier1.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier1.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier1.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,21 @@
+package cdi.seam;
+
+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 Qualifier1 {
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier2.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier2.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/generic/src/cdi/seam/Qualifier2.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,21 @@
+package cdi.seam;
+
+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 Qualifier2 {
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.classpath
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.classpath
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.classpath 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_29">
+ <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/AS-7.0">
+ <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="lib" path="seam-solder.jar"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.project
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.project
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.project 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>resource</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/resource/.settings/.jsdtscope
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/.jsdtscope
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/.jsdtscope 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/resource/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.jdt.core.prefs 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/resource/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.component 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="Seam3ResourceOpenOn">
+ <wb-resource deploy-path="/" source-path="/WebContent"
tag="defaultRootSource"/>
+ <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+ <property name="context-root"
value="Seam3ResourceOpenOn"/>
+ <property name="java-output-path"
value="/Seam3ResourceOpenOn/build/classes"/>
+ </wb-module>
+</project-modules>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="AS-7.0"/>
+ <fixed facet="wst.jsdt.web"/>
+ <fixed facet="java"/>
+ <fixed facet="jst.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/resource/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-03-20
14:49:49 UTC (rev 39663)
@@ -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/resource/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/META-INF/MANIFEST.MF 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/WEB-INF/beans.xml
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/WEB-INF/beans.xml
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/WebContent/WEB-INF/beans.xml 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,3 @@
+<?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"/>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/seam-solder.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/seam-solder.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/cdi/seam/MyBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/cdi/seam/MyBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/resource/src/cdi/seam/MyBean.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,15 @@
+package cdi.seam;
+
+import java.net.URL;
+
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.resourceLoader.Resource;
+
+public class MyBean {
+
+ @Inject
+ @Resource("WEB-INF/beans.xml")
+ URL beansXml;
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBean.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBean.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBean.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,7 @@
+package cdi.seam;
+
+public class MyBeanX {
+
+ public MyBeanX(String s) {}
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBeanInjections.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBeanInjections.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyBeanInjections.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,82 @@
+package cdi.seam;
+
+import javax.inject.Inject;
+
+public class MyBeanInjections {
+
+ /**
+ * Injected method producer MyGenericBean.createMyFirstBean()
+ * Configuration produced by MyConfigurationProducer.getOneConfig()
+ */
+ @Inject
+ MyBean first1;
+
+ /**
+ * Injected method producer MyGenericBean.createMyFirstBean()
+ * Configuration produced by MyConfigurationProducer.getSecondConfig()
+ */
+ @Inject
+ @Qualifier1
+ MyBean first2;
+
+ /**
+ * Injected method producer MyGenericBean.createMyFirstBean()
+ * Configuration produced by MyExtendedConfiguration
+ */
+ @Inject
+ @Qualifier2
+ MyBean first3;
+
+
+
+
+ /**
+ * Injected method producer MyGenericBean.createMySecondBean()
+ * Configuration produced by MyConfigurationProducer.getOneConfig()
+ */
+ @Inject
+ MyBean2 second1;
+
+ /**
+ * Injected method producer MyGenericBean.createMySecondBean()
+ * Configuration produced by MyConfigurationProducer.getSecondConfig()
+ */
+ @Inject
+ @Qualifier1
+ MyBean2 second2;
+
+ /**
+ * Injected method producer MyGenericBean.createMySecondBean()
+ * Configuration produced by MyExtendedConfiguration
+ */
+ @Inject
+ @Qualifier2
+ MyBean2 second3;
+
+
+
+
+ /**
+ * Injected field producer MyGenericBean.myThirdBean
+ * Configuration produced by MyConfigurationProducer.getOneConfig()
+ */
+ @Inject
+ MyBean3 third1;
+
+ /**
+ * Injected field producer MyGenericBean.myThirdBean
+ * Configuration produced by MyConfigurationProducer.getSecondConfig()
+ */
+ @Inject
+ @Qualifier1
+ MyBean3 third2;
+
+ /**
+ * Injected field producer MyGenericBean.myThirdBean
+ * Configuration produced by MyExtendedConfiguration
+ */
+ @Inject
+ @Qualifier2
+ MyBean3 third3;
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyConfigProd.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyConfigProd.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyConfigProd.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,29 @@
+package cdi.seam;
+
+import javax.enterprise.context.SessionScoped;
+import javax.enterprise.inject.Default;
+import javax.enterprise.inject.Produces;
+
+public class MyConfigurationProducer {
+
+ /**
+ * Configuration created by field producer.
+ */
+ @Produces
+ @MyGenericType("first")
+ @Default
+ MyConfiguration getOneConfig() {
+ return null;
+ }
+
+ /**
+ * Configuration created by method producer with specified scope.
+ */
+ @Produces
+ @MyGenericType("second")
+ @Qualifier1
+ @SessionScoped
+ MyConfiguration getSecondConfig() {
+ return null;
+ }
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyExtendConfig.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyExtendConfig.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyExtendConfig.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,9 @@
+package cdi.seam;
+
+@MyGenericType("third")
+@Qualifier2
+public class MyExtendedConfiguration extends MyConfiguration {
+ public MyExtendedConfiguration() {
+ super("");
+ }
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,27 @@
+package cdi.seam;
+
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.bean.generic.ApplyScope;
+import org.jboss.seam.solder.bean.generic.Generic;
+import org.jboss.seam.solder.bean.generic.GenericConfiguration;
+
+(a)GenericConfiguration(MyGenericType.class)
+public class MyGenericBean {
+ @Inject
+ @Generic
+ MyConfiguration config;
+
+ @Inject
+ MyGenericType type;
+
+ @Produces @ApplyScope
+ MyBean createMyFirstBean() {
+ return new MyBean("bean1");
+ }
+
+ @Produces @ApplyScope
+ MyBean3 myThirdBean = new MyBean3("bean3");
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean2.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean2.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericBean2.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,35 @@
+package cdi.seam;
+
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.bean.generic.Generic;
+import org.jboss.seam.solder.bean.generic.GenericConfiguration;
+
+(a)GenericConfiguration(MyGenericType.class)
+public class MyGenericBean2 {
+ @Inject
+ @Generic
+ MyConfiguration config;
+
+ @Inject
+ @Generic
+ MyBean c;
+
+ @Inject
+ void setMyBean(@Generic MyBean parameter1) {}
+
+ @Inject
+ @Generic
+ MyBean2 c2;
+
+ @Inject
+ @Generic
+ MyBean3 c3;
+
+ @Produces
+ MyBean2 createMySecondBean() {
+ return new MyBean2("");
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericType.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericType.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/generic/MyGenericType.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,8 @@
+package cdi.seam;
+
+import org.jboss.seam.solder.bean.generic.GenericType;
+
+(a)GenericType(MyConfiguration.class)
+public @interface MyGenericType {
+ String value();
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/openon/BeanWithResourceAnnotation.java.cdi
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/openon/BeanWithResourceAnnotation.java.cdi
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/seam3/openon/BeanWithResourceAnnotation.java.cdi 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,15 @@
+package cdi.seam;
+
+import java.net.URL;
+
+import javax.inject.Inject;
+
+import org.jboss.seam.solder.resourceLoader.Resource;
+
+public class BeanComponent {
+
+ @Inject
+ @Resource("WEB-INF/beans.xml")
+ URL beansXml;
+
+}
\ No newline at end of file
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/Activator.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/Activator.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/Activator.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+ private static BundleContext context;
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.cdi.seam3.bot.test";
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+
+}
Added:
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
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2011 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;
+
+import org.jboss.tools.cdi.bot.test.AbstractTestSuite;
+import org.jboss.tools.cdi.seam3.bot.test.tests.ConfigValidationTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.DefaultBeansTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.GenericOpenOnTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.ResourceOpenOnTest;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+
+/**
+ * This test suite requires JBoss AS 6 or newer
+ *
+ * System properties:
+ * -Dswtbot.test.properties.file=$PATH
+ * -Dusage_reporting_enabled=$BOOLEAN
+ *
+ * Format of swtbot.properties file:
+ * SERVER=EAP|JBOSS_AS,<server version>,<jre version to run
with>|default,<server home>
+ *
+ * Sample swtbot.properties file:
+ *
+ *
SERVER=JBOSS_AS,6.0,default,/home/jjankovi/Dokumenty/Red_Hat_Stuff/Runtimes/jboss-6.0.0.Final
+ * JAVA=1.6,/space/java/sdk/jdk1.6.0_22
+ *
+ *
+ * Suite duration: aprox. 3min
+ *
+ * @author Jaroslav Jankovic
+ */
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({
+ ResourceOpenOnTest.class,
+ GenericOpenOnTest.class,
+ DefaultBeansTest.class,
+ ConfigValidationTest.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/Seam3TestBase.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/Seam3TestBase.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/Seam3TestBase.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,75 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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;
+
+import java.io.IOException;
+import java.util.logging.Level;
+
+import org.jboss.tools.cdi.bot.test.CDITestBase;
+import org.jboss.tools.cdi.seam3.bot.test.util.LibraryHelper;
+import org.jboss.tools.cdi.seam3.bot.test.util.ProjectImportHelper;
+import org.jboss.tools.cdi.seam3.bot.test.util.SeamLibraries;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@Require(clearProjects = true, perspective = "Java EE",
+ server = @Server(state = ServerState.NotRunning,
+ version = "6.0", operator = ">="))
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({ CDISeam3AllBotTests.class })
+public class Seam3TestBase extends CDITestBase {
+
+ private String projectName = "CDISeam3Project";
+ private String packageName = "cdi.seam";
+
+ protected final LibraryHelper libraryHelper = new LibraryHelper();
+ protected final ProjectImportHelper projectImportHelper = new ProjectImportHelper();
+
+ protected String getProjectName() {
+ return projectName;
+ }
+
+ protected String getPackageName() {
+ return packageName;
+ }
+
+ @Override
+ public void prepareWorkspace() {
+ projectImportHelper.importTestProject("/resources/projects/" +
getProjectName());
+ }
+
+ protected void addAndCheckLibrary(SeamLibraries library) {
+ addLibrary(library.getName());
+ checkLibrary(library.getName());
+ }
+
+ private void addLibrary(String libraryName) {
+ try {
+ libraryHelper.addLibraryIntoProject(getProjectName(), libraryName);
+ LOGGER.info("Library: \"" + libraryName + "\" copied");
+ util.waitForNonIgnoredJobs();
+ libraryHelper.addLibraryToProjectsClassPath(getProjectName(), libraryName);
+ LOGGER.info("Library: \"" + libraryName + "\" on class path
of project\"" + getProjectName() + "\"");
+ } catch (IOException exc) {
+ LOGGER.log(Level.SEVERE, "Error while adding " + libraryName + "
library into project");
+ }
+ }
+
+ private void checkLibrary(String libraryName) {
+ assertTrue(libraryHelper.isLibraryInProjectClassPath(getProjectName(),
libraryName));
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ConfigValidationTest.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.seam3.bot.test.Seam3TestBase;
+import org.junit.Test;
+
+
+public class ConfigValidationTest extends Seam3TestBase {
+
+ @Override
+ public String getProjectName() {
+ return "Seam3ConfigValidation";
+ }
+
+ @Test
+ public void testConfig() {
+
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/DefaultBeansTest.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,141 @@
+/*******************************************************************************
+ * 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.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.jboss.tools.cdi.bot.test.CDIConstants;
+import org.jboss.tools.cdi.seam3.bot.test.Seam3TestBase;
+import org.jboss.tools.cdi.seam3.bot.test.uiutils.AssignableBeansDialog;
+import org.junit.Test;
+
+public class DefaultBeansTest extends Seam3TestBase {
+
+ @Override
+ public String getProjectName() {
+ return "defaultBeans";
+ }
+
+ @Override
+ public void waitForJobs() {
+ projectExplorer.deleteProject(getProjectName(), true);
+ }
+
+ private String className = "Application.java";
+
+ @Test
+ public void testProperAssign() {
+
+ packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
+ "cdi.seam", className);
+
+ assertFalse(openOnUtil.openOnByOption("managerImpl", className,
CDIConstants.SHOW_ALL_ASSIGNABLE));
+ openOnUtil.openOnByOption("managerImpl", className, "Open @Inject
Bean");
+ String destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals("DefaultOne.java"));
+
+ }
+
+ @Test
+ public void testProperAssignAlternativesDeactive() {
+
+ wizardExt.bean("cdi.seam", "ManagerImpl", true, false, false,
false, true, false, null,
+ "Manager", null, null).finish();
+
+ packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
+ "cdi.seam", className);
+
+ assertTrue(openOnUtil.openOnByOption("managerImpl", className,
CDIConstants.SHOW_ALL_ASSIGNABLE));
+
+ AssignableBeansDialog assignDialog = new
AssignableBeansDialog(bot.shell("Assignable Beans"));
+
+ SWTBotTable allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 2);
+ assignDialog.hideUnavailableBeans();
+ allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 1);
+
+ allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 1);
+ assertTrue(allBeans.getTableItem(0).getText().contains("DefaultOne"));
+
+ openOnUtil.openOnByOption("managerImpl", className, "Open @Inject
Bean");
+ String destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals("DefaultOne.java"));
+
+ }
+
+ @Test
+ public void testProperUnassign() {
+
+ wizardExt.bean("cdi.seam", "ManagerImpl", true, false, false,
false, false, false, null,
+ "Manager", null, null).finish();
+
+ packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
+ "cdi.seam", className);
+
+ assertTrue(openOnUtil.openOnByOption("managerImpl", className,
CDIConstants.SHOW_ALL_ASSIGNABLE));
+
+ AssignableBeansDialog assignDialog = new
AssignableBeansDialog(bot.shell("Assignable Beans"));
+
+ SWTBotTable allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 2);
+ assignDialog.hideDefaultBeans();
+ allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 1);
+
+ allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 1);
+ assertTrue(allBeans.getTableItem(0).getText().contains("ManagerImpl"));
+
+ openOnUtil.openOnByOption("managerImpl", className, "Open @Inject
Bean");
+ String destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals("ManagerImpl.java"));
+
+ }
+
+ @Test
+ public void testProperUnassignAlternativesActive() {
+
+ wizardExt.bean("cdi.seam", "ManagerImpl", true, false, false,
false, true, true, null,
+ "Manager", null, null).finish();
+
+ packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
+ "cdi.seam", className);
+
+ assertTrue(openOnUtil.openOnByOption("managerImpl", className,
CDIConstants.SHOW_ALL_ASSIGNABLE));
+
+ AssignableBeansDialog assignDialog = new
AssignableBeansDialog(bot.shell("Assignable Beans"));
+
+ SWTBotTable allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 2);
+ assignDialog.hideDefaultBeans();
+ allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 1);
+ assignDialog.showDefaultBeans();
+ assignDialog.hideAmbiguousBeans();
+ assertTrue(allBeans.rowCount() == 1);
+
+ allBeans = assignDialog.getAllBeans();
+ assertTrue(allBeans.rowCount() == 1);
+ assertTrue(allBeans.getTableItem(0).getText().contains("ManagerImpl"));
+
+ openOnUtil.openOnByOption("managerImpl", className, "Open @Inject
Bean");
+ String destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals("ManagerImpl.java"));
+
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/GenericOpenOnTest.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,157 @@
+/*******************************************************************************
+ * 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.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.jboss.tools.cdi.bot.test.CDIConstants;
+import org.jboss.tools.cdi.seam3.bot.test.Seam3TestBase;
+import org.jboss.tools.ui.bot.ext.Timing;
+import org.junit.Test;
+
+/**
+ * Test operates on generic points openOn in Seam3 using CDI tools
+ *
+ * @author jjankovi
+ *
+ */
+
+public class GenericOpenOnTest extends Seam3TestBase {
+
+ private final String GENERIC_POINT_1 = "MyExtendedConfiguration ";
+ private final String GENERIC_POINT_2 =
"MyConfigurationProducer.getOneConfig()";
+ private final String GENERIC_POINT_3 =
"MyConfigurationProducer.getSecondConfig()";
+
+ @Override
+ public String getProjectName() {
+ return "generic";
+ }
+
+ /**
+ *
https://issues.jboss.org/browse/JBIDE-8692
+ */
+ @Test
+ public void testGenericOpenOn() {
+
+ packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
+ "cdi.seam", "MyBeanInjections.java");
+
+ checkFirstOpenOnAndGeneric();
+ checkSecondOpenOnAndGeneric();
+ checkThirdOpenOnAndGeneric();
+
+ String parameter = "MyConfiguration config";
+ String classTitle = "MyGenericBean.java";
+ checkAllGenericPointsForAtribute(parameter, classTitle);
+
+
+ classTitle = "MyGenericBean2.java";
+ String[] atributes = {"MyConfiguration config", "MyBean c",
"MyBean2 c2",
+ "MyBean3 c3", "MyBean parameter1"};
+ for (String atribute : atributes) {
+ checkAllGenericPointsForAtribute(atribute, classTitle);
+ }
+
+ }
+
+ private void checkFirstOpenOnAndGeneric() {
+ checkOpenOnAndGeneric("first1", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyConfigurationProducer.java", "getOneConfig");
+ checkOpenOnAndGeneric("first1", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean.java", "createMyFirstBean");
+
+ checkOpenOnAndGeneric("first2", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyConfigurationProducer.java", "getSecondConfig");
+ checkOpenOnAndGeneric("first2", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean.java", "createMyFirstBean");
+
+ checkOpenOnAndGeneric("first3", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyExtendedConfiguration.java", "MyExtendedConfiguration");
+ checkOpenOnAndGeneric("first3", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean.java", "createMyFirstBean");
+ }
+
+ private void checkSecondOpenOnAndGeneric() {
+ checkOpenOnAndGeneric("second1", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyConfigurationProducer.java", "getOneConfig");
+ checkOpenOnAndGeneric("second1", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean2.java", "createMySecondBean");
+
+ checkOpenOnAndGeneric("second2", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyConfigurationProducer.java", "getSecondConfig");
+ checkOpenOnAndGeneric("second2", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean2.java", "createMySecondBean");
+
+ checkOpenOnAndGeneric("second3", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyExtendedConfiguration.java", "MyExtendedConfiguration");
+ checkOpenOnAndGeneric("second3", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean2.java", "createMySecondBean");
+ }
+
+ private void checkThirdOpenOnAndGeneric() {
+ checkOpenOnAndGeneric("third1", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyConfigurationProducer.java", "getOneConfig");
+ checkOpenOnAndGeneric("third1", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean.java", "myThirdBean");
+
+ checkOpenOnAndGeneric("third2", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyConfigurationProducer.java", "getSecondConfig");
+ checkOpenOnAndGeneric("third2", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean.java", "myThirdBean");
+
+ checkOpenOnAndGeneric("third3", "MyBeanInjections.java",
"Generic Configuration Point",
+ "MyExtendedConfiguration.java", "MyExtendedConfiguration");
+ checkOpenOnAndGeneric("third3", "MyBeanInjections.java",
"@Inject Bean",
+ "MyGenericBean.java", "myThirdBean");
+ }
+
+ private void checkOpenOnAndGeneric(String openOnString, String titleName, String
chosenOption,
+ String afterOpenOnTitleName, String injectSelectionAtribute) {
+ openOnUtil.openOnByOption(openOnString, titleName, chosenOption);
+ String activeEditor = bot.activeEditor().getTitle();
+ String selectedString = bot.activeEditor().toTextEditor().getSelection();
+ assertTrue(activeEditor, activeEditor.equals(afterOpenOnTitleName));
+ assertTrue(selectedString, selectedString.equals(injectSelectionAtribute));
+ }
+
+ private void checkAllGenericPointsForAtribute(String atribute,
+ String classTitle) {
+ openOnUtil.openOnByOption(atribute, classTitle, "Show All Generic Configuration
Points...");
+ bot.sleep(Timing.time1S());
+ SWTBotTable genericPointTable = bot.table(0);
+ assertTrue(checkAllGenericConfPoints(genericPointTable));
+ bot.sleep(Timing.time2S());
+ }
+
+ private boolean checkAllGenericConfPoints(SWTBotTable genericPointTable) {
+ boolean isGenericPoint1Present = false;
+ boolean isGenericPoint2Present = false;
+ boolean isGenericPoint3Present = false;
+ for (int rowIterator = 0; rowIterator < genericPointTable.rowCount(); rowIterator++)
{
+ String itemInTable = genericPointTable.getTableItem(rowIterator).getText();
+ if (itemInTable.contains(GENERIC_POINT_1)) {
+ isGenericPoint1Present = true;
+ continue;
+ }
+ if (itemInTable.contains(GENERIC_POINT_2)) {
+ isGenericPoint2Present = true;
+ continue;
+ }
+ if (itemInTable.contains(GENERIC_POINT_3)) {
+ isGenericPoint3Present = true;
+ continue;
+ }
+ }
+ return isGenericPoint1Present && isGenericPoint2Present &&
isGenericPoint3Present;
+ }
+
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.Seam3TestBase;
+import org.junit.Test;
+
+/**
+ * Test operates on resource openOn in Seam3 using CDI tools
+ *
+ * @author Jaroslav Jankovic
+ */
+
+public class ResourceOpenOnTest extends Seam3TestBase {
+
+ @Override
+ public String getProjectName() {
+ return "resource";
+ }
+
+ /**
+ *
https://issues.jboss.org/browse/JBIDE-8202
+ */
+ @Test
+ public void testResourceOpenOn() {
+
+ String className = "MyBean.java";
+
+ packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
+ "cdi.seam", className);
+
+ openOnUtil.openOnByOption(CDIConstants.RESOURCE_ANNOTATION, className, "Open
Resource");
+
+ String destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals(CDIConstants.BEANS_XML));
+
+ editResourceUtil.moveFileInProjectExplorer(CDIConstants.BEANS_XML,
+ getProjectName() + "/" + CDIConstants.WEBCONTENT + "/" +
CDIConstants.WEB_INF,
+ getProjectName() + "/" + CDIConstants.WEBCONTENT + "/" +
CDIConstants.META_INF);
+ LOGGER.info("bean.xml was moved to META-INF");
+
+ setEd(bot.swtBotEditorExtByTitle(className));
+ editResourceUtil.replaceInEditor("WEB", "META");
+ openOnUtil.openOnByOption(CDIConstants.RESOURCE_ANNOTATION, className, "Open
Resource");
+
+ destinationFile = getEd().getTitle();
+ assertTrue("ERROR: redirected to " + destinationFile,
+ destinationFile.equals(CDIConstants.BEANS_XML));
+
+ }
+
+}
+
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/uiutils/AssignableBeansDialog.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * 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.uiutils;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+
+public class AssignableBeansDialog {
+
+ private SWTBotShell shell = null;
+
+ public AssignableBeansDialog(SWTBotShell shell) {
+ this.shell = shell;
+ }
+
+ public SWTBotTable getAllBeans() {
+ return shell.bot().table();
+ }
+
+ public AssignableBeansDialog hideUnavailableBeans() {
+ getAllOptions().getAllItems()[0].uncheck();
+ return this;
+ }
+
+ public AssignableBeansDialog showUnavailableBeans() {
+ getAllOptions().getAllItems()[0].check();
+ return this;
+ }
+
+ public AssignableBeansDialog hideAmbiguousBeans() {
+ getAllOptions().getAllItems()[1].uncheck();
+ return this;
+ }
+
+ public AssignableBeansDialog showAmbiguousBeans() {
+ getAllOptions().getAllItems()[1].check();
+ return this;
+ }
+
+ public AssignableBeansDialog hideDefaultBeans() {
+ getAllOptions().getAllItems()[2].uncheck();
+ return this;
+ }
+
+ public AssignableBeansDialog showDefaultBeans() {
+ getAllOptions().getAllItems()[2].check();
+ return this;
+ }
+
+ private SWTBotTree getAllOptions() {
+ return shell.bot().tree();
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/LibraryHelper.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,122 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.util;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.nio.channels.FileChannel;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.cdi.bot.test.CDIBase;
+import org.jboss.tools.cdi.bot.test.CDIConstants;
+import org.jboss.tools.cdi.seam3.bot.test.Activator;
+import org.jboss.tools.ui.bot.ext.SWTUtilExt;
+import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+
+public class LibraryHelper extends CDIBase{
+
+ /**
+ * Method adds library named "libraryName" located in project folder
+ * to project's classpath
+ * @param projectName
+ * @param libraryName
+ */
+ public void addLibraryToProjectsClassPath(String projectName, String libraryName) {
+ SWTBotTree tree = projectExplorer.bot().tree();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(tree);
+ new
SWTBotMenu(ContextMenuHelper.getContextMenu(tree,CDIConstants.REFRESH,false)).click();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(tree);
+ new
SWTBotMenu(ContextMenuHelper.getContextMenu(tree,CDIConstants.PROPERTIES,false)).click();
+
+ bot.tree().expandNode(CDIConstants.JAVA_BUILD_PATH).select();
+ bot.tabItem(CDIConstants.LIBRARIES).activate();
+
+ bot.button(CDIConstants.ADD_JARS).click();
+ bot.waitForShell(IDELabel.Shell.JAR_SELECTION);
+
+ String file = libraryName;
+ bot.tree().expandNode(projectName).expandNode(file).select();
+
+ bot.button(IDELabel.Button.OK).click();
+
+ bot.button(IDELabel.Button.OK).click();
+ util.waitForNonIgnoredJobs();
+ }
+
+ /**
+ * Method copies library named "libraryName" located in
"projectName"/resources/libraries
+ * into project default folder
+ * @param projectName
+ * @param libraryName
+ * @throws IOException
+ */
+ public void addLibraryIntoProject(String projectName, String libraryName) throws
IOException {
+ File in = null;
+ FileChannel inChannel = null;
+ FileChannel outChannel = null;
+
+
+ in = SWTUtilExt.getResourceFile(Activator.PLUGIN_ID, "libraries",
libraryName);
+
+ File out = new File(Platform.getLocation() + File.separator + projectName +
+ File.separator + File.separator + libraryName);
+
+ inChannel = new FileInputStream(in).getChannel();
+ outChannel = new FileOutputStream(out).getChannel();
+
+ inChannel.transferTo(0, inChannel.size(), outChannel);
+
+ if (inChannel != null) inChannel.close();
+ if (outChannel != null) outChannel.close();
+ }
+
+ /**
+ * Method checks if library named "libraryName" is set on classpath
+ * of project named "projectName"
+ * @param projectName
+ * @param libraryName
+ * @return boolean - represents fact if library is/isn't set on project classpath
+ */
+ public boolean isLibraryInProjectClassPath(String projectName, String libraryName) {
+ SWTBotTree tree = projectExplorer.bot().tree();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(tree);
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(tree, CDIConstants.PROPERTIES,
false)).click();
+
+ SWTBotShell shell = bot.shell("Properties for " + projectName);
+ SWTBot bot = shell.bot();
+
+ bot.tree().expandNode(CDIConstants.JAVA_BUILD_PATH).select();
+
+ bot.tabItem(CDIConstants.LIBRARIES).activate();
+
+ boolean libraryInProject = false;
+ for (int i = 0; i < bot.tree(1).rowCount(); i++) {
+ if (bot.tree(1).getAllItems()[i].getText().contains(libraryName)) {
+ libraryInProject = true;
+ break;
+ }
+ }
+ bot.button(IDELabel.Button.CANCEL).click();
+ return libraryInProject;
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/ProjectImportHelper.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * 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.util;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.jboss.tools.cdi.bot.test.CDIBase;
+import org.jboss.tools.cdi.seam3.bot.test.Activator;
+import org.jboss.tools.ui.bot.ext.helper.FileHelper;
+import org.jboss.tools.ui.bot.ext.helper.ImportHelper;
+import org.jboss.tools.ui.bot.ext.helper.ResourceHelper;
+
+public class ProjectImportHelper extends CDIBase {
+
+ public void importTestProject(String dir) {
+ String rpath = ResourceHelper.getResourceAbsolutePath(Activator.PLUGIN_ID, dir);
+ String wpath = ResourceHelper.getWorkspaceAbsolutePath() + dir;
+ File rfile = new File(rpath);
+ File wfile = new File(wpath);
+
+ wfile.mkdirs();
+ try {
+ FileHelper.copyFilesBinaryRecursively(rfile, wfile, null);
+ } catch (IOException e) {
+ fail("Unable to copy test project");
+ }
+ ImportHelper.importAllProjects(wpath);
+ util.waitForNonIgnoredJobs();
+ }
+
+}
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/util/SeamLibraries.java 2012-03-20
14:49:49 UTC (rev 39663)
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * 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.util;
+
+public enum SeamLibraries {
+
+ SOLDER, INTERNATIONAL;
+
+ public String getName() {
+ switch (this) {
+ case SOLDER:
+ return "seam-solder.jar";
+ case INTERNATIONAL:
+ return "seam-international.jar";
+ default:
+ throw new AssertionError("Unknown libraries");
+ }
+ }
+
+}