Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-34

Mock Framework should provide option to detect common bad practices/bugs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Core Framework
    • None

    Description

      Mock Framework should detect common errors such as:

      • Processor has member variable that is a PropertyDescriptor, but the PropertyDescriptor isn't returned in the list of supported property descriptors.
      • Processor has member variable that is a Relationship, but the Relationship isn't returned in the Set of Relationships.
      • Processor has multiple properties or relationships as member variables with the same name.
      • No META-INF/services file
      • META-INF/services file doesn't contain the Component's Fully Qualified Class Name
      • No @CapabilityDescription annotation
      • No @Tags annotation

      Mock Framework should automatically detect these things and fail the unit test unless checking is disabled. This requires building an object that allows developer to enable/disable each of these checks.

      Attachments

        Issue Links

          Activity

            People

              mike.thomsen Mike Thomsen
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h