KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > extra > ManagementInfoTest


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

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 /**
15  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
16  */

17
18 public class ManagementInfoTest extends TestCase {
19
20
21     protected void setUp() throws Exception JavaDoc {
22         super.setUp();
23     }
24
25     protected void tearDown() throws Exception JavaDoc {
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