EzyAppContext appContext = mock(EzyAppContext.class)
. Nhưng làm vậy context.get(ScheduledExecutorService.class)
trả về null
:

Cho em hỏi nên khởi tạo EzyAppContext như nào ạ?
We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.
EzyAppContext appContext = mock(EzyAppContext.class)
. Nhưng làm vậy context.get(ScheduledExecutorService.class)
trả về null
:
Cho em hỏi nên khởi tạo EzyAppContext như nào ạ?
ScheduledExecutorService executorService = mock(ScheduledExecutorService.class); when(context.get(ScheduledExecutorService.class)).thenReturn(executorService);
em nhé
Input your email to receive reset password link, or if you remember your password, you can click