Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试制作自己的语法,但没有得到任何结果。
Assertsoapfault().faultcode("try").when(soap().client("endpoint").send());
您应该使用 Citrus 提供的默认 Java DSL 方法:
assertSoapFault() .faultCode("SOAP-ENV:Server") .faultString("Internal server error") .when(soap().client("endpoint") .send());