BATCH-377: Build error should be fixed now.
This commit is contained in:
@@ -27,12 +27,8 @@ import org.springframework.batch.core.JobInstance;
|
||||
import org.springframework.batch.core.JobParameters;
|
||||
import org.springframework.batch.core.JobParametersBuilder;
|
||||
import org.springframework.batch.core.job.JobSupport;
|
||||
import org.springframework.batch.core.repository.dao.JobExecutionDao;
|
||||
import org.springframework.batch.core.repository.dao.JobInstanceDao;
|
||||
import org.springframework.batch.core.repository.dao.NoSuchObjectException;
|
||||
import org.springframework.batch.repeat.ExitStatus;
|
||||
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
@@ -56,7 +52,7 @@ public abstract class AbstractJobDaoTests extends AbstractTransactionalDataSourc
|
||||
protected Date jobExecutionStartTime = new Date(System.currentTimeMillis());
|
||||
|
||||
protected String[] getConfigLocations() {
|
||||
return new String[] { ClassUtils.addResourcePathToPackagePath(getClass(), "sql-dao-test.xml") };
|
||||
return new String[] { "sql-dao-test.xml" };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,16 +26,12 @@ import org.springframework.batch.core.JobParameters;
|
||||
import org.springframework.batch.core.Step;
|
||||
import org.springframework.batch.core.StepExecution;
|
||||
import org.springframework.batch.core.job.JobSupport;
|
||||
import org.springframework.batch.core.repository.dao.JobExecutionDao;
|
||||
import org.springframework.batch.core.repository.dao.JobInstanceDao;
|
||||
import org.springframework.batch.core.repository.dao.StepExecutionDao;
|
||||
import org.springframework.batch.core.step.ExitStatusExceptionClassifier;
|
||||
import org.springframework.batch.core.step.StepSupport;
|
||||
import org.springframework.batch.item.ExecutionContext;
|
||||
import org.springframework.batch.repeat.ExitStatus;
|
||||
import org.springframework.dao.OptimisticLockingFailureException;
|
||||
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
* Tests for step persistence (StepInstanceDao and StepExecutionDao). Because it is very reasonable to assume that there is a
|
||||
@@ -84,7 +80,7 @@ public abstract class AbstractStepDaoTests extends AbstractTransactionalDataSour
|
||||
* @see org.springframework.test.AbstractSingleSpringContextTests#getConfigLocations()
|
||||
*/
|
||||
protected String[] getConfigLocations() {
|
||||
return new String[] { ClassUtils.addResourcePathToPackagePath(getClass(), "sql-dao-test.xml") };
|
||||
return new String[] { "sql-dao-test.xml" };
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.test.AbstractTransactionalDataSourceSpringContextTest
|
||||
public class SimpleJobRepositoryIntegrationTests extends AbstractTransactionalDataSourceSpringContextTests {
|
||||
|
||||
protected String[] getConfigLocations() {
|
||||
return new String[] { "classpath:org/springframework/batch/core/repository/dao/sql-dao-test.xml" };
|
||||
return new String[] { "classpath:sql-dao-test.xml" };
|
||||
}
|
||||
|
||||
private SimpleJobRepository jobRepository;
|
||||
|
||||
@@ -57,6 +57,6 @@ public class JdbcCursorItemReaderPreparedStatementIntegrationTests extends
|
||||
}
|
||||
|
||||
protected String[] getConfigLocations() {
|
||||
return new String[] { "org/springframework/batch/core/resource/data-source-context.xml" };
|
||||
return new String[] { "data-source-context.xml" };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class JobParametersPreparedStatementSetterTests extends AbstractTransacti
|
||||
JobParametersPreparedStatementSetter pss;
|
||||
|
||||
protected String[] getConfigLocations() {
|
||||
return new String[] { ClassUtils.addResourcePathToPackagePath(getClass(), "data-source-context.xml") };
|
||||
return new String[] { "data-source-context.xml" };
|
||||
}
|
||||
|
||||
protected void onSetUpInTransaction() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user