package com.innovaee.eorder.service;

import org.apache.log4j.Logger;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:applicationContext-security.xml",
        "classpath:applicationContext-total.xml", })
public class BaseSpringTestCase {

    /** 日志对象 */
    protected static final Logger LOGGER = Logger
            .getLogger(BaseSpringTestCase.class);

}
@@ -29,17 +29,19 @@
 service;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -64,16 +64,17 @@
 .Logger;
+%0D
 %0Aimport 
@@ -98,16 +98,17 @@
 RunWith;
+%0D
 %0Aimport 
@@ -161,16 +161,112 @@
 uration;
+%0D%0Aimport org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;%0D
 %0Aimport 
@@ -329,17 +329,19 @@
 sRunner;
-%0A
+%0D%0A%0D
 %0A@RunWit
@@ -372,16 +372,17 @@
 r.class)
+%0D
 %0A@Contex
@@ -442,16 +442,17 @@
 ty.xml%22,
+%0D
 %0A       
@@ -496,16 +496,17 @@
 xml%22, %7D)
+%0D
 %0Apublic 
@@ -534,10 +534,65 @@
 ase 
-%7B%0A
+extends AbstractTransactionalJUnit4SpringContextTests%7B%0D%0A%0D
 %0A   
@@ -603,16 +603,17 @@
  %E6%97%A5%E5%BF%97%E5%AF%B9%E8%B1%A1 */
+%0D
 %0A    pro
@@ -654,16 +654,17 @@
 = Logger
+%0D
 %0A       
@@ -705,11 +705,13 @@
 .class);
-%0A
+%0D%0A%0D
 %0A%7D

change to transcational test