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() { }}