Class TestEnvironment

java.lang.Object
org.elasticsearch.env.TestEnvironment

public class TestEnvironment
extends java.lang.Object
Provides a convenience method for tests to construct an Environment when the config path does not matter. This is in the test framework to force people who construct an Environment in production code to think about what the config path needs to be set to.
  • Method Summary

    Modifier and Type Method Description
    static org.elasticsearch.env.Environment newEnvironment​(org.elasticsearch.common.settings.Settings settings)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newEnvironment

      public static org.elasticsearch.env.Environment newEnvironment​(org.elasticsearch.common.settings.Settings settings)