5
我想用JUnit
测试我的REST服务器。每个测试都会向服务器发送HTTP请求,并根据预期在响应中出现的元素列表来检查响应。JUnit测试服务器
因此,在测试过程如下所示:
for each request in test requests send request and receive response assert the response is ok for each element in the expected elements test if the element exists in the response
你将如何与JUnit
实现它?
只是更加挑剔:OP当然没有提到他想要做的是*“单元测试”*。他只是提到JUnit可以用于单元测试和其他类型的测试:) – SyntaxT3rr0r 2011-06-04 21:00:26
好点,我已经摆脱了 – 2011-06-05 05:23:28