mirror of https://github.com/apache/poi.git
bug 33174: Use common unit test for testNoMergedRegionsIsEmptyList
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1710140 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cdb8a02931
commit
0b0e30c06c
|
@ -1435,12 +1435,4 @@ public final class TestXSSFSheet extends BaseTestSheet {
|
|||
assertNotNull(sheet.createComment());
|
||||
wb.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoMergedRegionsIsEmptyList() throws IOException {
|
||||
XSSFWorkbook wb = new XSSFWorkbook();
|
||||
XSSFSheet sheet = wb.createSheet();
|
||||
assertTrue(sheet.getMergedRegions().isEmpty());
|
||||
wb.close();
|
||||
}
|
||||
}
|
|
@ -697,14 +697,6 @@ public final class TestHSSFSheet extends BaseTestSheet {
|
|||
wb2.close();
|
||||
wb1.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoMergedRegionsIsEmptyList() throws IOException {
|
||||
HSSFWorkbook wb = new HSSFWorkbook();
|
||||
HSSFSheet s = wb.createSheet("Sheet1");
|
||||
assertTrue(s.getMergedRegions().isEmpty());
|
||||
wb.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void autoSizeDate() throws IOException {
|
||||
|
|
|
@ -1045,4 +1045,12 @@ public abstract class BaseTestSheet {
|
|||
|
||||
wb.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNoMergedRegionsIsEmptyList() throws IOException {
|
||||
Workbook wb = _testDataProvider.createWorkbook();
|
||||
Sheet sheet = wb.createSheet();
|
||||
assertTrue(sheet.getMergedRegions().isEmpty());
|
||||
wb.close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue