freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

軟件測(cè)試與質(zhì)量保證概述-資料下載頁(yè)

2025-05-14 21:13本頁(yè)面
  

【正文】 21年 7月 3日;某某編制 /修改;原因 ? 測(cè)試計(jì)劃編號(hào) ? 計(jì)劃執(zhí)行情況 ? 缺陷統(tǒng)計(jì) (缺陷總數(shù) /未解決數(shù)目 )及為解決缺陷列表 ? 后續(xù)處理措施 ? 是否通過單元測(cè)試 單元測(cè)試 單元測(cè)試工具 —— Junit 單元測(cè)試 What is JUnit ? De facto Java unit testing framework ? Integrated nicely with IDEs and Ant ? Easy to learn ? Support many IDEs ?JBuilder, VisualAge, Eclipse … 單元測(cè)試 實(shí)例 ? public class Car { ? public int getWheels (){ ? return 4。 ? } ? } 單元測(cè)試 實(shí)例( cont.) ? public class TestCar { ? public static void main(String[] args) { ? ? Car car = new Car()。 ? if (4 == ()) ? (Ok!)。 ? else ? (Error!)。 ? } ? } 單元測(cè)試 ? import 。 ? public class CarTest extends TestCase { ? protected Car car。 ? protected int expectedWheels。 ? ? public static void main(String[] args) { ? ()。 ? } ? public CarTest(String arg0) { ? super(arg0)。 ? } 實(shí)例( cont.) 單元測(cè)試 ? protected void setUp() throws Exception { ? car = new Car()。 ? expectedWheels = 4。 ? } ? ? protected void tearDown() throws Exception { ? ()。 ? } ? ? public void testGetWheels (){ ? assertEquals(expectedWheels, ())。 ? } ? } 單元測(cè)試 JUnit Rules and Conventions ? Subclass TestCase ? Prior to , Stringarg constructor required ? Test methods ?public void testXXX() [throws … ] ? Any number of assertions per method ? Implement main to run from mandline, but not necessary ? Optionally add setUp / tearDown methods. 單元測(cè)試 TestCase lifecycle ? setUp ? testXXX() ? tearDown() ? Repeats 1 through 3 for each testXXX method… 單元測(cè)試 Assert系列方法 ? assertEquals(primExpected, primActual) ? assertEquals(objExpected, objActual) ? assertSame(objExpected, objActual) ? assertNotSame(objExpected, objActual) ? assertNull(obj) ? assertNotNull(obj) ? assertTrue(boolean condition) ? assertFalse(boolean condition) ? . assertEquals(0, ())。 單元測(cè)試 TestSuite ? import .*。 ? public class AllTests { ? public static void main (String[] args) { ? (suite())。 ? } ? public static Test suite ( ) { ? TestSuite suite= new TestSuite(All JUnit Tests)。 ? (())。 ? (new )。 return suite。 ? } ? } 單元測(cè)試 謝謝!
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1