1 16 17 22 23 package org.apache.poi.hssf.record.aggregates; 24 import org.apache.poi.hssf.record.FormulaRecord; 25 import org.apache.poi.hssf.record.StringRecord; 26 27 31 public class TestFormulaRecordAggregate extends junit.framework.TestCase { 32 33 34 public TestFormulaRecordAggregate(String arg) { 35 super(arg); 36 } 37 38 public void testClone() { 39 FormulaRecord f = new FormulaRecord(); 40 StringRecord s = new StringRecord(); 41 FormulaRecordAggregate fagg = new FormulaRecordAggregate(f,s); 42 FormulaRecordAggregate newFagg = (FormulaRecordAggregate) fagg.clone(); 43 assertTrue("objects are different", fagg!=newFagg); 44 assertTrue("deep clone", fagg.getFormulaRecord() != newFagg.getFormulaRecord()); 45 assertTrue("deep clone", fagg.getStringRecord() != newFagg.getStringRecord()); 46 47 48 } 49 50 } 51 | Popular Tags |