avik 2003/10/06 03:20:33
Modified: src/testcases/org/apache/poi/hssf/usermodel TestBugs.java
Log:
Testcase for bug 15353
Revision Changes Path
1.5 +19 -1
jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
Index: TestBugs.java
===================================================================
RCS file:
/home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TestBugs.java 23 Sep 2003 18:47:12 -0000 1.4
+++ TestBugs.java 6 Oct 2003 10:20:33 -0000 1.5
@@ -123,5 +123,23 @@
out.close();
}
-
+ /* test hyperlinks
+ * open resulting file in excel, and check that there is a link to Google
+ **/
+ public void test15353() throws Exception {
+ HSSFWorkbook wb = new HSSFWorkbook();
+ HSSFSheet sheet = wb.createSheet("My sheet");
+
+ HSSFRow row = sheet.createRow( (short) 0 );
+ HSSFCell cell = row.createCell( (short) 0 );
+ cell.setCellFormula("HYPERLINK(\"http://google.com\",\"Google\")");
+
+ // Write out the workbook
+ File f = File.createTempFile("test15353",".xls");
+ FileOutputStream fileOut = new FileOutputStream(f);
+ wb.write(fileOut);
+ fileOut.close();
+ }
+
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]