wiztools / rest-client

Tool to test HTTP/RESTful webservices.
Apache License 2.0
1.53k stars 372 forks source link

Test improvement: removed resource optimism (test smell) #88

Open gvma opened 4 years ago

gvma commented 4 years ago

This is a test refactoring.

The resource optimism occurs when a test method makes an optimistic assumption that the external resource (e.g., file), utilized by the test method, exists.

As this test presumes the existence of multiple files with content to be tested for, It is necessary to ensure those files exists and has content before proceeding with the test steps.