You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by gw...@apache.org on 2015/12/09 02:21:11 UTC
kafka git commit: MINOR: Use `EasyMock.newCapture` instead of
deprecated `new Capture`
Repository: kafka
Updated Branches:
refs/heads/trunk e1c4aefc3 -> d09188aa3
MINOR: Use `EasyMock.newCapture` instead of deprecated `new Capture`
Author: Ismael Juma <is...@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 <is...@juma.me.uk>
Authored: Tue Dec 8 17:20:50 2015 -0800
Committer: Gwen Shapira <cs...@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])),