首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

spring data demo part 二

2013-08-10 
spring data demo part 2import java.io.IOExceptionimport java.util.Dateimport org.junit.Assertimp

spring data demo part 2











import java.io.IOException;import java.util.Date;import org.junit.Assert;import org.junit.Before;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 org.springframework.transaction.annotation.Transactional;@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)@Transactional@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = "classpath:context.xml")public class LogDetailTest {    @Autowired    private LogDetailRepository repository;    private LogDetail logDetail;    private final String STATUS = "100";    @Before    public void setUp() throws IOException {           }    @Test    public void insertSuccessfully() {    }}

热点排行