我有一个java Munit测试,我正在验证<file:outbound-endpoint>这样的调用:
verifyCallOfMessageProcessor("outbound-endpoint")
.ofNamespace("file")
.withAttributes(attribute("path").withValue("/data/local/"),
attribute("outputPattern").withValue("vendor_customer_*"))
.times(1)
;
这个片段应该测试下面的Mule代码:
<file:outbound-endpoint path="${root.drive}"
outputPattern="vendor_customer_#[server.dateTime.format('YYYY_MM_dd_hh_mm_ss.sss')].csv" />
怎么用regular expressioninattribute("outputPattern").withValue("vendor_customer_*"))来表示那个属性值startsWith vendor_customer_
我正在MUnit 3.5使用Mule 3.4.2