TestCase tc =new TestCase();
Method[] methods =tc.getClass().getDeclaredMethods();
for(Method method : methods)
{
System.out.println(method.getName());
}
Field[] fields=tc.getClass().getDeclaredFields();
for(Field field : fields)
{
System.out.println(field.getName());
}
}
Method[] methods =tc.getClass().getDeclaredMethods();
for(Method method : methods)
{
System.out.println(method.getName());
}
Field[] fields=tc.getClass().getDeclaredFields();
for(Field field : fields)
{
System.out.println(field.getName());
}
}