Ignore:
Timestamp:
2016-08-18T07:21:04+02:00 (8 years ago)
Author:
simon04
Message:

JOSM/wikipedia: fix unit tests - #josm13372

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/WikidataTagCellRendererTest.java

    r32744 r32829  
    2727        final WikidataTagCellRenderer renderer = new WikidataTagCellRenderer();
    2828        renderer.renderValues(ids, new JTable(), new JLabel());
    29         Main.worker.submit(new Runnable() {
    30             @Override
    31             public void run() {
    32             }
    33         }).get(); // wait for labels to be fetched
     29        for (String id : ids) {
     30            // wait for labels to be fetched
     31            renderer.labelCache.get(id).get();
     32        }
    3433        final JLabel label = renderer.renderValues(ids, new JTable(), new JLabel());
    3534        assertNotNull(label);
Note: See TracChangeset for help on using the changeset viewer.