Package org.elasticsearch.test
Class MockLog.AbstractEventExpectation
java.lang.Object
org.elasticsearch.test.MockLog.AbstractEventExpectation
- All Implemented Interfaces:
MockLog.LoggingExpectation
- Direct Known Subclasses:
MockLog.SeenEventExpectation,MockLog.UnseenEventExpectation
- Enclosing class:
MockLog
public abstract static class MockLog.AbstractEventExpectation
extends Object
implements MockLog.LoggingExpectation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEventExpectation(String name, String logger, org.apache.logging.log4j.Level level, String message) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninnerMatch(org.apache.logging.log4j.core.LogEvent event) voidmatch(org.apache.logging.log4j.core.LogEvent event) Called on everyLogEventreceived by the captured appenders.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.test.MockLog.LoggingExpectation
assertMatched, awaitMatched
-
Field Details
-
name
-
logger
-
level
protected final org.apache.logging.log4j.Level level -
message
-
seenLatch
-
-
Constructor Details
-
AbstractEventExpectation
-
-
Method Details
-
match
public void match(org.apache.logging.log4j.core.LogEvent event) Description copied from interface:MockLog.LoggingExpectationCalled on everyLogEventreceived by the captured appenders.- Specified by:
matchin interfaceMockLog.LoggingExpectation
-
innerMatch
public boolean innerMatch(org.apache.logging.log4j.core.LogEvent event)
-