我取决于org.springframework.boot:spring-boot-starter-validation:jar:2.2.6.RELEASE:test
哪个取决于org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:test
.
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.6.RELEASE:test
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.33:test
[INFO] | \- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:test
现在在我的测试用例中,有两个静态导入的候选者assertNotNull
。
一个是
import static org.junit.jupiter.api.Assertions.assertNotNull;
另一个是
import static org.hibernate.validator.internal.util.Contracts.assertNotNull;
有什么好方法可以排除休眠的吗?