| |
|
| org.apache.poi.hpsf.basic.TestMetaDataIPI
TestMetaDataIPI | public class TestMetaDataIPI extends TestCase (Code) | | Basing on: src/examples/src/org/apache/poi/hpsf/examples/ModifyDocumentSummaryInformation.java
This class tests reading and writing of meta data. No actual document is created. All information
is stored in a virtal document in a ByteArrayOutputStream
author: Matthias Günter since: 2006-03-03 version: $Id: TestEmptyProperties.java 353563 2004-06-22 16:16:33Z klute $ |
TestMetaDataIPI | public TestMetaDataIPI(String s)(Code) | | Standard constructor
Parameters: s - |
closeAndReOpen | public void closeAndReOpen()(Code) | | Closes the ByteArrayOutputStream and reads it into a ByteArrayInputStream.
When finished writing information this method is used in the tests to
start reading from the created document and then the see if the results match.
|
elongate | public String elongate(String s)(Code) | | multiplies a string
Parameters: s - Input String the multiplied String |
setUp | public void setUp()(Code) | | Setup is used to get the document ready. Gets the DocumentSummaryInformation and the
SummaryInformation to reasonable values
|
strangize | public String strangize(String s)(Code) | | adds strange characters to the string
Parameters: s - Input String the multiplied String |
strangizeU | public String strangizeU(String s)(Code) | | adds strange characters to the string with the adding of unicode characters
Parameters: s - Input String the multiplied String |
tearDown | public void tearDown()(Code) | | Setting a lot of things to null.
|
testConvAndExistance | public void testConvAndExistance()(Code) | | Tests conversion in custom fields and errors
|
testFour | public void testFour()(Code) | | Iterative testing: writing, reading etc.
|
testOne | public void testOne()(Code) | | Sets the most important information in DocumentSummaryInformation and Summary Information and rereads it
|
testSix | public void testSix()(Code) | | Iterative testing of the unicode test
|
testThree | public void testThree()(Code) | | Tests with strange characters in keys and data (Umlaute etc.)
|
testTwo | public void testTwo()(Code) | | Test very long input in each of the fields (approx 30-60KB each)
|
testUnicode | public void testUnicode()(Code) | | Unicode test
|
|
|
|