Class InfinispanServerRule
java.lang.Object
org.infinispan.server.test.junit4.InfinispanServerRule
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInfinispanServerRule(org.infinispan.server.test.core.InfinispanServerTestConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) static org.infinispan.commons.logging.LoggetLog()org.infinispan.server.test.core.InfinispanServerDriverorg.infinispan.server.test.core.TestServer
-
Field Details
-
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:
applyin interfaceorg.junit.rules.TestRule
-
getTestServer
public org.infinispan.server.test.core.TestServer getTestServer() -
getLog
public static org.infinispan.commons.logging.Log getLog()
-