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é
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Input your email to receive reset password link, or if you remember your password, you can click