BATCH-1213:
*Removed isAbstractStep() from BeanDefinitionUtils. The formulation "beanFactory.isTypeMatch(beanName, AbstractStep.class)" should be used instead because it will automatically check the resultant type of a FactoryBean as well. *Changed *StepFactoryBean's getObjectType() to return TaskletStep.class, which is the most specific class name for the resulting object. This allows BeanFactory.isTypeMatch() to to recognize the factory bean's output properly. *Renamed CoreNamespaceBeanDefinitionUtils to BeanDefinitionUtils since it is no longer specific to the core namespace.
This commit is contained in:
@@ -124,7 +124,7 @@ public class FaultTolerantStepFactoryBeanRetryTests {
|
||||
|
||||
@Test
|
||||
public void testType() throws Exception {
|
||||
assertEquals(Step.class, factory.getObjectType());
|
||||
assertTrue(Step.class.isAssignableFrom(factory.getObjectType()));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -54,7 +54,7 @@ public class RepeatOperationsStepFactoryBeanTests extends TestCase {
|
||||
}
|
||||
|
||||
public void testType() throws Exception {
|
||||
assertEquals(Step.class, factory.getObjectType());
|
||||
assertTrue(Step.class.isAssignableFrom(factory.getObjectType()));
|
||||
}
|
||||
|
||||
public void testDefaultValue() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user