public class SockServerExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
SocksServer once, and starts and stops it before and after each test.
Can be used both by JUnit's Rule and ClassRule (`the latter being the preferred usage).
| Constructor and Description |
|---|
SockServerExtension(@NotNull Integer port) |
SockServerExtension(@NotNull Integer port,
@NotNull ServerSocketFactory serverSocketFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
public SockServerExtension(@NotNull
@NotNull Integer port)
public SockServerExtension(@NotNull
@NotNull Integer port,
@NotNull
@NotNull ServerSocketFactory serverSocketFactory)
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackCopyright © 2019–2024. All rights reserved.