Changeset 17697 in josm for trunk/test


Ignore:
Timestamp:
2021-03-30T21:49:32+02:00 (4 years ago)
Author:
simon04
Message:

fix #19540 - Disable AppVeyor CI

File:
1 edited

Legend:

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

    r17275 r17697  
    1212import java.nio.charset.StandardCharsets;
    1313import java.security.GeneralSecurityException;
    14 import java.security.KeyStore.TrustedCertificateEntry;
    1514import java.util.stream.Collectors;
    1615
     
    1918import org.junit.jupiter.api.Test;
    2019import org.junit.jupiter.api.extension.RegisterExtension;
    21 import org.openstreetmap.josm.TestUtils;
    2220import org.openstreetmap.josm.spi.preferences.Config;
    2321import org.openstreetmap.josm.testutils.JOSMTestRules;
    24 import org.openstreetmap.josm.tools.PlatformHookWindows;
    25 import org.openstreetmap.josm.tools.PlatformManager;
    2622
    2723import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    28 import mockit.Mock;
    29 import mockit.MockUp;
    3024
    3125/**
     
    3529
    3630    private String httpBase;
    37 
    38     private static class PlatformHookWindowsMock extends MockUp<PlatformHookWindows> {
    39         @Mock
    40         public boolean setupHttpsCertificate(String entryAlias, TrustedCertificateEntry trustedCert) {
    41             return true;
    42         }
    43     }
    4431
    4532    /**
     
    5643    @BeforeEach
    5744    public void setUp() throws GeneralSecurityException {
    58         if (PlatformManager.isPlatformWindows() && "True".equals(System.getenv("APPVEYOR"))) {
    59             // appveyor doesn't like us tinkering with the root keystore, so mock this out
    60             TestUtils.assumeWorkingJMockit();
    61             new PlatformHookWindowsMock();
    62         }
    63 
    6445        RemoteControl.start();
    6546        httpBase = "http://127.0.0.1:"+Config.getPref().getInt("remote.control.port", 8111);
Note: See TracChangeset for help on using the changeset viewer.