View | Details | Raw Unified | Return to bug 58485
Collapse All | Expand All

(-)src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java (-8 lines)
Lines 1435-1446 Link Here
1435
        assertNotNull(sheet.createComment());
1435
        assertNotNull(sheet.createComment());
1436
        wb.close();
1436
        wb.close();
1437
    }
1437
    }
1438
1439
    @Test
1440
    public void testNoMergedRegionsIsEmptyList() throws IOException {
1441
        XSSFWorkbook wb = new XSSFWorkbook();
1442
        XSSFSheet sheet = wb.createSheet();
1443
        assertTrue(sheet.getMergedRegions().isEmpty());
1444
        wb.close();
1445
    }
1446
}
1438
}
(-)src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java (-8 lines)
Lines 697-710 Link Here
697
        wb2.close();
697
        wb2.close();
698
        wb1.close();
698
        wb1.close();
699
    }
699
    }
700
701
    @Test
702
    public void testNoMergedRegionsIsEmptyList() throws IOException {
703
        HSSFWorkbook wb = new HSSFWorkbook();
704
        HSSFSheet s = wb.createSheet("Sheet1");
705
        assertTrue(s.getMergedRegions().isEmpty());
706
        wb.close();
707
    }
708
    
700
    
709
    @Test
701
    @Test
710
    public void autoSizeDate() throws IOException {
702
    public void autoSizeDate() throws IOException {
(-)src/testcases/org/apache/poi/ss/usermodel/BaseTestSheet.java (+8 lines)
Lines 1045-1048 Link Here
1045
        
1045
        
1046
        wb.close();
1046
        wb.close();
1047
    }
1047
    }
1048
    
1049
    @Test
1050
    public void testNoMergedRegionsIsEmptyList() throws IOException {
1051
        Workbook wb = _testDataProvider.createWorkbook();
1052
        Sheet sheet = wb.createSheet();
1053
        assertTrue(sheet.getMergedRegions().isEmpty());
1054
        wb.close();
1055
    }
1048
}
1056
}

Return to bug 58485