/* * Copyright 2014-2016 cyou.cn All right reserved. This software is the * confidential and proprietary information of cyou.cn ("Confidential * Information"). You shall not disclose such Confidential Information and shall * use it only in accordance with the terms of the license agreement you entered * into with cyou.cn. */ package com.cyou; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import com.cyou.notify.logic.NotifyErrorLogLogic; import com.cyou.notify.po.NotifyErrorLogPo; /** * @Author qibaichao * @ClassName NotifyErrorLogLogicTest * @Date 2014年9月16日 * @Description: */ @ContextConfiguration(locations = { "classpath:notify_platform_biz_service_locator.xml" }) @RunWith(SpringJUnit4ClassRunner.class) public class NotifyErrorLogLogicTest { @Autowired private NotifyErrorLogLogic notifyErrorLogLogic; @Test public void insert() { try { NotifyErrorLogPo po = new NotifyErrorLogPo(); po.setErrorInfo("333"); po.setNotifyParams("1111"); notifyErrorLogLogic.insertErrorLog(po); } catch (Exception e) { e.printStackTrace(); } } @Test public void update() { try { NotifyErrorLogPo po = new NotifyErrorLogPo(); po.setId(3L); po.setErrorInfo("333"); po.setStatus(2); notifyErrorLogLogic.updateErrorLog(po); } catch (Exception e) { e.printStackTrace(); } } }