Hadi Tok
06/01/2018, 9:12 PMMockito.any(Class<T> type)
I couldn’t figure out how should I provide OnSuccessListener<MetadataBuffer>
as a class type to Mockito.any(Class<T> type)
as a parameter when I try any(OnSuccessListener<MetadataBuffer>.javaClass)
I got this error Function invocation 'OnSuccessListener<MetadataBuffer>(...)' expected
any idea how I fix this?any
and it seems to be working https://stackoverflow.com/questions/32827144/class-literal-syntax-for-parameterized-classes-in-kotlin/32827711#32827711dave08
06/03/2018, 4:01 AMHadi Tok
06/08/2018, 8:41 AM