Ignore:
Timestamp:
2021-03-16T21:56:57+01:00 (4 years ago)
Author:
simon04
Message:

fix #20563 - PluginListParser.parse amounts to 80% of allocations during startup

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java

    r17275 r17571  
    2222import java.util.concurrent.ExecutionException;
    2323import java.util.concurrent.Future;
     24import java.util.jar.Attributes;
    2425
    2526import javax.swing.JComponent;
     
    205206    private static PluginInformation newPluginInformation(String plugin) throws PluginListParseException {
    206207        return PluginListParser.createInfo(plugin+".jar", "https://josm.openstreetmap.de/osmsvn/applications/editors/josm/dist/"+plugin+".jar",
    207                 "");
     208                new Attributes());
    208209    }
    209210
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java

    r17275 r17571  
    154154    void testPluginInformationAction() throws PluginException {
    155155        TestUtils.assumeWorkingJMockit();
    156         final String expectedText = "Ant-Version: Apache Ant 1.9.6\n" +
    157             "Author: Don-vip\n" +
    158             "Created-By: 1.7.0_91-b02 (Oracle Corporation)\n" +
    159             "Manifest-Version: 1.0\n" +
    160             "Plugin-Canloadatruntime: true\n" +
    161             "Plugin-Class: org.openstreetmap.josm.plugins.fr.epci.EpciPlugin\n" +
    162             "Plugin-Date: 2015-11-19T08:21:07.645033Z\n" +
    163             "Plugin-Description: Handling of French EPCIs (boundary=local_authority)\n" +
    164             "Plugin-Early: true\n" +
    165             "Plugin-Link: http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/EPCI-fr\n" +
    166             "Plugin-Mainversion: 7001\n" +
    167             "Plugin-Version: 31772\n";
     156        final String expectedText = "Manifest-Version: 1.0\n" +
     157                "Ant-Version: Apache Ant 1.9.6\n" +
     158                "Created-By: 1.7.0_91-b02 (Oracle Corporation)\n" +
     159                "Plugin-Mainversion: 7001\n" +
     160                "Plugin-Version: 31772\n" +
     161                "Plugin-Class: org.openstreetmap.josm.plugins.fr.epci.EpciPlugin\n" +
     162                "Plugin-Description: Handling of French EPCIs (boundary=local_authority)\n" +
     163                "Plugin-Date: 2015-11-19T08:21:07.645033Z\n" +
     164                "Author: Don-vip\n" +
     165                "Plugin-Link: http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/EPCI-fr\n" +
     166                "Plugin-Early: true\n" +
     167                "Plugin-Canloadatruntime: true\n";
    168168        final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker() {
    169169            @Override
Note: See TracChangeset for help on using the changeset viewer.