Class ExistingNetwork

  • All Implemented Interfaces:
    AutoCloseable, org.junit.rules.TestRule, org.testcontainers.containers.Network

    public final class ExistingNetwork
    extends Object
    implements org.testcontainers.containers.Network
    • Constructor Detail

      • ExistingNetwork

        public ExistingNetwork​(String networkId)
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface org.testcontainers.containers.Network
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.testcontainers.containers.Network
      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement statement,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule