[weld-commits] Weld SVN: r5841 - core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Tue Feb 16 06:40:11 EST 2010


Author: pete.muir at jboss.org
Date: 2010-02-16 06:40:10 -0500 (Tue, 16 Feb 2010)
New Revision: 5841

Added:
   core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerConsumer.java
   core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerProducer.java
Removed:
   core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/Foo.java
   core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooConsumer.java
   core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooProducer.java
Modified:
   core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/SerializationTest.java
Log:
Actually use Logger ;-)

Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/Foo.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/Foo.java	2010-02-16 11:38:06 UTC (rev 5840)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/Foo.java	2010-02-16 11:40:10 UTC (rev 5841)
@@ -1,11 +0,0 @@
-package org.jboss.weld.tests.serialization;
-
-public class Foo
-{
-
-   public Foo(String name)
-   {
-      
-   }
-   
-}

Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooConsumer.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooConsumer.java	2010-02-16 11:38:06 UTC (rev 5840)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooConsumer.java	2010-02-16 11:40:10 UTC (rev 5841)
@@ -1,19 +0,0 @@
-package org.jboss.weld.tests.serialization;
-
-import java.io.Serializable;
-
-import javax.enterprise.context.SessionScoped;
-import javax.inject.Inject;
-
- at SessionScoped
-public class FooConsumer implements Serializable
-{
-   
-   @Inject Foo foo;
-   
-   public void ping()
-   {
-      
-   }
-
-}

Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooProducer.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooProducer.java	2010-02-16 11:38:06 UTC (rev 5840)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooProducer.java	2010-02-16 11:40:10 UTC (rev 5841)
@@ -1,14 +0,0 @@
-package org.jboss.weld.tests.serialization;
-
-import javax.enterprise.inject.Produces;
-
-public class FooProducer
-{
-
-   @Produces
-   public Foo produceFoo()
-   {
-      return new Foo("foo");
-   }
-   
-}

Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerConsumer.java (from rev 5840, core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooConsumer.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerConsumer.java	                        (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerConsumer.java	2010-02-16 11:40:10 UTC (rev 5841)
@@ -0,0 +1,20 @@
+package org.jboss.weld.tests.serialization;
+
+import java.io.Serializable;
+import java.util.logging.Logger;
+
+import javax.enterprise.context.SessionScoped;
+import javax.inject.Inject;
+
+ at SessionScoped
+public class LoggerConsumer implements Serializable
+{
+   
+   @Inject Logger log;
+   
+   public void ping()
+   {
+      
+   }
+
+}


Property changes on: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerConsumer.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Copied: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerProducer.java (from rev 5840, core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/FooProducer.java)
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerProducer.java	                        (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerProducer.java	2010-02-16 11:40:10 UTC (rev 5841)
@@ -0,0 +1,16 @@
+package org.jboss.weld.tests.serialization;
+
+import java.util.logging.Logger;
+
+import javax.enterprise.inject.Produces;
+
+public class LoggerProducer
+{
+
+   @Produces
+   public Logger produceLogger()
+   {
+      return Logger.getLogger("foo");
+   }
+   
+}


Property changes on: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/LoggerProducer.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/SerializationTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/SerializationTest.java	2010-02-16 11:38:06 UTC (rev 5840)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/serialization/SerializationTest.java	2010-02-16 11:40:10 UTC (rev 5841)
@@ -45,6 +45,6 @@
    @Test(description="http://lists.jboss.org/pipermail/weld-dev/2010-February/002265.html")
    public void testNonSerializableProductInjectedIntoSessionScopedBean()
    {
-      getReference(FooConsumer.class).ping();
+      getReference(LoggerConsumer.class).ping();
    }
 }



More information about the weld-commits mailing list