package org.embulk.parser.joni;

public class TestJoniParserPlugin
{
}

@@ -30,42 +30,1360 @@
 i;%0A%0A
-public class TestJoniParserPlugin%0A%7B
+import com.google.common.collect.ImmutableList;%0Aimport com.google.common.collect.ImmutableMap;%0Aimport org.embulk.EmbulkTestRuntime;%0Aimport org.embulk.config.ConfigSource;%0Aimport org.embulk.spi.Exec;%0Aimport org.embulk.spi.util.Newline;%0Aimport org.joda.time.DateTimeZone;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport java.nio.charset.Charset;%0A%0Aimport static junit.framework.TestCase.assertEquals;%0A%0Apublic class TestJoniParserPlugin%0A%7B%0A    @Rule%0A    public EmbulkTestRuntime runtime = new EmbulkTestRuntime();%0A%0A    @Test%0A    public void checkDefaultValues() %7B%0A        ConfigSource config = Exec.newConfigSource()%0A                .set(%22columns%22, ImmutableList.of(%0A                        ImmutableMap.of(%0A                                %22name%22, %22name%22,%0A                                %22type%22, %22string%22)))%0A                .set(%22format%22, %22(?%3Cname%3Ea*)%22);%0A%0A        JoniParserPlugin.PluginTask task = config.loadConfig(JoniParserPlugin.PluginTask.class);%0A%0A        assertEquals(Charset.forName(%22utf-8%22), task.getCharset());%0A        assertEquals(Newline.CRLF, task.getNewline());%0A        assertEquals(DateTimeZone.UTC, task.getDefaultTimeZone());%0A        assertEquals(%22%25Y-%25m-%25d %25H:%25M:%25S.%25N %25z%22, task.getDefaultTimestampFormat());%0A        assertEquals( false, task.getStopOnInvalidRecord());%0A        //assertEquals( true, task.getDefaultTypecast());%0A%0A    %7D%0A
 %0A%7D%0A

Add default value test for TestJoniParserPlugin