@Before public void setUp() { MockitoAnnotations.initMocks(this); when(playerAgent.getPosition()).thenReturn(agentPosition); underTest = new RangeFinder(playerAgent); mockTarget(); mockCoordinates(); }
private void mockTarget() { when(target.getPilot().isHugeShip()).thenReturn(false); when(target.getPosition().getBoxCoordinates(false)).thenReturn(asList(targetCoordinate)); }