kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gwens...@apache.org
Subject kafka git commit: MINOR: Use `EasyMock.newCapture` instead of deprecated `new Capture`
Date Wed, 09 Dec 2015 01:21:11 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk e1c4aefc3 -> d09188aa3


MINOR: Use `EasyMock.newCapture` instead of deprecated `new Capture`

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Gwen Shapira, Ewen Cheslack-Postava

Closes #149 from ijuma/fix-easy-mock-deprecations


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/d09188aa
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/d09188aa
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/d09188aa

Branch: refs/heads/trunk
Commit: d09188aa36f7dad262bef8480e7785f496dc321b
Parents: e1c4aef
Author: Ismael Juma <ismael@juma.me.uk>
Authored: Tue Dec 8 17:20:50 2015 -0800
Committer: Gwen Shapira <cshapi@gmail.com>
Committed: Tue Dec 8 17:20:50 2015 -0800

----------------------------------------------------------------------
 .../test/scala/unit/kafka/server/DynamicConfigChangeTest.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/d09188aa/core/src/test/scala/unit/kafka/server/DynamicConfigChangeTest.scala
----------------------------------------------------------------------
diff --git a/core/src/test/scala/unit/kafka/server/DynamicConfigChangeTest.scala b/core/src/test/scala/unit/kafka/server/DynamicConfigChangeTest.scala
index 7cc8773..8984f17 100644
--- a/core/src/test/scala/unit/kafka/server/DynamicConfigChangeTest.scala
+++ b/core/src/test/scala/unit/kafka/server/DynamicConfigChangeTest.scala
@@ -98,8 +98,8 @@ class DynamicConfigChangeTest extends KafkaServerTestHarness {
     props.put("a.b", "10")
 
     // Create a mock ConfigHandler to record config changes it is asked to process
-    val entityArgument = new Capture[String]()
-    val propertiesArgument = new Capture[Properties]()
+    val entityArgument = EasyMock.newCapture[String]
+    val propertiesArgument = EasyMock.newCapture[Properties]
     val handler = EasyMock.createNiceMock(classOf[ConfigHandler])
     handler.processConfigChanges(
       EasyMock.and(EasyMock.capture(entityArgument), EasyMock.isA(classOf[String])),


Mime
View raw message