Package org.apache.camel.test
Class AvailablePortFinder.Port
java.lang.Object
org.apache.camel.test.AvailablePortFinder.Port
- All Implemented Interfaces:
AutoCloseable,org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
- Enclosing class:
- AvailablePortFinder
public class AvailablePortFinder.Port
extends Object
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterAllCallback, AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Port
public Port(int port)
-
-
Method Details
-
getPort
public int getPort() -
release
public void release() -
toString
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-