Почему этот модульный тест проходит, когда поле моей базы данных is_busy имеет значение true? - PullRequest
0 голосов
/ 30 мая 2018

Breakpoint screenshot

Debug screenshot

public void getAllEmployeesTest() throws IOException {
    HttpResponse response = http.get("http://localhost:8087/employee");
    List<Employee> expectedList = new ArrayList<>();
    expectedList.add(new Employee(2, "Yashwant", "Chavan", 30, false));
    Type listType = new TypeToken<ArrayList<Employee>>() {
    }.getType();
    List<Employee> actualList = gson.fromJson(EntityUtils.toString(response.getEntity()), listType);

    Assert.assertEquals(expectedList,actualList);
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...