Class InfinispanServerRule

java.lang.Object
org.infinispan.server.test.junit4.InfinispanServerRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class InfinispanServerRule extends Object implements org.junit.rules.TestRule
Creates a cluster of servers to be used for running multiple tests It performs the following tasks:
  • It creates a temporary directory using the test name
  • It creates a common configuration directory to be shared by all servers
  • It creates a runtime directory structure for each server in the cluster (data, log, lib)
  • It populates the configuration directory with multiple certificates (ca.pfx, server.pfx, user1.pfx, user2.pfx)
Since:
10.0
Author:
Tristan Tarrant <tristan@infinispan.org>
  • Field Details

    • configurationEnhancers

      protected final List<Consumer<File>> configurationEnhancers
  • Constructor Details

    • InfinispanServerRule

      public InfinispanServerRule(org.infinispan.server.test.core.InfinispanServerTestConfiguration configuration)
  • Method Details

    • getServerDriver

      public org.infinispan.server.test.core.InfinispanServerDriver getServerDriver()
    • 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
    • getTestServer

      public org.infinispan.server.test.core.TestServer getTestServer()
    • getLog

      public static org.infinispan.commons.logging.Log getLog()