Skip to content

Instantly share code, notes, and snippets.

Last active Aug 11, 2018
What would you like to do?
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import java.util.List;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.when;
public class MockTest {
private List mockedList;
public void test1() {
Object actual = mockedList.get(120);
Assert.assertEquals(500, actual);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment