[jboss-cvs] jboss-seam/src/main/org/jboss/seam/mock ...
Gavin King
gavin.king at jboss.com
Wed Nov 1 20:03:02 EST 2006
User: gavin
Date: 06/11/01 20:03:02
Modified: src/main/org/jboss/seam/mock SeamTest.java
Log:
add methods
Revision Changes Path
1.52 +17 -1 jboss-seam/src/main/org/jboss/seam/mock/SeamTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SeamTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mock/SeamTest.java,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- SeamTest.java 31 Oct 2006 03:22:49 -0000 1.51
+++ SeamTest.java 2 Nov 2006 01:03:02 -0000 1.52
@@ -25,6 +25,7 @@
import org.hibernate.validator.InvalidValue;
import org.jboss.seam.Component;
import org.jboss.seam.Seam;
+import org.jboss.seam.contexts.Contexts;
import org.jboss.seam.contexts.Lifecycle;
import org.jboss.seam.core.FacesMessages;
import org.jboss.seam.core.FacesPage;
@@ -47,7 +48,7 @@
*
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.51 $
+ * @version $Revision: 1.52 $
*/
public class SeamTest
{
@@ -109,6 +110,21 @@
}
/**
+ * Is there a long running conversation associated
+ * with the current request?
+ */
+ protected boolean isLongRunningConversation() {
+ return Manager.instance().isLongRunningConversation();
+ }
+
+ /**
+ * Search in all contexts
+ */
+ public Object lookup(String name) {
+ return Contexts.lookupInStatefulContexts(name);
+ }
+
+ /**
* @deprecated use FacesRequest or NonFacesRequest
* @author Gavin King
*/
More information about the jboss-cvs-commits
mailing list