對AOP使用
規范有效的測試。
A——>B
A——>B‘模擬B
JMock
EasyMock
JUnit的注意事項:
seprate production and testcode
but typically in the same packages否則無法測試到
compile into separated trees,allowing deployment without test
OO techniques 可復用功能
回歸測試:
AB類的方法
public static Test suite(){
Test t=new ReapedTest(new TestSuite(HelloWorldTest.class),10);
return t;
}
main函數中調用
junit.swingui.TestRunner.run(AB.class)
References
大師
文章來源于領測軟件測試網 http://www.kjueaiud.com/