Author: pete.muir(a)jboss.org
Date: 2010-01-26 13:49:28 -0500 (Tue, 26 Jan 2010)
New Revision: 5635
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/ResourceTest.java
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/UTConsumer.java
Log:
WELDINT-35
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/ResourceTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/ResourceTest.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/ResourceTest.java 2010-01-26
18:49:28 UTC (rev 5635)
@@ -0,0 +1,20 @@
+package org.jboss.weld.tests.resources;
+
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.IntegrationTest;
+import org.jboss.weld.test.AbstractWeldTest;
+import org.testng.annotations.Test;
+
+@Artifact
+@IntegrationTest
+public class ResourceTest extends AbstractWeldTest
+{
+
+ @Test(description="WELD-385")
+ public void testUTInjectedByResource()
+ {
+ assert getReference(UTConsumer.class).getUserTransaction() != null;
+ }
+
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/ResourceTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/UTConsumer.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/UTConsumer.java
(rev 0)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/UTConsumer.java 2010-01-26
18:49:28 UTC (rev 5635)
@@ -0,0 +1,17 @@
+package org.jboss.weld.tests.resources;
+
+import javax.annotation.Resource;
+import javax.transaction.UserTransaction;
+
+public class UTConsumer
+{
+
+ @Resource
+ UserTransaction userTransaction;
+
+ public UserTransaction getUserTransaction()
+ {
+ return userTransaction;
+ }
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/resources/UTConsumer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Show replies by date