package com.test;

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 org.springframework.test.context.transaction.TransactionConfiguration;

import com.ylcm.sys.service.AdvertiseService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext-beans.xml",
"classpath:applicationContext-common.xml" })
// 为防止污染数据库，配置事务
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)
public class LiuyuTest {

    @Autowired
    private AdvertiseService advertiseService;
    
    @Test
    public void tmp() {
        System.out.println("【start】");
        System.out.println("【end】");
    }
    
}
