Age | Commit message (Collapse) | Author |
|
This reverts commit d1724c39199391c597c1e85df4bdd7b8edeff3da.
Change-Id: Id9566cf056df4cb456aa27e84249efcf62fff4af
|
|
This reverts commit 7eccb241a931cf2de01cc6cfac0cd80170e10fec.
Change-Id: I92151ed7065226f33bccc844ed68f0dbf2c43da0
|
|
Bug: 32912773
Test: make checkbuild
Change-Id: I87a61300c311f67bd736bfc2da01e067562045d4
|
|
Bug: 8318039
Change-Id: I1c2bc5e86cf4ff94cbcb9408fd801a53cbbd6629
|
|
Bug: 8297640
Change-Id: I0a18ec915ec69170e8a4cfc80a211fd07be9df00
|
|
* commit '00e20ef3c702f7388c98bdeee300d218c7871f4d':
Support for primitive (non-Object) captors in littlemock
|
|
The LittleMock captor does not support primitive types
such as int -- the respective code crashes with a
NullPointerException.
This CL implements an approach for avoiding this problem
in a way that stays as close to Mockito syntax as possible:
- the generic capture() works for primitives as well;
- we create the ArgumentCaptor with the same basic approach
as Mockito does it, from a class object of type T:
<T> ArgumentCaptor<T> LittleMock.createCaptor(Class<T> clazz)
( Mockito uses ArgumentCaptor.forClass(Class<T> clazz) )
Change-Id: Ie8c234466e63adf533d863be2b74d3516ecc9947
|
|
Change-Id: I7a9468b8c73e592eb75f28aed2268171eae70308
|
|
Change-Id: Ia270375e8a549709d89a34021d33e22d883b1c25
|
|
Change-Id: Ia9f4bba7db7e6b7e2afc7277914ac95be3d3246b
|
|
Change-Id: I94075779786b8a398a8664aa0be8b740ce811780
|
|
Change-Id: Ia99c27d400fa65b1e4afa88862fd69737ac0c147
|
|
DO NOT MERGE
Change-Id: I0899465493a1ebaaa587bb13f2f9ebf18f516037
|
|
Change-Id: I71abb8845c6348fcd4851e6da17347fdccf2b610
|
|
Change-Id: I8edea860f2e96ae42416d120c0b8f71795244284
|
|
- Fix to mocking concrete classes - get invocation handler.
Change-Id: I8b000586cd502322a1db3828d59c66c07fa52958
|
|
- Updates source to r6.
Highlights:
- Can now mock concrete classes if you have dexmaker.jar on your
classpath.
- Can use blocking verify() calls with timeout() method.
- Thread-safe mocks, and only one thread can verify() and stub().
Change-Id: I42f55cb33d2ed99097317705a35e73e63f8a864f
|
|
Change-Id: Ieead9f3add2ee379a0c34daac9b857630c1bf398
|