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());
|
assertNotNull(sheet.createComment());
|
||||||
wb.close();
|
wb.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testNoMergedRegionsIsEmptyList() throws IOException {
|
|
||||||
XSSFWorkbook wb = new XSSFWorkbook();
|
|
||||||
XSSFSheet sheet = wb.createSheet();
|
|
||||||
assertTrue(sheet.getMergedRegions().isEmpty());
|
|
||||||
wb.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -698,14 +698,6 @@ public final class TestHSSFSheet extends BaseTestSheet {
|
||||||
wb1.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
|
@Test
|
||||||
public void autoSizeDate() throws IOException {
|
public void autoSizeDate() throws IOException {
|
||||||
HSSFWorkbook wb = new HSSFWorkbook();
|
HSSFWorkbook wb = new HSSFWorkbook();
|
||||||
|
|
|
@ -1045,4 +1045,12 @@ public abstract class BaseTestSheet {
|
||||||
|
|
||||||
wb.close();
|
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