package com;


import com.transaction_anno.service.AccountTxService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Commit;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:context.xml")
public class TestTx {
    @Autowired
    AccountTxService accountTxService;
    @Test
    public void transformAnno() {
        try {
            accountTxService.transformTx();
        }catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
