Class FactCastExtension

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

    public class FactCastExtension
    extends Object
    implements org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
    • Field Detail

      • _docker_network

        public static final org.testcontainers.containers.Network _docker_network
    • Constructor Detail

      • FactCastExtension

        public FactCastExtension()
    • Method Detail

      • beforeEach

        public void beforeEach​(org.junit.jupiter.api.extension.ExtensionContext context)
                        throws Exception
        Specified by:
        beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
        Throws:
        Exception
      • afterAll

        public void afterAll​(org.junit.jupiter.api.extension.ExtensionContext context)
                      throws Exception
        Specified by:
        afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
        Throws:
        Exception
      • afterEach

        public void afterEach​(org.junit.jupiter.api.extension.ExtensionContext context)
                       throws Exception
        Specified by:
        afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
        Throws:
        Exception
      • beforeAll

        public void beforeAll​(org.junit.jupiter.api.extension.ExtensionContext context)
                       throws Exception
        Specified by:
        beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
        Throws:
        Exception
      • proxy

        public static org.testcontainers.containers.ToxiproxyContainer.ContainerProxy proxy​(String host,
                                                                                            int port)
      • proxy

        public static org.testcontainers.containers.ToxiproxyContainer.ContainerProxy proxy​(org.testcontainers.containers.GenericContainer<?> container,
                                                                                            int port)
      • resetProxy

        public static void resetProxy()
      • setProxyState

        public static void setProxyState​(String name,
                                         boolean shouldBeOn)
      • client

        public static eu.rekawek.toxiproxy.ToxiproxyClient client()