常見例句雙語例句When the assertions fail, the methods throw AssertionFailedError, which TestResult catches and interprets in the result-handling fixture template method.如果斷言失敗,那麼這些方法將拋出 AssertionFailedError,TestResult 在結(jié)果処理裝置模板方法中捕獲這些異常竝進(jìn)行解釋。Using the template method for implementing the bridge role of the broker pattern provided a mechanism for adding alternative types of external communication in the future.使用模板方法實(shí)現(xiàn)中介模式的橋接角色,這種做法提供了一種可以在將來添加外部通信備用類型的機(jī)制。The "bridge" role from the broker pattern was then implemented using the template method pattern to support remote service invocation using several different underlying communication technologies.中介模式的“橋接”角色是使用模板方法模式實(shí)現(xiàn)的,它通過幾種不同的基礎(chǔ)通信技術(shù),爲(wèi)遠(yuǎn)程服務(wù)調(diào)用提供支持。 返回 template method