Specification
givenSomebodyAsksForHelp(dueTo("flood"), at("Santana neighborhood in São Paulo"), requesting("escaping"))
whenIAskToSeeAllTheCalamitiesHappening(now)
thenICanSeeThatSomebodyAskedForHelp(toEscapeFrom("flood"), at("Santana neighborhood in São Paulo"), requesting("escaping"))
Test results:
Test Passed in 2 seconds, 560 ms
Request from Client to eHelp
http://localhost:9000/ecore/calamities
Response from eHelp to Client
HttpResponse(200 OK,List(Server: akka-http/2.4.8, Date: Tue, 04 Oct 2016 22:31:23 GMT),HttpEntity.Strict(application/json,{
"situations": [{
"calamity": {
"problem": "flood"
},
"location": {
"latitude": "-23.499648",
"longitude": "-46.628493",
"description": "Santana neighborhood in São Paulo"
},
"provision": {
"needed": "escaping"
}
}]
}),HttpProtocol(HTTP/1.1))
Sequence Diagram