一、作用域和全局变量var test=function(){ var a=1;
setTimeout(function(){ console.log(a); a=2; },1000); a=3; setTimeout(function(){
...
分类:
Web程序 时间:
2014-05-16 04:23:39
阅读次数:
303
1.用记事本新建一个java 程序,文件名为TestBean.java ,文件内容如下:
package test; public class TestBean{ private String name = null; public
TestBean(String strName_p){ ...
分类:
编程语言 时间:
2014-05-16 01:01:44
阅读次数:
333
现在最新的Junit是Junit4,Junit4最大的亮点就是引入了注解(annotation),通过解析注解就可以为测试提供相应的信息,并抛弃Junit3使用命名约束的方式。我们先从Junit3开始对于Junit3,有一下的规定和要求1.测试类必须要继承于TestCase父类,必须已Test开头或...
分类:
其他好文 时间:
2014-05-15 22:12:38
阅读次数:
394
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
阅读目录什么是单元测试?为什么使用单元测试?NUint使用详解:示例属性断言简单测试VS配置:External ToolsVisual Nunit
2010NUnit Test Adapter后记什么是单元测试? 单元测试(Unit Testing)是针对最小的可测试软件元素(单元)的,它所测试的....
分类:
其他好文 时间:
2014-05-15 14:29:12
阅读次数:
618
使用new的Code都违反了DIP.但是,依赖于稳定的具体类,是无害的.例如string.另一方面,对于正在开发中的APP,很多具体类是易变的.此时应该依赖于抽象接口.Factory模式:只依赖于抽象接口就能创建出具体对象的实例.对Test
Fixture使用工厂编写UT时,希望把一个模块和它使用的...
分类:
其他好文 时间:
2014-05-15 13:43:56
阅读次数:
312
public class Test{ public static void
main(String args[]){ int i[]= new int[1]; System.out.println(i.equals(0));
}}//false...
分类:
其他好文 时间:
2014-05-15 10:03:08
阅读次数:
216
直接上代码function test () { } document.write(typeof
test() + "") document.write(typeof new test() +
"")输出结果undefinedundefined好理解,因为test函数没有返回值。那new的时候为什么会...
分类:
编程语言 时间:
2014-05-15 10:00:35
阅读次数:
367
public class Test { public static void
main(String[] string){ int[] i = new int[10];
System.out.println(i.equals(null)); }...
分类:
其他好文 时间:
2014-05-15 09:54:00
阅读次数:
250
由于现网有时候要测试很多端口的连通性,所以就写了个小脚本,实现批量测试将telnet成功的写入到telnet_alive.txt中,失败则写入telnet_die.txt中#!/bin/bash#thisscripttestUPtootherhost.#Iplist=/opt/script_test/iplist.dataPortnumber=7001foripin$(catiplist.data)do(slee..
分类:
Web程序 时间:
2014-05-15 08:46:11
阅读次数:
385