JSF Test Framework: Mock 1.1.2

org.jboss.test.faces.mock
Class FacesMock

java.lang.Object
  extended by org.jboss.test.faces.mock.FacesMock

public class FacesMock
extends Object

Author:
asmirnov@exadel.com

Method Summary
static void checkOrder(Object mock, boolean state)
          Switches order checking of the given mock object (more exactly: the control of the mock object) the on and off.
static
<T> T
createMock(Class<T> clazz)
           
static
<T> T
createMock(String name, Class<T> clazz)
           
static
<T> T
createMock(String name, Class<T> clazz, org.easymock.IMocksControl control)
           
static MockFacesEnvironment createMockEnvironment()
           
static MockFacesEnvironment createNiceEnvironment()
           
static
<T> T
createNiceMock(Class<T> clazz)
           
static
<T> T
createNiceMock(String name, Class<T> clazz)
           
static MockFacesEnvironment createStrictEnvironment()
           
static
<T> T
createStrictMock(Class<T> clazz)
           
static
<T> T
createStrictMock(String name, Class<T> clazz)
           
static void replay(Object... mocks)
           
static void reset(Object... mocks)
           
static void resetToDefault(Object... mocks)
          Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with default behavior.
static void resetToNice(Object... mocks)
          Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with nice behavior.
static void resetToStrict(Object... mocks)
          Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with strict behavior.
static void verify(Object... mocks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMockEnvironment

public static MockFacesEnvironment createMockEnvironment()

createNiceEnvironment

public static MockFacesEnvironment createNiceEnvironment()

createStrictEnvironment

public static MockFacesEnvironment createStrictEnvironment()

createMock

public static <T> T createMock(String name,
                               Class<T> clazz,
                               org.easymock.IMocksControl control)

createMock

public static <T> T createMock(Class<T> clazz)

createMock

public static <T> T createMock(String name,
                               Class<T> clazz)

createNiceMock

public static <T> T createNiceMock(Class<T> clazz)

createNiceMock

public static <T> T createNiceMock(String name,
                                   Class<T> clazz)

createStrictMock

public static <T> T createStrictMock(Class<T> clazz)

createStrictMock

public static <T> T createStrictMock(String name,
                                     Class<T> clazz)

replay

public static void replay(Object... mocks)

reset

public static void reset(Object... mocks)

resetToNice

public static void resetToNice(Object... mocks)
Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with nice behavior. For details, see the EasyMock documentation.

Parameters:
mocks - the mock objects

resetToDefault

public static void resetToDefault(Object... mocks)
Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with default behavior. For details, see the EasyMock documentation.

Parameters:
mocks - the mock objects

resetToStrict

public static void resetToStrict(Object... mocks)
Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with strict behavior. For details, see the EasyMock documentation.

Parameters:
mocks - the mock objects

verify

public static void verify(Object... mocks)

checkOrder

public static void checkOrder(Object mock,
                              boolean state)
Switches order checking of the given mock object (more exactly: the control of the mock object) the on and off. For details, see the EasyMock documentation.

Parameters:
mock - the mock object.
state - true switches order checking on, false switches it off.

JSF Test Framework: Mock 1.1.2

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