1 package xdoclet.plugins;
2
3 import junit.framework.TestCase;
4
5 import java.beans.BeanInfo;
6 import java.beans.Introspector;
7 import java.beans.PropertyDescriptor;
8 import java.beans.MethodDescriptor;
9
10 /***
11 *
12 * @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
13 * @version $Revision: 1.2 $
14 */
15 public class VelocityPluginTest extends TestCase {
16 public void testBeanInfo() throws Exception {
17 BeanInfo beanInfo = Introspector.getBeanInfo(VelocityPlugin.class);
18
19 PropertyDescriptor[] props = beanInfo.getPropertyDescriptors();
20 for( int i = 0; i < props.length; i++ ) {
21 // System.out.println( props[i].getName() + ", " + props[i].getPropertyType().getName() );
22 }
23 System.out.println();
24
25 MethodDescriptor[] methods = beanInfo.getMethodDescriptors();
26 for( int i = 0; i < methods.length; i++ ) {
27 // System.out.println( methods[i].getName() + ", " + methods[i] );
28 }
29
30 }
31 }
This page was automatically generated by Maven