package com.huiju.estateagents;

import com.huiju.estateagents.entity.TdCity;
import com.huiju.estateagents.service.ITdCityService;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;


@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Transactional
public class TdCityServiceImplTest {
	
//	@Autowired
//	private ITdCityService iTdCityService;

	@Test
	public void getLocationCity() {
//		TdCity locationCity = iTdCityService.getLocationCity("116.310003,39.991957");
//		//断言 对象不为null
//		Assert.assertNotNull(locationCity);
//		//断言获取的是北京市
//		Assert.assertEquals("北京市",locationCity.getName());
	}
}