Skip to content

Commit 0983321

Browse files
committed
fix Code Smell
1 parent 67b352d commit 0983321

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email

dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/test/java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtilsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ExcelUtilsTest {
4141
private String xlsFilePath;
4242

4343
@BeforeEach
44-
public void setUp() throws Exception {
44+
void setUp() {
4545
xlsFilePath = testFolder.toString();
4646
}
4747

@@ -84,7 +84,7 @@ public void testGenExcelFileByCheckDir() {
8484
Assertions.assertFalse(file.exists());
8585
}
8686
@Test
87-
public void testSetCellValueWithSplit_NoSplit() {
87+
void testSetCellValueWithSplit_NoSplit() {
8888
Row row;
8989
CellStyle cellStyle;
9090
try (SXSSFWorkbook wb = new SXSSFWorkbook()) {
@@ -103,7 +103,7 @@ public void testSetCellValueWithSplit_NoSplit() {
103103
}
104104

105105
@Test
106-
public void testSetCellValueWithSplit_Split() {
106+
void testSetCellValueWithSplit_Split() {
107107
Row row;
108108
CellStyle cellStyle;
109109
try (SXSSFWorkbook wb = new SXSSFWorkbook()) {
@@ -129,7 +129,7 @@ public void testSetCellValueWithSplit_Split() {
129129
}
130130

131131
@Test
132-
public void testSetCellValueWithSplit_Number() {
132+
void testSetCellValueWithSplit_Number() {
133133
Row row;
134134
CellStyle cellStyle;
135135
try (SXSSFWorkbook wb = new SXSSFWorkbook()) {

0 commit comments

Comments
 (0)