org.apache.commons.net.tftp
Class TFTPServerPathTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.net.tftp.TFTPServerPathTest
All Implemented Interfaces:
junit.framework.Test

public class TFTPServerPathTest
extends junit.framework.TestCase

Some basic tests to ensure that the TFTP Server is honoring its read/write mode, and preventing files from being read or written from outside of the assigned roots.

Author:
Dan Armbrust

Constructor Summary
TFTPServerPathTest()
           
 
Method Summary
 void testReadOnly()
           
 void testWriteOnly()
           
 void testWriteOutsideHome()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TFTPServerPathTest

public TFTPServerPathTest()
Method Detail

testReadOnly

public void testReadOnly()
                  throws IOException
Throws:
IOException

testWriteOnly

public void testWriteOnly()
                   throws IOException
Throws:
IOException

testWriteOutsideHome

public void testWriteOutsideHome()
                          throws IOException
Throws:
IOException


Copyright © 1997-2010 Apache Software Foundation. All Rights Reserved.