使用Mockito来测试Java的行为

我想测试一个使用Mockito对其进行增强的 java方法.问题是当我不知道如何设定增强工作的期望.以下代码从 an unanswered question in the mockito google group获得: import static org.mockito.Mockito.when;import static org.testng.Assert.assertTrue;impo

返回顶部