0
我們有我們的自定義HTTP連接器,並且是指連接器如下如何嘲笑HTTP連接器在munit
<http:connector name="myConnector">
<!-- config -->
</http:connector>
<http:endpoint name="myEndpoint" ref="myConnector">
<!-- config -->
</http:endpoint>
<http:outbound-endpoint name="myOutbound" ref="myEndpoint">
當我嘲笑HTTP出站時未指定任何屬性,那麼它的嘲諷。但如果出站我使用的模擬,同時指定屬性,則拋出異常說
"cannot process event as myConnector has stopped working".