当前位置:网站首页>IDEA中使用注解Test
IDEA中使用注解Test
2022-07-29 04:53:00 【星与梦想star_dream】
问题说明:
解决方案:
- 安装插件(Junit)
- 重启IDE
注意事项:
- 不要与类名相同,即类名不可以为Test
- 添加依赖(将JUnit4添加到类路径中)
- 查看lib文件夹,发现多了几个文件(成功!)
测试环节:可以不看
@Test public void test() throws ParseException { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = simpleDateFormat.parse("2022-07-28 17:43:21"); String time = simpleDateFormat.format(date); System.out.println(time); }
.
边栏推荐
- Solution to the fourth game of 2022 Hangzhou Electric Multi school league
- Using jupyter (I), install jupyter under windows, open the browser, and modify the default opening address
- [c language] PTA 7-51 sum the first n terms of odd part sequence
- office2010每次打开都要配置进度怎么解决?
- Climbing the pit of traffic flow prediction (III): using pytorch to realize LSTM to predict traffic flow
- EMI interference troubleshooting with near-field probe and current probe
- VScode配置makefile编译
- Mysql:the user specified as a definer ('root '@'%) does not exist
- OpenCV环境搭建
- Nail dialog text converted to pictures cannot be copied and pasted on the document
猜你喜欢

网络之以太网
![Configure st-gcn environment record [Google lab]](/img/dc/138a40b01ebb4c79b6758d4642d47b.png)
Configure st-gcn environment record [Google lab]

How to avoid damage of oscilloscope current probe

Take you to understand JS array

2022杭电多校联赛第四场 题解

Use more flexible and convenient Rogowski coil

让你的正则表达式可读性提高一百倍

GCC基础知识

Command line interactive tools (latest version) inquirer practical tutorial

央企建筑企业数字化转型核心特征是什么?
随机推荐
ios面试准备 - 网络篇
Recommendation system of online education
Implementation of img responsive pictures (including the usage of srcset attribute and sizes attribute, and detailed explanation of device pixel ratio)
LeetCode(剑指 Offer)- 53 - I. 在排序数组中查找数字 I
Wps如何使用智能填充快速填充数据?Wps快速填充数据的方法
spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
How to set row height and column width in excel? The method of setting row height and column width in Excel
def fasterrcnn_ resnet50_ FPN () instance test
Mysql:The user specified as a definer (‘root‘@‘%‘) does not exist 的解决办法
Leetcode 763. partition labels divide alphabetic intervals (medium)
File operation (Advanced C language)
[c language] use the reverse order output of the linked list (bidirectional linked list)
Auto.js脚本开发入门
How to avoid damage of oscilloscope current probe
Makefile(make)常见规则(二)
Recyclerview switches the focus up and down through the dpad key. When switching to the control outside the interface, the focus will jump left and right
IOS interview preparation - Objective-C
Improve the readability of your regular expressions a hundred times
[C language] PTA 7-47 binary leading zero
stack和queue和优先级队列(大堆和小堆)模拟实现和仿函数讲解






