Weld SVN: r5717 - cdi-tck/trunk/impl/src/main/resources.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-03 11:57:56 -0500 (Wed, 03 Feb 2010)
New Revision: 5717
Modified:
cdi-tck/trunk/impl/src/main/resources/cdi-api.sig
Log:
CDITCK-105, CDITCK-106
Modified: cdi-tck/trunk/impl/src/main/resources/cdi-api.sig
===================================================================
--- cdi-tck/trunk/impl/src/main/resources/cdi-api.sig 2010-02-03 16:37:55 UTC (rev 5716)
+++ cdi-tck/trunk/impl/src/main/resources/cdi-api.sig 2010-02-03 16:57:56 UTC (rev 5717)
@@ -164,6 +164,7 @@
CLSS public abstract interface !annotation javax.enterprise.context.ConversationScoped
anno 0 java.lang.annotation.Documented()
+ anno 0 java.lang.annotation.Inherited()
anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME)
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[TYPE, METHOD, FIELD])
anno 0 javax.enterprise.context.NormalScope(boolean passivating=true)
@@ -486,7 +487,7 @@
CLSS public abstract interface javax.enterprise.inject.spi.BeforeBeanDiscovery
meth public abstract !varargs void addStereotype(java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation[])
meth public abstract void addAnnotatedType(javax.enterprise.inject.spi.AnnotatedType<?>)
-meth public abstract void addInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation>)
+meth public abstract !varargs void addInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation[])
meth public abstract void addQualifier(java.lang.Class<? extends java.lang.annotation.Annotation>)
meth public abstract void addScope(java.lang.Class<? extends java.lang.annotation.Annotation>,boolean,boolean)
14 years, 10 months
Weld SVN: r5716 - in core/trunk/tests/src/test: resources/org/jboss/weld/tests/contexts/errorpage and 1 other directory.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-03 11:37:55 -0500 (Wed, 03 Feb 2010)
New Revision: 5716
Modified:
core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/ErrorPageTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/Rain.java
core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/error.jsf
Log:
fix test up a bit
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/ErrorPageTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/ErrorPageTest.java 2010-02-02 16:57:49 UTC (rev 5715)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/ErrorPageTest.java 2010-02-03 16:37:55 UTC (rev 5716)
@@ -34,6 +34,7 @@
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput;
+import com.gargoylesoftware.htmlunit.html.HtmlTextInput;
/**
* <p>This test was mostly developed to test the scenario related to WELD-29. Essentially
@@ -44,7 +45,7 @@
*
*/
@Artifact(addCurrentPackage=false)
-(a)Classes({Storm.class})
+(a)Classes({Storm.class, Rain.class})
@IntegrationTest(runLocally=true)
@Resources({
@Resource(destination=WarArtifactDescriptor.WEB_XML_DESTINATION, source="web.xml"),
@@ -62,10 +63,12 @@
HtmlPage page = client.getPage(getPath("/storm.jsf"));
HtmlSubmitInput disasterButton = getFirstMatchingElement(page, HtmlSubmitInput.class, "disasterButton");
+ HtmlTextInput strength = getFirstMatchingElement(page, HtmlTextInput.class, "stormStrength");
+ strength.setValueAttribute("10");
page = disasterButton.click();
assert "Application Error".equals(page.getTitleText());
HtmlDivision conversationValue = getFirstMatchingElement(page, HtmlDivision.class, "conversation");
- assert conversationValue.asText().equals("0");
+ assert conversationValue.asText().equals("10");
HtmlDivision requestValue = getFirstMatchingElement(page, HtmlDivision.class, "request");
assert requestValue.asText().equals("medium");
}
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/Rain.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/Rain.java 2010-02-02 16:57:49 UTC (rev 5715)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/contexts/errorpage/Rain.java 2010-02-03 16:37:55 UTC (rev 5716)
@@ -17,8 +17,10 @@
package org.jboss.weld.tests.contexts.errorpage;
import javax.enterprise.context.RequestScoped;
+import javax.inject.Named;
@RequestScoped
+@Named
public class Rain
{
public String getSeverityLevel()
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/error.jsf
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/error.jsf 2010-02-02 16:57:49 UTC (rev 5715)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/error.jsf 2010-02-03 16:37:55 UTC (rev 5716)
@@ -16,8 +16,8 @@
<h1>Application Error</h1>
<p>The following error occurred while processing the request:</p>
- <div id="request">${rain.serverityLevel}</div>
<div id="conversation">${storm.strength}</div>
+ <div id="request">${rain.severityLevel}</div>
</body>
</html>
14 years, 10 months
Weld SVN: r5715 - extensions/trunk.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-02 11:57:49 -0500 (Tue, 02 Feb 2010)
New Revision: 5715
Removed:
extensions/trunk/.settings/
Log:
oops
14 years, 10 months
Weld SVN: r5714 - in extensions/trunk: bom and 3 other directories.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-02 11:54:20 -0500 (Tue, 02 Feb 2010)
New Revision: 5714
Added:
extensions/trunk/.settings/
Modified:
extensions/trunk/bom/pom.xml
extensions/trunk/core/pom.xml
extensions/trunk/core/src/test/java/org/jboss/weld/test/log/LoggerInjectionTest.java
extensions/trunk/parent/pom.xml
extensions/trunk/pom.xml
Log:
update version number, fix build for Weld 1.0.1
Modified: extensions/trunk/bom/pom.xml
===================================================================
--- extensions/trunk/bom/pom.xml 2010-02-02 16:35:29 UTC (rev 5713)
+++ extensions/trunk/bom/pom.xml 2010-02-02 16:54:20 UTC (rev 5714)
@@ -3,12 +3,12 @@
<groupId>org.jboss.weld</groupId>
<artifactId>weld-extensions-bom</artifactId>
<packaging>pom</packaging>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.1-SNAPSHOT</version>
<parent>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-parent</artifactId>
- <version>6</version>
+ <version>8</version>
</parent>
<name>Weld Extensions BOM</name>
@@ -33,13 +33,9 @@
<properties>
<weld.api.version>1.0</weld.api.version>
- <weld.core.version>1.0.0</weld.core.version>
- <!-- Use JSF 2 for all extensions support, despite core using JSF 1.2 -->
- <jsf.version>2.0.2-FCS</jsf.version>
- <wicket.version>1.4.1</wicket.version>
- <tomcat.version>6.0.20</tomcat.version>
- <uel.glassfish.version>2.1.2-b04</uel.glassfish.version>
+ <weld.core.version>1.0.1-CR1</weld.core.version>
<slf4j.version>1.5.10</slf4j.version>
+ <jta.version>1.1</jta.version>
</properties>
<!-- Dependency management, including extra repositories if needed -->
@@ -99,16 +95,6 @@
<scope>import</scope>
</dependency>
<dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>${jsf.version}</version>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <version>${jsf.version}</version>
- </dependency>
- <dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<classifier>jdk15</classifier>
@@ -119,6 +105,12 @@
<artifactId>weld-extensions</artifactId>
<version>${project.version}</version>
</dependency>
+ <!-- Override bad dep in api -->
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>${jta.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
Modified: extensions/trunk/core/pom.xml
===================================================================
--- extensions/trunk/core/pom.xml 2010-02-02 16:35:29 UTC (rev 5713)
+++ extensions/trunk/core/pom.xml 2010-02-02 16:54:20 UTC (rev 5714)
@@ -2,13 +2,13 @@
<parent>
<artifactId>weld-extensions-parent</artifactId>
<groupId>org.jboss.weld</groupId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.1-SNAPSHOT</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.weld</groupId>
- <artifactId>weld-extensions</artifactId>
-
+ <artifactId>weld-extensions-core</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
<!-- metadata -->
<name>Weld Extensions</name>
Modified: extensions/trunk/core/src/test/java/org/jboss/weld/test/log/LoggerInjectionTest.java
===================================================================
--- extensions/trunk/core/src/test/java/org/jboss/weld/test/log/LoggerInjectionTest.java 2010-02-02 16:35:29 UTC (rev 5713)
+++ extensions/trunk/core/src/test/java/org/jboss/weld/test/log/LoggerInjectionTest.java 2010-02-02 16:54:20 UTC (rev 5714)
@@ -35,7 +35,7 @@
@Test
public void testBasicLogInjection()
{
- Sparrow bird = getCurrentManager().getInstanceByType(Sparrow.class);
+ Sparrow bird = getReference(Sparrow.class);
TestLoggerFactory.INSTANCE.getLogger("").reset();
bird.generateLogMessage();
assert TestLoggerFactory.INSTANCE.getLogger("").getLastMessage() != null;
@@ -45,7 +45,7 @@
@Test
public void testCategorySpecifiedLogger()
{
- Finch bird = getCurrentManager().getInstanceByType(Finch.class);
+ Finch bird = getReference(Finch.class);
TestLoggerFactory.INSTANCE.getLogger("").reset();
bird.generateLogMessage();
assert TestLoggerFactory.INSTANCE.getLogger("").getLastMessage() != null;
Modified: extensions/trunk/parent/pom.xml
===================================================================
--- extensions/trunk/parent/pom.xml 2010-02-02 16:35:29 UTC (rev 5713)
+++ extensions/trunk/parent/pom.xml 2010-02-02 16:54:20 UTC (rev 5714)
@@ -3,10 +3,11 @@
<groupId>org.jboss.weld</groupId>
<artifactId>weld-extensions-parent</artifactId>
<packaging>pom</packaging>
+ <version>1.0.1-SNAPSHOT</version>
<parent>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-extensions-bom</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.1-SNAPSHOT</version>
<relativePath>../bom/pom.xml</relativePath>
</parent>
Modified: extensions/trunk/pom.xml
===================================================================
--- extensions/trunk/pom.xml 2010-02-02 16:35:29 UTC (rev 5713)
+++ extensions/trunk/pom.xml 2010-02-02 16:54:20 UTC (rev 5714)
@@ -3,12 +3,12 @@
<groupId>org.jboss.weld</groupId>
<artifactId>weld-extensions-build-aggregator</artifactId>
<packaging>pom</packaging>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.0.1-SNAPSHOT</version>
<parent>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-parent</artifactId>
- <version>7</version>
+ <version>8</version>
</parent>
<name>Weld Extensions Build Aggregator</name>
14 years, 10 months
Weld SVN: r5713 - java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-02 11:35:29 -0500 (Tue, 02 Feb 2010)
New Revision: 5713
Modified:
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java
Log:
oops
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java 2010-02-02 16:32:29 UTC (rev 5712)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java 2010-02-02 16:35:29 UTC (rev 5713)
@@ -11,12 +11,19 @@
{
private static boolean observedEventTest;
+ private static boolean observedContainerInitialized;
public static void reset()
{
observedEventTest = false;
+ observedContainerInitialized = false;
}
+ public static boolean isObservedContainerInitialized()
+ {
+ return observedContainerInitialized;
+ }
+
public static boolean isObservedEventTest()
{
return observedEventTest;
@@ -29,11 +36,12 @@
public void start(@Observes ContainerInitialized event, ShutdownManager shutdownManager)
{
eventTest.fire(new Bar());
+ observedContainerInitialized = true;
}
public void observeEventTest(@Observes @EventQualifier2 Bar eventTest)
{
- this.observedEventTest = true;
+ observedEventTest = true;
}
}
14 years, 10 months
Weld SVN: r5712 - extensions/trunk.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-02 11:32:29 -0500 (Tue, 02 Feb 2010)
New Revision: 5712
Modified:
extensions/trunk/
Log:
ignores
Property changes on: extensions/trunk
___________________________________________________________________
Name: svn:ignore
+ .project
14 years, 10 months
Weld SVN: r5711 - core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-02 11:24:09 -0500 (Tue, 02 Feb 2010)
New Revision: 5711
Modified:
core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/web.xml
Log:
remove missing servlet
Modified: core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/web.xml
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/web.xml 2010-02-02 14:12:21 UTC (rev 5710)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/contexts/errorpage/web.xml 2010-02-02 16:24:09 UTC (rev 5711)
@@ -1,37 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
- <display-name>JSR-299 RI Core Tests</display-name>
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.jspx</param-value>
- </context-param>
- <!-- JSF -->
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
- <servlet-name>Conversation Status Servlet</servlet-name>
- <servlet-class>org.jboss.jsr299.tck.tests.context.conversation.client.ConversationStatusServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.jsf</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>Conversation Status Servlet</servlet-name>
- <url-pattern>/conversation-status</url-pattern>
- </servlet-mapping>
- <session-config>
- <session-timeout>10</session-timeout>
- </session-config>
- <error-page>
- <exception-type>java.lang.Exception</exception-type>
- <location>/error.jspx</location>
- </error-page>
- <login-config>
- <auth-method>BASIC</auth-method>
- </login-config>
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <display-name>JSR-299 RI Core Tests</display-name>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.jspx</param-value>
+ </context-param>
+ <!-- JSF -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <session-config>
+ <session-timeout>10</session-timeout>
+ </session-config>
+ <error-page>
+ <exception-type>java.lang.Exception</exception-type>
+ <location>/error.jspx</location>
+ </error-page>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
</web-app>
14 years, 10 months
Weld SVN: r5710 - api/trunk/cdi/src/main/java/javax/enterprise/inject/spi.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-02 09:12:21 -0500 (Tue, 02 Feb 2010)
New Revision: 5710
Modified:
api/trunk/cdi/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java
Log:
WELD-412
Modified: api/trunk/cdi/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java
===================================================================
--- api/trunk/cdi/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java 2010-02-02 12:33:48 UTC (rev 5709)
+++ api/trunk/cdi/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java 2010-02-02 14:12:21 UTC (rev 5710)
@@ -70,8 +70,9 @@
*
* @param bindingType The annotation type to treat as an interceptor binding
* type
+ * @param bindingTypeDef An optional list of annotations defining the {@linkplain Interceptor interceptor}
*/
- public void addInterceptorBinding(Class<? extends Annotation> bindingType);
+ public void addInterceptorBinding(Class<? extends Annotation> bindingType, Annotation... bindingTypeDef);
/**
* Adds a given {@link javax.enterprise.inject.spi.AnnotatedType} to the set
14 years, 10 months
Weld SVN: r5709 - in java-se/trunk/src: test/java/org/jboss/weld/environment/se/test and 2 other directories.
by weld-commits@lists.jboss.org
Author: peteroyle
Date: 2010-02-02 07:33:48 -0500 (Tue, 02 Feb 2010)
New Revision: 5709
Added:
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/AbstractDoor.java
Modified:
java-se/trunk/src/main/java/org/jboss/weld/environment/se/WeldSEBeanRegistrant.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/DecoratorsTest.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/ThreadContextTest.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoor.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoorAlarm.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/Door.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/HouseDoor.java
java-se/trunk/src/test/resources/META-INF/beans.xml
Log:
WELD-19: Re-enabing ThreadLocal and Delegate tests now that WELD-291 is fixed.
Modified: java-se/trunk/src/main/java/org/jboss/weld/environment/se/WeldSEBeanRegistrant.java
===================================================================
--- java-se/trunk/src/main/java/org/jboss/weld/environment/se/WeldSEBeanRegistrant.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/main/java/org/jboss/weld/environment/se/WeldSEBeanRegistrant.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -43,8 +43,7 @@
event.addAnnotatedType(manager.createAnnotatedType(ParametersFactory.class));
event.addAnnotatedType(manager.createAnnotatedType(InstanceManager.class));
event.addAnnotatedType(manager.createAnnotatedType(Weld.class));
- // TODO: enable this when WELD-291 is fixed:
-// event.addAnnotatedType(manager.createAnnotatedType(RunnableDecorator.class));
+ event.addAnnotatedType(manager.createAnnotatedType(RunnableDecorator.class));
}
public void registerWeldSEContexts(@Observes AfterBeanDiscovery event)
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/DecoratorsTest.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/DecoratorsTest.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/DecoratorsTest.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -22,7 +22,7 @@
import org.jboss.weld.environment.se.Weld;
import org.jboss.weld.environment.se.WeldContainer;
import org.jboss.weld.environment.se.test.decorators.CarDoor;
-import org.jboss.weld.environment.se.test.decorators.Door;
+import org.jboss.weld.environment.se.test.decorators.AbstractDoor;
import org.jboss.weld.environment.se.test.decorators.CarDoorAlarm;
import org.jboss.weld.environment.se.test.decorators.HouseDoor;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
@@ -39,8 +39,7 @@
/**
* Test that decorators work as expected in SE.
*/
- // TODO: enable when WELD-291 is fixed:
-// @Test
+ @Test
public void testDecorators()
{
@@ -68,7 +67,7 @@
shutdownManager(weld);
}
- private void testDoor(Door door)
+ private void testDoor(AbstractDoor door)
{
Assert.assertTrue(door.open());
Assert.assertTrue(door.isOpen());
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -36,7 +36,6 @@
Foo.reset();
WeldContainer weld = new Weld().initialize();
weld.event().select(ContainerInitialized.class).fire(new ContainerInitialized());
- assert Foo.isObservedContainerInitialized();
assert !Foo.isObservedEventTest();
shutdownManager(weld);
}
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/ThreadContextTest.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/ThreadContextTest.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/ThreadContextTest.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -38,8 +38,7 @@
public static final int NUM_THREADS = 10;
public static final int NUM_LOOPS = 10;
- // TODO: enable this when WELD-291 is fixed:
- // @Test
+ @Test
public void testThreadContext()
{
WeldContainer weld = new Weld().initialize();
Copied: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/AbstractDoor.java (from rev 5686, java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/Door.java)
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/AbstractDoor.java (rev 0)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/AbstractDoor.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -0,0 +1,73 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
+ * contributors by the @authors tag. See the copyright.txt in the
+ * distribution for a full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.jboss.weld.environment.se.test.decorators;
+
+/**
+ * Represents door with a lock.
+ * @author Peter Royle
+ */
+public abstract class AbstractDoor implements Door
+{
+
+ private boolean isOpen = false;
+ private boolean isLocked = false;
+
+ /**
+ * Open and close the door. Can't open a locked door.
+ */
+ public boolean open()
+ {
+ if (!isLocked)
+ {
+ isOpen = true;
+ }
+ return isOpen;
+ }
+
+ public boolean close()
+ {
+ isOpen = false;
+ return isOpen;
+ }
+
+ public boolean isOpen()
+ {
+ return isOpen;
+ }
+
+ /**
+ * Lock and unlock the door. Can't lock an open door.
+ */
+ public boolean lock()
+ {
+ if (!isOpen)
+ {
+ isLocked = true;
+ }
+ return isLocked;
+ }
+
+ public void unlock()
+ {
+ isLocked = false;
+ }
+
+ public boolean isLocked()
+ {
+ return isLocked;
+ }
+}
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoor.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoor.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoor.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -21,7 +21,7 @@
*
* @author Peter Royle
*/
-public class CarDoor extends Door {
+public class CarDoor extends AbstractDoor {
private boolean isWindowOpen = false;
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoorAlarm.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoorAlarm.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/CarDoorAlarm.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -26,11 +26,10 @@
* @author Peter Royle
*/
@Decorator
-public class CarDoorAlarm
+public abstract class CarDoorAlarm implements Door
{
- @Inject @Delegate
- CarDoor door;
+ @Inject @Delegate CarDoor door;
public static boolean alarmActivated = false;
public boolean open()
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/Door.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/Door.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/Door.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -14,60 +14,31 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.jboss.weld.environment.se.test.decorators;
/**
- * Represents door with a lock.
+ *
* @author Peter Royle
*/
-public abstract class Door
-{
+public interface Door {
- private boolean isOpen = false;
- private boolean isLocked = false;
+ boolean close();
- /**
- * Open and close the door. Can't open a locked door.
- */
- public boolean open()
- {
- if (!isLocked)
- {
- isOpen = true;
- }
- return isOpen;
- }
+ boolean isLocked();
- public boolean close()
- {
- isOpen = false;
- return isOpen;
- }
+ boolean isOpen();
- public boolean isOpen()
- {
- return isOpen;
- }
+ /**
+ * Lock and unlock the door. Can't lock an open door.
+ */
+ boolean lock();
- /**
- * Lock and unlock the door. Can't lock an open door.
- */
- public boolean lock()
- {
- if (!isOpen)
- {
- isLocked = true;
- }
- return isLocked;
- }
+ /**
+ * Open and close the door. Can't open a locked door.
+ */
+ boolean open();
- public void unlock()
- {
- isLocked = false;
- }
+ void unlock();
- public boolean isLocked()
- {
- return isLocked;
- }
}
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/HouseDoor.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/HouseDoor.java 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/decorators/HouseDoor.java 2010-02-02 12:33:48 UTC (rev 5709)
@@ -21,6 +21,6 @@
*
* @author Peter Royle
*/
-public class HouseDoor extends Door {
+public class HouseDoor extends AbstractDoor {
}
Modified: java-se/trunk/src/test/resources/META-INF/beans.xml
===================================================================
--- java-se/trunk/src/test/resources/META-INF/beans.xml 2010-02-02 11:19:58 UTC (rev 5708)
+++ java-se/trunk/src/test/resources/META-INF/beans.xml 2010-02-02 12:33:48 UTC (rev 5709)
@@ -23,8 +23,6 @@
</interceptors>
<decorators>
<class>org.jboss.weld.environment.se.test.decorators.CarDoorAlarm</class>
- <!-- TODO: enable this when WELD-291 is fixed:
<class>org.jboss.weld.environment.se.threading.RunnableDecorator</class>
- -->
</decorators>
</beans>
14 years, 10 months
Weld SVN: r5708 - in core/trunk/tests/src/test: java/org/jboss/weld/tests/extensions/multipleBeans and 2 other directories.
by weld-commits@lists.jboss.org
Author: swd847
Date: 2010-02-02 06:19:58 -0500 (Tue, 02 Feb 2010)
New Revision: 5708
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Author.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/AuthorLiteral.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogConsumer.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogFormatter.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogSource.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Consumer.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/ConsumerLiteral.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlog.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlogLiteral.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansExtension.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/UselessBean.java
core/trunk/tests/src/test/resources/org/jboss/weld/tests/extensions/multipleBeans/
core/trunk/tests/src/test/resources/org/jboss/weld/tests/extensions/multipleBeans/javax.enterprise.inject.spi.Extension
Log:
WELD-406
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Author.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Author.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Author.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,16 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+@Qualifier
+(a)Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.FIELD, ElementType.TYPE, ElementType.METHOD })
+public @interface Author
+{
+ public String name();
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/AuthorLiteral.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/AuthorLiteral.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/AuthorLiteral.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,23 @@
+/**
+ *
+ */
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import javax.enterprise.util.AnnotationLiteral;
+
+class AuthorLiteral extends AnnotationLiteral<Author> implements Author
+{
+
+ final String name;
+
+ AuthorLiteral(String name)
+ {
+ this.name = name;
+ }
+
+ public String name()
+ {
+ return name;
+ }
+
+}
\ No newline at end of file
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogConsumer.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogConsumer.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogConsumer.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,11 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import javax.inject.Inject;
+
+@Consumer(name = "Barry")
+public class BlogConsumer
+{
+ @Inject
+ @FormattedBlog(name = "Barry")
+ public String blogContent;
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogFormatter.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogFormatter.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogFormatter.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,19 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+public class BlogFormatter
+{
+ @Inject
+ @Author(name = "Barry")
+ public String content;
+
+ @Produces
+ @FormattedBlog(name = "Barry")
+ public String format()
+ {
+ return "+" + content + "+";
+ }
+
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogSource.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogSource.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/BlogSource.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,14 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import javax.enterprise.inject.Produces;
+
+public class BlogSource
+{
+ @Produces
+ @Author(name = "Barry")
+ String barrysBlog = "Barry's content";
+
+ @Produces
+ @Author(name = "Bob")
+ String bobsBlog = "Bob's content";
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Consumer.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Consumer.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/Consumer.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,16 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+@Qualifier
+(a)Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.FIELD, ElementType.TYPE, ElementType.METHOD })
+public @interface Consumer
+{
+ public String name();
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/ConsumerLiteral.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/ConsumerLiteral.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/ConsumerLiteral.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,23 @@
+/**
+ *
+ */
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import javax.enterprise.util.AnnotationLiteral;
+
+class ConsumerLiteral extends AnnotationLiteral<Consumer> implements Consumer
+{
+
+ final String name;
+
+ ConsumerLiteral(String name)
+ {
+ this.name = name;
+ }
+
+ public String name()
+ {
+ return name;
+ }
+
+}
\ No newline at end of file
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlog.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlog.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlog.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,16 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+@Qualifier
+(a)Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.FIELD, ElementType.TYPE, ElementType.METHOD })
+public @interface FormattedBlog
+{
+ public String name();
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlogLiteral.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlogLiteral.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/FormattedBlogLiteral.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,23 @@
+/**
+ *
+ */
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import javax.enterprise.util.AnnotationLiteral;
+
+class FormattedBlogLiteral extends AnnotationLiteral<FormattedBlog> implements FormattedBlog
+{
+
+ final String name;
+
+ FormattedBlogLiteral(String name)
+ {
+ this.name = name;
+ }
+
+ public String name()
+ {
+ return name;
+ }
+
+}
\ No newline at end of file
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansExtension.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansExtension.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansExtension.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,58 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+
+import javax.enterprise.event.Observes;
+import javax.enterprise.inject.Produces;
+import javax.enterprise.inject.spi.BeforeBeanDiscovery;
+import javax.enterprise.inject.spi.Extension;
+import javax.enterprise.util.AnnotationLiteral;
+import javax.inject.Inject;
+
+import org.jboss.weld.tests.util.annotated.TestAnnotatedTypeBuilder;
+
+/**
+ * Extension that registers addition types via the SPI
+ *
+ * @author Stuart Douglas <stuart(a)baileyroberts.com.au>
+ *
+ */
+public class MultipleBeansExtension implements Extension
+{
+
+ public void addNewAnnotatedTypes(@Observes BeforeBeanDiscovery event) throws SecurityException, NoSuchFieldException, NoSuchMethodException
+ {
+ TestAnnotatedTypeBuilder<BlogFormatter> formatter = new TestAnnotatedTypeBuilder<BlogFormatter>(BlogFormatter.class);
+ Field content = BlogFormatter.class.getField("content");
+ formatter.addToField(content, new InjectLiteral());
+ formatter.addToField(content, new AuthorLiteral("Bob"));
+ Method format = BlogFormatter.class.getMethod("format");
+ formatter.addToMethod(format, new ProducesLiteral());
+ formatter.addToMethod(format, new FormattedBlogLiteral("Bob"));
+ event.addAnnotatedType(formatter.create());
+
+ TestAnnotatedTypeBuilder<BlogConsumer> consumer = new TestAnnotatedTypeBuilder<BlogConsumer>(BlogConsumer.class);
+ consumer.addToClass(new ConsumerLiteral("Bob"));
+ content = BlogConsumer.class.getField("blogContent");
+ consumer.addToField(content, new InjectLiteral());
+ consumer.addToField(content, new FormattedBlogLiteral("Bob"));
+ event.addAnnotatedType(consumer.create());
+
+ // two beans that are exactly the same
+ // this is not very useful, however should still work
+ TestAnnotatedTypeBuilder<UselessBean> uselessBuilder = new TestAnnotatedTypeBuilder<UselessBean>(UselessBean.class);
+ event.addAnnotatedType(uselessBuilder.create());
+
+ }
+
+ private static class InjectLiteral extends AnnotationLiteral<Inject> implements Inject
+ {
+
+ }
+
+ private static class ProducesLiteral extends AnnotationLiteral<Produces> implements Produces
+ {
+
+ }
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansTest.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/MultipleBeansTest.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,61 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.Classes;
+import org.jboss.testharness.impl.packaging.IntegrationTest;
+import org.jboss.testharness.impl.packaging.Packaging;
+import org.jboss.testharness.impl.packaging.PackagingType;
+import org.jboss.testharness.impl.packaging.jsr299.Extension;
+import org.jboss.weld.test.AbstractWeldTest;
+import org.testng.annotations.Test;
+
+/**
+ * Tests that it is possible to add multiple beans with the same java class type
+ * through the SPI
+ *
+ * @author Stuart Douglas <stuart(a)baileyroberts.com.au>
+ *
+ */
+@Artifact
+@IntegrationTest
+(a)Packaging(PackagingType.EAR)
+@Extension("javax.enterprise.inject.spi.Extension")
+@Classes(packages = { "org.jboss.weld.tests.util.annotated" })
+public class MultipleBeansTest extends AbstractWeldTest
+{
+
+ @Test
+ public void testFormatterRegistered()
+ {
+ // test that we have added two beans with the same qualifiers
+ assert getBeans(BlogFormatter.class).size() == 2;
+ // test that the beans which have different producer methods produce
+ // different values
+ assert getReference(String.class, new FormattedBlogLiteral("Bob")).equals("+Bob's content+");
+ assert getReference(String.class, new FormattedBlogLiteral("Barry")).equals("+Barry's content+");
+ }
+
+ @Test
+ public void testBlogConsumed()
+ {
+ // test that the two different BlogConsumers have been registered
+ // correctly
+ BlogConsumer consumer = getReference(BlogConsumer.class, new ConsumerLiteral("Barry"));
+ assert consumer.blogContent.equals("+Barry's content+");
+ consumer = getReference(BlogConsumer.class, new ConsumerLiteral("Bob"));
+ assert consumer.blogContent.equals("+Bob's content+");
+ }
+
+ /**
+ * Apparently it is not possible to add two beans that are exactly the same.
+ * Even though this is not very useful it should still be possible.
+ *
+ */
+ @Test(groups = { "broken" })
+ public void testTwoBeansExactlyTheSame()
+ {
+ assert getBeans(UselessBean.class).size() == 2;
+ }
+
+}
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/UselessBean.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/UselessBean.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/extensions/multipleBeans/UselessBean.java 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1,12 @@
+package org.jboss.weld.tests.extensions.multipleBeans;
+
+/**
+ *
+ *
+ * @author Stuart Douglas <stuart(a)baileyroberts.com.au>
+ *
+ */
+public class UselessBean
+{
+
+}
Added: core/trunk/tests/src/test/resources/org/jboss/weld/tests/extensions/multipleBeans/javax.enterprise.inject.spi.Extension
===================================================================
--- core/trunk/tests/src/test/resources/org/jboss/weld/tests/extensions/multipleBeans/javax.enterprise.inject.spi.Extension (rev 0)
+++ core/trunk/tests/src/test/resources/org/jboss/weld/tests/extensions/multipleBeans/javax.enterprise.inject.spi.Extension 2010-02-02 11:19:58 UTC (rev 5708)
@@ -0,0 +1 @@
+org.jboss.weld.tests.extensions.multipleBeans.MultipleBeansExtension
14 years, 10 months