package de.tblsoft.solr.pipeline.filter;

import de.tblsoft.solr.pipeline.test.AbstractFilterTest;

/**
 * Created by tblsoft on 26.04.16.
 */
public class DateFilterTest extends AbstractFilterTest {

    @Override
    public void configure() {
        putProperty("inputDateFormat", "yyyy.MM.dd");
        putProperty("outputDateFormat", "yyyy-MM-dd");
        putProperty("dateField", "date");
        setClazz(DateFilter.class);
    }

    @org.junit.Test
    public void testDateFilter() {
        configure();
        createField("date", "2016.04.26");
        runTest();
        assertFiled("date", "2016-04-26");

    }
}

@@ -614,16 +614,254 @@
 -26%22);%0A%0A
+    %7D%0A%0A    @org.junit.Test(expected=RuntimeException.class)%0A    public void testDateFilterException() %7B%0A        configure();%0A        createField(%22date%22, %22problem2016.04.26%22);%0A        runTest();%0A        assertFiled(%22date%22, %222016-04-26%22);%0A%0A
     %7D%0A%7D%0A

add test to test exception