diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java index de4a48a428f..dd46b3e2230 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java @@ -29,7 +29,6 @@ import org.apache.hertzbeat.alert.service.impl.AlertDefineExcelImExportServiceImpl; import org.apache.hertzbeat.common.entity.manager.TagItem; import org.apache.hertzbeat.common.util.export.ExcelExportUtils; -import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; @@ -57,14 +56,6 @@ public class AlertDefineExcelImExportServiceTest { public void setUp() throws IOException { Workbook initialWorkbook = WorkbookFactory.create(true); -// Sheet initialSheet = initialWorkbook.createSheet(); -// Row headerRow = initialSheet.createRow(0); -// String[] headers = {"app", "metric", "field", "preset", "expr", "priority", "times", "tags", "enable", "recoverNotice", "template"}; -// for (int i = 0; i < headers.length; i++) { -// Cell cell = headerRow.createCell(i); -// cell.setCellValue(headers[i]); -// } - Sheet initialSheet = ExcelExportUtils.setSheet("Test sheet", initialWorkbook, AlertDefineDTO.class); Row row = initialSheet.createRow(1);