自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 Assert.assertEquals((Object expected, Object actual)

Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. 

2018-04-20 14:12:04 1248

原创 Mock.verify()

Verifies certain behavior happened at least once / exact number of times / never. E.g: verify(mock, times(5)).someMethod("was called five times"); verify(mock, atLeast(2)).someMethod("was cal...

2018-04-20 11:35:12 3091

原创 Mockito.when()

Enables stubbing methods. Use it when you want the mock to return particular value when particular method is called.(启用存根方法。 当你希望模拟在调用特定方法时返回特定值时使用它。) Simply put: "When the x method is called then ret...

2018-04-20 11:31:41 20276

转载 ps -ef|grep java

上述内容为:命令拆解:ps:将某个进程显示出来-A  显示所有程序。 -e  此参数的效果和指定"A"参数相同。-f  显示UID,PPIP,C与STIME栏位。 grep命令是查找中间的|是管道命令 是指ps命令与grep同时执行这条命令的意思是显示有关Apachejetspeed有关的进程UID PID PPID C STIME TTY TIME CMD各相关信息的意义:UID: 程序被该 U...

2018-04-18 16:48:10 722

转载 annotation之@Autowired、@Inject、@Resource三者区别

https://www.cnblogs.com/pjfmeng/p/7551340.html一、@Autowired1、@Autowired是spring自带的注解,通过‘AutowiredAnnotationBeanPostProcessor’ 类实现的依赖注入;2、@Autowired是根据类型进行自动装配的,如果需要按名称进行装配,则需要配合@Qualifier;3、@Autowired有个...

2018-04-17 19:44:24 346

转载 HttpClient报错org/apache/http/ssl/SSLContexts

在用httpclient-4.5.2调用http接口的时候build一个CloseableHttpClient的时候,我的代码是:RequestConfig config = RequestConfig.custom()config.set......CloseableHttpClient httpClient = HttpClients.custom().setDefaultReques...

2018-04-12 15:28:56 4976

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除