Class AllCliOptionsTest

java.lang.Object
ubic.gemma.cli.util.AllCliOptionsTest

public class AllCliOptionsTest extends Object
Build the options of every CLI shipped in gemma-cli, the way GemmaCLI does when it lists commands, and check that none defines the same short or long option name twice.

A duplicate name is rejected by the Options that AbstractCLI.getOptions() hands to buildOptions, so this fails for any CLI whose options clash, including one that reuses a name defined by its base class.

  • Constructor Details

    • AllCliOptionsTest

      public AllCliOptionsTest()
  • Method Details

    • testNoCliDefinesAnOptionTwice

      @TestFactory public Stream<org.junit.jupiter.api.DynamicTest> testNoCliDefinesAnOptionTwice()