Ignore:
Timestamp:
2018-01-08T02:45:59+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #15742 - check downloaded plugin is valid *before* we delete any existing one (patch by ris)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTaskTestParent.java

    r12558 r13300  
    4040
    4141    /**
     42     * Returns the {@code Content-Type} with which to serve the file referenced
     43     * by {@link #getRemoteFile()}
     44     * @return the {@code Content-Type} string for file {@link #getRemoteFile()}
     45     */
     46    protected String getRemoteContentType() {
     47        return "text/xml";
     48    }
     49
     50    /**
    4251     * Returns the http URL to remote test file to download.
    4352     * @return the http URL to remote test file to download
     
    5463                .willReturn(aResponse()
    5564                    .withStatus(200)
    56                     .withHeader("Content-Type", "text/xml")
     65                    .withHeader("Content-Type", getRemoteContentType())
    5766                    .withBodyFile(getRemoteFile())));
    5867    }
Note: See TracChangeset for help on using the changeset viewer.