JSF Test Framework: Mock 1.1.2

org.jboss.test.faces.mock.context
Class MockFlash

java.lang.Object
  extended by javax.faces.context.Flash
      extended by org.jboss.test.faces.mock.context.MockFlash
All Implemented Interfaces:
Map<String,Object>, FacesMockController.MockObject

public class MockFlash
extends javax.faces.context.Flash
implements FacesMockController.MockObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
MockFlash()
          Default constructor
MockFlash(org.easymock.IMocksControl control, String name)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object arg0)
           
 boolean containsValue(Object arg0)
           
 void doPostPhaseActions(javax.faces.context.FacesContext arg0)
           
 void doPrePhaseActions(javax.faces.context.FacesContext arg0)
           
 Set entrySet()
           
 boolean equals(Object obj)
           
 Object get(Object arg0)
           
 org.easymock.IMocksControl getControl()
           
 int hashCode()
           
 boolean isEmpty()
           
 boolean isKeepMessages()
           
 boolean isRedirect()
           
 void keep(String arg0)
           
 Set keySet()
           
 Object put(String arg0, Object arg1)
           
 void putAll(Map arg0)
           
 void putNow(String arg0, Object arg1)
           
 Object remove(Object arg0)
           
 void setKeepMessages(boolean arg0)
           
 void setRedirect(boolean arg0)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockFlash

public MockFlash()
Default constructor


MockFlash

public MockFlash(org.easymock.IMocksControl control,
                 String name)
Parameters:
control -
Method Detail

getControl

public org.easymock.IMocksControl getControl()
Specified by:
getControl in interface FacesMockController.MockObject

keep

public void keep(String arg0)
Specified by:
keep in class javax.faces.context.Flash

isKeepMessages

public boolean isKeepMessages()
Specified by:
isKeepMessages in class javax.faces.context.Flash

setKeepMessages

public void setKeepMessages(boolean arg0)
Specified by:
setKeepMessages in class javax.faces.context.Flash

isRedirect

public boolean isRedirect()
Specified by:
isRedirect in class javax.faces.context.Flash

setRedirect

public void setRedirect(boolean arg0)
Specified by:
setRedirect in class javax.faces.context.Flash

putNow

public void putNow(String arg0,
                   Object arg1)
Specified by:
putNow in class javax.faces.context.Flash

doPrePhaseActions

public void doPrePhaseActions(javax.faces.context.FacesContext arg0)
Specified by:
doPrePhaseActions in class javax.faces.context.Flash

doPostPhaseActions

public void doPostPhaseActions(javax.faces.context.FacesContext arg0)
Specified by:
doPostPhaseActions in class javax.faces.context.Flash

get

public Object get(Object arg0)
Specified by:
get in interface Map<String,Object>

values

public Collection values()
Specified by:
values in interface Map<String,Object>

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

size

public int size()
Specified by:
size in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map<String,Object>

putAll

public void putAll(Map arg0)
Specified by:
putAll in interface Map<String,Object>

remove

public Object remove(Object arg0)
Specified by:
remove in interface Map<String,Object>

keySet

public Set keySet()
Specified by:
keySet in interface Map<String,Object>

containsValue

public boolean containsValue(Object arg0)
Specified by:
containsValue in interface Map<String,Object>

containsKey

public boolean containsKey(Object arg0)
Specified by:
containsKey in interface Map<String,Object>

put

public Object put(String arg0,
                  Object arg1)
Specified by:
put in interface Map<String,Object>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,Object>
Overrides:
hashCode in class Object

JSF Test Framework: Mock 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.