-6

仍然得到红色条。AssertEquals 有什么问题?

public void testFindEmployeeByID() {
    StubEmployeeRepositoryImpl result = new StubEmployeeRepositoryImpl(dataSource);
    List<Employee> emp = result.findEmployeesByName("John", "X");
    assertEquals("John"+"X", result.findEmployeesByName("John", "X"));
}
4

1 回答 1

4

可能 assertEquals 不知道如何比较ListString......

于 2012-10-08T08:12:41.123 回答