Package org.elasticsearch.test
Class MockLog.PatternNotSeenEventExpectation
java.lang.Object
org.elasticsearch.test.MockLog.PatternSeenEventExpectation
org.elasticsearch.test.MockLog.PatternNotSeenEventExpectation
- All Implemented Interfaces:
MockLog.LoggingExpectation
- Enclosing class:
MockLog
public static class MockLog.PatternNotSeenEventExpectation
extends MockLog.PatternSeenEventExpectation
-
Constructor Summary
ConstructorsConstructorDescriptionPatternNotSeenEventExpectation(String name, String logger, org.apache.logging.log4j.Level level, String pattern) -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns if this expectation is matched, otherwise throws anAssertionError.voidawaitMatched(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.PatternSeenEventExpectation
match
-
Constructor Details
-
PatternNotSeenEventExpectation
-
-
Method Details
-
assertMatched
public void assertMatched()Description copied from interface:MockLog.LoggingExpectationReturns if this expectation is matched, otherwise throws anAssertionError.- Specified by:
assertMatchedin interfaceMockLog.LoggingExpectation- Overrides:
assertMatchedin classMockLog.PatternSeenEventExpectation
-
awaitMatched
Description copied from interface:MockLog.LoggingExpectationReturns if this expectation is matched within the given number of milliseconds, otherwise throws anAssertionError.- Specified by:
awaitMatchedin interfaceMockLog.LoggingExpectation- Overrides:
awaitMatchedin classMockLog.PatternSeenEventExpectation- Throws:
InterruptedException
-