Changeset 17712 in josm for trunk/test/unit/org/openstreetmap/josm/data/notes/NoteTest.java
- Timestamp:
- 2021-04-07T22:34:03+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/notes/NoteTest.java
r17275 r17712 5 5 import static org.junit.jupiter.api.Assertions.assertNotEquals; 6 6 7 import java. util.Date;7 import java.time.Instant; 8 8 9 9 import org.junit.jupiter.api.extension.RegisterExtension; … … 36 36 Note note = new Note(LatLon.ZERO); 37 37 assertEquals("Note 0: null", note.toString()); 38 note.addComment(new NoteComment( new Date(), null, "foo", null, true));38 note.addComment(new NoteComment(Instant.now(), null, "foo", null, true)); 39 39 assertEquals("Note 0: foo", note.toString()); 40 40 } … … 65 65 .withPrefabValues(LatLon.class, LatLon.ZERO, new LatLon(1, 1)) 66 66 .withPrefabValues(NoteComment.class, 67 new NoteComment( new Date(), null, "foo", null, true),68 new NoteComment( new Date(), null, "bar", null, false))67 new NoteComment(Instant.now(), null, "foo", null, true), 68 new NoteComment(Instant.now(), null, "bar", null, false)) 69 69 .verify(); 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.