crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwi...@apache.org
Subject git commit: CRUNCH-170: CrunchTestSupport sets up mock getCounter method with (group, group) rather than (group, name). Contributed by Dave Beech
Date Fri, 01 Mar 2013 16:19:26 GMT
Updated Branches:
  refs/heads/master 236d97dbb -> 6ddbf57ff


CRUNCH-170: CrunchTestSupport sets up mock getCounter method with (group,group) rather than
(group,name). Contributed by Dave Beech


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

Branch: refs/heads/master
Commit: 6ddbf57ff2fd51394357a2af0820782047119a2b
Parents: 236d97d
Author: Josh Wills <jwills@apache.org>
Authored: Fri Mar 1 08:17:32 2013 -0800
Committer: Josh Wills <jwills@apache.org>
Committed: Fri Mar 1 08:17:32 2013 -0800

----------------------------------------------------------------------
 .../org/apache/crunch/test/CrunchTestSupport.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/crunch/blob/6ddbf57f/crunch-test/src/main/java/org/apache/crunch/test/CrunchTestSupport.java
----------------------------------------------------------------------
diff --git a/crunch-test/src/main/java/org/apache/crunch/test/CrunchTestSupport.java b/crunch-test/src/main/java/org/apache/crunch/test/CrunchTestSupport.java
index d2a2896..f11194d 100644
--- a/crunch-test/src/main/java/org/apache/crunch/test/CrunchTestSupport.java
+++ b/crunch-test/src/main/java/org/apache/crunch/test/CrunchTestSupport.java
@@ -58,7 +58,7 @@ public class CrunchTestSupport {
       @Override
       public Counter answer(InvocationOnMock invocation) throws Throwable {
         String group = (String) invocation.getArguments()[0];
-        String name = (String) invocation.getArguments()[0];
+        String name = (String) invocation.getArguments()[1];
         return TestCounters.getCounter(group, name);
       }
 


Mime
View raw message