PartitionParserTests fixes

testFullPartitionConfigurationWithMapperSuppliedProperties
* remove assert on PartitionMapper.name as PropertyPartitionMapper is used and
  PartitionMapper.name does not get populated.

testFullPartitionConfigurationWithHardcodedProperties
* when run as part of the suite, the static fields name was populated by another test case.
  add explicit reference and hardcoded property to job def
This commit is contained in:
Chris Schaefer
2014-02-18 12:46:53 -05:00
parent 6211c95d42
commit f87bf69dcf
2 changed files with 5 additions and 1 deletions

View File

@@ -132,7 +132,6 @@ public class PartitionParserTests {
assertTrue(PartitionCollector.artifactNames.contains("collector1"));
assertTrue(PartitionCollector.artifactNames.contains("collector2"));
assertEquals(PartitionMapper.name, "mapper");
assertEquals(PartitionAnalyzer.name, "analyzer");
assertEquals(PartitionReducer.name, "reducer");
}

View File

@@ -36,6 +36,11 @@
<property name="artifactName" value="reducer"/>
</properties>
</reducer>
<mapper ref="org.springframework.batch.core.jsr.configuration.xml.PartitionParserTests$PartitionMapper">
<properties>
<property name="artifactName" value="mapper"/>
</properties>
</mapper>
</partition>
</step>
</job>