Class ModuleTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.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

    • ModuleTestCase

      public ModuleTestCase()
  • Method Details

    • assertInstanceBinding

      public <T> void assertInstanceBinding(Module module, Class<T> to, 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.