History log of /external/littlemock/src/com/google/testing/littlemock/ArgumentCaptor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
00e20ef3c702f7388c98bdeee300d218c7871f4d 10-Aug-2012 Marc Schroeder <msch@google.com> 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
/external/littlemock/src/com/google/testing/littlemock/ArgumentCaptor.java
9de203bcac3d285f4fa57c93085e467eaab9f8f9 04-Nov-2011 Hugo Hudson <hugohudson@google.com> Import initial r3 of littlemock library.

Change-Id: Ieead9f3add2ee379a0c34daac9b857630c1bf398
/external/littlemock/src/com/google/testing/littlemock/ArgumentCaptor.java