RestFixtureTests.IssueFixes.Issue191

Included page: .RestFixtureTests.SetUp (edit)

script smartrics.rest.test.fitnesse.fixture.HttpServerFixture
check is started true
reset resources database

Issue #191 Issue in converting the Map to JSON on the output


Table: Rest Fixture http://localhost:9876
GET
200
Content-Type : application/json
expected

Content-Type : application/json
Content-Length : 168
Server : Jetty(6.0.2)
actual

    jsonbody.map['1'].name == 'fred'
    jsonbody.map['2'].surname == 'bogart'
    Object.keys(jsonbody.map).length == 3

expected

{ 'map' : {
    '1' : { 'name': 'fred', 'surname' : 'stone' },
    '2' : { 'name': 'marta', 'surname' : 'bogart' },
    '3' : { 'name': 'foo', 'surname' : 'bar' }
  }
}
actual