当前位置:网站首页>引入了junit为什么还是用不了@Test注解
引入了junit为什么还是用不了@Test注解
2022-07-06 09:13:00 【萍果馅是年糕】
在pom.xml配置文件中配置了如下
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency>
发现无法使用@Test、@after等等
原因:上述scope配置了Junit可用的位置,test表示只能在src下的test文件夹下面才可以使用。
解决:将<scope>test</scope>删除就可以了。
边栏推荐
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- Mysql33 multi version concurrency control
- Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
- Copy constructor template and copy assignment operator template
- Other new features of mysql18-mysql8
- JDBC原理
- 虚拟机Ping通主机,主机Ping不通虚拟机
- La table d'exportation Navicat génère un fichier PDM
- MySQL23-存儲引擎
- C language string function summary
猜你喜欢
Leetcode 461 Hamming distance
1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
MySQL23-存儲引擎
Other new features of mysql18-mysql8
Postman uses scripts to modify the values of environment variables
MySQL21-用戶與權限管理
Postman environment variable settings
CSDN blog summary (I) -- a simple first edition implementation
[recommended by bloggers] C WinForm regularly sends email (with source code)
[recommended by bloggers] background management system of SSM framework (with source code)
随机推荐
Kubesphere - deploy the actual combat with the deployment file (3)
Invalid global search in idea/pychar, etc. (win10)
A trip to Macao - > see the world from a non line city to Macao
The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
【博主推荐】C#生成好看的二维码(附源码)
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
Mysql33 multi version concurrency control
Idea import / export settings file
NPM an error NPM err code enoent NPM err syscall open
frp内网穿透那些事
[C language foundation] 04 judgment and circulation
Timestamp with implicit default value is deprecated error in MySQL 5.6
安全测试涉及的测试对象
FRP intranet penetration
Install mysql5.5 and mysql8.0 under windows at the same time
导入 SQL 时出现 Invalid default value for ‘create_time‘ 报错解决方法
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Mysql21 user and permission management
MySQL completely uninstalled (windows, MAC, Linux)
February 13, 2022-2-climbing stairs