Remove test for removed JMX feature
@@ -69,27 +69,6 @@ public class JmxRegistryTest {
jmxRegistry.registerSingleton(key_1, service, settings);
}
- @Test
- public void registerSingletonInstanceOfAnonymousClass() throws Exception {
- ConcurrentJmxMBean anonymousMBean = new ConcurrentJmxMBean(){};
- Class<? extends ConcurrentJmxMBean> anonymousMBeanClass = anonymousMBean.getClass();
- String packageName = anonymousMBeanClass.getPackage().getName();
- String typeName = anonymousMBeanClass.getName().substring(packageName.length() + 1);
- assertThat(typeName, startsWith("JmxRegistryTest$"));
-
- context.checking(new Expectations() {{
- allowing(mbeanFactory)
- .createDynamicMBean(with(singletonList(anonymousMBean)), with(any(MBeanSettings.class)), with(true));
- will(returnValue(dynamicMBean));
-
- oneOf(mBeanServer).registerMBean(with(dynamicMBean),
- with(objectname(packageName + ":type=" + typeName)));
- }});
-
- Key<?> key_1 = Key.of(anonymousMBeanClass);
- jmxRegistry.registerSingleton(key_1, anonymousMBean, settings);
- }
-
@Test
public void registerSingletonInstanceWith_AnnotationWithoutParameters_AndComposeAppropriateObjectName()
throws Exception {
