当前位置:网站首页>解决IDEA控制台junit不能用Scanner输入
解决IDEA控制台junit不能用Scanner输入
2022-07-18 17:44:00 【少年.】
**问题:**IDEA在Junit测试中使用了Scanner,但是控制台一直转圈,无法输入
解决:在配置文件idea.exe.vmoptions、idea64.exe.vmoptions**中添加,
-Deditable.java.test.console=true
好像一个是32位的,一个是64位的,(不确定的话就都加上吧。。。)
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000556544-Why-can-t-I-input-anything-from-console-when-i-run-unit-test-with-JUNIT
边栏推荐
- List to int type array
- Win11 ne reconnaît pas comment ADB est configuré?
- How does the software R & D team manage the working hours of its members and allocate resources scientifically?
- Skywalking应用实战 Agent探针、Rocketbot以及告警
- ROS2学习笔记:DDS
- 递归 2021-10-26
- 堆的应用 --TopK问题
- 面试常问——进程和线程的区别
- Transaction mechanism: can redis implement acid attribute?
- OCR ticket recognition based on OpenCV (1)
猜你喜欢
在互联网+的潮流中,企业客户服务该何去何从?
在线会议中人脸面部轮廓图像提取(一)——前言
调整数组顺序使奇数位于偶数前面
堆的应用 --TopK问题
leetcode215-第k个最大元素(快速排序分区函数的衍生问题)
Preparation Notes: opencv learning: reading images, color conversion, image scaling, image filtering
Skywalking应用实战 Agent探针、Rocketbot以及告警
数组中出现次数超过一半的数字
Win11玩游戏延迟高的解决办法
In the trend of Internet +, where should enterprise customer service go?
随机推荐
torch. nn. RNN implementation of recurrent neural network
Redis主从同步与故障切换,有哪些坑?
Face contour image extraction in online conference (I) -- Preface
(PC+WAP)织梦模板建筑节能装饰类网站
设置:el-date-picker日期选择器,默认选中时间等
ROS2学习笔记:DDS
Win11 cannot recognize how ADB is set?
【ostep】03 虚拟化 CPU - 受限直接执行机制
【LockSupport】线程的休眠和指定唤醒
Pytorch implementation of rotate net
Solve the problem of single user over receiving coupons under high concurrency
Multithreading - common lock strategies +cas (advanced knowledge of locks)
How does the software R & D team manage the working hours of its members and allocate resources scientifically?
连续子数组的最大和
多线程-线程的创建、中断、等待、休眠和获取线程引用
Sorting out the event distribution process of listview and its sub view textview
MySQL部分题目-牛客
Regular expressions from entry to entry
leetcode36-有效的数独
FastDVDnet