FileDocCategorySizeDatePackage
IsReachableTest.javaAPI DocApache Ant 1.702573Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.condition

IsReachableTest

public class IsReachableTest extends org.apache.tools.ant.BuildFileTest
test for reachable things

Fields Summary
Constructors Summary
public IsReachableTest(String name)

        super(name);
    
Methods Summary
public voidNotestFile()

        expectBuildExceptionContaining("testFile",
                "error on file URL",
                IsReachable.ERROR_NO_HOST_IN_URL);
    
public voidsetUp()

        configureProject(
                "src/etc/testcases/taskdefs/conditions/isreachable.xml");
    
public voidtestBadTimeout()

        expectBuildExceptionContaining("testBadTimeout",
                "error on -ve timeout",
                IsReachable.ERROR_BAD_TIMEOUT);
    
public voidtestBadURL()

        expectBuildExceptionContaining("testBadURL",
                "error in URL",
                IsReachable.ERROR_BAD_URL);
    
public voidtestBoth()

        expectBuildExceptionContaining("testBoth",
                "error on two targets",
                IsReachable.ERROR_BOTH_TARGETS);
    
public voidtestFTPURL()

        executeTarget("testFTPURL");
    
public voidtestIpv4localhost()

        executeTarget("testIpv4localhost");
    
public voidtestLocalhost()

        executeTarget("testLocalhost");
    
public voidtestLocalhostURL()

        executeTarget("testLocalhostURL");
    
public voidtestNoTargets()

        expectBuildExceptionContaining("testNoTargets",
                "no params",
                IsReachable.ERROR_NO_HOSTNAME);