Skip to content
Advertisement

RedisTemplate mock is only working in the test class

JavaScript

Class B

JavaScript

Now when I am writing the test for method in class B i.e. someMethod().

JavaScript

I have observed that the redis template mock is generating in test class but not in Class A and class B

Inside ClassBTest enter image description here

Inside class B enter image description here

Why is the mock not working in class B and A ?

Advertisement

Answer

My issue is resolved now. This works for me

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement