| |
|
| org.apache.poi.hpsf.basic.TestWrite
TestWrite | public class TestWrite extends TestCase (Code) | | Tests HPSF's writing functionality.
author: Rainer Klute (klute@rainer-klute.de) since: 2003-02-07 version: $Id: TestWrite.java 489730 2006-12-22 19:18:16Z bayard $ |
BYTE_ORDER | final static int BYTE_ORDER(Code) | | |
FORMAT | final static int FORMAT(Code) | | |
IMPROPER_DEFAULT_CHARSET_MESSAGE | final String IMPROPER_DEFAULT_CHARSET_MESSAGE(Code) | | |
IS_DOCUMENT_SUMMARY_INFORMATION | final static boolean[] IS_DOCUMENT_SUMMARY_INFORMATION(Code) | | |
IS_SUMMARY_INFORMATION | final static boolean[] IS_SUMMARY_INFORMATION(Code) | | |
OS_VERSION | final static int OS_VERSION(Code) | | |
SECTION_COUNT | final static int[] SECTION_COUNT(Code) | | |
TestWrite | public TestWrite(String name)(Code) | | Constructor
Parameters: name - the test case's name |
main | public static void main(String[] args) throws Throwable(Code) | | Runs the test cases stand-alone.
Parameters: args - The command-line parameters. throws: Throwable - if anything goes wrong. |
setUp | public void setUp()(Code) | | See Also: TestCase.setUp |
testCodepages | public void testCodepages()(Code) | | Writes and reads back strings using several different codepages and
checks whether the stuff that has been read back equals the stuff that
was written.
|
testDictionary | public void testDictionary()(Code) | | Tests writing and reading back a proper dictionary.
|
testDictionaryWithInvalidCodepage | public void testDictionaryWithInvalidCodepage()(Code) | | Tests writing and reading back a proper dictionary with an invalid
codepage. (HPSF writes Unicode dictionaries only.)
|
testNoFormatID | public void testNoFormatID() throws IOException(Code) | | Writes an empty property set to a POIFS and reads it back
in.
exception: IOException - if an I/O exception occurs |
testRecreate | public void testRecreate()(Code) | | This test method does a write and read back test with all POI
filesystems in the "data" directory by performing the following
actions for each file:
Read its property set streams.
Create a new POI filesystem containing the origin file's
property set streams.
Read the property set streams from the POI filesystem just
created.
Compare each property set stream with the corresponding one from
the origin file and check whether they are equal.
|
testUnicodeWrite8Bit | public void testUnicodeWrite8Bit()(Code) | | Tests whether writing 8-bit characters to a Unicode property
succeeds.
|
testVariantTypes | public void testVariantTypes()(Code) | | Writes and reads back various variant types and checks whether the
stuff that has been read back equals the stuff that was written.
|
|
|
|