org.jcoderz.commons.connector.file
Class FsConnectionInterfaceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.connector.file.FsTestCase
              extended by org.jcoderz.commons.connector.file.FsConnectionInterfaceTest
All Implemented Interfaces:
Test

public class FsConnectionInterfaceTest
extends FsTestCase

Test the File interface.


Constructor Summary
FsConnectionInterfaceTest()
           
 
Method Summary
 void setUp()
          
 void tearDown()
          
 void testCreateFile()
          Tests methods creating new files.
 void testFileInputStreamBasePath()
          Tests the method FsConnection.getFileInputStream(String).
 void testIsExists()
          Tests the method FsConnection.isExists(String).
 void testList()
          Tests the method FsConnection.listFiles(String).
 void testMoveFile()
          Tests the method FsConnection.moveFile(String, String).
 void testRafBasePath()
          Tests the method FsConnection.getRandomAccessFile(String, String).
 void testRafConnectionClosed()
          Tests the behaviour of the instance RandomAccessFile after the connection has been closed.
 void testRenameFile()
          Tests the method FsConnection.renameFile(String, String).
 void testRenameToTempFile()
          Tests the method FsConnection.renameToTempFile(String).
 void testTempDir()
          The tmp dir used during filegeneration must be configurable.
 
Methods inherited from class org.jcoderz.commons.connector.file.FsTestCase
getConnection, getConnection, getConnectionManager
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsConnectionInterfaceTest

public FsConnectionInterfaceTest()
Method Detail

setUp

public void setUp()
           throws Exception

Overrides:
setUp in class TestCase
Throws:
Exception

testIsExists

public void testIsExists()
Tests the method FsConnection.isExists(String).


testRenameFile

public void testRenameFile()
Tests the method FsConnection.renameFile(String, String).


testList

public void testList()
Tests the method FsConnection.listFiles(String).


testRafBasePath

public void testRafBasePath()
Tests the method FsConnection.getRandomAccessFile(String, String).


testRafConnectionClosed

public void testRafConnectionClosed()
Tests the behaviour of the instance RandomAccessFile after the connection has been closed.


testCreateFile

public void testCreateFile()
Tests methods creating new files.


testRenameToTempFile

public void testRenameToTempFile()
Tests the method FsConnection.renameToTempFile(String).


testFileInputStreamBasePath

public void testFileInputStreamBasePath()
Tests the method FsConnection.getFileInputStream(String).


testMoveFile

public void testMoveFile()
Tests the method FsConnection.moveFile(String, String).


tearDown

public void tearDown()
              throws Exception

Overrides:
tearDown in class TestCase
Throws:
Exception

testTempDir

public void testTempDir()
The tmp dir used during filegeneration must be configurable. This method tests using of the right tmp dir.



Copyright 2007 The jCoderZ Project.