Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/data/notes/NoteTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/notes/NoteTest.java
r13079 r17275 2 2 package org.openstreetmap.josm.data.notes; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertNotEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertNotEquals; 6 6 7 7 import java.util.Date; 8 8 9 import org.junit. Rule;10 import org.junit. Test;9 import org.junit.jupiter.api.extension.RegisterExtension; 10 import org.junit.jupiter.api.Test; 11 11 import org.openstreetmap.josm.TestUtils; 12 12 import org.openstreetmap.josm.data.coor.LatLon; … … 20 20 * Unit tests for class {@link NoteComment}. 21 21 */ 22 publicclass NoteTest {22 class NoteTest { 23 23 24 24 /** 25 25 * Setup test. 26 26 */ 27 @R ule27 @RegisterExtension 28 28 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 29 29 public JOSMTestRules test = new JOSMTestRules(); … … 33 33 */ 34 34 @Test 35 publicvoid testToString() {35 void testToString() { 36 36 Note note = new Note(LatLon.ZERO); 37 37 assertEquals("Note 0: null", note.toString()); … … 44 44 */ 45 45 @Test 46 publicvoid testUpdateWith() {46 void testUpdateWith() { 47 47 Note n1 = new Note(LatLon.ZERO); 48 48 n1.setId(1); … … 58 58 */ 59 59 @Test 60 publicvoid testEqualsContract() {60 void testEqualsContract() { 61 61 TestUtils.assumeWorkingEqualsVerifier(); 62 62 EqualsVerifier.forClass(Note.class).usingGetClass()
Note:
See TracChangeset
for help on using the changeset viewer.