File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/test/java/org/javawebstack/orm/test Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 88import org .javawebstack .orm .exception .ORMConfigurationException ;
99import org .junit .jupiter .api .Test ;
1010
11+ import javax .swing .text .TabSet ;
1112import java .sql .Timestamp ;
1213import java .time .Instant ;
1314
15+ import static org .javawebstack .orm .test .shared .util .TimestampUtil .diffInNanoseconds ;
1416import static org .junit .jupiter .api .Assertions .*;
1517
1618public class TypesTest extends ORMTestCase {
@@ -58,10 +60,7 @@ public void testFields() throws ORMConfigurationException {
5860 assertEquals (model .exampleDouble , 123456789.1234567890D );
5961 assertEquals (model .exampleLong , 999999999999999999L );
6062 assertEquals (model .exampleLongPrimitive , 999999999999999999L );
61-
62- // TODO: Use
63- assertNotNull (model .timestampTest );
64-
63+ assertTrue (diffInNanoseconds (timestamp , model .timestampTest ) < 1 );
6564 model .exampleNull = "Text" ;
6665 model .save ();
6766 model = Repo .get (ExampleModel .class ).get (id );
You can’t perform that action at this time.
0 commit comments