Uploaded image for project: 'MRUnit'
  1. MRUnit
  2. MRUNIT-138

Multiple calls to withInput should be supported

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Labels:
      None

      Description

      As multiple key/val pairs are now supported for tests following MRUNIT-64, it feels to me that I should be able to call withInput multiple times in sequence in the same way I would usually call withOutput. This doesn't work because of the way the deprecation of the old code has been handled.

      Here's a unit test I think should pass:
      (from TestMapDriver - mapper is IdentityMapper)

      @Test
      public void testMultipleWithInput() throws IOException

      { driver.withInput(new Text("foo"), new Text("bar")) .withInput(new Text("bar"), new Text("baz")) .withOutput(new Text("foo"), new Text("bar")) .withOutput(new Text("bar"), new Text("baz")) .runTest(false); }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agiamas Alex Giamas
                Reporter:
                dbeech Dave Beech
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: