A C E G H L T

A

apply(Statement, Description) - Method in class com.codereligion.cherry.junit.logback.LogRecorder
 

C

com.codereligion.cherry.junit.logback - package com.codereligion.cherry.junit.logback
Contains utilities to test Logback logging with JUnit.

E

equals(Object) - Method in class com.codereligion.cherry.junit.logback.LogSpec
 
event() - Method in class com.codereligion.cherry.junit.logback.LogRecorder
Returns the first event recorded during the test execution, or throws an AssertionError, in case no event was recorded.
events() - Method in class com.codereligion.cherry.junit.logback.LogRecorder
Returns all events recorded during the test execution in the order they were logged.
expectedLogs(LogSpec...) - Static method in class com.codereligion.cherry.junit.logback.LogRecorder
Creates a log recorder rule which records events for all logs specified by the given LogSpec.

G

getLevel() - Method in class com.codereligion.cherry.junit.logback.LogSpec
The Level associated witht this spec.
getLogger() - Method in class com.codereligion.cherry.junit.logback.LogSpec
The Logger associated with this spec.

H

hashCode() - Method in class com.codereligion.cherry.junit.logback.LogSpec
 

L

LogRecorder - Class in com.codereligion.cherry.junit.logback
JUnit rule which records all events emitted by the loggers specified in the given LogSpec at the specified log level.
LogSpec - Class in com.codereligion.cherry.junit.logback
Holds a Logger and a Level which specify the log events which should be recorded.
LogSpec(Class<?>, Level) - Constructor for class com.codereligion.cherry.junit.logback.LogSpec
Creates a new instance which will fetch the Logger specified by the given type and which will use the given level.
LogSpec(String, Level) - Constructor for class com.codereligion.cherry.junit.logback.LogSpec
Creates a new instance which will fetch the Logger specified by the given loggerName and which will use the given level.

T

toString() - Method in class com.codereligion.cherry.junit.logback.LogSpec
 

A C E G H L T

Copyright © 2015. All rights reserved.