REOPENED - BATCH-745: strong typing in AggregateItemReader
moved AggregateItemReader to samples
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.batch.item.support;
|
||||
package org.springframework.batch.sample.domain.multiline;
|
||||
|
||||
import org.springframework.batch.item.ItemReaderException;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.batch.item.support;
|
||||
package org.springframework.batch.sample.domain.multiline;
|
||||
|
||||
import org.springframework.batch.item.file.mapping.FieldSet;
|
||||
import org.springframework.batch.item.file.mapping.FieldSetMapper;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.batch.item.support;
|
||||
package org.springframework.batch.sample.domain.multiline;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -13,7 +13,7 @@
|
||||
<property name="streams" ref="fileItemReader"/>
|
||||
<property name="itemReader">
|
||||
<bean
|
||||
class="org.springframework.batch.item.support.AggregateItemReader">
|
||||
class="org.springframework.batch.sample.domain.multiline.AggregateItemReader">
|
||||
<property name="itemReader"
|
||||
ref="fileItemReader" />
|
||||
</bean>
|
||||
@@ -40,7 +40,7 @@
|
||||
<bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper">
|
||||
<property name="lineTokenizer" ref="fixedFileDescriptor" />
|
||||
<property name="fieldSetMapper">
|
||||
<bean class="org.springframework.batch.item.support.AggregateItemFieldSetMapper">
|
||||
<bean class="org.springframework.batch.sample.domain.multiline.AggregateItemFieldSetMapper">
|
||||
<property name="delegate" ref="tradeLineMapper" />
|
||||
</bean>
|
||||
</property>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.item.support;
|
||||
package org.springframework.batch.sample.domain.multiline;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
@@ -9,6 +9,7 @@ import org.junit.Test;
|
||||
import org.springframework.batch.item.file.mapping.DefaultFieldSet;
|
||||
import org.springframework.batch.item.file.mapping.FieldSet;
|
||||
import org.springframework.batch.item.file.mapping.FieldSetMapper;
|
||||
import org.springframework.batch.sample.domain.multiline.AggregateItemFieldSetMapper;
|
||||
|
||||
public class AggregateItemFieldSetMapperTests {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.batch.item.support;
|
||||
package org.springframework.batch.sample.domain.multiline;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
@@ -9,6 +9,8 @@ import java.util.Collection;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.springframework.batch.item.ItemReader;
|
||||
import org.springframework.batch.sample.domain.multiline.AggregateItem;
|
||||
import org.springframework.batch.sample.domain.multiline.AggregateItemReader;
|
||||
|
||||
public class AggregateItemReaderTests {
|
||||
|
||||
@@ -13,13 +13,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.batch.item.support;
|
||||
package org.springframework.batch.sample.domain.multiline;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.springframework.batch.sample.domain.multiline.AggregateItem;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
@@ -28,7 +29,7 @@ import org.junit.Test;
|
||||
public class AggregateItemTests {
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.batch.item.support.AggregateItem#getFooter()}.
|
||||
* Test method for {@link org.springframework.batch.sample.domain.multiline.AggregateItem#getFooter()}.
|
||||
*/
|
||||
@Test
|
||||
public void testGetFooter() {
|
||||
@@ -37,7 +38,7 @@ public class AggregateItemTests {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.batch.item.support.AggregateItem#getHeader()}.
|
||||
* Test method for {@link org.springframework.batch.sample.domain.multiline.AggregateItem#getHeader()}.
|
||||
*/
|
||||
@Test
|
||||
public void testGetHeader() {
|
||||
Reference in New Issue
Block a user