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 |
assertForPeriod(long timeoutMs,
Block block)
Asserts that the given block does not fail with any assertions for the given period of time
|
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
Exception
public static Exception assertException(Block block) throws Exception
Exception
public static void assertWaitFor(long timeoutMs, Block block) throws Exception
Exception
public static void assertForPeriod(long timeoutMs, Block block) throws Exception
Exception
protected static boolean isVerboseWaitMessage()
Copyright © 2011–2016 Red Hat. All rights reserved.