Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmichaelis/spring-aware-rule
An example how to replace (most) functionality of a SpringJUnit4ClassRunner by a JUnit TestRule
https://github.com/mmichaelis/spring-aware-rule
Last synced: 10 days ago
JSON representation
An example how to replace (most) functionality of a SpringJUnit4ClassRunner by a JUnit TestRule
- Host: GitHub
- URL: https://github.com/mmichaelis/spring-aware-rule
- Owner: mmichaelis
- Archived: true
- Created: 2014-08-28T09:40:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T11:17:22.000Z (almost 6 years ago)
- Last Synced: 2024-08-02T12:22:45.979Z (3 months ago)
- Language: Java
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
-----
**Archived:** Solution is meanwhile available in Spring. No need for copy & paste code anymore.
-----
Spring-Aware-Rule
=================An example how to replace (most) functionality of a SpringJUnit4ClassRunner by a JUnit TestRule as introduced in [CoreMedia Minds Post][minds-post]
Mind that the rule copies some (and not all) behavior of the SpringJUnit4ClassRunner. So the normal restrictions for copy & paste code also applies to this solution.
**Note:** There is a more complete solution already waiting as [Pull Request 222][spring-framework-pr-222] for the spring-framework addressing this issue which is also described in [SPR-7731][].
[minds-post]: "JUnit-@RunWith: SpringJUnit4ClassRunner vs. Parameterized | Minds"
[spring-framework-pr-222]: "SPR-10217 Implement JUnit 4 Support using Rules by marschall · Pull Request #222"
[SPR-7731]: "[SPR-7731] Provide @Rule alternative to SpringJUnit4ClassRunner - Spring JIRA"