EasyMock 2.3

Clover coverage report - EasyMock 2.3
Coverage timestamp: mar. juil. 10 2007 02:46:04 CEST
FRAMES NO FRAMES

file stats: | LOC: | 50 |  | Methods: | 0
| NCLOC: | 9 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

IMocksControl.java

-

-

-

-

1 |  | /*
2 |  | * Copyright (c) 2001-2007 OFFIS, Tammo Freese.
3 |  | * This program is made available under the terms of the MIT License.
4 |  | */
5 |  | package org.easymock;
6 |  |
7 |  | /**
8 |  | * Controls all the mock objects created by it.
9 |  | * For details, see the EasyMock documentation.
10 |  | */
11 |  | public interface IMocksControl extends IExpectationSetters {
12 |  | /**
13 |  | * Creates a mock object that implements the given interface.
14 |  | * @param <T> the interface that the mock object should implement.
15 |  | * @param toMock the class of the interface that the mock object should implement.
16 |  | * @return the mock object.
17 |  | */
18 |  | <T> T createMock(Class<T> toMock);
19 |  |
20 |  | /**
21 |  | * Creates a mock object that implements the given interface.
22 |  | * @param name the name of the mock object .
23 |  | * @param toMock the class of the interface that the mock object should implement.
24 |  | * @param <T> the interface that the mock object should implement.
25 |  | * @return the mock object.
26 |  | * @throws IllegalArgumentException if the name is not a valid Java identifier.
27 |  | */
28 |  | <T> T createMock(String name, Class<T> toMock);
29 |  |
30 |  | /**
31 |  | * Removes all expectations for the mock objects of this control.
32 |  | */
33 |  | void reset();
34 |  |
35 |  | /**
36 |  | * Switches the control from record mode to replay mode.
37 |  | */
38 |  | void replay();
39 |  |
40 |  | /**
41 |  | * Verifies that all expectations were met.
42 |  | */
43 |  | void verify();
44 |  |
45 |  | /**
46 |  | * Switches order checking on and off.
47 |  | * @param state <code>true</code> switches order checking on, <code>false</code> switches it off.
48 |  | */
49 |  | void checkOrder(boolean state);
50 |  | }