public class TemporaryPorts
extends org.junit.rules.ExternalResource
| Modifier and Type | Class and Description |
|---|---|
static class |
TemporaryPorts.AllocatedPort |
class |
TemporaryPorts.AllocationFailedException |
static class |
TemporaryPorts.Builder |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
static TemporaryPorts.Builder |
builder() |
static TemporaryPorts |
create() |
int |
localPort(String name) |
com.google.common.collect.Range<Integer> |
localPortRange(String name,
int n) |
TemporaryPorts.AllocatedPort |
tryAcquire(String name,
int port) |
protected void after()
after in class org.junit.rules.ExternalResourcepublic TemporaryPorts.AllocatedPort tryAcquire(String name, int port)
public int localPort(String name)
public static TemporaryPorts create()
public static TemporaryPorts.Builder builder()
Copyright © 2015. All rights reserved.