Included page: .RestFixtureFitTests.SetUp (edit)
| Action Fixture | ||
| start | smartrics.rest.test.fitnesse.fixture.HttpServerFixture | |
| check | is started | true |
| press | reset resources database | |
PUT
Note
This test shows how to pass bespoke headers in the request. In this specific case, the stub echoes back the 'Echo-Header', so that the
following PUT and GET can match it the response.
following PUT and GET can match it the response.
| Fit Rest Fixture | http://localhost:7654 | |||
| setBody | <resource><name>name being updated</name><data>data being updated</data></resource> | |||
| setHeader | Echo-Header : echoed | |||
| PUT | /resources/0 | 200 | Echo-Header : echoed | no-body |
| GET | /resources/0 | 200 | Echo-Header : echoed | /resource/name[text()='name being updated'] <br/> /resource/data[text()='data being updated'] |