Return-Path: Delivered-To: apmail-jakarta-poi-dev-archive@www.apache.org Received: (qmail 16213 invoked from network); 31 May 2005 18:41:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2005 18:41:32 -0000 Received: (qmail 73991 invoked by uid 500); 31 May 2005 18:41:31 -0000 Delivered-To: apmail-jakarta-poi-dev-archive@jakarta.apache.org Received: (qmail 73955 invoked by uid 500); 31 May 2005 18:41:30 -0000 Mailing-List: contact poi-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Developers List" Reply-To: "POI Developers List" Delivered-To: mailing list poi-dev@jakarta.apache.org Received: (qmail 73941 invoked by uid 500); 31 May 2005 18:41:30 -0000 Received: (qmail 73937 invoked by uid 99); 31 May 2005 18:41:30 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 31 May 2005 11:41:29 -0700 Received: (qmail 16129 invoked by uid 1488); 31 May 2005 18:41:19 -0000 Date: 31 May 2005 18:41:19 -0000 Message-ID: <20050531184119.16128.qmail@minotaur.apache.org> From: avik@apache.org To: jakarta-poi-cvs@apache.org Subject: cvs commit: jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel TestUnfixedBugs.java X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N avik 2005/05/31 11:41:19 Modified: src/testcases/org/apache/poi/hssf/usermodel TestUnfixedBugs.java Log: new testcase Revision Changes Path 1.3 +18 -1 jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java Index: TestUnfixedBugs.java =================================================================== RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TestUnfixedBugs.java 3 May 2005 14:34:39 -0000 1.2 +++ TestUnfixedBugs.java 31 May 2005 18:41:19 -0000 1.3 @@ -58,5 +58,22 @@ HSSFWorkbook wb = new HSSFWorkbook(in); assertTrue("Read book fine!" , true); } - + + /* cell with formula becomes null on cloning a sheet*/ + public void test35084() { + + HSSFWorkbook wb = new HSSFWorkbook(); + HSSFSheet s =wb.createSheet("Sheet1"); + HSSFRow r = s.createRow(0); + r.createCell((short)0).setCellValue(1); + r.createCell((short)1).setCellFormula("A1*2"); + HSSFSheet s1 = wb.cloneSheet(0); + r=s1.getRow(0); + assertEquals("double" ,r.getCell((short)0).getNumericCellValue(),(double)1,0); //sanity check, pass + assertNotNull(r.getCell((short)1)); //Fails + assertEquals("formula", r.getCell((short)1).getCellFormula(), "A1*2"); //Fails + + + + } } --------------------------------------------------------------------- To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/