我是 JUnit 和 EasyMock 的新手。我需要将一些类注入到我的 JUnit 测试中。
private static TheManager theManager;
public static void setUpBeforeClass() throws Exception {
theManager = EasyMock.createMock(TheManagerImpl.class);
theManager.init();
}
这会实例化“TheManagerImpl”的对象吗?正如我认为的那样,它没有在实现中调用代码。如何让 EasyMock 为我做这件事?