You still can depending on how you do it

來源: ttxs_123 2016-05-14 17:19:08 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (746 bytes)

Talk to the guy who has the dependency task, ask him/her to provide an interface that you can mock and he/she can implement against, you can have a Mock marker interface, your mock will implement the Mock marker interface and the dependency interface. The user of the interface can use reflection to detect the impelmentation classes of the dependency interface, and if there is an implementation that doesn't implement the Mock marker interface, use it. Otherwise, use the Mock interface implementation.

With this approach, you can seamlessly integrate the dependency impelentation without(or very little configuration change) any delay, and you can claim you finish the task you have and show on the burn down chart

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”