?????????????????????????????Щ??????о????????????????????
?????????????????????????????xml??????
??????????????????????xml????????????:

 

<class name="com.xxx.service.test.DemoServiceTest">
<beforeClass></beforeClass>
<afterClass></afterClass>
<method name="testGetToken">
<before></before>
<after></after>
<!--??????????????ж?????????? -->
<!-- ?????????????? -->
<case name="err_001">
<!-- ?????????????ж?? -->
<request>
<param type="com.xxxi.domain.request.TokenRequest">
<merchantId>33333</merchantId>
<signType>MD5</signType>
<businessType>1001</businessType>
<outTradeNo>4222222222</outTradeNo>
</param>
</request>
<!-- ????????????? -->
<response type="com.xxx.domain.response.TokenResponse">
<responseCode>0</responseCode>
<tradeNo>831</tradeNo>
</response>
</case>
<case name="case_002">
<request>
<param type="com.xxx.request.TokenRequest">
<merchantId>33333</merchantId>
<signType>MD5</signType>
<businessType>1001</businessType>
<outTradeNo>4222222222</outTradeNo>
</param>
</request>
<!-- ????????????? -->
<response type="com.elong.pb.payment.api.domain.response.TokenResponse">
<responseCode>0</responseCode>
<tradeNo>831</tradeNo>
</response>
</case>
</method>
</class>

????????????????????????
??????????????<method>???
???????<method>??????ж??<case>???
???????<case>???????<request>??<response>???????????????????????
????????????????ж??????<request>?????????ж??<param>???