50onRed / mock-jedis

Mock Jedis is a library for mocking out Jedis clients
MIT License
82 stars 47 forks source link

Feature request: Mock Server failures #32

Open darkcrawler01 opened 9 years ago

darkcrawler01 commented 9 years ago

An interesting test case would be test failure behavior. This could be a flag passed into the constructor which throws JedisException for all API calls like get(), set(). A bit of more enhancement on top of this feature would be to have the possibility of failure on a random percentage. This feature would make mock-jedis attain perfection :+1: