提交 8f803a37 authored 作者: Thomas Mueller's avatar Thomas Mueller

Tests.

上级 2deb0e7c
......@@ -82,7 +82,9 @@ public class ModelsTest extends TestBase {
for (int i = 0; i < original.size(); i++) {
SupportedTypes o = original.get(i);
SupportedTypes r = retrieved.get(i);
assertTrue(o.equivalentTo(r));
if (!o.equivalentTo(r)) {
assertTrue(o.equivalentTo(r));
}
}
}
......
......@@ -7,6 +7,7 @@
package org.h2.test.jaqu;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import java.util.Random;
import org.h2.jaqu.Table.JQColumn;
......@@ -100,11 +101,13 @@ public class SupportedTypes {
same &= myFloat.equals(s.myFloat);
same &= myDouble.equals(s.myDouble);
same &= myBigDecimal.equals(s.myBigDecimal);
same &= myUtilDate.getTime() == s.myUtilDate.getTime();
same &= mySqlTimestamp.getTime() == s.mySqlTimestamp.getTime();
Timestamp a = new Timestamp(myUtilDate.getTime());
same &= a.toString().equals(s.myUtilDate.toString());
same &= mySqlTimestamp.toString().equals(s.mySqlTimestamp.toString());
same &= mySqlDate.toString().equals(s.mySqlDate.toString());
same &= mySqlTime.toString().equals(s.mySqlTime.toString());
same &= myString.equals(s.myString);
same &= true;
return same;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论