You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/02/09 18:59:36 UTC

[GitHub] [kafka] mimaison commented on a change in pull request #11673: KAFKA-13577: Replace easymock with mockito in kafka:core - part 2

mimaison commented on a change in pull request #11673:
URL: https://github.com/apache/kafka/pull/11673#discussion_r802994307



##########
File path: core/src/test/scala/unit/kafka/server/ReplicaManagerQuotasTest.scala
##########
@@ -157,10 +158,9 @@ class ReplicaManagerQuotasTest {
   def shouldIncludeThrottledReplicasForConsumerFetch(): Unit = {
     setUpMocks(fetchInfo)
 
-    val quota = mockQuota(1000000)
-    expect(quota.isQuotaExceeded).andReturn(true).once()
-    expect(quota.isQuotaExceeded).andReturn(true).once()
-    replay(quota)
+    val quota = mockQuota()
+    when(quota.isQuotaExceeded).thenReturn(true)
+//    expect(quota.isQuotaExceeded).andReturn(true).once()

Review comment:
       Oops! I forgot to remove it when rebasing. I've fixed it now




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org