I want to test method returning the void. What i should correct ?
public class ServicesTest
{
@Mock
ClientDao clientDaoMock;
@InjectMocks
@Autowired
ClientService clientService;
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
}
//FixMe
@Test
public void saveClient() {
when(clientDaoMock.saveClient(any(Client.class))).thenReturn(true);
}