spring-framework / org.springframework.test.util / ReflectionTestUtils / <init>

<init>

ReflectionTestUtils()

ReflectionTestUtils is a collection of reflection-based utility methods for use in unit and integration testing scenarios.

There are often times when it would be beneficial to be able to set a non-public field, invoke a non-public setter method, or invoke a non-public configuration or lifecycle callback method when testing code involving, for example:

In addition, several methods in this class provide support for static fields — for example, #setField(Class, String, Object), #getField(Class, String), etc.

Author
Sam Brannen

Author
Juergen Hoeller

Since
2.5

See Also
ReflectionUtilsAopTestUtils