Я получаю эту ошибку при запуске модульного теста - PullRequest
0 голосов
/ 23 сентября 2019

@ Test public void testSavePreferences () выбрасывает Exception {Long emailNotificationId = 24L;Long companyAccountId = 2411L;List userList = new ArrayList <> ();userList.add (GetUser ());UserManagerImpl spyObject = spy (userManager);CompanyUserEmailPreferences companyUserEmailPreferences = new CompanyUserEmailPreferences ();// companyUserEmailPreferences.setCompanyAccountId (getUser (). getCompanyAccountId ());doNothing (). when (spyObject, "savePreferences", emailNotificationId, companyAccountId, userList);когда (companyUserEmailPreferencesDao.save (companyUserEmailPreferences)). thenReturn (new CompanyUserEmailPreferences ());verifyPrivate (spyObject);}

...