Skip to content

Commit

Permalink
Migrate from deprecated method to non-deprecated replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Oct 21, 2024
1 parent 3b2bd36 commit eab31c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/PluginManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public void verifyUploadedPluginPermission() throws Exception {
File dir = tmp.newFolder();
File plugin = new File(dir, "htmlpublisher.jpi");
FileUtils.copyURLToFile(Objects.requireNonNull(getClass().getClassLoader().getResource("plugins/htmlpublisher.jpi")), plugin);
f.getInputByName("name").setValueAttribute(plugin.getAbsolutePath());
f.getInputByName("name").setValue(plugin.getAbsolutePath());
r.submit(f);

File filesRef = Files.createTempFile("tmp", ".tmp").toFile();
Expand Down

0 comments on commit eab31c1

Please sign in to comment.