zoukankan      html  css  js  c++  java
  • 单元测试

    package test;
    
    /**
     * Created by wm on 2016/12/19.
     */
    
    import org.junit.runner.RunWith;
    import org.springframework.context.annotation.AdviceMode;
    import org.springframework.test.context.ActiveProfiles;
    import org.springframework.test.context.ContextConfiguration;
    import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
    import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
    import org.springframework.test.context.transaction.TransactionConfiguration;
    import org.springframework.transaction.annotation.EnableTransactionManagement;
    
    
    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations = {"classpath:spring.xml" })
    @ActiveProfiles("betaC")
    @EnableTransactionManagement(mode = AdviceMode.PROXY)
    @TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)
    public abstract class BaseTest extends AbstractTransactionalJUnit4SpringContextTests {
    
    }
    

      

  • 相关阅读:
    [Apache commons系列]DBUtils 示例代码
    关于syslog
    Phoenix Tips (1)
    Phoenix 常用函数
    Phoenix 的数据类型
    最简单的Phoenix 访问 HBase例子
    SVNKIT 主要方法
    Linux 集群时钟同步
    Linux 集群时钟同步
    Linux 下定时提交SVN
  • 原文地址:https://www.cnblogs.com/wangmei/p/6235816.html
Copyright © 2011-2022 走看看