标签: java jmock
我可以使用JMock 2模拟本机方法吗?例如,从Thread类
Thread
public final native boolean isAlive();
以通常的方式编写测试只会因not all expectations were satisfied而失败,所以它并不意味着。它无声地失败而不是告诉我它不能嘲笑当地人,所以我在这里要求确定......
not all expectations were satisfied
/感谢