@Deprecated public class ReturnsElementsOf extends ReturnsElementsOf
//this:
when(mock.foo()).thenReturn(1, 2, 3);
//is equivalent to:
when(mock.foo()).thenReturn(new ReturnsElementsOf(Arrays.asList(1, 2, 3)));
Constructor and Description |
---|
ReturnsElementsOf(Collection<?> elements)
Deprecated.
|
@Deprecated public ReturnsElementsOf(Collection<?> elements)