Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6821

Use a builder to construct the different attributes for the domain mode reload test suite operation

XMLWordPrintable

      The DomainLifecycleUtil class has several overloaded methods to reload a Domain for the test suite. These overloaded constructors are difficult to read and fragile.

      Similar to ServerReload.Parameters, implement a similar approach by using a Parameters as a builder to construct the attributes we want to use for the reload operation.

      Notice that even if there are boolean arguments, the Builder should allow the possibility of passing null values to the reload method. A null value would mean the underlying reload operation will use the default value configured in the management model operation.

      For example, restart-servers gets defaulted to true on the management model, so the absence of configuration of this boolean on the Builder, should not provide a value "false" to the reload operation, so null is significant for the builder to implement here even for boolean values.

              lvydra Lukas Vydra
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: