Home | History | Annotate | Download | only in matchers

Lines Matching refs:when

19 import static org.mockito.Mockito.when;
27 when(mock.objectArgMethod(any(String.class))).thenReturn("string");
62 //when(mock.listArgMethod(anyList())).thenReturn("list");
63 when(mock.listArgMethod(anyListOf(String.class))).thenReturn("list");
72 //when(mock.setArgMethod(anySet())).thenReturn("set");
73 when(mock.setArgMethod(anySetOf(String.class))).thenReturn("set");
82 //when(mock.setArgMethod(anySet())).thenReturn("set");
83 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("map");
92 //when(mock.setArgMethod(anySet())).thenReturn("set");
93 when(mock.collectionArgMethod(anyCollectionOf(String.class))).thenReturn("collection");
102 //when(mock.setArgMethod(anySet())).thenReturn("set");
103 when(mock.iterableArgMethod(anyIterableOf(String.class))).thenReturn("iterable");
111 when(mock.objectArgMethod(isNull(LinkedList.class))).thenReturn("string");
112 when(mock.objectArgMethod(notNull(LinkedList.class))).thenReturn("string");
113 when(mock.objectArgMethod(isNotNull(LinkedList.class))).thenReturn("string");