[weld-commits] Weld SVN: r6944 - cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Mon Aug 9 13:37:53 EDT 2010


Author: pete.muir at jboss.org
Date: 2010-08-09 13:37:52 -0400 (Mon, 09 Aug 2010)
New Revision: 6944

Modified:
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/NormalContextTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/SimpleBeanZ.java
Log:
CDITCK-165

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/NormalContextTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/NormalContextTest.java	2010-08-09 14:55:12 UTC (rev 6943)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/NormalContextTest.java	2010-08-09 17:37:52 UTC (rev 6944)
@@ -100,6 +100,8 @@
    {
       SimpleBeanA instanceOfA = getInstanceByType(SimpleBeanA.class);
       SimpleBeanB instanceOfB = getInstanceByType(SimpleBeanB.class);
-      assert instanceOfA.getZ() == instanceOfB.getZ();
+      instanceOfA.getZ().setName("Ben");
+      assert instanceOfA.getZ().getName().equals("Ben");
+      assert instanceOfB.getZ().getName().equals("Ben");
    }
 }

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/SimpleBeanZ.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/SimpleBeanZ.java	2010-08-09 14:55:12 UTC (rev 6943)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/context/SimpleBeanZ.java	2010-08-09 17:37:52 UTC (rev 6944)
@@ -24,5 +24,17 @@
 public class SimpleBeanZ implements Serializable
 {
    private static final long serialVersionUID = 1L;
+   
+   private String name;
+   
+   public String getName()
+   {
+      return name;
+   }
+   
+   public void setName(String name)
+   {
+      this.name = name;
+   }
 
 }



More information about the weld-commits mailing list