Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for bug reported by Mark Struberg on weld-dev
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tests/src/test/java/org/jboss/weld/tests/serialization/Foo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jboss.weld.tests.serialization; | ||
|
||
public class Foo | ||
{ | ||
|
||
public Foo(String name) | ||
{ | ||
|
||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
tests/src/test/java/org/jboss/weld/tests/serialization/FooConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.jboss.weld.tests.serialization; | ||
|
||
import java.io.Serializable; | ||
|
||
import javax.enterprise.context.SessionScoped; | ||
import javax.inject.Inject; | ||
|
||
@SessionScoped | ||
public class FooConsumer implements Serializable | ||
{ | ||
|
||
@Inject Foo foo; | ||
|
||
public void ping() | ||
{ | ||
|
||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
tests/src/test/java/org/jboss/weld/tests/serialization/FooProducer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jboss.weld.tests.serialization; | ||
|
||
import javax.enterprise.inject.Produces; | ||
|
||
public class FooProducer | ||
{ | ||
|
||
@Produces | ||
public Foo produceFoo() | ||
{ | ||
return new Foo("foo"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters