public class ReturnsElementsOf extends Object implements Answer
//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) |
public ReturnsElementsOf(Collection elements)
Copyright © 2018. All rights reserved.