8342633: javax/management/security/HashedPasswordFileTest.java creates tmp file in src dir

Reviewed-by: dfuchs, amenkov
This commit is contained in:
Kevin Walls 2024-10-22 08:29:55 +00:00
parent bf92c49839
commit de441c2b68

View File

@ -110,9 +110,7 @@ public class HashedPasswordFileTest {
}
private String getPasswordFilePath() {
String testDir = System.getProperty("test.src");
String testFileName = "jmxremote.password";
return testDir + File.separator + testFileName;
return "jmxremote.password";
}
private File createNewPasswordFile() throws IOException {