Skip to content

Commit

Permalink
Add import for VerificationModeFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyu committed Dec 21, 2015
1 parent 603dccc commit bc7699c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import org.scalatest.{BeforeAndAfterEach, PrivateMethodTester}
import org.mockito.Mockito.{mock, spy, verify, when}
import org.mockito.Matchers
import org.mockito.Matchers._
import org.mockito.internal.verification.VerificationModeFactory

import org.apache.spark.executor.TaskMetrics
import org.apache.spark.rpc.{RpcCallContext, RpcEndpoint, RpcEnv, RpcEndpointRef}
Expand Down Expand Up @@ -221,7 +222,7 @@ class HeartbeatReceiverSuite
} else {
assert(!response.reregisterBlockManager)
// Additionally verify that the scheduler callback is called with the correct parameters
verify(scheduler, atLeast(1)).executorHeartbeatReceived(
verify(scheduler, VerificationModeFactory.atLeast(1)).executorHeartbeatReceived(
Matchers.eq(executorId), Matchers.eq(Array(1L -> metrics)), Matchers.eq(blockManagerId))
}
}
Expand Down

0 comments on commit bc7699c

Please sign in to comment.