public class LogRecordSubject
extends com.google.common.truth.Subject
LogRecord
subjects.Modifier and Type | Method and Description |
---|---|
com.google.common.truth.StringSubject |
hasClassNameThat()
Obtains a subject for asserting the source class name associated with the log record.
|
com.google.common.truth.Subject |
hasLevelThat()
Obtains a subject for the logging level.
|
com.google.common.truth.StringSubject |
hasMessageThat()
Returns a
StringSubject to make assertions about the log record message. |
com.google.common.truth.StringSubject |
hasMethodNameThat()
Obtains a subject for asserting the source method name associated with the log record.
|
com.google.common.truth.ObjectArraySubject |
hasParametersThat()
Obtains a subject for the logging event arguments.
|
com.google.common.truth.ThrowableSubject |
hasThrowableThat()
Obtains a subject for asserting
Throwable associated with the log record. |
void |
isDebug()
Asserts that the level of the record is
Level.FINE . |
void |
isError()
Asserts that the level of the record is
Level.SEVERE . |
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
public com.google.common.truth.StringSubject hasMessageThat()
StringSubject
to make assertions about the log record message.public com.google.common.truth.Subject hasLevelThat()
public void isDebug()
Level.FINE
.public void isError()
Level.SEVERE
.public com.google.common.truth.ObjectArraySubject hasParametersThat()
public com.google.common.truth.ThrowableSubject hasThrowableThat()
Throwable
associated with the log record.public com.google.common.truth.StringSubject hasMethodNameThat()
public com.google.common.truth.StringSubject hasClassNameThat()