junit异常—— java.lang.Exception: Method ‘方法名‘ should be public 问题

原因:Test方法缺少public修饰,加上public。
参考链接:https://blog.csdn.net/qq_54386866/article/details/133862400

posted @ 2023-12-01 10:32  渝思  阅读(121)  评论(0编辑  收藏  举报