public class DefinitionTests extends TestCase {
public void testDefinition() {
DAOMetaData definition = new DAOMetaData(Character.class);
Assert.assertEquals("java.lang.Character", definition.toString());
// 输出所有常量
System.out.println("Class constants: ");
Map<String, ?> consts = definition.getConstants();
for (Map.Entry<String, ?> entry : consts.entrySet()) {
System.out.println(entry.getKey() + " = " + entry.getValue());
}
// 效验一些常量