Top Description Fields Constructors Methods
org.easymock

public Class EasyMockRule

extends Object
implements TestRule
Class Inheritance
All Implemented Interfaces
org.junit.rules.TestRule
Imports
org.easymock.internal.EasyMockStatement, org.junit.rules.TestRule, org.junit.runner.Description, org.junit.runners.model.Statement

JUnit Rule used to process Mock and TestSubject annotations.
Author
Alistair Todd
Since
3.3

Field Summary

Modifier and TypeField and Description
private final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Statement
apply(Statement
The Statement to be modified
base
,
Description
A Description of the test implemented in base
description
)

Implements org.junit.rules.TestRule.apply.

Modifies the method-running Statement to implement this test-running rule.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

testback to summary
private final Object test

Constructor Detail

EasyMockRuleback to summary
public EasyMockRule(Object test)

Method Detail

applyback to summary
public Statement apply(Statement base, Description description)

Implements org.junit.rules.TestRule.apply.

Doc from org.junit.rules.TestRule.apply.

Modifies the method-running Statement to implement this test-running rule.

Parameters
base:Statement

The Statement to be modified

description:Description

A Description of the test implemented in base

Returns:Statement

a new statement, which may be the same as base, a wrapper around base, or a completely new Statement.