The annotation @Test is disallowed for this location

错误意思为:@Test注解指向不准,即@Test不知道指向的哪个函数

解决办法:

    将@Test放在要进行测试的方法(即函数)外。

猜你喜欢

转载自blog.csdn.net/qq_42444621/article/details/80846069