CityService { public City getCity(int id){ return cityDao.getCity(id); }  City getCity(int id); @Transactional(readOnly = false) void insert(City city); @Transactional(readOnly = false) void transation();  }
@Test public void testGetCity() { City city= cityService.getCity(1); assertTrue("执行出错！"+city.getName(),"beijin".equals(city.getName())); }