There are class layouts for unit testing Servlets in 'spring -test', which is very useful. Unfortunately, I do not need any of the other components of Spring, and I do not want to depend on spring -core in my project.
You can also:
- Use spring -test, regardless of spring -core, ... (separate the mocking classes from spring)?
- Use an alternative library with similar features?
source
share