Changeset 10339 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-06-08T09:22:56+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.java
r10222 r10339 46 46 JOSMFixture.createUnitTestFixture().init(); 47 47 RemoteControl.PROP_REMOTECONTROL_HTTPS_ENABLED.put(true); 48 deleteKeystore(); 49 50 RemoteControl.start(); 51 disableCertificateValidation(); 52 httpBase = "http://127.0.0.1:"+Main.pref.getInteger("remote.control.port", 8111); 53 httpsBase = "https://127.0.0.1:"+Main.pref.getInteger("remote.control.https.port", 8112); 54 } 55 56 /** 57 * Deletes JOSM keystore, if it exists. 58 */ 59 public static void deleteKeystore() { 48 60 try { 49 61 Files.deleteIfExists(Paths.get( … … 52 64 Main.error(e); 53 65 } 54 55 RemoteControl.start();56 disableCertificateValidation();57 httpBase = "http://127.0.0.1:"+Main.pref.getInteger("remote.control.port", 8111);58 httpsBase = "https://127.0.0.1:"+Main.pref.getInteger("remote.control.https.port", 8112);59 66 } 60 67 -
trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookOsxTest.java
r10337 r10339 63 63 @Test 64 64 public void testOpenUrl() throws IOException { 65 if ( Main.isPlatformOsx()) {65 if (!Main.isPlatformWindows()) { 66 66 hook.openUrl(Main.getJOSMWebsite()); 67 67 } else { -
trunk/test/unit/org/openstreetmap/josm/tools/PlatformHookWindowsTest.java
r10337 r10339 21 21 import org.openstreetmap.josm.Main; 22 22 import org.openstreetmap.josm.io.remotecontrol.RemoteControlHttpsServer; 23 import org.openstreetmap.josm.io.remotecontrol.RemoteControlTest; 23 24 24 25 /** … … 88 89 @Test 89 90 public void testSetupHttpsCertificate() throws Exception { 91 RemoteControlTest.deleteKeystore(); 90 92 KeyStore ks = RemoteControlHttpsServer.loadJosmKeystore(); 91 93 TrustedCertificateEntry trustedCert = new KeyStore.TrustedCertificateEntry(ks.getCertificate(ks.aliases().nextElement()));
Note:
See TracChangeset
for help on using the changeset viewer.