Class InfinispanXSiteServerRule

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

public class InfinispanXSiteServerRule extends Object implements org.junit.rules.TestRule
Creates a cluster of sites to be used for running multiple tests for Cross-Site replication functionality, It performs the following tasks
  • It creates a temporary directory using the test name
  • 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:
12.0
Author:
Gustavo Lira <gliraesi@redhat.com>
  • Constructor Details

    • InfinispanXSiteServerRule

      public InfinispanXSiteServerRule(List<org.infinispan.server.test.core.TestServer> testServers)
  • Method Details

    • 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
    • getTestServers

      public List<org.infinispan.server.test.core.TestServer> getTestServers()