Package org.elasticsearch.test
Class MockLog.SeenEventExpectation
java.lang.Object
org.elasticsearch.test.MockLog.AbstractEventExpectation
org.elasticsearch.test.MockLog.SeenEventExpectation
- All Implemented Interfaces:
MockLog.LoggingExpectation
- Direct Known Subclasses:
MockLog.EventuallySeenEventExpectation
,MockLog.ExceptionSeenEventExpectation
- Enclosing class:
- MockLog
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSeenEventExpectation
(String name, String logger, org.apache.logging.log4j.Level level, String message) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns if this expectation is matched, otherwise throws anAssertionError
.void
awaitMatched
(long millis) Returns if this expectation is matched within the given number of milliseconds, otherwise throws anAssertionError
.Methods inherited from class org.elasticsearch.test.MockLog.AbstractEventExpectation
innerMatch, match
-
Constructor Details
-
SeenEventExpectation
-
-
Method Details
-
assertMatched
public void assertMatched()Description copied from interface:MockLog.LoggingExpectation
Returns if this expectation is matched, otherwise throws anAssertionError
. -
awaitMatched
Description copied from interface:MockLog.LoggingExpectation
Returns if this expectation is matched within the given number of milliseconds, otherwise throws anAssertionError
.- Throws:
InterruptedException
-