当前位置:网站首页>Use annotation test in idea
Use annotation test in idea
2022-07-29 04:56:00 【Star and Dream Star_ dream】
Problem specification :
Solution :
- Installing a plug-in (Junit)
- restart IDE
matters needing attention :
- Don't be the same as the class name , That is, the class name cannot be Test
- Add dependency ( take JUnit4 Add to classpath )
- see lib Folder , Found several more files ( success !)
The test link : Don't look
@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); }
.
边栏推荐
- JS daily question (10)
- Go面向并发的内存模型
- P5714 [deep foundation 3. Case 7] obesity
- WPS如何进行快速截屏?WPS快速截屏的方法
- [untitled]
- Flink+Iceberg环境搭建及生产问题处理
- Box horizontal vertical center layout (summary)
- The most comprehensive promotion plan for the launch of new products
- IOS interview preparation - IOS
- How is the entered query SQL statement executed?
猜你喜欢
随机推荐
Conv1d of torch
ios面试准备 - objective-c篇
Review key points and data sorting of information metrology in the second semester of 2022 (teacher zhaorongying of Wuhan University)
五个关联分析,领略数据分析师一大重要必会处理技能
How to avoid damage of oscilloscope current probe
Leetcode (Sword finger offer) - 53 - I. find the number I in the sorted array
MySQL regularly calls preset functions to complete data update
Simple user-defined authentication interface rules
Ethernet of network
使用近场探头和电流探头进行EMI干扰排查
带你搞懂 Kubernetes 集群中几种常见的流量暴露方案
JS daily question (11)
ssm整合增删改查
Use more flexible and convenient Rogowski coil
1 句代码,搞定 ASP.NET Core 绑定多个源到同一个类
Flutter 手势监听和画板实现
Conv2d of torch
Build auto.js script development environment
让你的正则表达式可读性提高一百倍
SGuard64.exe ACE-Guard Client EXE:造成磁盘经常读写,游戏卡顿,及解决方案















