Update of /cvsroot/xdoclet/xdoclet2/src/test/java/xdoclet/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv22426/src/test/java/xdoclet/plugins
Added Files:
VelocityPluginTest.java
Log Message:
-Improved JavaBeans support (which is the metadata layer for XDoclet configuration)
-Made tests able to run in unforked mode
--- NEW FILE: VelocityPluginTest.java ---
package xdoclet.plugins;
import junit.framework.TestCase;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.beans.MethodDescriptor;
/**
*
* @author <a href="mailto:aslak.hellesoy at bekk.no">Aslak Hellesøy</a>
* @version $Revision: 1.1 $
*/
public class VelocityPluginTest extends TestCase {
public void testBeanInfo() throws Exception {
BeanInfo beanInfo = Introspector.getBeanInfo(VelocityPlugin.class);
PropertyDescriptor[] props = beanInfo.getPropertyDescriptors();
for( int i = 0; i < props.length; i++ ) {
System.out.println( props[i].getName() + ", " +
props[i].getPropertyType().getName() );
}
System.out.println();
MethodDescriptor[] methods = beanInfo.getMethodDescriptors();
for( int i = 0; i < methods.length; i++ ) {
System.out.println( methods[i].getName() + ", " + methods[i] );
}
}
}
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel