Throwables.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Failures | |
| private static final Throwables |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | assertHasCause(AssertionInfo
contains information about the assertion. info, Throwable the given actual)Throwable.Asserts that the actual |
| public void | assertHasCauseExactlyInstanceOf(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Class<? extends Throwable> Throwable.the expected cause type. type)Assert that the cause of actual |
| public void | assertHasCauseInstanceOf(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Class<? extends Throwable> Throwable.the expected cause type. type)Assert that the cause of actual |
| public void | assertHasCauseReference(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Throwable Throwable.the expected cause. expectedCause)Asserts that the actual |
| public void | assertHasMessage(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the expected message. expectedMessage)Asserts that the given actual |
| public void | assertHasMessageContaining(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the description expected to be contained in the actual description)Throwable's message.Asserts that the message of the actual |
| public void | assertHasMessageContainingAll(AssertionInfo
contains information about the assertion. info, Throwable the given actual, CharSequence... Throwable.the Strings expected to be contained in the actual values)Throwable's message.Asserts that the message of the actual |
| public void | assertHasMessageEndingWith(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the description expected to end the actual description)Throwable's message.Asserts that the message of the actual |
| public void | assertHasMessageFindingMatch(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the regular expression expected to be found in the actual regex)Throwable's message.Asserts that a sequence of the message of the actual |
| public void | assertHasMessageMatching(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Pattern Throwable.the regular expression of value expected to be matched the actual regex)Throwable's message.Asserts that the message of the actual |
| public void | |
| public void | assertHasMessageNotContaining(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the content expected not to be contained in the actual content)Throwable's message.Asserts that the message of the actual |
| public void | assertHasMessageNotContainingAny(AssertionInfo
contains information about the assertion. info, Throwable the given actual, CharSequence... Throwable.the contents expected to not be contained in the actual values)Throwable's message.Asserts that the message of the actual |
| public void | assertHasMessageStartingWith(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the description expected to start the actual description)Throwable's message.Asserts that the message of the actual |
| public void | assertHasNoCause(AssertionInfo
contains information about the assertion. info, Throwable the given actual)Throwable.Asserts that the actual |
| public void | |
| public void | assertHasRootCause(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Throwable Throwable.the expected root cause. expectedRootCause)Asserts that the actual |
| public void | assertHasRootCause(AssertionInfo
contains information about the assertion. info, Throwable the given actual)Throwable.Asserts that the actual |
| public void | assertHasRootCauseExactlyInstanceOf(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Class<? extends Throwable> Throwable.the expected cause type. type)Assert that the root cause of actual |
| public void | assertHasRootCauseInstanceOf(AssertionInfo
contains information about the assertion. info, Throwable the given actual, Class<? extends Throwable> Throwable.the expected cause type. type)Assert that the root cause of actual |
| public void | assertHasRootCauseMessage(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the expected message of the root cause. expectedMessage)Asserts that the message of the root cause of the actual |
| public void | assertHasStackTraceContaining(AssertionInfo
contains information about the assertion. info, Throwable the given actual, String Throwable.the description expected to be contained in the actual description)Throwable's stack trace.Asserts that the stack trace of the actual |
| public void | assertHasSuppressedException(AssertionInfo info, Throwable actual, Throwable expectedSuppressedException)
|
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static boolean | |
| private static void | |
| public static Throwables | Returns: the singleton instance of this class.Returns the singleton instance of this class. |
| failures | back to summary |
|---|---|
| pack-priv Failures failures
| |
| INSTANCE | back to summary |
|---|---|
| private static final Throwables INSTANCE | |
| Throwables | back to summary |
|---|---|
pack-priv Throwables()
| |
| assertHasCause | back to summary |
|---|---|
| public void assertHasCause(AssertionInfo info, Throwable actual, Throwable expectedCause) | |
| assertHasCause | back to summary |
|---|---|
| public void assertHasCause(AssertionInfo info, Throwable actual) Asserts that the actual
| |
| assertHasCauseExactlyInstanceOf | back to summary |
|---|---|
| public void assertHasCauseExactlyInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the cause of actual
| |
| assertHasCauseInstanceOf | back to summary |
|---|---|
| public void assertHasCauseInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the cause of actual
| |
| assertHasCauseReference | back to summary |
|---|---|
| public void assertHasCauseReference(AssertionInfo info, Throwable actual, Throwable expectedCause) Asserts that the actual
| |
| assertHasMessage | back to summary |
|---|---|
| public void assertHasMessage(AssertionInfo info, Throwable actual, String expectedMessage) Asserts that the given actual
| |
| assertHasMessageContaining | back to summary |
|---|---|
| public void assertHasMessageContaining(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actual
| |
| assertHasMessageContainingAll | back to summary |
|---|---|
| public void assertHasMessageContainingAll(AssertionInfo info, Throwable actual, CharSequence... values) Asserts that the message of the actual
| |
| assertHasMessageEndingWith | back to summary |
|---|---|
| public void assertHasMessageEndingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actual
| |
| assertHasMessageFindingMatch | back to summary |
|---|---|
| public void assertHasMessageFindingMatch(AssertionInfo info, Throwable actual, String regex) Asserts that a sequence of the message of the actual
| |
| assertHasMessageMatching | back to summary |
|---|---|
| public void assertHasMessageMatching(AssertionInfo info, Throwable actual, Pattern regex) Asserts that the message of the actual
| |
| assertHasMessageMatching | back to summary |
|---|---|
| public void assertHasMessageMatching(AssertionInfo info, Throwable actual, String regex) | |
| assertHasMessageNotContaining | back to summary |
|---|---|
| public void assertHasMessageNotContaining(AssertionInfo info, Throwable actual, String content) Asserts that the message of the actual
| |
| assertHasMessageNotContainingAny | back to summary |
|---|---|
| public void assertHasMessageNotContainingAny(AssertionInfo info, Throwable actual, CharSequence... values) Asserts that the message of the actual
| |
| assertHasMessageStartingWith | back to summary |
|---|---|
| public void assertHasMessageStartingWith(AssertionInfo info, Throwable actual, String description) Asserts that the message of the actual
| |
| assertHasNoCause | back to summary |
|---|---|
| public void assertHasNoCause(AssertionInfo info, Throwable actual) Asserts that the actual
| |
| assertHasNoSuppressedExceptions | back to summary |
|---|---|
| public void assertHasNoSuppressedExceptions(AssertionInfo info, Throwable actual) | |
| assertHasRootCause | back to summary |
|---|---|
| public void assertHasRootCause(AssertionInfo info, Throwable actual, Throwable expectedRootCause) Asserts that the actual
| |
| assertHasRootCause | back to summary |
|---|---|
| public void assertHasRootCause(AssertionInfo info, Throwable actual) Asserts that the actual
| |
| assertHasRootCauseExactlyInstanceOf | back to summary |
|---|---|
| public void assertHasRootCauseExactlyInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the root cause of actual
| |
| assertHasRootCauseInstanceOf | back to summary |
|---|---|
| public void assertHasRootCauseInstanceOf(AssertionInfo info, Throwable actual, Class<? extends Throwable> type) Assert that the root cause of actual
| |
| assertHasRootCauseMessage | back to summary |
|---|---|
| public void assertHasRootCauseMessage(AssertionInfo info, Throwable actual, String expectedMessage) Asserts that the message of the root cause of the actual
| |
| assertHasStackTraceContaining | back to summary |
|---|---|
| public void assertHasStackTraceContaining(AssertionInfo info, Throwable actual, String description) Asserts that the stack trace of the actual
| |
| assertHasSuppressedException | back to summary |
|---|---|
| public void assertHasSuppressedException(AssertionInfo info, Throwable actual, Throwable expectedSuppressedException) | |
| assertNotNull | back to summary |
|---|---|
| private static void assertNotNull(AssertionInfo info, Throwable actual) | |
| checkCharSequenceArrayDoesNotHaveNullElements | back to summary |
|---|---|
| private static void checkCharSequenceArrayDoesNotHaveNullElements(CharSequence[] values) | |
| checkCharSequenceIsNotNull | back to summary |
|---|---|
| private static void checkCharSequenceIsNotNull(CharSequence sequence) | |
| checkIsNotEmpty | back to summary |
|---|---|
| private static void checkIsNotEmpty(CharSequence... values) | |
| checkIsNotNull | back to summary |
|---|---|
| private static void checkIsNotNull(CharSequence... values) | |
| compareThrowable | back to summary |
|---|---|
| private static boolean compareThrowable(Throwable actual, Throwable expected) | |
| doCommonCheckForMessages | back to summary |
|---|---|
| private static void doCommonCheckForMessages(AssertionInfo info, Throwable actual, CharSequence[] values) | |
| instance | back to summary |
|---|---|
| public static Throwables instance() Returns the singleton instance of this class.
| |