Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3234

Revise TestAuthorizationService

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.0.0
    • None
    • tests
    • None

    Description

      The TestAuthorizationService's maintainability is low due to

      • the many magic boolean variables
      • the init methods having 3+ parameters

      One way this could be addressed is to introduce a simplified version of Builder pattern via a private nested class, to replace the functionality of the init methods.
      This approach would allow for a much more readable, flexible and maintainable code.

      Attachments

        Issue Links

          Activity

            People

              orova Peter Orova
              orova Peter Orova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: