Wednesday, 17 June 2015

How to match any enum?

Matchers.any(MyEnum.class):

when(serviceMock.preview(anyString(), any(DataSourceEnum.class)).thenReturn(anyMapOf(String.class, Collection.class)


No comments:

Post a Comment