Skip to content

Commit

Permalink
补充beanTest的异常抛出测试
Browse files Browse the repository at this point in the history
  • Loading branch information
leaderli committed Aug 19, 2024
1 parent afccdec commit e2e4480
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,10 @@ public static void newAge3(Person person) {
public void setMap(Map<String, String> map) {
map.put("1", "1");
}

public void error(int a) {
if (a == 0) {
throw new IllegalStateException();
}
}
}

0 comments on commit e2e4480

Please sign in to comment.