Reformat code somewhat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1795962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7881d05743
commit
8564aa7bb6
@ -287,7 +287,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
* NameXPtgs.
|
||||
* Blows up on:
|
||||
* IF(B6= (ROUNDUP(B6,0) + ROUNDDOWN(B6,0))/2, MROUND(B6,2),ROUND(B6,0))
|
||||
*
|
||||
* <p>
|
||||
* TODO: delete this test case when MROUND and VAR are implemented
|
||||
*/
|
||||
@Test
|
||||
@ -406,7 +406,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
* output as an .xlsx file) that have two issues:
|
||||
* 1. The Content Type part name is lower-case: [content_types].xml
|
||||
* 2. The file appears to use backslashes as path separators
|
||||
*
|
||||
* <p>
|
||||
* The OPC spec tolerates both of these peculiarities, so does POI
|
||||
*/
|
||||
@Test
|
||||
@ -2226,13 +2226,11 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
}
|
||||
}
|
||||
|
||||
private static void removeAllSheetsBut(int sheetIndex, Workbook wb)
|
||||
{
|
||||
private static void removeAllSheetsBut(int sheetIndex, Workbook wb) {
|
||||
int sheetNb = wb.getNumberOfSheets();
|
||||
// Move this sheet at the first position
|
||||
wb.setSheetOrder(wb.getSheetName(sheetIndex), 0);
|
||||
for (int sn = sheetNb - 1; sn > 0; sn--)
|
||||
{
|
||||
for (int sn = sheetNb - 1; sn > 0; sn--) {
|
||||
wb.removeSheetAt(sn);
|
||||
}
|
||||
}
|
||||
@ -2255,7 +2253,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
|
||||
/**
|
||||
* Expected:
|
||||
|
||||
* <p>
|
||||
* [ 0][ 2][ 4]
|
||||
*/
|
||||
@Test
|
||||
@ -2283,7 +2281,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
|
||||
/**
|
||||
* Expected:
|
||||
|
||||
* <p>
|
||||
* [ 0] <- number
|
||||
* [ 2] <- formula
|
||||
* [ 4] <- formula
|
||||
@ -2608,8 +2606,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
if (null == expectedResultOrNull) {
|
||||
assertEquals(CellType.ERROR, intF.getCachedFormulaResultTypeEnum());
|
||||
expectedResultOrNull = "#VALUE!";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
assertEquals(CellType.NUMERIC, intF.getCachedFormulaResultTypeEnum());
|
||||
}
|
||||
|
||||
@ -2778,13 +2775,11 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
|
||||
Set<String> sheetNames = new HashSet<String>();
|
||||
|
||||
for (int sheetNum = 0; sheetNum < wb.getNumberOfSheets(); sheetNum++)
|
||||
{
|
||||
for (int sheetNum = 0; sheetNum < wb.getNumberOfSheets(); sheetNum++) {
|
||||
sheetNames.add(wb.getSheetName(sheetNum));
|
||||
}
|
||||
|
||||
for (String sheetName : sheetNames)
|
||||
{
|
||||
for (String sheetName : sheetNames) {
|
||||
int sheetIndex = wb.getSheetIndex(sheetName);
|
||||
|
||||
wb.removeSheetAt(sheetIndex);
|
||||
@ -2890,8 +2885,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
wb.close();
|
||||
}
|
||||
|
||||
private void createXls() throws IOException
|
||||
{
|
||||
private void createXls() throws IOException {
|
||||
Workbook workbook = new HSSFWorkbook();
|
||||
FileOutputStream fileOut = new FileOutputStream("/tmp/rotated.xls");
|
||||
Sheet sheet1 = workbook.createSheet();
|
||||
|
Loading…
Reference in New Issue
Block a user