I am getting error "The method when(BasePersistenceImpl) is undefined for the type BusinessServiceImplTest"
here is my code sample
when(PersistenceFactory.getService(RecordTypeEnum.CANDIDATERESPONSE, mockEntityManager)).thenReturn(mockCandidateResponsePersistenceImpl);
public static BasePersistenceImpl getService( RecordTypeEnum eNum, EntityManager entityMgr) throws ADRDataAccessException {}
Please let me know if I missing syntax
thanks