Commit Graph

2 Commits

Author SHA1 Message Date
Bradley M Handy 6a117f9f3a BAEL-4384: Invoke a private method using reflection (#10470)
* - initial commit of sample code

* BAEL-4209:  Moving the localized exception module into core-java-exceptions-3.

* BAEL-4209: Removed the old files for localizing exception messages.

* Added test case to explain invoking a private method.

* Made the code example more useful so we don't look like we're hacking another framework.

* Forgot to make the test class and method package-private.

* Incorporated Spring ReflectionTestUtils into the code sample.

* Updated the Spring Test version to match the article.
2021-03-03 19:44:45 +00:00
Umang Budhwar 1a8969f376 BAEL-4089: Accesing private properties of a class in Java (#9441)
* Added code to access private properties of a class

* Removed abstractions to increase simplicity.

* Added unit test cases in givenX_whenY_thenZ format.

* Included test cases for NoSuchFieldException, NoSuchMethodException and
NullPointerException.

* Added new test case for IllegalArgumentException

* Removed test cases for getting private methods

* Added test cases for accessing all data types.

* Segregated test cases for primitive and object types. Added test case
for Autoboxing.

* Condensed fields by removing extra space.

* Added test case for widening.

* Refactored test cases to throw generic Exception

* Created new module core-java-reflection-2

* Revert "Created new module core-java-reflection-2"

This reverts commit 9568663bb2e176eacc2119e605be76577f90b9c6.

* Added new module core-java-reflection-2

* Removed README.MD
2020-07-12 10:50:54 -05:00