Lines Matching defs:EasyMock
18 import org.easymock.Capture;
19 import org.easymock.EasyMock;
20 import org.easymock.IArgumentMatcher;
21 import org.easymock.IExpectationSetters;
22 import org.easymock.LogicalOperator;
32 * Android Mock is a wrapper for EasyMock (2.4) which allows for real Class mocking on
35 * All methods on Android Mock are syntactically equivalent to EasyMock method
36 * calls, and will delegate calls to EasyMock, while performing the required
39 * Calls directly to EasyMock will work correctly only if the Class being mocked
131 return EasyMock.createStrictMock(name, toMock);
133 Object mockedInterface = EasyMock.createStrictMock(name, getInterfaceFor(toMock));
185 return EasyMock.createMock(name, toMock);
187 Object mockedInterface = EasyMock.createMock(name, getInterfaceFor(toMock));
236 return EasyMock.createNiceMock(name, toMock);
238 Object mockedInterface = EasyMock.createNiceMock(name, getInterfaceFor(toMock));
252 * An {@link org.easymock.IExpectationSetters} object has methods which allow you to define
254 * e.g. {@link org.easymock.IExpectationSetters#andReturn(Object)},
255 * {@link org.easymock.IExpectationSetters#andThrow(Throwable)}, and
256 * {@link org.easymock.IExpectationSetters#atLeastOnce()}.
264 return EasyMock.expect(expectedValue);
271 * {@link org.easymock.IExpectationSetters#andThrow(Throwable)}
277 * @see #expect(Object) for more details about {@link org.easymock.IExpectationSetters}
281 return EasyMock.expectLastCall();
297 return EasyMock.anyBoolean();
313 return EasyMock.anyByte();
329 return EasyMock.anyChar();
345 return EasyMock.anyInt();
361 return EasyMock.anyLong();
377 return EasyMock.anyFloat();
392 return EasyMock.anyDouble();
407 return EasyMock.anyShort();
425 return (T) EasyMock.anyObject();
445 return EasyMock.geq(expectedValue);
465 return EasyMock.geq(expectedValue);
485 return EasyMock.geq(expectedValue);
505 return EasyMock.geq(expectedValue);
525 return EasyMock.geq(expectedValue);
545 return EasyMock.geq(expectedValue);
565 return EasyMock.geq(expectedValue);
585 return EasyMock.leq(expectedValue);
605 return EasyMock.leq(expectedValue);
625 return EasyMock.leq(expectedValue);
645 return EasyMock.leq(expectedValue);
665 return EasyMock.leq(expectedValue);
685 return EasyMock.leq(expectedValue);
705 return EasyMock.leq(expectedValue);
725 return EasyMock.gt(expectedValue);
745 return EasyMock.gt(expectedValue);
765 return EasyMock.gt(expectedValue);
785 return EasyMock.gt(expectedValue);
805 return EasyMock.gt(expectedValue);
825 return EasyMock.gt(expectedValue);
845 return EasyMock.gt(expectedValue);
865 return EasyMock.lt(expectedValue);
885 return EasyMock.lt(expectedValue);
905 return EasyMock.lt(expectedValue);
925 return EasyMock.lt(expectedValue);
945 return EasyMock.lt(expectedValue);
965 return EasyMock.lt(expectedValue);
985 return EasyMock.lt(expectedValue);
1008 return EasyMock.isA(clazz);
1028 return EasyMock.contains(substring);
1053 return EasyMock.and(first, second);
1078 return EasyMock.and(first, second);
1103 return EasyMock.and(first, second);
1128 return EasyMock.and(first, second);
1153 return EasyMock.and(first, second);
1178 return EasyMock.and(first, second);
1203 return EasyMock.and(first, second);
1228 return EasyMock.and(first, second);
1254 return EasyMock.and(first, second);
1279 return EasyMock.or(first, second);
1305 return EasyMock.or(first, second);
1330 return EasyMock.or(first, second);
1356 return EasyMock.or(first, second);
1382 return EasyMock.or(first, second);
1408 return EasyMock.or(first, second);
1434 return EasyMock.or(first, second);
1460 return EasyMock.or(first, second);
1486 return EasyMock.or(first, second);
1510 return EasyMock.not(expectation);
1535 return EasyMock.not(expectation);
1559 return EasyMock.not(expectation);
1584 return EasyMock.not(expectation);
1609 return EasyMock.not(expectation);
1634 return EasyMock.not(expectation);
1659 return EasyMock.not(expectation);
1684 return EasyMock.not(expectation);
1709 return EasyMock.not(expectation);
1732 return EasyMock.eq(expectedValue);
1755 return EasyMock.eq(expectedValue);
1778 return EasyMock.eq(expectedValue);
1801 return EasyMock.eq(expectedValue);
1824 return EasyMock.eq(expectedValue);
1847 return EasyMock.eq(expectedValue);
1870 return EasyMock.eq(expectedValue);
1893 return EasyMock.eq(expectedValue);
1916 return EasyMock.eq(expectedValue);
1938 return EasyMock.aryEq(expectedValue);
1960 return EasyMock.aryEq(expectedValue);
1982 return EasyMock.aryEq(expectedValue);
2004 return EasyMock.aryEq(expectedValue);
2026 return EasyMock.aryEq(expectedValue);
2048 return EasyMock.aryEq(expectedValue);
2070 return EasyMock.aryEq(expectedValue);
2092 return EasyMock.aryEq(expectedValue);
2115 return EasyMock.aryEq(expectedValue);
2128 return (T) EasyMock.isNull();
2141 return (T) EasyMock.notNull();
2158 return EasyMock.find(regex);
2177 return EasyMock.matches(regex);
2193 return EasyMock.startsWith(prefix);
2210 return EasyMock.endsWith(suffix);
2240 return EasyMock.eq(expectedValue, delta);
2270 return EasyMock.eq(expectedValue, delta);
2286 return EasyMock.same(expectedValue);
2302 return EasyMock.cmpEq(expectedValue);
2307 * result of which will then be applied to the provided {@link org.easymock.LogicalOperator}
2308 * (e.g. {@link org.easymock.LogicalOperator#LESS_THAN},
2309 * {@link org.easymock.LogicalOperator#EQUAL},
2310 * {@link org.easymock.LogicalOperator#GREATER_OR_EQUAL}).
2337 * {@link org.easymock.LogicalOperator#LESS_THAN},
2338 * {@link org.easymock.LogicalOperator#LESS_OR_EQUAL},
2339 * {@link org.easymock.LogicalOperator#EQUAL}, {@link org.easymock.LogicalOperator#GREATER},
2340 * {@link org.easymock.LogicalOperator#GREATER_OR_EQUAL}
2345 return EasyMock.cmp(expectedValue, comparator, operator);
2351 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2352 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2356 * {@link org.easymock.Capture#getValue()}
2360 return EasyMock.capture(captured);
2367 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2368 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2371 * {@link org.easymock.Capture#getValue()}
2375 return EasyMock.capture(captured);
2382 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2383 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2386 * {@link org.easymock.Capture#getValue()}
2390 return EasyMock.capture(captured);
2397 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2398 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2401 * {@link org.easymock.Capture#getValue()}
2405 return EasyMock.capture(captured);
2412 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2413 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2416 * {@link org.easymock.Capture#getValue()}
2420 return EasyMock.capture(captured);
2427 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2428 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2431 * {@link org.easymock.Capture#getValue()}
2435 return EasyMock.capture(captured);
2442 * {@link org.easymock.Capture} allows for capturing of the incoming value. Use
2443 * {@link org.easymock.Capture#getValue()} to retrieve the captured value.
2446 * {@link org.easymock.Capture#getValue()}
2450 return EasyMock.capture(captured);
2462 EasyMock.replay(((MockObject) mockObject).getDelegate___AndroidMock());
2464 EasyMock.replay(mockObject);
2478 EasyMock.reset(((MockObject) mockObject).getDelegate___AndroidMock());
2480 EasyMock.reset(mockObject);
2495 EasyMock.resetToNice(((MockObject) mockObject).getDelegate___AndroidMock());
2497 EasyMock.resetToNice(mockObject);
2512 EasyMock.resetToDefault(((MockObject) mockObject).getDelegate___AndroidMock());
2514 EasyMock.resetToDefault(mockObject);
2529 EasyMock.resetToStrict(((MockObject) mockObject).getDelegate___AndroidMock());
2531 EasyMock.resetToStrict(mockObject);
2549 EasyMock.verify(((MockObject) mockObject).getDelegate___AndroidMock());
2551 EasyMock.verify(mockObject);
2566 EasyMock.checkOrder(((MockObject) mock).getDelegate___AndroidMock(), orderCheckingOn);
2568 EasyMock.checkOrder(mock, orderCheckingOn);
2584 * {@link org.easymock.IArgumentMatcher#matches(Object)}.
2590 EasyMock.reportMatcher(matcher);
2598 * This method is only usable within an {@link org.easymock.IAnswer} instance. Attach an
2599 * {@link org.easymock.IAnswer} to an expectation by using the
2600 * {@link org.easymock.IExpectationSetters#andAnswer(org.easymock.IAnswer)} method.
2610 return EasyMock.getCurrentArguments();
2622 EasyMock.makeThreadSafe(((MockObject) mock).getDelegate___AndroidMock(), threadSafe);
2624 EasyMock.makeThreadSafe(mock, threadSafe);