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
;
11 import static org
.junit
.Assert
.assertFalse
;
12 import static org
.junit
.Assert
.assertTrue
;
18 @Depends(platform
= Factory
.Platform
.Name
.mac
)
19 public class SystemConfigurationReachabilityTest
extends AbstractTestCase
{
22 public void testIsReachablePort80() throws Exception
{
23 final Reachability r
= new SystemConfigurationReachability();
24 assertTrue(r
.isReachable(
25 new Host("cyberduck.ch", 80)
30 public void testIsReachablePort22() throws Exception
{
31 final Reachability r
= new SystemConfigurationReachability();
32 assertTrue(r
.isReachable(
33 new Host("cyberduck.ch", 22)
38 public void testNotReachablePort22() throws Exception
{
39 final Reachability r
= new SystemConfigurationReachability();
40 assertFalse(r
.isReachable(
41 new Host("a.cyberduck.ch", 22)