org.alfresco.repo.content.filestore
Class FileIOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.filestore.FileIOTest
All Implemented Interfaces:
junit.framework.Test

public class FileIOTest
extends junit.framework.TestCase

Some tests to check out the java.lang.nio functionality


Constructor Summary
FileIOTest(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void testConcurrentFileReads()
          Attempt to read the same file using multiple channels concurrently
 void testConcurrentReadWrite()
           
 void testCrcPerformance()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

FileIOTest

public FileIOTest(java.lang.String name)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testConcurrentFileReads

public void testConcurrentFileReads()
                             throws java.lang.Exception
Attempt to read the same file using multiple channels concurrently

Throws:
java.lang.Exception

testConcurrentReadWrite

public void testConcurrentReadWrite()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testCrcPerformance

public void testCrcPerformance()
                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.