public final class ThrowableSubject extends Subject<ThrowableSubject,Throwable>
Throwable
subjects.Subject.HasField
failureStrategy
Constructor and Description |
---|
ThrowableSubject(FailureStrategy failureStrategy,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
void |
hasMessage(String message)
Fails if the subject does not have the given message.
|
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
public ThrowableSubject(FailureStrategy failureStrategy, Throwable throwable)
Copyright © 2014. All rights reserved.