2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

public class

EasyMockFramework

extends Object
implements MockEngine
java.lang.Object
   ↳ org.apache.onami.test.mock.framework.EasyMockFramework

Class Overview

Specifies the Easy-Mock Framework.

See Also

Summary

Public Constructors
EasyMockFramework()
Public Methods
<T> T createMock(Class<T> cls, MockObjType type)
Create a typed mock
void resetMock(Object... objects)
Reset the mock objects
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.onami.test.mock.MockEngine

Public Constructors

public EasyMockFramework ()

Public Methods

public T createMock (Class<T> cls, MockObjType type)

Create a typed mock

Parameters
cls Class to mock
type the MockObjType
Returns
  • the mock object

public void resetMock (Object... objects)

Reset the mock objects

Parameters
objects to reset.