Author: maschmid
Date: 2012-07-24 10:25:43 -0400 (Tue, 24 Jul 2012)
New Revision: 14999
Modified:
branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/FactoryLockTest.java
Log:
use SESSION scope in FactoryLockTest, as that case is much more interesting.
Modified:
branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/FactoryLockTest.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/FactoryLockTest.java 2012-07-24
13:26:31 UTC (rev 14998)
+++
branches/enterprise/JBPAPP_5_0/src/test/integration/src/org/jboss/seam/test/integration/FactoryLockTest.java 2012-07-24
14:25:43 UTC (rev 14999)
@@ -7,7 +7,6 @@
import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Factory;
-import org.jboss.seam.annotations.JndiName;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.mock.SeamTest;
@@ -132,7 +131,6 @@
@Stateful
@Scope(ScopeType.SESSION)
@Name("factoryLock.test")
- //@JndiName("java:global/test/FactoryLockTest$FactoryLockAction")
public static class FactoryLockAction implements FactoryLockLocal
{
public String testOtherFactory() {
@@ -160,7 +158,7 @@
return (String)Component.getInstance("factoryLock.testString", true);
}
- @Factory(value="factoryLock.testString", scope=ScopeType.EVENT)
+ @Factory(value="factoryLock.testString", scope=ScopeType.SESSION)
public String getTestString() {
return "testString";
}
@@ -170,7 +168,7 @@
@Name("factoryLock.testProducer")
public static class TestProducer {
- @Factory(value="factoryLock.foo", scope=ScopeType.EVENT)
+ @Factory(value="factoryLock.foo", scope=ScopeType.SESSION)
public String getFoo() {
return "foo";
}
Show replies by date