当前位置:网站首页>引入了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>删除就可以了。
边栏推荐
- 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
- 【博主推荐】C# Winform定时发送邮箱(附源码)
- Mysql22 logical architecture
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- Invalid global search in idea/pychar, etc. (win10)
- 连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
- 解决:log4j:WARN Please initialize the log4j system properly.
- Leetcode 461 Hamming distance
- Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
- Data dictionary in C #
猜你喜欢
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
MySQL21-用戶與權限管理
MySQL22-逻辑架构
Water and rain condition monitoring reservoir water and rain condition online monitoring
Installation and use of MySQL under MySQL 19 Linux
API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
csdn-Markdown编辑器
[ahoi2009]chess Chinese chess - combination number optimization shape pressure DP
MySQL18-MySQL8其它新特性
连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
随机推荐
[recommended by bloggers] background management system of SSM framework (with source code)
Mysql25 index creation and design principles
Mysql21 user and permission management
Ubuntu 20.04 安装 MySQL
02-项目实战之后台员工信息管理
Have you mastered the correct posture of golden three silver four job hopping?
Postman uses scripts to modify the values of environment variables
[paper reading notes] - cryptographic analysis of short RSA secret exponents
[C language foundation] 04 judgment and circulation
The virtual machine Ping is connected to the host, and the host Ping is not connected to the virtual machine
MySQL25-索引的创建与设计原则
[recommended by bloggers] C MVC list realizes the function of adding, deleting, modifying, checking, importing and exporting curves (with source code)
MySQL的一些随笔记录
Swagger, Yapi interface management service_ SE
TCP/IP协议(UDP)
Redis的基础使用
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
Mysql28 database design specification
Database middleware_ MYCAT summary
CSDN问答模块标题推荐任务(二) —— 效果优化