From the mockito manual: "By default, for all methods that return value, mock returns null, an empty collection or appropriate primitive/primitive wrapper value (e.g: 0, false, ... for int/Integer, boolean/Boolean, ...)." If you want a return value you have to specify it using the when(applicationModel.startingBalance()).thenReturn(ApplicationModel.DEFAULT_STARTING_BALANCE);
From the mockito manual: "By default, for all methods that return value, mock returns null, an empty collection or appropriate primitive/primitive wrapper value (e.g: 0, false, ... for int/Integer, boolean/Boolean, ...)." If you want a return value you have to specify it using the when(applicationModel.startingBalance()).thenReturn(ApplicationModel.DEFAULT_STARTING_BALANCE);
h1fly3R 1 month ago in playlist Uploaded videos