package day04; public class ShuZu_BianLi_02 { public static void main(String[] args) { // TODO Auto-generated method stub //数组的操作: //获取数组中的元素 int [] a... ...
分类:
编程语言 时间:
2018-01-03 00:43:17
阅读次数:
157
这篇文章简介一下,如何通过 mock framework,来辅助我们更便利地模拟目标对象的依赖对象,而不必手工敲堆只为了这次测试而存在的辅助类型。 而模拟目标对象的部分,常见的有 stub object, mock object, fake object,本文也会简单介绍一下三者的不同点,并且通过实 ...
分类:
其他好文 时间:
2017-12-27 22:36:21
阅读次数:
237
package blue; public class array { public static void main(String[] args) { // TODO Auto-generated method stub int [] num={1,5,4,6,8,7,6}; int index=- ...
分类:
编程语言 时间:
2017-12-09 00:03:26
阅读次数:
271
public static void main(String[] args) { // TODO Auto-generated method stub InetAddress ipMsg=null; try { ipMsg=ipMsg.getLocalHost(); String localname ...
分类:
其他好文 时间:
2017-12-04 20:38:13
阅读次数:
153
出现这个错误的原因是Maven不支持缺少web.xml的web项目 解决方法 添加Web模块,对项目右键->Java EE Tools->Generate Deployment Descriptor Stub,这样就在 src\main\webapp下面生成了WEB-INF文件夹和web.xml,问 ...
分类:
Web程序 时间:
2017-11-30 13:29:30
阅读次数:
184
sudo spctl --master-disable开启application安装时的来自任何来源; sudo lsof -i:9000;sodu kill -9 pid;查看端口占用并杀死进程; rmic编译器生成stub类和skeleton类; /home 安装软件 内核的引导 /boot 运 ...
分类:
系统相关 时间:
2017-11-16 11:44:22
阅读次数:
174
Centos7.0安装Nginx1.8.1一、安装Nginx依赖包系统环境是Centos7.0#yum–yinstallpcre-devel#yum–yinstallopenssl-devel#yum–yinstallgcc#./configure--prefix=/usr/local/nginx--with-http_ssl_module--with-http_spdy_module--with-http_stub_status_module--with-pcre注释?.
分类:
其他好文 时间:
2017-11-15 10:53:01
阅读次数:
210
Centos7.0安装Nginx1.8.1一、安装Nginx依赖包系统环境是Centos7.0#yum–yinstallpcre-devel#yum–yinstallopenssl-devel#yum–yinstallgcc#./configure--prefix=/usr/local/nginx--with-http_ssl_module--with-http_spdy_module--with-http_stub_status_module--with-pcre注释?.
分类:
其他好文 时间:
2017-11-15 10:52:11
阅读次数:
156
#监控location /status { stub_status on; access_log off;} #代理 location / { proxy_pass http://10.1.2.170:8081/; proxy_set_header Host $host; proxy_set_hea ...
分类:
其他好文 时间:
2017-11-13 16:48:25
阅读次数:
227
public class Yi { public static void main(String[] args) { // TODO Auto-generated method stub new Yi().fun(); } public void fun() { System.out.println... ...
分类:
其他好文 时间:
2017-11-13 11:27:57
阅读次数:
157