Class ElasticSearchRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class ElasticSearchRule
    extends Object
    implements org.junit.rules.TestRule
    A JUnit rule which starts an embedded elastic-search instance.
    • Constructor Detail

      • ElasticSearchRule

        public ElasticSearchRule()
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule
      • getUrl

        public String getUrl()