仍然有红色的酒吧。 AssertEquals有什么问题?
public void testFindEmployeeByID() {
StubEmployeeRepositoryImpl result = new StubEmployeeRepositoryImpl(dataSource);
List<Employee> emp = result.findEmployeesByName("John", "X");
assertEquals("John"+"X", result.findEmployeesByName("John", "X"));
}
答案 0 :(得分:4)
或许assertEquals不知道如何比较List
和String
...