Keytool stopped workingI got an SSL error when executing a GET API from POSTMan. Suspecting that the certificates may have got expired, I got the latest one, and…Jan 3Jan 3
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 28, 2024Sep 28, 2024
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 28, 2024Sep 28, 2024
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 25, 2024Sep 25, 2024
Mockito: argument matchingYou can’t mix values with argument matchers. You can either use all values or all argument matchers.Sep 10, 2024Sep 10, 2024
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 10, 2024Sep 10, 2024
Mockito: Mocks, Stubs and SpiesStubbing techniques are used to enforce predefined behavior.Sep 10, 2024Sep 10, 2024
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 10, 2024Sep 10, 2024
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 9, 2024Sep 9, 2024
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 7, 2024Sep 7, 2024