[weld-commits] Weld SVN: r6855 - core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Thu Jul 29 16:38:33 EDT 2010
Author: pete.muir at jboss.org
Date: 2010-07-29 16:38:33 -0400 (Thu, 29 Jul 2010)
New Revision: 6855
Added:
core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Bar.java
Modified:
core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Baz.java
core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/ResourceCircularDependencyTest.java
Log:
fix bad assumption
Added: core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Bar.java
===================================================================
--- core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Bar.java (rev 0)
+++ core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Bar.java 2010-07-29 20:38:33 UTC (rev 6855)
@@ -0,0 +1,14 @@
+package org.jboss.weld.tests.resolution.circular.resource;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+
+ at Entity
+public class Bar
+{
+
+ @Id @GeneratedValue
+ private int id;
+
+}
Property changes on: core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Bar.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Baz.java
===================================================================
--- core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Baz.java 2010-07-29 20:33:08 UTC (rev 6854)
+++ core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/Baz.java 2010-07-29 20:38:33 UTC (rev 6855)
@@ -24,12 +24,18 @@
public class Baz
{
- @Produces @FooDB @PersistenceContext private EntityManager db;
- @Inject @FooDB EntityManager fooDb;
-
+ @Produces
+ @FooDB
+ @PersistenceContext
+ private EntityManager db;
+
+ @Inject
+ @FooDB
+ private EntityManager fooDb;
+
public EntityManager getFooDb()
{
return fooDb;
}
-
+
}
Modified: core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/ResourceCircularDependencyTest.java
===================================================================
--- core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/ResourceCircularDependencyTest.java 2010-07-29 20:33:08 UTC (rev 6854)
+++ core/trunk/tests-arquillian/src/test/java/org/jboss/weld/tests/resolution/circular/resource/ResourceCircularDependencyTest.java 2010-07-29 20:38:33 UTC (rev 6855)
@@ -43,6 +43,6 @@
@Test
public void testResourceProducerField(Baz baz) throws Exception
{
- Assert.assertTrue(baz.getFooDb().isOpen());
+ Assert.assertFalse(baz.getFooDb().contains(new Bar()));
}
}
More information about the weld-commits
mailing list