当前位置:网站首页>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); }
.
边栏推荐
- excel怎么设置行高和列宽?excel设置行高和列宽的方法
- 如何安装office2010安装包?office2010安装包安装到电脑上的方法
- Build auto.js script development environment
- 五个关联分析,领略数据分析师一大重要必会处理技能
- (heap sort) heap sort is super detailed, I don't believe you can't (C language code implementation)
- UE plays video in scene or UMG
- What are the core features of the digital transformation of state-owned construction enterprises?
- Un7.28: common commands of redis client.
- EF Core: 一对一,多对多的配置
- 删除word文档中的空白页
猜你喜欢

spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法

Recommendation system of online education

C语言实现三子棋

WPS插入超链接无法打开,提示“无法打开指定文件”怎么办!

Command line interactive tools (latest version) inquirer practical tutorial

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

Reveal安装配置调试

数据湖:分布式开源处理引擎Spark

Mysql各版本下载地址及多版本共存安装

Detailed comparison of break and continue functions
随机推荐
Leetcode 763. partition labels divide alphabetic intervals (medium)
常见的限流方式
Opencv learning 1 (environment configuration)
Detailed comparison of break and continue functions
删除word文档中的空白页
数据湖:分布式开源处理引擎Spark
spinning up安装完使用教程测试是否成功,出现Library“GLU“ not found和‘from pyglet.gl import *错误解决办法
Office提示系统配置无法运行怎么办?
MySQL定时调用预置函数完成数据更新
office2010每次打开都要配置进度怎么解决?
Install the gym corresponding to mujoco in the spinning up tutorial, and the error mjpro150 is reported
un7.28:redis客户端常用命令。
Conv2d of torch
C语言实现三子棋
Double type nullpointexception in Flink flow calculation
EF Core: 一对一,多对多的配置
如何安装office2010安装包?office2010安装包安装到电脑上的方法
Configure st-gcn environment record [Google lab]
SGuard64.exe ACE-Guard Client EXE:造成磁盘经常读写,游戏卡顿,及解决方案
Corresponding order of 18 and 25coco data of openpose and joint points






