//package com.supersavedriving.driver;
|
//
|
//import com.supersavedriving.driver.modular.system.model.WeatherCity;
|
//import com.supersavedriving.driver.modular.system.service.IWeatherCityService;
|
//import com.supersavedriving.driver.modular.system.util.juhe.WeatherCityInfo;
|
//import com.supersavedriving.driver.modular.system.util.juhe.WeatherUtil;
|
//import org.junit.Test;
|
//import org.junit.runner.RunWith;
|
//import org.springframework.beans.BeanUtils;
|
//import org.springframework.beans.factory.annotation.Autowired;
|
//import org.springframework.boot.test.context.SpringBootTest;
|
//import org.springframework.test.context.junit4.SpringRunner;
|
//
|
//import java.util.ArrayList;
|
//import java.util.List;
|
//
|
//@RunWith(SpringRunner.class)
|
//@SpringBootTest
|
//public class GunsApplicationTest {
|
//
|
// @Autowired
|
// private IWeatherCityService weatherCityService;
|
//
|
//
|
// @Test
|
// public void test(){
|
// List<WeatherCityInfo> weatherCities = WeatherUtil.queryCityList();
|
// List<WeatherCity> list = new ArrayList<>();
|
// for (WeatherCityInfo weatherCityInfo : weatherCities) {
|
// WeatherCity weatherCity1 = new WeatherCity();
|
// BeanUtils.copyProperties(weatherCityInfo, weatherCity1);
|
// list.add(weatherCity1);
|
// }
|
// weatherCityService.insertBatch(list);
|
// }
|
//}
|