use of org.neo4j.server.rest.RestRequest in project neo4j by neo4j.
the class PagedTraverserIT method shouldRespondWith200OnFirstDeletionOfTraversalAnd404Afterwards.
@Test
public void shouldRespondWith200OnFirstDeletionOfTraversalAnd404Afterwards() {
theStartNode = createLinkedList(SHORT_LIST_LENGTH, server.getDatabase());
JaxRsResponse response = createPagedTraverser();
final RestRequest request = RestRequest.req();
JaxRsResponse deleteResponse = request.delete(response.getLocation());
assertEquals(200, deleteResponse.getStatus());
deleteResponse = request.delete(response.getLocation());
assertEquals(404, deleteResponse.getStatus());
}
Aggregations