mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
Issue #5872 - DynamicMBean for JettyLoggerFactory
+ Fixing typo in operation names Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
5f9ea7804a
commit
81c2c233db
@ -77,14 +77,14 @@ public class JMXTest
|
||||
|
||||
// Setting the parent level should propagate to the children.
|
||||
parent.setLevel(JettyLevel.DEBUG);
|
||||
operationName = "getLoggerName";
|
||||
operationName = "getLoggerLevel";
|
||||
signature = new String[]{String.class.getName()};
|
||||
params = new Object[]{child.getName()};
|
||||
String levelName = (String)mbeanServer.invoke(objectName, operationName, params, signature);
|
||||
assertEquals(parent.getLevel().toString(), levelName);
|
||||
|
||||
// Setting the level via JMX affects the logger.
|
||||
operationName = "setLoggerName";
|
||||
operationName = "setLoggerLevel";
|
||||
signature = new String[]{String.class.getName(), String.class.getName()};
|
||||
params = new Object[]{child.getName(), "INFO"};
|
||||
boolean result = (boolean)mbeanServer.invoke(objectName, operationName, params, signature);
|
||||
|
Loading…
x
Reference in New Issue
Block a user