Class ModuleTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.common.inject.ModuleTestCase

public abstract class ModuleTestCase
extends ESTestCase
Base testcase for testing Module implementations.
  • Constructor Details

  • Method Details

    • assertInstanceBinding

      public <T> void assertInstanceBinding​(org.elasticsearch.common.inject.Module module, java.lang.Class<T> to, java.util.function.Predicate<T> tester)
      Configures the module, and ensures an instance is bound to the "to" class, and the provided tester returns true on the instance.