|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.io.testtools.FileBasedTestCase
org.apache.commons.io.output.FileWriterWithEncodingTest
public class FileWriterWithEncodingTest
Tests that the encoding is actually set and used.
| 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 |
|---|
public FileWriterWithEncodingTest(java.lang.String name)
| Method Detail |
|---|
public void setUp()
setUp in class junit.framework.TestCasepublic void tearDown()
tearDown in class junit.framework.TestCase
public void testSameEncoding()
throws java.lang.Exception
java.lang.Exception
public void testDifferentEncoding()
throws java.lang.Exception
java.lang.Exception
public void testConstructor_File_encoding_badEncoding()
throws java.io.IOException
java.io.IOException
public void testConstructor_File_directory()
throws java.io.IOException
java.io.IOException
public void testConstructor_File_nullFile()
throws java.io.IOException
java.io.IOException
public void testConstructor_fileName_nullFile()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||