Uses of Class
org.jvnet.hudson.test.LoggerRule
-
Packages that use LoggerRule Package Description org.jvnet.hudson.test Test harness for Jenkins and its plugins. -
-
Uses of LoggerRule in org.jvnet.hudson.test
Methods in org.jvnet.hudson.test that return LoggerRule Modifier and Type Method Description LoggerRuleLoggerRule. capture(int maximum)Initializes log record capture, in addition to merely printing it.LoggerRuleLoggerRule. quiet()Don't emit logs to the console, only record.LoggerRuleLoggerRule. record(Class<?> clazz, Level level)Same asrecord(String, Level)but callsClass.getName()for you first.LoggerRuleLoggerRule. record(String name, Level level)Same asrecord(Logger, Level)but callsLogger.getLogger(String)for you first.LoggerRuleLoggerRule. record(Logger logger, Level level)Start listening to a logger.LoggerRuleLoggerRule. recordPackage(Class<?> clazz, Level level)Same asrecord(String, Level)but callsClass.getPackage()and getName() for you first.Methods in org.jvnet.hudson.test that return types with arguments of type LoggerRule Modifier and Type Method Description static org.hamcrest.Matcher<LoggerRule>LoggerRule. recorded(Level level, org.hamcrest.Matcher<String> message)Creates aMatcherthat matches if theLoggerRulehas aLogRecordat the specifiedLeveland 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 aMatcherthat matches if theLoggerRulehas aLogRecordat the specifiedLevel, with a message matching the specified matcher, and with aThrowablematching the specified matcher.static org.hamcrest.Matcher<LoggerRule>LoggerRule. recorded(org.hamcrest.Matcher<String> message)Creates aMatcherthat matches if theLoggerRulehas aLogRecordwith a message matching the specified matcher.static org.hamcrest.Matcher<LoggerRule>LoggerRule. recorded(org.hamcrest.Matcher<String> message, org.hamcrest.Matcher<Throwable> thrown)Creates aMatcherthat matches if theLoggerRulehas aLogRecordwith a message matching the specified matcher and with aThrowablematching the specified matcher.Methods in org.jvnet.hudson.test with parameters of type LoggerRule Modifier and Type Method Description voidJenkinsRule. showAgentLogs(hudson.model.Slave s, LoggerRule loggerRule)Same asJenkinsRule.showAgentLogs(Slave, Map)but taking a preconfigured list of loggers as a convenience.
-