OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AndroidMock
(Results
1 - 6
of
6
) sorted by null
/external/android-mock/tests/com/google/android/testing/mocking/
AndroidMockTest.java
48
* Tests for the
AndroidMock
class.
55
"com.google.android.testing.mocking.
AndroidMock
.getInterfaceFor(java.lang.Class)",
56
"com.google.android.testing.mocking.
AndroidMock
.getSubclassNameFor(java.lang.Class)",
57
"com.google.android.testing.mocking.
AndroidMock
.getSubclassFor(java.lang.Class,"
59
"com.google.android.testing.mocking.
AndroidMock
.getInterfaceNameFor(java.lang.Class)",
60
"com.google.android.testing.mocking.
AndroidMock
.createStrictMock("
62
"com.google.android.testing.mocking.
AndroidMock
.createStrictMock("
64
"com.google.android.testing.mocking.
AndroidMock
.createMock("
66
"com.google.android.testing.mocking.
AndroidMock
.createMock("
68
"com.google.android.testing.mocking.
AndroidMock
.createNiceMock(
[
all
...]
ConstructorCreationTests.java
74
AndroidMock
.getConstructorFor(TestClass.class, args);
81
AndroidMock
.getConstructorFor(TestClass.class, args);
102
AndroidMock
.getConstructorFor(TestClass.class, args);
/external/android-mock/livetests/com/google/android/testing/mocking/test/
MockingTest.java
20
import com.google.android.testing.mocking.
AndroidMock
;
40
Context mockContext =
AndroidMock
.createMock(Context.class);
51
ClassToMock myMockClass =
AndroidMock
.createMock(ClassToMock.class);
52
AndroidMock
.expect(myMockClass.getString()).andReturn(
54
AndroidMock
.expect(myMockClass.getInt()).andReturn(42);
55
AndroidMock
.replay(myMockClass);
59
AndroidMock
.verify(myMockClass);
/external/android-mock/
Android.mk
26
$(LOCAL_MOCKING_PATH)/
AndroidMock
.java \
/external/android-mock/src/com/google/android/testing/mocking/
UsesMocksProcessor.java
174
if (!
AndroidMock
.isAndroidClass(clazz) || regenerateFrameworkMocks) {
AndroidMock.java
50
* mockObject =
AndroidMock
.createMock(MyClass.class);
51
*
AndroidMock
.expect(mockObject.foo(0)).andReturn(42);
52
*
AndroidMock
.replay(mockObject); assertEquals(42, mockObject.foo(0));
53
*
AndroidMock
.verify(mockObject); } * }
80
public class
AndroidMock
{
81
private
AndroidMock
() {
275
*
AndroidMock
.expectLastCall().andThrow(new IllegalStateException());}
292
* {@code
AndroidMock
.expect(mock.getString(
AndroidMock
.anyBoolean())).andReturn("hello world");}
308
* {@code
AndroidMock
.expect(mock.getString(AndroidMock.anyByte())).andReturn("hello world");
[
all
...]
Completed in 52 milliseconds