org.springframework.batch.item.file.transform
Class FixedLengthLineAggregatorTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.item.file.transform.FixedLengthLineAggregatorTests

public class FixedLengthLineAggregatorTests
extends TestCase

Unit tests for FixedLengthLineAggregator

Author:
robert.kasanicky, peter.zozom

Constructor Summary
FixedLengthLineAggregatorTests()
           
 
Method Summary
 void testAggregate()
          Test aggregation
 void testAggregateFormattedCenter()
          Test aggregation with center alignment
 void testAggregateFormattedLeft()
          Test aggregation with left alignment
 void testAggregateFormattedRight()
          Test aggregation with right alignment
 void testAggregateInvalidInputLength()
          Text length exceeds the length of the column.
 void testAggregateNullArgument()
          If one of the passed arguments is null, string filled with spaces should be returned
 void testAggregateNullRecordDescriptor()
          If no ranges are specified, IllegalArgumentException is thrown
 void testAggregateWithCustomPadding()
          Test aggregation with left alignment
 void testAggregateWithLastRangeUnbound()
          Test aggregation with last range unbound
 void testAggregateWrongArgumentCount()
          Count of aggregated strings does not match the number of columns
 void testInvalidAlignment()
          Try set ivalid alignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedLengthLineAggregatorTests

public FixedLengthLineAggregatorTests()
Method Detail

testAggregateNullRecordDescriptor

public void testAggregateNullRecordDescriptor()
If no ranges are specified, IllegalArgumentException is thrown


testAggregateWrongArgumentCount

public void testAggregateWrongArgumentCount()
Count of aggregated strings does not match the number of columns


testAggregateInvalidInputLength

public void testAggregateInvalidInputLength()
Text length exceeds the length of the column.


testAggregate

public void testAggregate()
Test aggregation


testAggregateWithLastRangeUnbound

public void testAggregateWithLastRangeUnbound()
Test aggregation with last range unbound


testAggregateFormattedRight

public void testAggregateFormattedRight()
Test aggregation with right alignment


testAggregateFormattedCenter

public void testAggregateFormattedCenter()
Test aggregation with center alignment


testAggregateWithCustomPadding

public void testAggregateWithCustomPadding()
Test aggregation with left alignment


testAggregateFormattedLeft

public void testAggregateFormattedLeft()
Test aggregation with left alignment


testInvalidAlignment

public void testInvalidAlignment()
Try set ivalid alignment


testAggregateNullArgument

public void testAggregateNullArgument()
If one of the passed arguments is null, string filled with spaces should be returned



Copyright © 2008 SpringSource. All Rights Reserved.