Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-3299 Implement HiveServer2 support
  3. SQOOP-3308

Mock ConnManager field in TestTableDefWriter

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

      TableDefWriter has a dependency on ConnManager to retrieve the names and the types of the table. It also introduces a field called externalColTypes for testing purposes and TestTableDefWriter uses this field to inject the test table column names and types instead of mocking the ConnManager field.

      This setup makes it harder to add test cases to TestTableDefWriter and not a good practice so it should be fixed.

      Attachments

        1. SQOOP-3308.patch
          11 kB
          Vasas Szabolcs
        2. SQOOP-3308.patch
          11 kB
          Vasas Szabolcs
        3. SQOOP-3308.patch
          11 kB
          Vasas Szabolcs
        4. SQOOP-3308.patch
          12 kB
          Vasas Szabolcs

        Issue Links

          Activity

            People

              vasas Vasas Szabolcs
              vasas Vasas Szabolcs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: