当前位置:网站首页>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 (12)
- Makefile(make)常见规则(二)
- 怎样监测微型的网站服务
- Common current limiting methods
- Stack and queue and priority queue (large heap and small heap) simulation implementation and explanation of imitation function
- P1009 [noip1998 popularization group] sum of factorials
- How to build a mobile studio network?
- 命令行交互工具(最新版) inquirer 实用教程
- JS daily question (11)
- IOS interview preparation - other articles
猜你喜欢
Implementation of img responsive pictures (including the usage of srcset attribute and sizes attribute, and detailed explanation of device pixel ratio)
Delete blank pages in word documents
虚拟偶像的歌声原来是这样生成的!
谷歌浏览器 打开网页出现 out of memory
C语言实现三子棋
Introduction of JDBC preparestatement+ database connection pool
带你搞懂 Kubernetes 集群中几种常见的流量暴露方案
2022杭电多校联赛第四场 题解
Reveal安装配置调试
SparkSql批量插入或更新,保存数据到Mysql中
随机推荐
命令行交互工具(最新版) inquirer 实用教程
Flink+iceberg environment construction and production problem handling
Data Lake: spark, a distributed open source processing engine
UE plays video in scene or UMG
GCC Basics
DataSourceClosedException: dataSource already closed at Mon Oct 25 16:55:48 CST 2021
Download addresses of various versions of MySQL and multi version coexistence installation
RecyclerView通过DPAD按键上下切换焦点 切换到界面外的控件时焦点会左右乱跳
输入的查询SQL语句,是如何执行的?
def fasterrcnn_resnet50_fpn()实例测试
The difference between the two ways of thread implementation - simple summary
如何避免示波器电流探头损坏
Reveal installation configuration debugging
网络之以太网
UE 在场景或UMG中播放视频
stack和queue和优先级队列(大堆和小堆)模拟实现和仿函数讲解
SparkSql批量插入或更新,保存数据到Mysql中
IOS interview preparation - Online
安装spinning up教程里与mujoco对应的gym,报错mjpro150
excel怎么设置行高和列宽?excel设置行高和列宽的方法