public virtual void ShouldGet200ForProperties() { string entity = JsonHelper.createJsonFrom(Collections.singletonMap("foo", "bar")); JaxRsResponse createResponse = _req.post(_functionalTestHelper.dataUri() + "node/", entity); GenConflict.get().expectedStatus(200).get(createResponse.Location.ToString() + "/properties"); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldGetRoot() public virtual void ShouldGetRoot() { JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.dataUri(), MediaType.TEXT_HTML_TYPE); assertEquals(Status.OK.StatusCode, response.Status); AssertValidHtml(response.Entity); response.Close(); }
public virtual void ShouldReturn200OnGet() { _helper.createRelationship("KNOWS"); _helper.createRelationship("LOVES"); string result = GenConflict.get().expectedStatus(200).get(_functionalTestHelper.dataUri() + "relationship/types").entity(); assertThat(result, allOf(containsString("KNOWS"), containsString("LOVES"))); }