| Package | Description |
|---|---|
| org.jvnet.hudson.test |
Test harness for Jenkins and its plugins.
|
| Modifier and Type | Method and Description |
|---|---|
LoggerRule |
LoggerRule.capture(int maximum)
Initializes log record capture, in addition to merely printing it.
|
LoggerRule |
LoggerRule.record(Class<?> clazz,
Level level)
Same as
record(String, Level) but calls Class.getName() for you first. |
LoggerRule |
LoggerRule.record(Logger logger,
Level level)
Start listening to a logger.
|
LoggerRule |
LoggerRule.record(String name,
Level level)
Same as
record(Logger, Level) but calls Logger.getLogger(String) for you first. |
LoggerRule |
LoggerRule.recordPackage(Class<?> clazz,
Level level)
Same as
record(String, Level) but calls Class.getPackage() and getName() for you first. |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<LoggerRule> |
LoggerRule.recorded(Level level,
org.hamcrest.Matcher<String> message)
Creates a
Matcher that matches if the LoggerRule has a LogRecord at
the specified Level and with a message matching the specified matcher. |
static org.hamcrest.Matcher<LoggerRule> |
LoggerRule.recorded(Level level,
org.hamcrest.Matcher<String> message,
org.hamcrest.Matcher<Throwable> thrown)
Creates a
Matcher that matches if the LoggerRule has a LogRecord at
the specified Level, with a message matching the specified matcher, and with a
Throwable matching the specified matcher. |
static org.hamcrest.Matcher<LoggerRule> |
LoggerRule.recorded(org.hamcrest.Matcher<String> message)
Creates a
Matcher that matches if the LoggerRule has a LogRecord
with a message matching the specified matcher. |
static org.hamcrest.Matcher<LoggerRule> |
LoggerRule.recorded(org.hamcrest.Matcher<String> message,
org.hamcrest.Matcher<Throwable> thrown)
Creates a
Matcher that matches if the LoggerRule has a LogRecord
with a message matching the specified matcher and with a Throwable matching the specified
matcher. |
| Modifier and Type | Method and Description |
|---|---|
void |
JenkinsRule.showAgentLogs(hudson.model.Slave s,
LoggerRule loggerRule)
Same as
JenkinsRule.showAgentLogs(Slave, Map) but taking a preconfigured list of loggers as a convenience. |
Copyright © 2004–2019. All rights reserved.