Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3065

Refactor existing reconfig tests in StaticHostProviderTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.0
    • None
    • tests
    • None

    Description

      The following issues would be nice to address:

      • Tests cover addresses with IP addresses only, a few of them test unresolved hostnames, but ideal would be to create Test parameters and run all tests for both cases,
      • Test methods should be split into multiple to cover one test case / test method,
      • Style: instead of assertTrue(a < b), we should use assertThat(b, greaterThan(a))
      • Extract redundant code snippets into methods

      Attachments

        Activity

          People

            andor Andor Molnar
            andor Andor Molnar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: