Changeset 17523 in josm for trunk/test/unit/org
- Timestamp:
- 2021-02-22T12:27:24+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/io/UploadDialogTest.java
r17275 r17523 20 20 import org.junit.jupiter.api.extension.RegisterExtension; 21 21 import org.openstreetmap.josm.TestUtils; 22 import org.openstreetmap.josm.data.osm.DataSet; 22 23 import org.openstreetmap.josm.gui.io.UploadDialog.UploadAction; 23 24 import org.openstreetmap.josm.io.UploadStrategySpecification; … … 195 196 doTestValidateUploadTag("upload.source"); 196 197 } 198 199 @Test 200 void testGetCommentWithDataSetHashTag() { 201 assertEquals("", UploadDialog.getCommentWithDataSetHashTag(null, null)); 202 DataSet ds = new DataSet(); 203 assertEquals("foo", UploadDialog.getCommentWithDataSetHashTag("foo", ds)); 204 ds.getChangeSetTags().put("hashtags", "bar"); 205 assertEquals("foo #bar", UploadDialog.getCommentWithDataSetHashTag("foo", ds)); 206 ds.getChangeSetTags().put("hashtags", "bar;baz;#bar"); 207 assertEquals("foo #bar #baz", UploadDialog.getCommentWithDataSetHashTag("foo", ds)); 208 } 197 209 }
Note:
See TracChangeset
for help on using the changeset viewer.