1 6 7 package org.jfox.ioc.extra; 8 9 import junit.framework.TestCase; 10 import org.jfox.ioc.component.TestComponentE; 11 import org.jfox.ioc.management.ManagementInfo; 12 import org.jfox.ioc.management.ManagementOperationInfo; 13 14 17 18 public class ManagementInfoTest extends TestCase { 19 20 21 protected void setUp() throws Exception { 22 super.setUp(); 23 } 24 25 protected void tearDown() throws Exception { 26 super.tearDown(); 27 } 28 29 public void testManagementInfo(){ 30 ManagementInfo info = ManagementInfo.getManagementInfoByAnnotation(TestComponentE.class); 31 ManagementOperationInfo[] moi = info.getAllManagementOperationInfos(); 32 assertEquals(moi.length,2); 33 } 34 35 } 36 37 | Popular Tags |