Class TestOption


public class TestOption extends UIOption<TestOption>
A UIOption implementation to support testing.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • cleanupName

      protected String cleanupName(org.apache.commons.cli.Option option)
      Description copied from class: UIOption
      Provide means to wrap the given option depending on the UI-specific option implementation.
      Specified by:
      cleanupName in class UIOption<TestOption>
      Parameters:
      option - The CLI option
      Returns:
      the cleaned up option name.
    • getExample

      public String getExample()
      Description copied from class: UIOption
      Gets an example of how to use this option in the native UI.
      Specified by:
      getExample in class UIOption<TestOption>
      Returns:
      An example of how to use this option in the native UI.
    • getText

      public String getText()
      Description copied from class: UIOption
      return a string showing long and short options if they are available. Will return a string.
      Specified by:
      getText in class UIOption<TestOption>
      Returns:
      A string showing long and short options if they are available. Never null.