1 22 package org.jboss.test.jbossmx.compliance.standard; 23 24 import junit.framework.TestCase; 25 26 import javax.management.MBeanAttributeInfo ; 27 import javax.management.MBeanInfo ; 28 29 32 33 public class SpuriousAttributeTEST extends TestCase 34 { 35 private String failureHint; 36 private MBeanInfo info; 37 private String attributeName; 38 39 public SpuriousAttributeTEST(String failureHint, MBeanInfo info, String attributeName) 40 { 41 super("testForSpuriousAttribute"); 42 this.failureHint = failureHint; 43 this.info = info; 44 this.attributeName = attributeName; 45 } 46 47 public void testForSpuriousAttribute() 48 { 49 MBeanAttributeInfo [] attributes = info.getAttributes(); 50 assertNull(failureHint + ": attribute " + info.getClassName() + ": " + attributeName + " should not be present", 51 InfoUtil.findAttribute(attributes, attributeName)); 52 } 53 } 54 | Popular Tags |