Commit Graph

13 Commits

Author SHA1 Message Date
johnA1331 8c86197317 Update README.md 2021-03-10 21:14:40 +08:00
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
Kent@lhind.hp.g5 f5bb8ab648 improvement 2021-01-31 18:54:34 +01:00
johnA1331 9d8d8a6587 Update README.md 2020-10-07 17:18:48 +08:00
Umang Budhwar d48defc3e2 BAEL-4531 (#10093)
* Added code for checking if a class is abstract or not.

* Renamed test name as per review comments.
2020-10-02 21:58:12 -05:00
johnA1331 bea5c242af Update README.md 2020-09-24 03:39:09 +08:00
Umang Budhwar f134833952 Refactored code to use generic methods and use streams. (#10052) 2020-09-19 09:19:13 -07:00
johnA1331 a2ad623ba5 Update README.md 2020-08-20 17:58:14 +08:00
Umang Budhwar a27969cc70 Refactored code to use existing variables. 2020-08-03 21:01:57 +05:30
Umang Budhwar 7ec5e6824e Refactored code to use short primitive instead of Short wrapper class. 2020-08-02 22:36:02 +05:30
Umang Budhwar 0a2f6a4615 Added code to set a field using Reflection. 2020-07-24 20:13:23 +05:30
johnA1331 5d02496340 Create README.md 2020-07-21 22:21:37 +08: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