Class CommandTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.cli.CommandTestCase

public abstract class CommandTestCase extends ESTestCase
A base test case for cli tools.
  • Field Details

    • terminal

      protected final MockTerminal terminal
      The terminal that execute uses
    • sysprops

      protected final Map<String,String> sysprops
      The system properties that execute uses
    • envVars

      protected final Map<String,String> envVars
      The environment variables that execute uses
    • esHomeDir

      protected Path esHomeDir
      The working directory that execute uses
    • configDir

      protected Path configDir
      The ES config dir
  • Constructor Details

    • CommandTestCase

      protected CommandTestCase()
    • CommandTestCase

      protected CommandTestCase(boolean spaceInPath)
  • Method Details