X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=test%2Fjp%2Fco%2Fsourceforge%2Fdbutsuite%2Fdatareader%2FExcelDataReaderTest.groovy;h=65134ba6704512ff99054579017376be8e5c193c;hb=HEAD;hp=6f11c01b6d7f05eb5a8872d79f21f2aa3503d267;hpb=8acb79395d15f0cf234ab8b02c9fa54d55ff1ccc;p=dbutsuite%2Fdbutsuite.git diff --git a/test/jp/co/sourceforge/dbutsuite/datareader/ExcelDataReaderTest.groovy b/test/jp/co/sourceforge/dbutsuite/datareader/ExcelDataReaderTest.groovy index 6f11c01..65134ba 100644 --- a/test/jp/co/sourceforge/dbutsuite/datareader/ExcelDataReaderTest.groovy +++ b/test/jp/co/sourceforge/dbutsuite/datareader/ExcelDataReaderTest.groovy @@ -4,7 +4,7 @@ import org.junit.After import org.junit.Before import org.junit.Test import org.junit.Assert import java.text.SimpleDateFormat import jp.co.sourceforge.dbutsuite.model.DataType import junit.framework.Assert -import jp.co.sourceforge.dbutsuite.datawriter.DatabaseDataWriter import jp.co.sourceforge.dbutsuite.datawriter.H2DatabaseWriter public class ExcelDataReaderTest { +import jp.co.sourceforge.dbutsuite.datawriter.DatabaseDataWriter import jp.co.sourceforge.dbutsuite.datawriter.H2DatabaseWriter import jp.co.sourceforge.dbutsuite.datawriter.interceptor.NowDateInterceptor public class ExcelDataReaderTest { /** * @throws java.lang.Exception @@ -44,11 +44,12 @@ import jp.co.sourceforge.dbutsuite.datawriter.DatabaseDataWriter import jp.co.so Properties props = new Properties() props.put(DatabaseDataWriter.JDBC_DRIVER_CLASS, "org.h2.Driver") - props.put(DatabaseDataWriter.JDBC_URL, "jdbc:h2:tcp://localhost/C:\\cygwin\\home\\inaba\\h2_db/applicationpattern") + props.put(DatabaseDataWriter.JDBC_URL, "jdbc:h2:tcp://localhost/./testdb") props.put(DatabaseDataWriter.JDBC_USER, "sa") props.put(DatabaseDataWriter.JDBC_PASSWORD, "") def writer = new H2DatabaseWriter(props) + writer.interceptors << new NowDateInterceptor() dataobject.name = "TEMP" writer.writeExecute(dataobject) }