Ejemplo n.º 1
0
 public static void testSaveEpgModel() {
   ApplicationContext context = new FileSystemXmlApplicationContext("classpath:spring-config.xml");
   IEpgModelDao epgModelDao = (IEpgModelDao) context.getBean("epgModelDao");
   ITvListDao tvListDao = (ITvListDao) context.getBean("tvListDao");
   TvListRequestAckData tvList = tvListDao.findTvListByDay("2013-04-10");
   epgModelDao.saveEpgModelsByTvList(tvList);
 }
Ejemplo n.º 2
0
 public static void testSaveTvList() {
   ApplicationContext context = new FileSystemXmlApplicationContext("classpath:spring-config.xml");
   IHuanApiService huanApiService = (IHuanApiService) context.getBean("huanApiService");
   TvListRequestAck ack = huanApiService.getTodayChannelPrograms();
   ITvListDao tvListDao = (ITvListDao) context.getBean("tvListDao");
   tvListDao.saveTvlist(ack.getData(), false);
   System.out.println(tvListDao.findTvListByDay(new Date()));
 }