Updates to test to reflect change of API
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353397 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aec407bceb
commit
269a7434d0
@ -88,7 +88,7 @@ public class TestSSTDeserializer
|
|||||||
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "richtextdata.txt", "header" );
|
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "richtextdata.txt", "header" );
|
||||||
BinaryTree strings = new BinaryTree();
|
BinaryTree strings = new BinaryTree();
|
||||||
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
||||||
deserializer.manufactureStrings( bytes, 0, (short)bytes.length );
|
deserializer.manufactureStrings( bytes, 0);
|
||||||
byte[] continueBytes = HexRead.readData( _test_file_path + File.separator + "richtextdata.txt", "continue1" );
|
byte[] continueBytes = HexRead.readData( _test_file_path + File.separator + "richtextdata.txt", "continue1" );
|
||||||
deserializer.processContinueRecord( continueBytes );
|
deserializer.processContinueRecord( continueBytes );
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ public class TestSSTDeserializer
|
|||||||
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "evencontinuation.txt", "header" );
|
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "evencontinuation.txt", "header" );
|
||||||
BinaryTree strings = new BinaryTree();
|
BinaryTree strings = new BinaryTree();
|
||||||
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
||||||
deserializer.manufactureStrings( bytes, 0, (short)bytes.length );
|
deserializer.manufactureStrings( bytes, 0);
|
||||||
byte[] continueBytes = HexRead.readData( _test_file_path + File.separator + "evencontinuation.txt", "continue1" );
|
byte[] continueBytes = HexRead.readData( _test_file_path + File.separator + "evencontinuation.txt", "continue1" );
|
||||||
deserializer.processContinueRecord( continueBytes );
|
deserializer.processContinueRecord( continueBytes );
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ public class TestSSTDeserializer
|
|||||||
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "stringacross2continuations.txt", "header" );
|
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "stringacross2continuations.txt", "header" );
|
||||||
BinaryTree strings = new BinaryTree();
|
BinaryTree strings = new BinaryTree();
|
||||||
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
||||||
deserializer.manufactureStrings( bytes, 0, (short)bytes.length );
|
deserializer.manufactureStrings( bytes, 0);
|
||||||
bytes = HexRead.readData( _test_file_path + File.separator + "stringacross2continuations.txt", "continue1" );
|
bytes = HexRead.readData( _test_file_path + File.separator + "stringacross2continuations.txt", "continue1" );
|
||||||
deserializer.processContinueRecord( bytes );
|
deserializer.processContinueRecord( bytes );
|
||||||
bytes = HexRead.readData( _test_file_path + File.separator + "stringacross2continuations.txt", "continue2" );
|
bytes = HexRead.readData( _test_file_path + File.separator + "stringacross2continuations.txt", "continue2" );
|
||||||
@ -136,7 +136,7 @@ public class TestSSTDeserializer
|
|||||||
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "rich-header" );
|
byte[] bytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "rich-header" );
|
||||||
BinaryTree strings = new BinaryTree();
|
BinaryTree strings = new BinaryTree();
|
||||||
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
SSTDeserializer deserializer = new SSTDeserializer( strings );
|
||||||
deserializer.manufactureStrings( bytes, 0, (short)bytes.length );
|
deserializer.manufactureStrings( bytes, 0);
|
||||||
byte[] continueBytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "rich-continue1" );
|
byte[] continueBytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "rich-continue1" );
|
||||||
deserializer.processContinueRecord( continueBytes );
|
deserializer.processContinueRecord( continueBytes );
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ public class TestSSTDeserializer
|
|||||||
bytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "norich-header" );
|
bytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "norich-header" );
|
||||||
strings = new BinaryTree();
|
strings = new BinaryTree();
|
||||||
deserializer = new SSTDeserializer( strings );
|
deserializer = new SSTDeserializer( strings );
|
||||||
deserializer.manufactureStrings( bytes, 0, (short)bytes.length );
|
deserializer.manufactureStrings( bytes, 0);
|
||||||
continueBytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "norich-continue1" );
|
continueBytes = HexRead.readData( _test_file_path + File.separator + "extendedtextstrings.txt", "norich-continue1" );
|
||||||
deserializer.processContinueRecord( continueBytes );
|
deserializer.processContinueRecord( continueBytes );
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ public class TestSSTRecord
|
|||||||
assertEquals( 1464, record.getNumStrings() );
|
assertEquals( 1464, record.getNumStrings() );
|
||||||
assertEquals( 688, record.getNumUniqueStrings() );
|
assertEquals( 688, record.getNumUniqueStrings() );
|
||||||
assertEquals( 492, record.countStrings() );
|
assertEquals( 492, record.countStrings() );
|
||||||
assertEquals( 1, record.getDeserializer().getContinuationExpectedChars() );
|
//jmh assertEquals( 1, record.getDeserializer().getContinuationExpectedChars() );
|
||||||
assertEquals( "Consolidated B-24J Liberator The Dragon & His Tai",
|
assertEquals( "Consolidated B-24J Liberator The Dragon & His Tai",
|
||||||
record.getDeserializer().getUnfinishedString() );
|
record.getDeserializer().getUnfinishedString() );
|
||||||
// assertEquals( 52, record.getDeserializer().getTotalLength() );
|
// assertEquals( 52, record.getDeserializer().getTotalLength() );
|
||||||
@ -448,7 +448,7 @@ public class TestSSTRecord
|
|||||||
assertEquals( 0, record.getNumStrings() );
|
assertEquals( 0, record.getNumStrings() );
|
||||||
assertEquals( 0, record.getNumUniqueStrings() );
|
assertEquals( 0, record.getNumUniqueStrings() );
|
||||||
assertEquals( 0, record.countStrings() );
|
assertEquals( 0, record.countStrings() );
|
||||||
assertEquals( 0, record.getDeserializer().getContinuationExpectedChars() );
|
assertEquals( 0, record.getDeserializer().getContinuationCharsRead() );
|
||||||
assertEquals( "", record.getDeserializer().getUnfinishedString() );
|
assertEquals( "", record.getDeserializer().getUnfinishedString() );
|
||||||
// assertEquals( 0, record.getDeserializer().getTotalLength() );
|
// assertEquals( 0, record.getDeserializer().getTotalLength() );
|
||||||
// assertEquals( 0, record.getDeserializer().getStringDataOffset() );
|
// assertEquals( 0, record.getDeserializer().getStringDataOffset() );
|
||||||
|
Loading…
Reference in New Issue
Block a user