package com.querydsl.example.dao;

import com.querydsl.example.config.TestConfiguration;
import com.querydsl.example.config.TestDataService;
import org.junit.Before;
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;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {TestConfiguration.class})
@TransactionConfiguration(defaultRollback = true)
@Transactional
public abstract class AbstractDaoTest {

    @Autowired
    TestDataService testDataService;

    @Before
    public void setUp() {
        testDataService.addTestData();
    }

}

@@ -255,16 +255,69 @@
 owired;%0A
+import org.springframework.test.annotation.Rollback;%0A
 import o
@@ -446,86 +446,8 @@
 er;%0A
-import org.springframework.test.context.transaction.TransactionConfiguration;%0A
 impo
@@ -612,56 +612,16 @@
 %7D)%0A@
-TransactionConfiguration(defaultRollback = true)
+Rollback
 %0A@Tr

update test