com.enterprisedt.net.ftp.test
Class TestTimeout

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.enterprisedt.net.ftp.test.FTPTestCase
                    |
                    +--com.enterprisedt.net.ftp.test.TestTimeout
All Implemented Interfaces:
junit.framework.Test

public class TestTimeout
extends FTPTestCase

Test timeout functionality. On a local network there is virtually no blocking, so ordinarily timeouts will not occur on network reads. We do this test in isolation and pull out a network cable to test the timeout

Version:
$Revision: 1.2 $
Author:
Bruce Blackshaw

Field Summary
 
Fields inherited from class com.enterprisedt.net.ftp.test.FTPTestCase
connectMode, ftp, host, localBinaryFile, localEmptyFile, localTextFile, log, password, remoteBinaryFile, remoteEmptyDir, remoteEmptyFile, remoteTextFile, testdir, timeout, user
 
Constructor Summary
TestTimeout()
           
 
Method Summary
protected  java.lang.String getLogName()
          Get name of log file
static void main(java.lang.String[] args)
          Enable our class to be run, doing the tests
static junit.framework.Test suite()
          Automatic test suite construction
 void testTimeout()
          Test some general methods
 
Methods inherited from class com.enterprisedt.net.ftp.test.FTPTestCase
assertIdentical, assertIdentical, assertIdentical, connect, generateRandomFilename, login, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestTimeout

public TestTimeout()
Method Detail

getLogName

protected java.lang.String getLogName()
Get name of log file

Specified by:
getLogName in class FTPTestCase
Returns:
name of file to log to

testTimeout

public void testTimeout()
                 throws java.lang.Exception
Test some general methods

java.lang.Exception

suite

public static junit.framework.Test suite()
Automatic test suite construction

Returns:
suite of tests for this class

main

public static void main(java.lang.String[] args)
Enable our class to be run, doing the tests



Copyright (c) 2001-2003 Enterprise Distributed Technologies Ltd. All Rights Reserved.