예제 #1
0
  @Before
  public void setUp() {
    MockitoAnnotations.initMocks(this);
    when(playerAgent.getPosition()).thenReturn(agentPosition);

    underTest = new RangeFinder(playerAgent);

    mockTarget();
    mockCoordinates();
  }
예제 #2
0
 private void mockTarget() {
   when(target.getPilot().isHugeShip()).thenReturn(false);
   when(target.getPosition().getBoxCoordinates(false)).thenReturn(asList(targetCoordinate));
 }