public final class DiagnosticsUtil extends Object
Diagnostics
User: Kirill, Date: 10.09.13 8:53
| Modifier and Type | Class and Description |
|---|---|
static interface |
DiagnosticsUtil.Indexer<K,V> |
| Modifier | Constructor and Description |
|---|---|
private |
DiagnosticsUtil()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertExceptionThrown(String message,
Class<? extends Throwable> exceptionType,
Runnable method)
Assert that expected exception has been thrown.
|
static void |
assertPicture(String message,
InputStream actual,
InputStream expected) |
static <K,V> Map<K,V> |
index(Collection<V> src,
DiagnosticsUtil.Indexer<K,V> indexer) |
static <V> List<V> |
newArrayList(V... c) |
private static byte[] |
toByteArray(InputStream inputStream) |
public static <K,V> Map<K,V> index(Collection<V> src, DiagnosticsUtil.Indexer<K,V> indexer)
public static <V> List<V> newArrayList(V... c)
public static void assertExceptionThrown(String message, Class<? extends Throwable> exceptionType, Runnable method) throws Exception
message - message if the exception has been not occurredexceptionType - exception to be thrownmethod - invoked methodExceptionprivate static byte[] toByteArray(InputStream inputStream) throws IOException
IOExceptionpublic static void assertPicture(String message, InputStream actual, InputStream expected) throws IOException
IOExceptionCopyright © 2022. All rights reserved.