Ignore:
Timestamp:
2021-04-07T22:34:03+02:00 (4 years ago)
Author:
simon04
Message:

see #14176 - Migrate Note/NoteComment to Instant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/notes/NoteTest.java

    r17275 r17712  
    55import static org.junit.jupiter.api.Assertions.assertNotEquals;
    66
    7 import java.util.Date;
     7import java.time.Instant;
    88
    99import org.junit.jupiter.api.extension.RegisterExtension;
     
    3636        Note note = new Note(LatLon.ZERO);
    3737        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));
    3939        assertEquals("Note 0: foo", note.toString());
    4040    }
     
    6565            .withPrefabValues(LatLon.class, LatLon.ZERO, new LatLon(1, 1))
    6666            .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))
    6969            .verify();
    7070    }
Note: See TracChangeset for help on using the changeset viewer.