1 2 17 18 19 20 package org.apache.poi.hdf.model; 21 22 23 import junit.framework.TestCase; 24 25 import java.io.FileInputStream ; 26 import java.io.IOException ; 27 28 29 34 public class TestHDFDocument 35 extends TestCase 36 { 37 38 public TestHDFDocument( String name ) 39 { 40 super( name ); 41 } 42 43 public void testStopJUnitComplainintAboutNoTests() 44 throws Exception 45 { 46 47 } 48 49 57 public void fixme_testEmpty() 58 throws IOException 59 { 60 61 String filename = System.getProperty( "HDF.testdata.path" ); 62 63 64 filename = filename + "/empty.doc"; 65 66 FileInputStream stream = new FileInputStream ( filename ); 67 68 HDFDocument empty = new HDFDocument( stream ); 69 70 stream.close(); 71 72 } 73 74 75 83 public void fixme_testSimple() 84 throws IOException 85 { 86 String filename = System.getProperty( "HDF.testdata.path" ); 87 filename = filename + "/simple.doc"; 88 FileInputStream stream = new FileInputStream ( filename ); 89 HDFDocument empty = new HDFDocument( stream ); 90 stream.close(); 91 } 92 93 101 public void fixme_testSimpleList() 102 throws IOException 103 { 104 String filename = System.getProperty( "HDF.testdata.path" ); 105 106 filename = filename + "/simple-list.doc"; 107 FileInputStream stream = new FileInputStream ( filename ); 108 HDFDocument empty = new HDFDocument( stream ); 109 stream.close(); 110 } 111 112 120 public void fixme_testSimpleTable() 121 throws IOException 122 { 123 String filename = System.getProperty( "HDF.testdata.path" ); 124 125 filename = filename + "/simple-table.doc"; 126 FileInputStream stream = new FileInputStream ( filename ); 127 HDFDocument empty = new HDFDocument( stream ); 128 stream.close(); 129 } 130 131 public static void main( String [] ignored_args ) 132 { 133 String path = System.getProperty( "HDF.testdata.path" ); 134 135 if ( path == null ) 137 { 138 System.setProperty( 139 "HDF.testdata.path", 140 "src/scratchpad/testcases/org/apache/poi/hdf/data" ); 141 } 142 System.out.println( "Testing org.apache.poi.hdf.model.HDFDocument" ); 143 144 junit.textui.TestRunner.run( TestHDFDocument.class ); 145 } 146 } 147 148 149 | Popular Tags |