Change Base* to Abstract* to stop it being run multiple times
This commit is contained in:
@@ -33,7 +33,11 @@ import org.springframework.jdbc.core.RowMapper;
|
||||
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
public class BaseJobDaoTests extends
|
||||
/**
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
public abstract class AbstractJobDaoTests extends
|
||||
AbstractTransactionalDataSourceSpringContextTests {
|
||||
|
||||
private static final String GET_JOB_EXECUTION = "SELECT JOB_ID, START_TIME, END_TIME, STATUS from "
|
||||
@@ -37,8 +37,9 @@ import org.springframework.util.ClassUtils;
|
||||
* jobs, to have an id for creating steps.
|
||||
*
|
||||
* @author Lucas Ward
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class BaseStepDaoTests extends AbstractTransactionalDataSourceSpringContextTests {
|
||||
public abstract class AbstractStepDaoTests extends AbstractTransactionalDataSourceSpringContextTests {
|
||||
|
||||
protected JobDao jobDao;
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.hibernate.SessionFactory;
|
||||
import org.springframework.batch.core.domain.BatchStatus;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
public class HibernateJobDaoTests extends BaseJobDaoTests {
|
||||
public class HibernateJobDaoTests extends AbstractJobDaoTests {
|
||||
|
||||
private SessionFactory sessionFactory;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.batch.core.domain.StepInstance;
|
||||
import org.springframework.batch.support.PropertiesConverter;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
public class HibernateStepDaoTests extends BaseStepDaoTests {
|
||||
public class HibernateStepDaoTests extends AbstractStepDaoTests {
|
||||
|
||||
private SessionFactory sessionFactory;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.springframework.batch.execution.repository.dao;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
|
||||
public class SqlJobDaoTests extends BaseJobDaoTests {
|
||||
public class SqlJobDaoTests extends AbstractJobDaoTests {
|
||||
|
||||
protected void onSetUpBeforeTransaction() throws Exception {
|
||||
((SqlJobDao) jobDao).setTablePrefix(SqlJobDao.DEFAULT_TABLE_PREFIX);
|
||||
|
||||
@@ -2,7 +2,7 @@ package org.springframework.batch.execution.repository.dao;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
public class SqlStepDaoTests extends BaseStepDaoTests {
|
||||
public class SqlStepDaoTests extends AbstractStepDaoTests {
|
||||
|
||||
protected void onSetUpBeforeTransaction() throws Exception {
|
||||
((SqlStepDao) stepDao).setTablePrefix(SqlJobDao.DEFAULT_TABLE_PREFIX);
|
||||
|
||||
Reference in New Issue
Block a user