i am trying to gt a list of method on a particular java class object i have created and trying to unit test it.
It fails saying it cannot find the class with a \"jav
The toString of the Class class returns: "class com.foo.NameOfClass" So it is trying to load: class com.jr.freedom.user.User (as your error messages states)
But more importantly, you already have the class: User.class, why try to load again? Just take that line out and have:
User.class.getDeclaredMethods...
The result of User.class.toString() is:
class com.jr.freedom.user.User
See the class before the real classname starts? That makes the string an illegal class name.
You need to use getName().