JUnit中assertNull报错通常是因为导入了错误的包(如JMockit或旧版Hamcrest)而非JUnit5自带的org.junit.jupiter.api.Assertions,或者在JUnit5环境中混用了JUnit4的A...