Changeset 7337 in josm for trunk/test


Ignore:
Timestamp:
2014-07-26T16:36:43+02:00 (5 years ago)
Author:
Don-vip
Message:

see #10230, see #10033 - SAN tweaks + fix unit test (for real?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java

    r7336 r7337  
    1313import java.net.URL;
    1414import java.nio.charset.StandardCharsets;
     15import java.nio.file.Files;
     16import java.nio.file.Paths;
    1517import java.security.GeneralSecurityException;
    1618import java.security.SecureRandom;
     
    4547        JOSMFixture.createUnitTestFixture().init();
    4648        RemoteControl.PROP_REMOTECONTROL_HTTPS_ENABLED.put(true);
     49        try {
     50            Files.deleteIfExists(Paths.get(
     51                    RemoteControl.getRemoteControlDir()).resolve(RemoteControlHttpsServer.KEYSTORE_FILENAME));
     52        } catch (IOException e) {
     53            Main.error(e);
     54        }
     55
    4756        RemoteControl.start();
    4857        disableCertificateValidation();
Note: See TracChangeset for help on using the changeset viewer.