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
FieldsModifier and TypeFieldDescriptionstatic final org.testcontainers.containers.Networkstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterTestClass(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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.test.context.TestExecutionListener
beforeTestExecution, prepareTestInstance
-
Field Details
-
_docker_network
public static final org.testcontainers.containers.Network _docker_network -
TOXIPROXY_NETWORK_ALIAS
- See Also:
-
-
Constructor Details
-
FactCastIntegrationTestExecutionListener
public FactCastIntegrationTestExecutionListener()
-
-
Method Details
-
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()
-