文章列表
1.用位移操作
import junit.framework.TestCase;
public class TestDataTypeSize extends TestCase{
public void testLong(){
long a= 0;
int count = 0;
while(a !=0){
a = (a << 1);
count++;
}
assertEquals(64, count);
}
public void testInt(){
int a= 0;
int count = 0;
...
1)下载Cactus-1.8.1
下载commons-codec-1.3
2)解压Cactus,把lib下的以下jar加入到eclipse的classpath:
cactus.core.framework.uberjar.javaEE.14-1.8.1.jar
commons-httpclient-3.1.jar
commons-logging-1.1.jar
aspectjrt-1.5.3.jar
servlet-api-2.4.jar
org.mortbay.jetty-5.1.9.jar
3)待测试类
/* 待测试类Si ...