LearnREST 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
LearnREDIS 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
LearnREDIS 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
LearnMockito: argument matchingYou can’t mix values with argument matchers. You can either use all values or all argument matchers.Sep 10Sep 10
LearnMockito: 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
LearnMockito: Mocks, Stubs and SpiesStubbing techniques are used to enforce predefined behavior.Sep 10Sep 10
LearnMockito: 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
LearnMockito: 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
LearnMockito: 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
LearnSpring 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