Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15154

Abstract new method assertCapability for StreamCapabilities testing

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      From Steve's comment:

      it'd have been cleaner for the asserts to have been one in a assertCapability(key, StreamCapabilities subject, bool outcome) and had it throw meaningful exceptions on a failure

      We can consider abstract such a method to a test util class and use it for all StreamCapabilities tests as needed.

        Attachments

        1. HADOOP-15154.03.patch
          5 kB
          Zsolt Venczel
        2. HADOOP-15154.02.patch
          5 kB
          Zsolt Venczel
        3. HADOOP-15154.01.patch
          4 kB
          Zsolt Venczel

          Activity

            People

            • Assignee:
              zvenczel Zsolt Venczel
              Reporter:
              xiaochen Xiao Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: