mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add toLocation method
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package cn.hutool.poi.excel.test;
|
||||
|
||||
import cn.hutool.poi.excel.ExcelUtil;
|
||||
import cn.hutool.poi.excel.cell.CellLocation;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import cn.hutool.poi.excel.ExcelUtil;
|
||||
|
||||
public class ExcelUtilTest {
|
||||
|
||||
@Test
|
||||
@@ -36,4 +36,11 @@ public class ExcelUtilTest {
|
||||
Assert.assertEquals(1, ExcelUtil.colNameToIndex("B"));
|
||||
Assert.assertEquals(0, ExcelUtil.colNameToIndex("A"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toLocationTest(){
|
||||
final CellLocation a11 = ExcelUtil.toLocation("A11");
|
||||
Assert.assertEquals(0, a11.getX());
|
||||
Assert.assertEquals(10, a11.getY());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user