Answer<java.lang.Object>
@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 | Description |
---|---|
ReturnsElementsOf(java.util.Collection<?> elements) |
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
answer