【发布时间】:2016-04-21 14:22:37
【问题描述】:
我的方法接口是
Boolean isAuthenticated(String User)
如果有任何用户从列表中传入函数,我想从值列表中进行比较,那么它应该返回 true。
when(authService.isAuthenticated(or(eq("amol84"),eq("arpan"),eq("juhi")))).thenReturn(true);
我正在使用附加参数匹配器“或”,但上面的代码不起作用。我该如何解决这个问题?
【问题讨论】: