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 Constructor Description Port(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAll(org.junit.jupiter.api.extension.ExtensionContext context)voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context)voidclose()intgetPort()voidrelease()StringtoString()
-
-
-
Method Detail
-
getPort
public int getPort()
-
release
public void release()
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-