CityDao { public City selectCityById(long id) { return this.sqlSession.selectOne("selectCityById", id); } CityDao(SqlSession sqlSession); City selectCityById(long id);  }
@Test void selectCityByIdTest() { City city = cityDao.selectCityById(1); assertThat(city.getId()).isEqualTo(1); assertThat(city.getName()).isEqualTo("San Francisco"); assertThat(city.getState()).isEqualTo("CA"); assertThat(city.getCountry()).isEqualTo("US"); }