Fix transcript in transfer window.
[cyberduck.git] / test / ch / cyberduck / core / diagnostics / SystemConfigurationReachabilityTest.java
blobc22f890fe740c7232eeeadfb702b5bb50d111ebd
1 package ch.cyberduck.core.diagnostics;
3 import ch.cyberduck.core.AbstractTestCase;
4 import ch.cyberduck.core.Factory;
5 import ch.cyberduck.core.Host;
6 import ch.cyberduck.core.test.Depends;
8 import org.junit.Ignore;
9 import org.junit.Test;
11 import static org.junit.Assert.assertFalse;
12 import static org.junit.Assert.assertTrue;
14 /**
15 * @version $Id$
17 @Ignore
18 @Depends(platform = Factory.Platform.Name.mac)
19 public class SystemConfigurationReachabilityTest extends AbstractTestCase {
21 @Test
22 public void testIsReachablePort80() throws Exception {
23 final Reachability r = new SystemConfigurationReachability();
24 assertTrue(r.isReachable(
25 new Host("cyberduck.ch", 80)
26 ));
29 @Test
30 public void testIsReachablePort22() throws Exception {
31 final Reachability r = new SystemConfigurationReachability();
32 assertTrue(r.isReachable(
33 new Host("cyberduck.ch", 22)
34 ));
37 @Test
38 public void testNotReachablePort22() throws Exception {
39 final Reachability r = new SystemConfigurationReachability();
40 assertFalse(r.isReachable(
41 new Host("a.cyberduck.ch", 22)
42 ));