** * @Mock
* WebService web;* @Mock * DeactivationVO deactivateVO;* /
Mockito.when( new WebService().invokeDeactivationWS(deactivateVO)).
thenReturn(deactivateVO);
=== Основной класс ===
deactivateVO = new WebService() .invokeDeactivationWS(deactivateVO);
здесь я получаю исключение
[Exception: Class -WebService, Метод - invokeDeactivationWS.Значения деактивации WebService: NULL / Пусто.]
if(!deactivateVO.isStatus()) errorList.add(deactivateVO);
else { empList.add(emp); System.out.println("Deactivated " + emp.getCid() + ": " + deactivateVO.isStatus()); }