Mapreduce MRUnit和MultipleOutput错误,缺少输出

Mapreduce MRUnit和MultipleOutput错误,缺少输出,mapreduce,mrunit,Mapreduce,Mrunit,我正在尝试使用MRUnit 1.1.0测试一些MapReduces,但出现以下错误: 14/10/13 14:19:49 ERROR mrunit.TestDriver: Missing expected outputs for namedOutput 'a' 14/10/13 14:19:49 ERROR mrunit.TestDriver: Missing expected output (b, a) for namedOutput 'a' at position 0. 14/10/13 1

我正在尝试使用MRUnit 1.1.0测试一些MapReduces,但出现以下错误:

14/10/13 14:19:49 ERROR mrunit.TestDriver: Missing expected outputs for namedOutput 'a'
14/10/13 14:19:49 ERROR mrunit.TestDriver: Missing expected output (b, a) for namedOutput 'a' at position 0.
14/10/13 14:19:49 ERROR mrunit.TestDriver: Expected no pathOutputs; got 1 pathOutputs.
14/10/13 14:19:49 ERROR mrunit.TestDriver: Received unexpected output (b, a) for unexpected PathOutput 'a'
我执行的代码是:

mapTextDriver.withInput(new LongWritable(1), new Text(content));
mapTextDriver.withMultiOutput("a", "b", "a");
mapTextDriver.runTest();
我在读JIRA,他们在MRUnit中添加了新功能,但我不知道我遗漏了什么

我还包括注释:

@RunWith(..)
@PrepareForTest(..)
我继续检查代码和调试,并修复了它。问题是我在地图上书写的方式。我曾经使用mop.write(K,V,baseOutput)实例mop.write(NameFile,K,V),现在,它正在使用

mapTextDriver.runTest();
但我真的觉得和你在一起更舒服

List<Pair<NullWritable, Text>> outputs = mapTextDriver.run();
List outputs=mapTextDriver.run();

我不知道为什么它不这样工作,它什么也不返回。我进入了密码,但我没有理解。有什么线索吗?

您找到解决此问题的方法了吗?