Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
jakarta-poi
jakarta-poi-2.5.1_escher-test.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jakarta-poi-2.5.1_escher-test.patch of Package jakarta-poi
--- src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java +++ src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java @@ -43,14 +43,14 @@ public void testGetFont() throws Exception { Font f = graphics.getFont(); - if (f.toString().indexOf("dialog") == -1) + if (f.toString().toLowerCase().indexOf("dialog") == -1) assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", f.toString()); } public void testGetFontMetrics() throws Exception { Font f = graphics.getFont(); - if (f.toString().indexOf("dialog") != -1) + if (f.toString().toLowerCase().indexOf("dialog") != -1) return; FontMetrics fontMetrics = graphics.getFontMetrics(graphics.getFont()); assertEquals(7, fontMetrics.charWidth('X')); --- src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java +++ src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics2d.java @@ -65,7 +65,7 @@ public void testGetFontMetrics() throws Exception { FontMetrics fontMetrics = graphics.getFontMetrics(graphics.getFont()); - if (graphics.getFont().toString().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly. + if (graphics.getFont().toString().toLowerCase().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly. return; assertEquals(7, fontMetrics.charWidth('X')); assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", fontMetrics.getFont().toString()); @@ -87,7 +87,7 @@ public void testGetFont() throws Exception { Font f = graphics.getFont(); - if (graphics.getFont().toString().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly. + if (graphics.getFont().toString().toLowerCase().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly. return; assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", f.toString());
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor