https://github.com/hhimanshu/reflection-testing
Working with Java Reflection API and Testing with JUnit 5
https://github.com/hhimanshu/reflection-testing
java java-11 java-reflection java-reflection-api junit junit5
Last synced: 2 months ago
JSON representation
Working with Java Reflection API and Testing with JUnit 5
- Host: GitHub
- URL: https://github.com/hhimanshu/reflection-testing
- Owner: hhimanshu
- License: mit
- Created: 2020-04-17T22:59:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T23:12:44.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T16:36:53.427Z (4 months ago)
- Topics: java, java-11, java-reflection, java-reflection-api, junit, junit5
- Language: Java
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Reflection Testing 
This project is intended to demonstrate the following using `Java`, `Maven` and `JUnit5`
- If the `Class` exists in project.
- If the class contains a `method` with a specific name
- If a method is `public`, `private`
- If a method contains parameters with specific types
- If a method returns a specific typeAnd there could be more additions to such a list.
This project makes use of [ReflectionUtils](https://junit.org/junit5/docs/5.0.3/api/org/junit/platform/commons/util/ReflectionUtils.html) class from `Junit5` and `Java`'s [Reflection API](https://docs.oracle.com/javase/tutorial/reflect/index.html)