org.apache.commons.io.output
Class FileWriterWithEncodingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.io.testtools.FileBasedTestCase
              extended by org.apache.commons.io.output.FileWriterWithEncodingTest
All Implemented Interfaces:
junit.framework.Test

public class FileWriterWithEncodingTest
extends FileBasedTestCase

Tests that the encoding is actually set and used.

Version:
$Revision: 609864 $ $Date: 2008-01-08 04:20:00 +0000 (Tue, 08 Jan 2008) $

Constructor Summary
FileWriterWithEncodingTest(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testConstructor_File_directory()
           
 void testConstructor_File_encoding_badEncoding()
           
 void testConstructor_File_nullFile()
           
 void testConstructor_fileName_nullFile()
           
 void testDifferentEncoding()
           
 void testSameEncoding()
           
 
Methods inherited from class org.apache.commons.io.testtools.FileBasedTestCase
assertEqualContent, assertEqualContent, checkFile, checkWrite, checkWrite, createFile, createLineBasedFile, deleteFile, generateTestData, generateTestData, getTestDirectory, newFile
 
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

FileWriterWithEncodingTest

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

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testSameEncoding

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

testDifferentEncoding

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

testConstructor_File_encoding_badEncoding

public void testConstructor_File_encoding_badEncoding()
                                               throws java.io.IOException
Throws:
java.io.IOException

testConstructor_File_directory

public void testConstructor_File_directory()
                                    throws java.io.IOException
Throws:
java.io.IOException

testConstructor_File_nullFile

public void testConstructor_File_nullFile()
                                   throws java.io.IOException
Throws:
java.io.IOException

testConstructor_fileName_nullFile

public void testConstructor_fileName_nullFile()
                                       throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.