Skip to content

Commit eb4de76

Browse files
committed
fix ExcelUtilsTest return
1 parent 92aa3fa commit eb4de76

1 file changed

Lines changed: 1 addition & 1 deletion

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void testGenExcelFile() {
6666
Assertions.assertTrue(xlsFile.exists());
6767

6868
// Invoke genExcelFile with incorrectContent, will cause RuntimeException
69-
Assertions.assertThrows(AlertEmailException.class, () -> {
69+
Assertions.assertThrows(IllegalArgumentException.class, () -> {
7070
ExcelUtils.genExcelFile(incorrectContent1, title, xlsFilePath);
7171
});
7272

0 commit comments

Comments
 (0)