public class Asserts extends Object
| Constructor and Description |
|---|
Asserts() |
| Modifier and Type | Method and Description |
|---|---|
static AssertionError |
assertAssertionError(Block block)
Asserts that the code block throws an {@link AssertionError) and returns it
|
static Exception |
assertException(Block block)
Asserts that the code block throws an {@link AssertionError) and returns it
|
static void |
assertWaitFor(Block block)
Asserts that the block passes within a default time of 30 seconds.
|
static void |
assertWaitFor(long timeoutMs,
Block block)
Asserts that the block passes at some point within the given time period.
|
protected static boolean |
isVerboseWaitMessage() |
public static AssertionError assertAssertionError(Block block) throws Exception
Exceptionpublic static Exception assertException(Block block) throws Exception
Exceptionpublic static void assertWaitFor(long timeoutMs,
Block block)
throws Exception
Exceptionprotected static boolean isVerboseWaitMessage()
Copyright © 2011–2015 Red Hat. All rights reserved.