|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Any | Line # 11 | 2 | 3 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (4) | |||
| Result | |||
|
0.6
|
org.easymock.tests2.ConstraintsToStringTest.anyToString
org.easymock.tests2.ConstraintsToStringTest.anyToString
|
1 PASS | |
|
0.4
|
org.easymock.tests2.UsageConstraintsTest.any
org.easymock.tests2.UsageConstraintsTest.any
|
1 PASS | |
|
0.4
|
org.easymock.tests2.UsageStrictMockTest.stubBehavior
org.easymock.tests2.UsageStrictMockTest.stubBehavior
|
1 PASS | |
|
0.4
|
org.easymock.tests2.UsageConstraintsTest.testOr
org.easymock.tests2.UsageConstraintsTest.testOr
|
1 PASS | |
| 1 | /* | |
| 2 | * Copyright (c) 2001-2008 OFFIS, Tammo Freese. | |
| 3 | * This program is made available under the terms of the MIT License. | |
| 4 | */ | |
| 5 | package org.easymock.internal.matchers; | |
| 6 | ||
| 7 | import java.io.Serializable; | |
| 8 | ||
| 9 | import org.easymock.IArgumentMatcher; | |
| 10 | ||
| 11 | public class Any implements IArgumentMatcher, Serializable { | |
| 12 | ||
| 13 | private static final long serialVersionUID = -3743894206806704049L; | |
| 14 | ||
| 15 | public static final Any ANY = new Any(); | |
| 16 | ||
| 17 | 1 |
private Any() { |
| 18 | ||
| 19 | } | |
| 20 | ||
| 21 | 14 |
public boolean matches(Object actual) { |
| 22 | 14 | return true; |
| 23 | } | |
| 24 | ||
| 25 | 1 |
public void appendTo(StringBuffer buffer) { |
| 26 | 1 | buffer.append("<any>"); |
| 27 | } | |
| 28 | } | |
|
||||||||||