Changeset 18344 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-12-20T17:33:27+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerTest.java
r18037 r18344 14 14 import javax.swing.JDialog; 15 15 16 import org.junit.jupiter.api.Test; 16 17 import org.openstreetmap.josm.TestUtils; 17 18 import org.openstreetmap.josm.data.osm.Changeset; … … 33 34 import mockit.Mock; 34 35 import mockit.MockUp; 35 import org.junit.jupiter.api.Test;36 36 37 37 /** … … 137 137 } 138 138 139 DownloadSelectedChangesetContentAction action = new DownloadSelectedChangesetContentAction( ChangesetCacheManager.buildModel());139 DownloadSelectedChangesetContentAction action = new DownloadSelectedChangesetContentAction(buildModel()); 140 140 action.valueChanged(null); 141 141 action.actionPerformed(new ActionEvent(new JDialog().getComponent(0), ActionEvent.ACTION_PERFORMED, "foo")); … … 153 153 } 154 154 155 DownloadSelectedChangesetsAction action = new DownloadSelectedChangesetsAction( ChangesetCacheManager.buildModel());155 DownloadSelectedChangesetsAction action = new DownloadSelectedChangesetsAction(buildModel()); 156 156 action.valueChanged(null); 157 157 action.actionPerformed(new ActionEvent(new JDialog().getComponent(0), ActionEvent.ACTION_PERFORMED, "foo")); … … 208 208 @Test 209 209 void testRemoveFromCacheAction() { 210 RemoveFromCacheAction action = new RemoveFromCacheAction( ChangesetCacheManager.buildModel());210 RemoveFromCacheAction action = new RemoveFromCacheAction(buildModel()); 211 211 action.valueChanged(null); 212 212 action.actionPerformed(null); … … 218 218 @Test 219 219 void testShowDetailAction() { 220 new ShowDetailAction(ChangesetCacheManager.buildModel()).actionPerformed(null); 220 new ShowDetailAction(buildModel()).actionPerformed(null); 221 } 222 223 private static ChangesetCacheManagerModel buildModel() { 224 ChangesetCacheManagerModel model = ChangesetCacheManager.buildModel(); 225 model.setChangesetCacheTableRowSorter(new ChangesetCacheTableRowSorter(model)); 226 return model; 221 227 } 222 228 }
Note:
See TracChangeset
for help on using the changeset viewer.