ASF Bugzilla – Attachment 7183 Details for
Bug 21325
[PATCH] Praveen's patches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
test case for FontTable class
TestFontTable.java (text/plain), 1.40 KB, created by
Praveen Mathew
on 2003-07-09 06:02:26 UTC
(
hide
)
Description:
test case for FontTable class
Filename:
MIME Type:
Creator:
Praveen Mathew
Created:
2003-07-09 06:02:26 UTC
Size:
1.40 KB
patch
obsolete
>package org.apache.poi.hwpf.model.hdftypes; > >import junit.framework.*; >import org.apache.poi.hwpf.*; >import org.apache.poi.hwpf.model.io.*; > >import java.io.*; >import java.util.*; > >public class TestFontTable > extends TestCase >{ > private FontTable _fontTable = null; > private HWPFDocFixture _hWPFDocFixture; > > public TestFontTable(String name) > { > super(name); > } > > public void testReadWrite() > throws Exception > { > FileInformationBlock fib = _hWPFDocFixture._fib; > byte[] tableStream = _hWPFDocFixture._tableStream; > > int fcSttbfffn = fib.getFcSttbfffn(); > int lcbSttbfffn = fib.getLcbSttbfffn(); > > _fontTable = new FontTable(tableStream, fcSttbfffn, lcbSttbfffn); > > HWPFFileSystem fileSys = new HWPFFileSystem(); > > _fontTable.writeTo(fileSys); > HWPFOutputStream tableOut = fileSys.getStream("1Table"); > > > byte[] newTableStream = tableOut.toByteArray(); > > > FontTable newFontTable = new FontTable(newTableStream, 0, newTableStream.length); > > assertTrue(_fontTable.equals(newFontTable)); > > } > > protected void setUp() > throws Exception > { > super.setUp(); > /**@todo verify the constructors*/ > _hWPFDocFixture = new HWPFDocFixture(this); > > _hWPFDocFixture.setUp(); > } > > protected void tearDown() > throws Exception > { > _hWPFDocFixture.tearDown(); > > _hWPFDocFixture = null; > super.tearDown(); > } > >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21325
:
7094
|
7095
| 7183 |
7184
|
7185
|
7241
|
7242
|
7375
|
7582
|
7661
|
7662
|
7966
|
7967
|
7968
|
7969