BATCH-965: cleanup

This commit is contained in:
trisberg
2008-12-11 23:39:52 +00:00
parent b6d8bb7532
commit fecae06ffa
3 changed files with 4 additions and 38 deletions

View File

@@ -22,10 +22,8 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.batch.repeat.support.RepeatSynchronizationManager;
import org.springframework.orm.hibernate3.HibernateOperations;
/**
@@ -45,11 +43,6 @@ public class HibernateItemWriterTests {
writer.setHibernateTemplate(ht);
}
@After
public void tearDown() throws Exception {
RepeatSynchronizationManager.clear();
}
/**
* Test method for
* {@link org.springframework.batch.item.database.HibernateItemWriter#afterPropertiesSet()}

View File

@@ -24,10 +24,8 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.batch.repeat.support.RepeatSynchronizationManager;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.UncategorizedSQLException;
@@ -49,11 +47,6 @@ public class JdbcBatchItemWriterClassicTests {
private PreparedStatement ps;
/*
* (non-Javadoc)
*
* @see junit.framework.TestCase#setUp()
*/
@Before
public void setUp() throws Exception {
ps = createMock(PreparedStatement.class);
@@ -78,15 +71,10 @@ public class JdbcBatchItemWriterClassicTests {
writer.afterPropertiesSet();
}
/*
* (non-Javadoc)
*
* @see junit.framework.TestCase#tearDown()
*/
@After
public void tearDown() throws Exception {
RepeatSynchronizationManager.clear();
}
// @After
// public void tearDown() throws Exception {
// RepeatSynchronizationManager.clear();
// }
/**
* Test method for

View File

@@ -69,11 +69,6 @@ public class JdbcBatchItemWriterNamedParameterTests {
}
/*
* (non-Javadoc)
*
* @see junit.framework.TestCase#setUp()
*/
@Before
public void setUp() throws Exception {
sjt = createMock(SimpleJdbcOperations.class);
@@ -84,16 +79,6 @@ public class JdbcBatchItemWriterNamedParameterTests {
writer.afterPropertiesSet();
}
/*
* (non-Javadoc)
*
* @see junit.framework.TestCase#tearDown()
*/
@After
public void tearDown() throws Exception {
RepeatSynchronizationManager.clear();
}
/**
* Test method for
* {@link org.springframework.batch.item.database.JdbcBatchItemWriter#afterPropertiesSet()}