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:
Javen O'Neal 2015-10-23 08:38:14 +00:00
parent 27d4814b80
commit 538b2d1377
3 changed files with 8 additions and 16 deletions

View File

@ -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();
}
}

View File

@ -698,14 +698,6 @@ public final class TestHSSFSheet extends BaseTestSheet {
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 {
HSSFWorkbook wb = new HSSFWorkbook();

View File

@ -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();
}
}