BATCH-261:Added an extra test case to FieldSetTests to ensure padded input doesn't cause issues in the FieldSet. As mentioned in the issue, the BeanWrapperFieldSetMapper is likely causing the issue.
This commit is contained in:
@@ -428,4 +428,11 @@ public class FieldSetTests extends TestCase {
|
||||
assertEquals(tokens[i], values[i]);
|
||||
}
|
||||
}
|
||||
|
||||
public void testPaddedLong(){
|
||||
FieldSet fs = new FieldSet(new String[]{"00000009"});
|
||||
|
||||
long value = fs.readLong(0);
|
||||
assertEquals(value, 9);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user