REST API support in Spring frameworkI had to make some small changes to some GET APIs that I had in my code base. The level of support that the spring framework (in this case)…Sep 28Sep 28
REDIS SSL connection from spring boot application running in PCFI had setup connectivity between my local spring boot application and REDIS server instance by pointing to JKS files from application yaml…Sep 28Sep 28
REDIS connection from spring boot application running on localWhen the spring boot application was connected to the REDIS instance, and I looked at the code to see what files had changed — there was…Sep 25Sep 25
Mockito: argument matchingYou can’t mix values with argument matchers. You can either use all values or all argument matchers.Sep 10Sep 10
Mockito: Stubbing mechanicsWhen stubbing the behavior of a method of a class, you might think you need to specify the exact arguments for the method, and then you…Sep 10Sep 10
Mockito: Mocks, Stubs and SpiesStubbing techniques are used to enforce predefined behavior.Sep 10Sep 10
Mockito: stubbingMockito is about isolating dependencies. You call a third party API in your code, and every time you try running against that, you get all…Sep 10Sep 10
Mockito: Verify that a method throws exceptionI had a specific error state that I wanted the tests to detect. I simulate that state in the state of the test, and need my code to have…Sep 9Sep 9
Mockito: Verifying that a void method has been calledI have a method that is calling multiple dependent methods which take care of various disparate sub-tasks, and I needed to make sure that…Sep 7Sep 7
Spring beans: Cyclic dependencyI have a spring boot application which has a couple of kafka consumer beans, and a couple of kafka producer beans. Then I needed to wire a…Sep 7Sep 7