当前位置:网站首页>解决 idea 单元测试不能使用Scanner
解决 idea 单元测试不能使用Scanner
2022-08-10 11:43:00 【小鲁蛋儿】
1、使用idea,在导航找到 help ->Edit Custom VM Options...

2、弹出的对话框文件中追加
-Deditable.java.test.console=true改完之后记得重启!!! 然后再进行测试
找到 idea 安装文件的位置,找到如同所示的文件,在文件内部继续追加之前的配置内容

边栏推荐
- Microchip launched a high-performance 77GHz millimeter-wave radar chip, and has received tens of thousands of orders before mass production
- Database management tool: dynamic read-write separation
- 苹果逆势扩大iPhone 14系列备货,总量或达9500万部
- codevs 2370 Small room tree (LCA)
- LeetCode 237. 删除链表中的节点
- Does face attendance choose face comparison 1:1 or face search 1:N?
- A detailed explanation of implementation api embed
- codevs 2370 小机房的树 (LCA)
- Servlet---解决post请求中中文乱码问题
- HDU 4372:Count the Buildings (Stirling数)
猜你喜欢

Since the media hot style title how to write?Taught you how to write the title

dedecms支持Word内容一键导入

个推数据资产管理经验 | 教你打造数据质量心电图,智能检测数据“心跳”异常

Chapter 5 virtual memory

Flutter气泡框实现

So delicious!Since using this interface artifact, my team efficiency has increased by 60%!

Network sockets (UDP and TCP programming)

常量及数据类型你还记得多少?

The 6th "Blue Hat Cup" National College Student Network Security Skills Competition Semi-Final Part WriteUp

如何让别人看不懂你的 JS 代码?把你当大佬!
随机推荐
LeetCode 362. Design Hit Counter
搜索--01
Does face attendance choose face comparison 1:1 or face search 1:N?
第5章 虚拟存储器
百度用户产品流批一体的实时数仓实践
制品库是什么?
search--01
APP automation testing practice based on UiAutomator2+PageObject mode
LeetCode 21. Merge two ordered linked lists
配置druid数据源「建议收藏」
codevs 2370 小机房的树 (LCA)
Database management tool: dynamic read-write separation
Not just running away, but saving the guy who mishandled rm -rf /*
浮动及其特点
LeetCode 19. 删除链表的倒数第 N 个结点
托米的咒语
22年BATJ大厂必问面试题(复盘):JVM+微服务+多线程+锁+高并发
Microchip launched a high-performance 77GHz millimeter-wave radar chip, and has received tens of thousands of orders before mass production
一文读懂NFT数字藏品为何风靡全球?
Excel function formulas - LOOKUP function