public interface

MockFactory

com.atlassian.jira.easymock.MockFactory

Class Overview

Factory interface for mock creation.

Summary

Public Methods
Object createMock(Mock mock, Class<?> mockClass)
Creates a mock with the given mock type and @Mock annotation.

Public Methods

public Object createMock (Mock mock, Class<?> mockClass)

Creates a mock with the given mock type and @Mock annotation.

Parameters
mock the @Mock annotation
mockClass the Class object for the mock
Returns
  • a mock