org.jboss.seam.faces.test.context
Class MockFlashContext

java.lang.Object
  extended by org.jboss.seam.faces.test.context.MockFlashContext
All Implemented Interfaces:
Serializable, org.jboss.seam.faces.context.RenderContext

@Typed(value=org.jboss.seam.faces.context.RenderContext.class)
public class MockFlashContext
extends Object
implements org.jboss.seam.faces.context.RenderContext, Serializable

A mock RenderContext that can be injected into tests.

Author:
Serialized Form

Constructor Summary
MockFlashContext()
           
 
Method Summary
 Object get(String key)
           
 Integer getId()
           
 boolean isEmpty()
           
 void put(String key, Object value)
           
 void setId(Integer id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFlashContext

public MockFlashContext()
Method Detail

get

public Object get(String key)
Specified by:
get in interface org.jboss.seam.faces.context.RenderContext

getId

public Integer getId()
Specified by:
getId in interface org.jboss.seam.faces.context.RenderContext

setId

public void setId(Integer id)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface org.jboss.seam.faces.context.RenderContext

put

public void put(String key,
                Object value)
Specified by:
put in interface org.jboss.seam.faces.context.RenderContext


Copyright © 2009-2011 Seam Framework. All Rights Reserved.