org.apache.commons.jci
Class AbstractTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.jci.AbstractTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CompilingClassLoaderTestCase, ReloadingClassLoaderTestCase, ResourceReaderTestCase, ResourceStoreTestCase

public abstract class AbstractTestCase
extends junit.framework.TestCase

Author:
tcurdt

Field Summary
protected  File directory
           
 
Constructor Summary
AbstractTestCase()
           
 
Method Summary
protected  File createDirectory(String pName)
           
protected  File createTempDirectory()
           
protected  void delay()
           
protected  void setUp()
           
protected  void tearDown()
           
protected  File writeFile(String pName, byte[] pData)
           
protected  File writeFile(String pName, String pText)
           
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

directory

protected File directory
Constructor Detail

AbstractTestCase

public AbstractTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

createDirectory

protected File createDirectory(String pName)
                        throws Exception
Throws:
Exception

writeFile

protected File writeFile(String pName,
                         byte[] pData)
                  throws Exception
Throws:
Exception

writeFile

protected File writeFile(String pName,
                         String pText)
                  throws Exception
Throws:
Exception

delay

protected void delay()

createTempDirectory

protected File createTempDirectory()
                            throws IOException
Throws:
IOException

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception


Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.