@@ -0,0 +1,3047 @@
+package io.github.benas.easybatch.core.test;%0A%0Aimport io.github.benas.easybatch.core.filter.*;%0Aimport io.github.benas.easybatch.core.util.StringRecord;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Test class for common record filters.%0A *%0A * @author benas (md.benhassine@gmail.com)%0A */%0Apublic class RecordNumberEqualsToFilterTest %7B%0A%0A    private StartsWithStringRecordFilter startsWithStringRecordFilter;%0A    private EndsWithStringRecordFilter endsWithStringRecordFilter;%0A    private RecordNumberEqualsToRecordFilter recordNumberEqualsToRecordFilter;%0A    private RecordNumberGreaterThanRecordFilter recordNumberGreaterThanRecordFilter;%0A    private RecordNumberLowerThanRecordFilter recordNumberLowerThanRecordFilter;%0A    private RecordNumberInsideRangeRecordFilter recordNumberInsideRangeRecordFilter;%0A    private RecordNumberOutsideRangeRecordFilter recordNumberOutsideRangeRecordFilter;%0A%0A%0A    private StringRecord stringRecord;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        startsWithStringRecordFilter = new StartsWithStringRecordFilter(%22prefix%22);%0A        endsWithStringRecordFilter = new EndsWithStringRecordFilter(%22suffix%22);%0A        recordNumberEqualsToRecordFilter = new RecordNumberEqualsToRecordFilter(1);%0A        recordNumberGreaterThanRecordFilter = new RecordNumberGreaterThanRecordFilter(0);%0A        recordNumberLowerThanRecordFilter = new RecordNumberLowerThanRecordFilter(2);%0A        recordNumberInsideRangeRecordFilter = new RecordNumberInsideRangeRecordFilter(0, 2);%0A        recordNumberOutsideRangeRecordFilter = new RecordNumberOutsideRangeRecordFilter(0, 2);%0A        stringRecord = new StringRecord(1,%22prefix_content_suffix%22);%0A    %7D%0A%0A    @Test%0A    public void testRecordFiltering() %7B%0A        Assert.assertEquals(true, recordNumberEqualsToRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(true, recordNumberGreaterThanRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(true, recordNumberLowerThanRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(true, recordNumberInsideRangeRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(false, recordNumberOutsideRangeRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(true, startsWithStringRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(true, endsWithStringRecordFilter.filterRecord(stringRecord));%0A    %7D%0A%0A    @Test%0A    public void testNegateRecordFiltering() %7B%0A%0A        startsWithStringRecordFilter = new StartsWithStringRecordFilter(true, %22prefix%22);%0A        endsWithStringRecordFilter = new EndsWithStringRecordFilter(true, %22suffix%22);%0A        recordNumberEqualsToRecordFilter = new RecordNumberEqualsToRecordFilter(true, 1);%0A%0A        Assert.assertEquals(false, recordNumberEqualsToRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(false, startsWithStringRecordFilter.filterRecord(stringRecord));%0A        Assert.assertEquals(false, endsWithStringRecordFilter.filterRecord(stringRecord));%0A    %7D%0A%0A%7D%0A

add tests for record filters