Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/data/notes
- Timestamp:
- 2020-10-28T20:41:00+01:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/notes
- Files:
-
- 2 edited
-
NoteCommentTest.java (modified) (3 diffs)
-
NoteTest.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/notes/NoteCommentTest.java
r10945 r17275 2 2 package org.openstreetmap.josm.data.notes; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertFalse;6 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 7 7 8 8 import java.util.Date; 9 9 10 import org.junit. Rule;11 import org.junit.Test; 10 import org.junit.jupiter.api.extension.RegisterExtension; 11 import org.junit.jupiter.api.Test; 12 12 import org.openstreetmap.josm.testutils.JOSMTestRules; 13 13 … … 17 17 * Unit tests for class {@link NoteComment}. 18 18 */ 19 publicclass NoteCommentTest {19 class NoteCommentTest { 20 20 21 21 /** 22 22 * Setup test. 23 23 */ 24 @R ule24 @RegisterExtension 25 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 26 26 public JOSMTestRules test = new JOSMTestRules(); … … 30 30 */ 31 31 @Test 32 publicvoid testNoteComment() {32 void testNoteComment() { 33 33 NoteComment comment = new NoteComment(new Date(), null, "foo", null, true); 34 34 assertEquals("foo", comment.toString()); -
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.
