This content has been marked as final. Show 1 reply
You have a couple of options:
- RemoteCache is an interface. So it's perfect for mocking (just provide your own implementation or use Mockito.mock).
- Use BasicCache in your code. This interface is a common root for both Remote and Embedded Cache. Use the Embedded Cache in your testing code (just create a DefaultCacheManager and call #getCache method).
- The last proposition is very heavyweight. You can start a HotRod server (using Failsafe maven plugin for example) and run all the tests against it.