Man! What a great testing technique! I couldn't imagine such a brilliant
use of templates to do the testing. I'm starting to learn how useful
xdoclet can be for testing this kind of stuff. Excellent Aslak!
Excellent!
Ara.
> public void testFields() {
> int f = 0;
>
> XField[] fields = _testedClass.fields();
> <XDtField:forAllFields superclasses="false" sort="true">
> // test if field type is the same
> assertEquals( "<XDtField:fieldType/>",
> fields[f].type().qualifiedName() + toArray(fields[f].dimension()));
>
> // test if field name is the same
> assertEquals( "<XDtField:fieldName/>", fields[f].name()
);
> f++;
> </XDtField:forAllFields>
> }
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel