Pergunta de entrevista da empresa Svenska Handelsbanken

There is a java program which has some private methods and some calculations based on daily/monthly payments. you have to write junit for the same to check the calculations is proper.

Resposta da entrevista

Sigiloso

9 de dez. de 2024

you have to create some mock objects without using mock framework. the trick was to create public get methods for the private methods to be tested and inject the dependency.