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

Multiple calls to withInput should be supported

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • 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

        1. MRUNIT-138-0.patch
          7 kB
          Alex Giamas

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: