[seam-commits] Seam SVN: r13461 - sandbox/modules/spreadsheet/src/test/java/org/jboss/seam/spreadsheet/jxl.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Jul 21 08:04:12 EDT 2010
Author: nickarls
Date: 2010-07-21 08:04:11 -0400 (Wed, 21 Jul 2010)
New Revision: 13461
Modified:
sandbox/modules/spreadsheet/src/test/java/org/jboss/seam/spreadsheet/jxl/CellFactoryTest.java
Log:
cell format cache test
Modified: sandbox/modules/spreadsheet/src/test/java/org/jboss/seam/spreadsheet/jxl/CellFactoryTest.java
===================================================================
--- sandbox/modules/spreadsheet/src/test/java/org/jboss/seam/spreadsheet/jxl/CellFactoryTest.java 2010-07-21 11:58:20 UTC (rev 13460)
+++ sandbox/modules/spreadsheet/src/test/java/org/jboss/seam/spreadsheet/jxl/CellFactoryTest.java 2010-07-21 12:04:11 UTC (rev 13461)
@@ -20,7 +20,7 @@
CellFormatResolver cellFormatResolver = new CellFormatResolver();
WritableCell jxlCell = cellFactory.createCell(getTestCell(), cellFormatResolver);
WritableCell jxlCell2 = cellFactory.createCell(getTestCell(), cellFormatResolver);
- Assert.assertEquals(jxlCell.getCellFormat(), jxlCell2.getCellFormat());
+ Assert.assertTrue(jxlCell.getCellFormat() == jxlCell2.getCellFormat());
}
@Test
@@ -31,10 +31,9 @@
WritableCell jxlCell = cellFactory.createCell(getTestCell(), cellFormatResolver);
Cell cell2 = getTestCell();
cell2.getCellFormat().setFont(getSampleFont());
- cell2.getCellFormat().getFont().setColour(Colour.RED);
+ cell2.getCellFormat().getFont().setColour(Colour.GREEN);
WritableCell jxlCell2 = cellFactory.createCell(cell2, cellFormatResolver);
- // Assert.assertEquals(jxlCell.getCellFormat(), jxlCell2.getCellFormat());
+ Assert.assertFalse(jxlCell.getCellFormat() == jxlCell2.getCellFormat());
}
-
}
More information about the seam-commits
mailing list