public class LogfileTestTailer extends Object
Modifier and Type | Field and Description |
---|---|
Pattern |
auditPattern |
static String |
LEVEL_DEBUG |
static String |
LEVEL_ERROR |
static String |
LEVEL_INFO |
static String |
LEVEL_TRACE |
static String |
LEVEL_WARN |
static String |
MARKER |
static Pattern |
PATTERN_LEVEL |
static File |
TEST_LOG_FILE |
Constructor and Description |
---|
LogfileTestTailer(File logFile,
String auditLoggerName,
boolean skipCurrentContent) |
LogfileTestTailer(String auditLoggerName) |
LogfileTestTailer(String auditLoggerName,
boolean skipCurrentContent) |
Modifier and Type | Method and Description |
---|---|
void |
assertAudit() |
void |
assertAudit(int messageCount) |
void |
assertAudit(String message) |
void |
assertAuditExecution() |
void |
assertAuditRequest() |
void |
assertExpectedMessage() |
void |
assertMarkerLogged(String level,
String subsystemName) |
void |
assertMarkerNotLogged(String level,
String subsystemName) |
void |
assertNoAudit() |
void |
close() |
List<String> |
getAuditMessages() |
Collection<String> |
getErrors() |
Collection<String> |
getWarnings() |
boolean |
isAllowPrefix() |
boolean |
isSeenMarker() |
void |
log()
Log all levels in all subsystems.
|
void |
logAndTail() |
void |
reset() |
void |
setAllowPrefix(boolean allowPrefix) |
void |
setExpecteMessage(String expectedMessage) |
void |
setSeenMarker(boolean seenMarker) |
void |
tail() |
public static final File TEST_LOG_FILE
public static final String MARKER
public static final String LEVEL_ERROR
public static final String LEVEL_WARN
public static final String LEVEL_INFO
public static final String LEVEL_DEBUG
public static final String LEVEL_TRACE
public static final Pattern PATTERN_LEVEL
public Pattern auditPattern
public LogfileTestTailer(String auditLoggerName) throws IOException
IOException
public LogfileTestTailer(String auditLoggerName, boolean skipCurrentContent) throws IOException
IOException
public LogfileTestTailer(File logFile, String auditLoggerName, boolean skipCurrentContent) throws IOException
IOException
public boolean isAllowPrefix()
public void setAllowPrefix(boolean allowPrefix)
public Collection<String> getErrors()
public Collection<String> getWarnings()
public void close() throws IOException
IOException
public void reset()
public boolean isSeenMarker()
public void setSeenMarker(boolean seenMarker)
public void tail() throws IOException
IOException
public void setExpecteMessage(String expectedMessage)
public void assertExpectedMessage()
public void assertNoAudit()
public void assertAudit()
public void assertAudit(String message)
public void assertAuditRequest()
public void assertAuditExecution()
public void assertAudit(int messageCount)
public void log()
public void logAndTail() throws IOException
IOException
Copyright © 2016 evolveum. All rights reserved.