Esempio n. 1
0
        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");
        }
Esempio n. 2
0
//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();
        }
Esempio n. 3
0
        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")));
        }