Java, JUnit, Mockito, Unit test

Checking parameter of a mocked method call with Mockito

If you are using Mockito, it is sometimes useful to check the parameter state of a method passed to a mocked method call. I use it in the following cases DAO method, like create or update is called in the code. I ¬†want to check, if the entity has been set correctly before writing into… Continue reading Checking parameter of a mocked method call with Mockito

Advertisement