Package org.factcast.test
Class FactCastIntegrationTestExecutionListener
- java.lang.Object
-
- org.factcast.test.FactCastIntegrationTestExecutionListener
-
- All Implemented Interfaces:
org.springframework.test.context.TestExecutionListener
public class FactCastIntegrationTestExecutionListener extends Object implements org.springframework.test.context.TestExecutionListener
-
-
Field Summary
Fields Modifier and Type Field Description static org.testcontainers.containers.Network_docker_networkstatic StringTOXIPROXY_NETWORK_ALIAS
-
Constructor Summary
Constructors Constructor Description FactCastIntegrationTestExecutionListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestClass(org.springframework.test.context.TestContext testContext)voidafterTestExecution(org.springframework.test.context.TestContext testContext)voidafterTestMethod(@NonNull org.springframework.test.context.TestContext testContext)voidbeforeTestClass(@NonNull org.springframework.test.context.TestContext testContext)voidbeforeTestMethod(@NonNull org.springframework.test.context.TestContext testContext)static eu.rekawek.toxiproxy.ToxiproxyClientclient()static org.testcontainers.containers.ToxiproxyContainer.ContainerProxycreateProxy(org.testcontainers.containers.GenericContainer<?> container, int port)
-
-
-
Field Detail
-
_docker_network
public static final org.testcontainers.containers.Network _docker_network
-
TOXIPROXY_NETWORK_ALIAS
public static final String TOXIPROXY_NETWORK_ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeTestClass
public void beforeTestClass(@NonNull @NonNull org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
beforeTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Throws:
Exception
-
beforeTestMethod
public void beforeTestMethod(@NonNull @NonNull org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
beforeTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Throws:
Exception
-
afterTestMethod
public void afterTestMethod(@NonNull @NonNull org.springframework.test.context.TestContext testContext) throws SQLException- Specified by:
afterTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Throws:
SQLException
-
afterTestClass
public void afterTestClass(org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
afterTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Throws:
Exception
-
afterTestExecution
public void afterTestExecution(org.springframework.test.context.TestContext testContext) throws Exception- Specified by:
afterTestExecutionin interfaceorg.springframework.test.context.TestExecutionListener- Throws:
Exception
-
createProxy
public static org.testcontainers.containers.ToxiproxyContainer.ContainerProxy createProxy(org.testcontainers.containers.GenericContainer<?> container, int port)
-
client
public static eu.rekawek.toxiproxy.ToxiproxyClient client()
-
-