public enum Transports extends Enum<Transports>
Modifier and Type | Field and Description |
---|---|
static String |
TEST_MOCK_TRANSPORT_THREAD_PREFIX
threads whose name is prefixed by this string will be considered network threads, even though they aren't
|
Modifier and Type | Method and Description |
---|---|
static boolean |
assertNotTransportThread(String reason) |
static boolean |
assertTransportThread() |
static boolean |
isTransportThread(Thread t)
Utility method to detect whether a thread is a network thread.
|
static Transports |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transports[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final String TEST_MOCK_TRANSPORT_THREAD_PREFIX
public static Transports[] values()
for (Transports c : Transports.values()) System.out.println(c);
public static Transports valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final boolean isTransportThread(Thread t)
public static boolean assertTransportThread()
public static boolean assertNotTransportThread(String reason)
Copyright © 2009–2016. All rights reserved.