|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
IArgumentMatcher.java | - | - | - | - |
|
1 | /* | |
2 | * Copyright (c) 2001-2006 OFFIS, Tammo Freese. | |
3 | * This program is made available under the terms of the MIT License. | |
4 | */ | |
5 | package org.easymock; | |
6 | ||
7 | /** | |
8 | * Decides whether an actual argument is accepted. | |
9 | */ | |
10 | public interface IArgumentMatcher { | |
11 | /** | |
12 | * Returns whether this matcher accepts the given argument. | |
13 | * @param argument the argument | |
14 | * @return whether this matcher accepts the given argument. | |
15 | */ | |
16 | boolean matches(Object argument); | |
17 | ||
18 | /** | |
19 | * Appends a string representation of this matcher to the given buffer. | |
20 | * @param buffer the buffer to which the string representation is appended. | |
21 | */ | |
22 | void appendTo(StringBuffer buffer); | |
23 | } |
|