You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mrunit.apache.org by br...@apache.org on 2013/01/07 21:07:47 UTC
[2/2] git commit: MRUNIT-174: Remove portions of MRUNIT-161 which
don't compile on trunk-hadoop1
Updated Branches:
refs/heads/trunk-hadoop1 c6977354d -> 3891031d1
MRUNIT-174: Remove portions of MRUNIT-161 which don't compile on trunk-hadoop1
Project: http://git-wip-us.apache.org/repos/asf/mrunit/repo
Commit: http://git-wip-us.apache.org/repos/asf/mrunit/commit/3891031d
Tree: http://git-wip-us.apache.org/repos/asf/mrunit/tree/3891031d
Diff: http://git-wip-us.apache.org/repos/asf/mrunit/diff/3891031d
Branch: refs/heads/trunk-hadoop1
Commit: 3891031d178983cbd3338a24d72fa2ceacbebb3e
Parents: cb76b50
Author: Brock Noland <br...@apache.org>
Authored: Mon Jan 7 14:07:19 2013 -0600
Committer: Brock Noland <br...@apache.org>
Committed: Mon Jan 7 14:07:19 2013 -0600
----------------------------------------------------------------------
.../mapreduce/AbstractMockContextWrapper.java | 37 ---------------
1 files changed, 0 insertions(+), 37 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mrunit/blob/3891031d/src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/AbstractMockContextWrapper.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/AbstractMockContextWrapper.java b/src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/AbstractMockContextWrapper.java
index be8beb2..9fe84c5 100644
--- a/src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/AbstractMockContextWrapper.java
+++ b/src/main/java/org/apache/hadoop/mrunit/internal/mapreduce/AbstractMockContextWrapper.java
@@ -94,43 +94,6 @@ extends TaskInputOutputContext<KEYIN, VALUEIN, KEYOUT, VALUEOUT>> {
return null;
}
}).when(context).write(any(), any());
-
-
- when(context.getSymlink()).thenAnswer(new Answer<Boolean>() {
- @Override
- @SuppressWarnings("deprecation")
- public Boolean answer(InvocationOnMock invocation) throws Throwable {
- return DistributedCache.getSymlink(configuration);
- }
- });
- when(context.getCacheArchives()).thenAnswer(new Answer<URI[]>() {
- @Override
- @SuppressWarnings("deprecation")
- public URI[] answer(InvocationOnMock invocation) throws Throwable {
- return DistributedCache.getCacheArchives(configuration);
- }
- });
- when(context.getCacheFiles()).thenAnswer(new Answer<URI[]>() {
- @Override
- @SuppressWarnings("deprecation")
- public URI[] answer(InvocationOnMock invocation) throws Throwable {
- return DistributedCache.getCacheFiles(configuration);
- }
- });
- when(context.getLocalCacheArchives()).thenAnswer(new Answer<Path[]>() {
- @Override
- @SuppressWarnings("deprecation")
- public Path[] answer(InvocationOnMock invocation) throws Throwable {
- return DistributedCache.getLocalCacheArchives(configuration);
- }
- });
- when(context.getLocalCacheFiles()).thenAnswer(new Answer<Path[]>() {
- @Override
- @SuppressWarnings("deprecation")
- public Path[] answer(InvocationOnMock invocation) throws Throwable {
- return DistributedCache.getLocalCacheFiles(configuration);
- }
- });
} catch (IOException e) {
throw new RuntimeException(e);
} catch (InterruptedException e) {