Revisions:
20020711 Adrian Brock:
818283848586878889909192
{ MBeanOperationInfo info = new MBeanOperationInfo( "MyOperation", "This is a description.", new MBeanParameterInfo[] { new MBeanParameterInfo("FooParam", "java.lang.Object", "description"), new MBeanParameterInfo("BarParam", "java.lang.String", "description") }, "java.util.StringBuffer", MBeanOperationInfo.INFO );
123124125126127128129130131132133134
{ MBeanOperationInfo info = new MBeanOperationInfo( "MyOperation", "This is a description.", new MBeanParameterInfo[] { new MBeanParameterInfo("FooParam", "java.lang.Object", "description"), new MBeanParameterInfo("BarParam", "java.lang.String", "description") }, "java.util.StringBuffer", MBeanOperationInfo.ACTION_INFO );
167168169170171172173174175176177178
{ MBeanOperationInfo info1 = new MBeanOperationInfo( "SomeName", null, new MBeanParameterInfo[] { new MBeanParameterInfo("FooParam", "java.lang.Object", "description"), new MBeanParameterInfo("BarParam", "java.lang.String", "description") }, "java.util.StringBuffer", MBeanOperationInfo.ACTION_INFO );
199200201202203204205206207208209210
{ MBeanOperationInfo info1 = new MBeanOperationInfo( "SomeName", "some description", new MBeanParameterInfo[] { new MBeanParameterInfo("FooParam", "java.lang.Object", "description"), new MBeanParameterInfo("BarParam", "java.lang.String", "description") }, "java.util.StringBuffer", -22342 );
8283848586878889909192
assertEquals(0, info.getNotifications().length); assertEquals(0, info.getOperations().length); MBeanParameterInfo[] parms = new MBeanParameterInfo[] { new MBeanParameterInfo( "name", "type", "description") }; MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[] {
122123124125126127128129130131132
public void testEquals() throws Exception { MBeanParameterInfo[] parms = new MBeanParameterInfo[] { new MBeanParameterInfo( "name", "type", "description") }; MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[] {
306307308309310311312313314315316
public void testHashCode() throws Exception { MBeanParameterInfo[] parms = new MBeanParameterInfo[] { new MBeanParameterInfo( "name", "type", "description") }; MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[] {
346347348349350351352353354355356
public void testSerialization() throws Exception { MBeanParameterInfo[] parms = new MBeanParameterInfo[] { new MBeanParameterInfo( "name", "type", "description") }; MBeanAttributeInfo[] attributes = new MBeanAttributeInfo[] {
5556575859606162636465
// Tests --------------------------------------------------------------------- public void testMBeanParameterInfo() throws Exception { MBeanParameterInfo info = new MBeanParameterInfo( "name", "type", "description"); assertEquals("name", info.getName()); assertEquals("type", info.getType()); assertEquals("description", info.getDescription()); }
65666768697071727374
} public void testHashCode() throws Exception { MBeanParameterInfo info1 = new MBeanParameterInfo("name", "type", "description"); MBeanParameterInfo info2 = new MBeanParameterInfo("name", "type", "description"); assertTrue("Different instances with the same hashcode are equal", info1.hashCode() == info2.hashCode()); }