File tree Expand file tree Collapse file tree 2 files changed +3
-45
lines changed
src/test/java/org/javawebstack/orm/test Expand file tree Collapse file tree 2 files changed +3
-45
lines changed Original file line number Diff line number Diff line change 1212import java .sql .Timestamp ;
1313import java .time .Instant ;
1414
15- import static org .javawebstack .orm .test .shared .util .TimestampUtil .diffInNanoseconds ;
1615import static org .junit .jupiter .api .Assertions .*;
1716
1817public class TypesTest extends ORMTestCase {
@@ -60,7 +59,9 @@ public void testFields() throws ORMConfigurationException {
6059 assertEquals (model .exampleDouble , 123456789.1234567890D );
6160 assertEquals (model .exampleLong , 999999999999999999L );
6261 assertEquals (model .exampleLongPrimitive , 999999999999999999L );
63- assertTrue (diffInNanoseconds (timestamp , model .timestampTest ) < 1 );
62+
63+ assertEquals (timestamp .getTime () / 1000 , model .timestampTest .getTime () / 1000 );
64+
6465 model .exampleNull = "Text" ;
6566 model .save ();
6667 model = Repo .get (ExampleModel .class ).get (id );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments