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 void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
void
close()
int
getPort()
void
release()
String
toString()
-
-
-
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:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
- Throws:
Exception
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
- Throws:
Exception
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-