Package org.elasticsearch.test
Class MockLog.EventuallySeenEventExpectation
java.lang.Object
org.elasticsearch.test.MockLog.AbstractEventExpectation
org.elasticsearch.test.MockLog.SeenEventExpectation
org.elasticsearch.test.MockLog.EventuallySeenEventExpectation
- All Implemented Interfaces:
MockLog.LoggingExpectation
- Enclosing class:
- MockLog
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEventuallySeenEventExpectation
(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
.void
Methods inherited from class org.elasticsearch.test.MockLog.AbstractEventExpectation
innerMatch, match
-
Constructor Details
-
EventuallySeenEventExpectation
-
-
Method Details
-
setExpectSeen
public void setExpectSeen() -
assertMatched
public void assertMatched()Description copied from interface:MockLog.LoggingExpectation
Returns if this expectation is matched, otherwise throws anAssertionError
.- Specified by:
assertMatched
in interfaceMockLog.LoggingExpectation
- Overrides:
assertMatched
in classMockLog.SeenEventExpectation
-
awaitMatched
Description copied from interface:MockLog.LoggingExpectation
Returns if this expectation is matched within the given number of milliseconds, otherwise throws anAssertionError
.- Specified by:
awaitMatched
in interfaceMockLog.LoggingExpectation
- Overrides:
awaitMatched
in classMockLog.SeenEventExpectation
- Throws:
InterruptedException
-